charmed-kubernetes / pytest-operator

Apache License 2.0
7 stars 13 forks source link

On test failure, dump model status and errors from Juju log #8

Closed johnsca closed 3 years ago

johnsca commented 3 years ago

To aid in debugging failed tests, the model status will be dumped in a format similar to juju status, as well as the results of running juju debug-log --replay --level=ERROR.

Also adds a method and decorator to abort subsequent test methods if a given test method fails.