charmrunner - automated charm testing tools

Kapil Thangavelu kapil.thangavelu at canonical.com
Fri Feb 17 16:24:40 UTC 2012


Hi folks,

After the testing discussion last week, i put together a python package for 
generating automated test plans, running them, and recording the results. It 
works by constructing a graph of the charm's dependencies and then creating a 
plan consisting of charms and their versions, and the relations to instantiate 
between the deployed services them to satisfy dependencies. 

The package is built as a set of standalone tools that can accomplish various 
common practices when testing a charm (snapshot/restore environment, service 
watching, environment loading), with a front end script to drive the 
whole process. The front-end script is meant to be easy to drive from jenkins, 
by hand, or via a REST queue.

There's a readme overview of the tools and downloads available at.
http://pypi.python.org/pypi/charmrunner 

i've been able to deploy everything i thrown at it (mediawiki, 
openstack/nova-compute, etc). Semantic deficiencies in relation metadata have 
tripped up the tool, and i doubt its perfect. I expect it will see some 
iteration as it expands beyond minimal dependency deployment to testing what a 
charm provides.

Code, bugs, etc.
http://launchpad.net/charmrunner

cheers,

Kapil



More information about the Juju mailing list