~bjornt/charms/trusty/swift-storage/forward-port-bug-1350049-fix

« back to all changes in this revision

Viewing changes to tests/README

  • Committer: james.page at ubuntu
  • Date: 2014-07-28 11:54:32 UTC
  • mfrom: (32.1.3 swift-storage)
  • Revision ID: james.page@ubuntu.com-20140728115432-em4ntc388qe058e3
[corey.bryant,r=james-page] Add amulet tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
This directory provides Amulet tests that focus on verification of swift-storage
 
2
deployments.
 
3
 
 
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.
 
6
 
 
7
The following examples demonstrate different ways that tests can be executed.
 
8
All examples are run from the charm's root directory.
 
9
 
 
10
  * To run all tests (starting with 00-setup):
 
11
 
 
12
      make test
 
13
 
 
14
  * To run a specific test module (or modules):
 
15
 
 
16
      juju test -v -p AMULET_HTTP_PROXY 15-basic-trusty-icehouse
 
17
 
 
18
  * To run a specific test module (or modules), and keep the environment
 
19
    deployed after a failure:
 
20
 
 
21
      juju test --set-e -v -p AMULET_HTTP_PROXY 15-basic-trusty-icehouse
 
22
 
 
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'):
 
25
 
 
26
      ./tests/15-basic-trusty-icehouse
 
27
 
 
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.
 
32
 
 
33
Manual debugging tips:
 
34
 
 
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
 
41
 
 
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
 
48
 
 
49
  * Sample swift command:
 
50
      swift -A $OS_AUTH_URL --os-tenant-name services --os-username swift \
 
51
            --os-password password list
 
52
      (where tenant/user names and password are in swift-proxy's nova.conf file)