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
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>
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>
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
This can be useful for local development. It always authenticates
successfully as the user/identity provided on the command line.
Change-Id: I1282b7fd98972b24d98f46680d8e2d335687667c
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
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