]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
tests: delegate integration tests to OpenStack 746/head
authorLoic Dachary <ldachary@redhat.com>
Tue, 1 Dec 2015 20:30:00 +0000 (21:30 +0100)
committerLoic Dachary <ldachary@redhat.com>
Tue, 15 Dec 2015 10:51:21 +0000 (11:51 +0100)
Signed-off-by: Loic Dachary <loic@dachary.org>
openstack-delegate.sh [new file with mode: 0755]
tox.ini

diff --git a/openstack-delegate.sh b/openstack-delegate.sh
new file mode 100755 (executable)
index 0000000..01b7e63
--- /dev/null
@@ -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 af4568fc828f34fbea10d1ab216fbf1a0059691d..5a28ccaca070b7b91738bfdfa9430b514a774b65 100644 (file)
--- 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