Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support inspecting all unique statuses added to the collect status event via Context #1426

Open
tonyandrewmeyer opened this issue Oct 10, 2024 · 0 comments
Labels
feature New feature or request testing Related to ops.testing

Comments

@tonyandrewmeyer
Copy link
Contributor

Add something to facilitate verifying all of the individual statuses that went into the collect-status event, probably like:

ctx = Context(MyCharm)
with ctx(ctx.on.update_status(), State()) as mgr:
    mgr.run()
    assert ActiveStatus() in mgr.collected_statuses

Originally posted by @PietroPasotti in canonical/ops-scenario#78 (comment)

Moved from canonical/ops-scenario#79

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request testing Related to ops.testing
Projects
None yet
Development

No branches or pull requests

2 participants