1
This directory provides Amulet tests that focus on verification of nova-compute
4
If you use a web proxy server to access the web, you'll need to set the
5
AMULET_HTTP_PROXY environment variable to the http URL of the proxy server.
7
The following examples demonstrate different ways that tests can be executed.
8
All examples are run from the charm's root directory.
10
* To run all tests (starting with 00-setup):
14
* To run a specific test module (or modules):
16
juju test -v -p AMULET_HTTP_PROXY 15-basic-trusty-icehouse
18
* To run a specific test module (or modules), and keep the environment
19
deployed after a failure:
21
juju test --set-e -v -p AMULET_HTTP_PROXY 15-basic-trusty-icehouse
23
* To re-run a test module against an already deployed environment (one
24
that was deployed by a previous call to 'juju test --set-e'):
26
./tests/15-basic-trusty-icehouse
28
For debugging and test development purposes, all code should be idempotent.
29
In other words, the code should have the ability to be re-run without changing
30
the results beyond the initial run. This enables editing and re-running of a
31
test module against an already deployed environment, as described above.
33
Manual debugging tips:
35
* Set the following env vars before using the OpenStack CLI as admin:
36
export OS_AUTH_URL=http://`juju-deployer -f keystone 2>&1 | tail -n 1`:5000/v2.0
37
export OS_TENANT_NAME=admin
38
export OS_USERNAME=admin
39
export OS_PASSWORD=openstack
40
export OS_REGION_NAME=RegionOne
42
* Set the following env vars before using the OpenStack CLI as demoUser:
43
export OS_AUTH_URL=http://`juju-deployer -f keystone 2>&1 | tail -n 1`:5000/v2.0
44
export OS_TENANT_NAME=demoTenant
45
export OS_USERNAME=demoUser
46
export OS_PASSWORD=password
47
export OS_REGION_NAME=RegionOne