Skip to content

[Feature]: Add block_until_done arg to remove_relation #781

@sed-i

Description

@sed-i

Description

#665 added a block_until_done arg to remove_application.
It would be super handy to have the same for remove_relation.

async def destroy_relation(self, local_relation, remote_relation):

Urgency

It would save from a weird workaround

Code I'd Like to Run

await ops_test.model.applications[trfk.name].remove_relation(f"{ipr.name}:ingress", trfk.name, block_until_done=True)
# and then, without any additional `block_until`:
await ops_test.model.applications[trfk.name].add_relation(f"{ipr.name}:ingress", trfk.name)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions