I’ve just proposed a PR to add a script to the core juju repository that gets us closer to having a “1 click” process for setting up a local environment for running acceptance tests.
Here is what using it looks like:
python create_juju_test_env.py /tmp/juju-123 warning 1: JUJU_HOME environment variable (/home/tsm/Work/src/github.com/juju/juju) is not set to /tmp/juju-123. warning 2: JUJU_DATA environment variable (<unset>) is not set to /tmp/juju-123/data. info: to run an acceptance test, here is the suggested command: info: JUJU_HOME=/tmp/juju-123 JUJU_DATA=/tmp/juju-123/data ./assess_model_migration.py lxd $GOPATH/bin/juju /tmp/artifacts
As you can see,
create_juju_test_env.py is quite noisy. It includes a few other checks, such as that
$JUJU_REPOSITORY are available.
Thoughts? If people are happy, I’ll update the README in
juju/juju/acceptancetests to make use of it.