From ed8a15d0a4ae9fdb22096d43bff1784399545d85 Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Tue, 1 Dec 2015 21:30:00 +0100 Subject: [PATCH] tests: delegate integration tests to OpenStack Signed-off-by: Loic Dachary --- openstack-delegate.sh | 7 +++++++ tox.ini | 9 +++++++++ 2 files changed, 16 insertions(+) create mode 100755 openstack-delegate.sh 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 -- 2.39.5