Tests needing to detect when environment is fully ready
Stuart Bishop
stuart.bishop at canonical.com
Wed May 29 07:51:49 UTC 2013
On Tue, May 28, 2013 at 7:23 PM, Kapil Thangavelu
<kapil.thangavelu at canonical.com> wrote:
> The jitsu watch command is useful for this purpose (lp:juju-jitsu also in
> ppa). It can wait on the key/values associated to a relation handshake.
Thanks. This looks like it will unblock me for now.
Downsides over, say, if the queue of pending hooks was exposed via juju status:
- Slower and more cumbersome to use. My helper needs to discover the
topology, construct conditions to wait on, then wait.
- My test fixture's wait_until_ready method is going to be specific
to my charm, so I won't be able to move it into the charm-helpers
package.
- My tests are locked into pyjuju
- Locked into pyjuju is problematic as tests I want to write require
bug fixes only available in juju-core (eg. Bug #1040210).
--
Stuart Bishop <stuart.bishop at canonical.com>
More information about the Juju
mailing list