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

Teardown storage #132

Closed
luissimas opened this issue May 21, 2024 · 1 comment · Fixed by #133
Closed

Teardown storage #132

luissimas opened this issue May 21, 2024 · 1 comment · Fixed by #133

Comments

@luissimas
Copy link
Contributor

Hello!

I'm running some tests on an Openstack cloud and I've noticed that the ops_test fixture does not teardown the storage created by Juju on the model.

AFAIK the destroy_storage parameter on the OpsTest.forget_model method could be the solution, but it is not currently exposed to the user. I couldn't come up with a nice API for exposing this feature in this library (maybe another fixture?). I'd be willing to implement this functionality, but I'm not sure how to expose it to the users.

@luissimas
Copy link
Contributor Author

Maybe adding a command-line parameter such as --destroy-storage will be the best way to expose this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant