summaryrefslogtreecommitdiff
path: root/CONTRIBUTING.rst
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.com>2017-02-06 21:55:49 +0100
committerAndreas Jaeger <aj@suse.com>2017-02-06 21:58:47 +0100
commitc128d3c4bc655005fe1fdd04c7e9d2f2c2b3ca2c (patch)
tree2bb9fac608d2881a7d711efb07dad993fd4ce4ba /CONTRIBUTING.rst
parent9a12ea681a9724d9a0cd5e6783899537be0b83b5 (diff)
downloadoslo-db-c128d3c4bc655005fe1fdd04c7e9d2f2c2b3ca2c.tar.gz
Prepare for using standard python tests
Add simple script to setup mysql and postgresql databases, this script can be run by users during testing and will be run by CI systems for specific setup before running unit tests. This is exactly what is currently done by OpenStack CI in project-config. This allows to change in project-config the python-db jobs to python-jobs since python-jobs will call this script initially. See also http://lists.openstack.org/pipermail/openstack-dev/2016-November/107784.html Update CONTRIBUTING.rst for this. Needed-By: Ia298e25f9b15a2dcfc4553ea058fc2c0f3705a8b Change-Id: I825b72e3f645d02f7efdb3315a12825a8c937759 (cherry picked from commit 353ab3904749987841e72846098433fb957936fc)
Diffstat (limited to 'CONTRIBUTING.rst')
-rw-r--r--CONTRIBUTING.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst
index aa704f9..51a0c3d 100644
--- a/CONTRIBUTING.rst
+++ b/CONTRIBUTING.rst
@@ -59,6 +59,10 @@ For MySQL you can use the following commands::
mysql> GRANT ALL PRIVILEGES ON * . * TO 'openstack_citest'@'localhost';
mysql> FLUSH PRIVILEGES;
+See the script ``tools/test-setup.sh`` on how the databases are set up
+excactly in the OpenStack CI infrastructure and use that for your
+set up.
+
Alternatively, you can use `pifpaf`_ to run the unit tests directly without
setting up the database yourself. You still need to have the database software
installed on your system. The following tox environments can be used::