summaryrefslogtreecommitdiff
path: root/README.rst
diff options
context:
space:
mode:
authorPekelny Ilya <ipekelny@mirantis.com>2013-09-16 19:15:12 +0300
committerIlya Pekelny <ipekelny@mirantis.com>2013-11-26 14:48:32 +0200
commit8a01dd8e680b33ca8141cbc62f18b15202a229ed (patch)
treee56cf889c73459a73ec0069c88c6f4697b9eed52 /README.rst
parent232942278f0cdee7e8d6dd799f4088cec889909b (diff)
downloadoslo-incubator-8a01dd8e680b33ca8141cbc62f18b15202a229ed.tar.gz
The ability to run tests at various backend
Added testing functionality for using different db backends. Сurrently exists ability to define backend-specific tests along with regular tests. Assuming that the tests will be run under a variety of backend there exists opportunity to skip backend-specific tests at inappropriate backends. For the correct functioning of the tests required to export environment variable with a root access database uri. Blueprint: tests-given-db-backend Change-Id: Ic5d3cfe8764b3c04affe79088473255c17535e54
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/README.rst b/README.rst
index c1150544..2d1bb60a 100644
--- a/README.rst
+++ b/README.rst
@@ -29,3 +29,9 @@ To run tests in the current environment:
sudo pip install -r requirements.txt
nosetests
+
+To run tests using MySQL or PostgreSQL as a DB backend do:
+
+ OS_TEST_DBAPI_ADMIN_CONNECTION=mysql://user:password@host/database tox -e py27
+
+Note, that your DB user must have permissions to create and drop databases.