From: Loic Dachary Date: Tue, 1 Dec 2015 20:30:00 +0000 (+0100) Subject: tests: delegate integration tests to OpenStack X-Git-Tag: 1.1.0~717^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=ed8a15d0a4ae9fdb22096d43bff1784399545d85;p=teuthology.git tests: delegate integration tests to OpenStack Signed-off-by: Loic Dachary --- diff --git a/openstack-delegate.sh b/openstack-delegate.sh new file mode 100755 index 0000000000..01b7e63a26 --- /dev/null +++ b/openstack-delegate.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +trap "rm -f teuthology-integration.pem ; openstack keypair delete teuthology-integration ; openstack server delete teuthology-integration" EXIT + +openstack keypair create teuthology-integration > teuthology-integration.pem +chmod 600 teuthology-integration.pem +teuthology-openstack --name teuthology-integration --key-filename teuthology-integration.pem --key-name teuthology-integration --suite teuthology/integration --wait --teardown --upload diff --git a/tox.ini b/tox.ini index af4568fc82..5a28ccaca0 100644 --- a/tox.ini +++ b/tox.ini @@ -69,3 +69,12 @@ deps= commands= py.test -v teuthology/openstack/test/openstack-integration.py + +[testenv:openstack-delegate] +passenv = HOME OS_REGION_NAME OS_AUTH_URL OS_TENANT_ID OS_TENANT_NAME OS_PASSWORD OS_USERNAME +basepython=python2 +sitepackages=True +deps= + -r{toxinidir}/requirements.txt + +commands={toxinidir}/openstack-delegate.sh