charm-nova-cloud-controller/tests
2015-09-22 14:05:15 +08:00
..
charmhelpers Fix lint error 2015-09-22 14:05:15 +08:00
00-setup Add amulet pre-req python-distro-info. 2015-07-10 13:34:04 +00:00
010-basic-precise-essex Revert previous commit, work incomplete 2015-04-20 11:21:36 +01:00
014-basic-precise-icehouse auto rename amulet tests 2015-04-16 21:36:00 +00:00
015-basic-trusty-icehouse auto rename amulet tests 2015-04-16 21:36:00 +00:00
016-basic-trusty-juno auto add amulet tests for supported releases 2015-04-16 21:36:15 +00:00
017-basic-trusty-kilo Enable tests/017-basic-trusty-kilo 2015-07-13 23:06:46 +00:00
019-basic-vivid-kilo auto disable kilo amulet tests (until later confirmed as functional) 2015-04-16 21:36:25 +00:00
050-basic-trusty-icehouse-git [corey.bryant,trivial] Add icehouse git amulet tests back with new branches. 2015-07-09 18:16:49 +00:00
051-basic-trusty-juno-git Merge next branch 2015-04-22 21:48:17 +00:00
052-basic-trusty-kilo-git [corey.bryant,trivial] Add basic-trusty-kilo-git amulet tests. 2015-07-08 13:34:32 -04:00
basic_deployment.py [corey.bryant,trivial] Deploy nova-cc from source for amulet git tests. 2015-07-22 23:02:42 -04:00
README Amulet test fixes: 2014-09-29 21:03:48 +00:00

This directory provides Amulet tests that focus on verification of Nova Cloud
Controller deployments.

In order to run tests, you'll need charm-tools installed (in addition to
juju, of course):
    sudo add-apt-repository ppa:juju/stable
    sudo apt-get update
    sudo apt-get install charm-tools

If you use a web proxy server to access the web, you'll need to set the
AMULET_HTTP_PROXY environment variable to the http URL of the proxy server.

The following examples demonstrate different ways that tests can be executed.
All examples are run from the charm's root directory.

  * To run all tests (starting with 00-setup):

      make test

  * To run a specific test module (or modules):

      juju test -v -p AMULET_HTTP_PROXY 15-basic-trusty-icehouse

  * To run a specific test module (or modules), and keep the environment
    deployed after a failure:

      juju test --set-e -v -p AMULET_HTTP_PROXY 15-basic-trusty-icehouse

  * To re-run a test module against an already deployed environment (one
    that was deployed by a previous call to 'juju test --set-e'):

      ./tests/15-basic-trusty-icehouse

For debugging and test development purposes, all code should be idempotent.
In other words, the code should have the ability to be re-run without changing
the results beyond the initial run.  This enables editing and re-running of a
test module against an already deployed environment, as described above.

Manual debugging tips:

  * Set the following env vars before using the OpenStack CLI as admin:
      export OS_AUTH_URL=http://`juju-deployer -f keystone 2>&1 | tail -n 1`:5000/v2.0
      export OS_TENANT_NAME=admin
      export OS_USERNAME=admin
      export OS_PASSWORD=openstack
      export OS_REGION_NAME=RegionOne

  * Set the following env vars before using the OpenStack CLI as demoUser:
      export OS_AUTH_URL=http://`juju-deployer -f keystone 2>&1 | tail -n 1`:5000/v2.0
      export OS_TENANT_NAME=demoTenant
      export OS_USERNAME=demoUser
      export OS_PASSWORD=password
      export OS_REGION_NAME=RegionOne