Signed-off-by: Loic Dachary <loic@dachary.org>
--- /dev/null
+#!/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
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