Hi all A new test suite has been added - juju-core/testing/BaseSuite This new suite takes the place of LoggingSuite and provides the following features:
- embeds LoggingSuite - disallows outgoing network access - clears env variables: HOME, JUJU_HOME, JUJU_ENV The code has been updated to use the new suite. The process of doing so highlighted some tests which attempted outside network access and these have been fixed. There are also these suites: - juju-core/testing/FakeHomeSuite - juju-core/testing/FakeJujuHomeSuite FaheHomeSuite embeds BaseSuite and does he additional step of creating a tmp dir for $HOME and sets up a ~/.ssh dir with fake ssh keys. Several tests need this. FakeJujuHomeSuite embeds FakeHomeSuite and does the additional step of cresting a ~/.juju dir with a sample juju environment and certs. The previous mix of various MakeJujuHome() variants have been replaced by the above. There's a testing/WriteEnvironments() help and various constants defined to allow other Juju environments to be easily set up. Please ensure you now use BaseSuite where you would previously have used LoggingSuite. -- Juju-dev mailing list Juju-dev@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju-dev