Charm verification

Jelmer Vernooij jelmer at canonical.com
Wed Dec 21 18:08:49 UTC 2011


Hello,

Over the last couple of days I've been experimenting with charms a bit,
and I am really liking it so far. It was especially surprising to see
how quick I got from a plain precise install to getting a newly written
charm deployed.

I found myself writing simple test scripts for each charm, to verify
that the service unit was operating properly. In my case this sped up
development of the charm, since it meant not having to fire up a network
client manually, but just running a script. Perhaps it would also be
useful to verify that a particular unit is still working properly? I
guess in many ways it would be akin to a nagios plugin, but one which
pulls its configuration out of juju - so doesn't need any further
configuration.

In the docs, I couldn't find anything about standard ways of writing and
running such tests. Is there simply no standard? Or is this perhaps the
wrong thing to do, should I be doing something else?

Cheers,

Jelmer



More information about the Juju mailing list