Tests needing to detect when environment is fully ready
marco at ondina.co
Tue May 28 13:04:13 UTC 2013
Have you tried using the new juju-test plugin?
installation isn't quite trival yet, it does implement due diligence to
make sure the bootstrap node is available when testing.
On Tue, May 28, 2013 at 6:21 AM, Stuart Bishop
<stuart.bishop at canonical.com>wrote:
> I'm writing tests for the PostgreSQL charm but have hit a road block.
> I'm happily spawning units and relating them together, but I can't
> work out a way of waiting until all the hooks have finished running
> and I can actually proceed to check that things are actually working.
> I think I can tell from juju status that relations have been joined,
> but I can't tell when all the hand shaking has completed and the
> relations are actually supposed to be usable.
> At the moment, the work around is to sleep for a while, but
> unfortunately that needs to be several minutes and even then not that
> reliable if provisioning or the instance is going slow.
> Can anyone help me? I think the best approach is to expose the list of
> hooks running or scheduled to be run. The test suite is Python and I'm
> currently using juju 0.7.
> Stuart Bishop <stuart.bishop at canonical.com>
> Juju mailing list
> Juju at lists.ubuntu.com
> Modify settings or unsubscribe at:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Juju