tree: 19d080a7ed5b2e6b278613bf97f3f6eb0c709b5e [path history] [tgz]
  1. openstack/
  2. rackspace/
  3. tools/
  4. README.md
acceptance/README.md

Gophercloud Acceptance tests

The purpose of these acceptance tests is to validate that SDK features meet the requirements of a contract - to consumers, other parts of the library, and to a remote API.

Note: Because every test will be run against a real API endpoint, you will incur bandwidth and service charges for all the resource usage. Please ensure you delete these resources when you're finished!

Step 1. Set environment variables

Authentication

NameDescription
OS_USERNAMEYour API username
OS_PASSWORDYour API password
OS_AUTH_URLThe identity URL you need to authenticate
OS_TENANT_NAMEYour API tenant name
OS_TENANT_IDYour API tenant ID

General

NameDescription
OS_REGION_NAMEThe region you want your resources to reside in

Compute

NameDescription
OS_IMAGE_IDThe ID of the image your want your server to be based on
OS_FLAVOR_IDThe ID of the flavor you want your server to be based on
OS_FLAVOR_ID_RESIZEThe ID of the flavor you want your server to be resized to

2. Run the test suite

From your $GOPATH directory, run:

go test -v -tags acceptance github.com/rackspace/gophercloud/...

Alternatively, you can execute the above from your nested git folder (i.e. the workspace visible when browsing the Github repository) by replacing github.com/rackspace/gophercloud/... with ./...