Commit Graph

11 Commits

Author SHA1 Message Date
Adam Coldrick 983bb8e2d7 Unpin webob and hacking to fix compatibility issues
The pinned versions of webob and hacking weren't functioning properly
with modern Python, so they are unpinned.

Unpinning hacking brought a number of extra rules into use, so this
commit also contains a number of code style fixes.

There was also an incompatibility in the test_setup.sh script, which
meant it doesn't work with MySQL 8.0 (which is in Ubuntu 20.04). This
is also fixed in this commit.

Change-Id: I0889bc35f8babfeec42f6f577d302bb5fbce1c95
2020-09-11 12:26:47 +01:00
Zuul cbfa8422c9 Merge "Add a test openid server" 2018-08-28 20:31:16 +00:00
Doug Hellmann f28dda3ef6 remove unused variable in test-cleanup.sh
Change-Id: Ia1bb377b4b577b8dbdaddfb0fd25eed02242c666
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-02-05 17:49:01 -05:00
Doug Hellmann 0b50d5752e add a script to clean up test databases
Running the tests locally created a bunch of separate databases that
were then left on the filesystem. This script finds those databases
and removes them.

Change-Id: Iecb8f2df039acd54dc9eaa7ef02be9af70a7b2b6
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-01-30 11:30:51 -05:00
Doug Hellmann c9ac23bf9e only try to reset the db user password if it needs to be
If the user sets MYSQL_ROOT_PW then presumably the database is already
configured with that password and we don't need to run the admin
command to change it. The command was failing on my system but when I
removed the line the rest of the commands in the script worked fine.

Change-Id: Id7c41efb2f2457254997ae39626f79f7356e8608
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-01-30 11:01:24 -05:00
Luigi Toscano 146ab70a56 Use ostestr instead of the custom pretty_tox.sh
Switch to os-testr as wrapper for testr, instead of the custom
script pretty_tox.sh.

Change-Id: I5b76cf9ffca530664b1c1ddcbf98679ab4fca8b5
2017-02-09 12:29:41 +01:00
Andreas Jaeger d900740366 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 allows us to change in project-config the python-db jobs to
python-jobs since python-jobs will call this script initially.

Update documentation for this.

See also http://lists.openstack.org/pipermail/openstack-dev/2016-November/107784.html

Needed-By: I4566705d6e8ff17b2d400111919f6e1a0d0db3eb
Change-Id: I56fbce9fe0d0c90734f28457886b7a27bf8479f4
2017-02-02 12:12:46 +00:00
James E. Blair 53265898e0 Add a test openid server
This can be useful for local development.  It always authenticates
successfully as the user/identity provided on the command line.

Change-Id: I1282b7fd98972b24d98f46680d8e2d335687667c
2016-11-30 14:23:01 -08:00
Adam Coldrick 903444fbdf Set correct default credentials in the test_backend.sh scripts
The CI expects user/pass to be openstack_citest/openstack_citest,
but it currently defaults to storyboard/storyboard in the
{install,destroy}_test_backend.sh scripts.

Change-Id: Icbf912dd304286638f31ae99a29c99905a423e90
2015-08-18 12:01:31 +00:00
Yolanda Robla 0b65cb4b02 Add tools to run integration tests
According to spec in https://review.openstack.org/150743,
integration tests will be launched from the backend.
Add new install_test_backend.sh and destroy_test_backend.sh
scripts that will be called from each integration tests.
The workflow will be:

- install_test_backend
- run integration test
- destroy_test_backend

Change-Id: Ie676d3152cc4cd854ab6644e5fd281de9c2d70fd
2015-03-30 10:38:38 +02:00
Nikita Konovalov e136c92ca4 Adding pretty-tox
Tests output looks more informative with it.

Change-Id: I09377a383607c9d4bbb5aa6506bc83e1ced39de0
2015-01-23 17:37:54 +03:00