Open mitechie opened 10 years ago
So, teardown and "setup" (bootstrapping, etc) are handled by the juju-test plugin. There's an option in juju test to archive the environment on teardown (-o). Amulet's just designed to make standing up and testing an environment easier it was purposefully decoupled (amulet, and juju-test) due to decisions early in the projects life
Since 00-setup runs and then it tears the environment down, instead amulet should provide a
amulet.setup()
that looks for a setup.sh file or something and then then runs the scripts so that you can include it in each test run.
It might also be cool to have teardown, but only if we get to where we can run tests on the same bootstrap setup.