autotest #2

Supports: xenial
Add to new model


Create a framework to run tests in the Autotest framework


Updated for JuJu 2.0

The Autotest Charm creates a flexible method for running testcases inside the Autotest(autotest-local) Framework using juju actions.
The source for these tests are currently git:// but these can be changed to other git repos.


juju bootstrap
juju deploy autotest

Tests are execute using juju actions. Current available tests:

  • dbench
  • stress
  • stress_ng - Stress-ng (long running test, it takes approximately 3 hours to complete)
  • ubuntuqrt - QA Regression Tests - (disabled by default)
  • custom - currently sleeptest. This can be changed to any tests located in the autotest-client-tests directory. sleeptest is a short and simple test that is similar to a smoke test The available tests can be found in autotest/actions directory

Listing the Tests

juju list-actions autotest

Running the Tests

juju run-action autotest/0  dbench

This returns an job id that can be used to wait for the completion of the test

  • Fetch the status of the test

    juju show-action-status

  • Fetch the results of the test

    juju show-action-output

Adding Client Tests

Create a test in the autotest format and set and create a git repository. The following link documents how to create tests

Conifgure autotest-custom-tests to point to a reposistory that contains

juju config autotest autotest-custom-tests=''

Running the Newly Added tests with actions

juju run-action autotest/* custom testnames='testname1 testname2 ..."

Results are moved to the $CHARM_DIR/.tmp/results/$test-name after each run.


(string) Location of the autotest client testcases
(string) Location of the custom autotest client testcases
(string) Location of the autotest server