juju / amulet

Testing harness and tools for Juju Charms
Other
17 stars 33 forks source link

change 00-setup.sh to a just setup.sh or something that can be run #12

Open mitechie opened 10 years ago

mitechie commented 10 years ago

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.

marcoceppi commented 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