4 Commits

Author SHA1 Message Date
Megan Guiney
1a17a94472 Add line in mysql setup to ensure that sbin is in path
mysqld is installed to sbin by default, so if sbin is not in your
path, the tests will fail to set up properly.

Change-Id: I8ca72822ccf19046d1f5634245e972f184f5675a
2018-07-03 22:15:25 -07:00
Paul Van Eck
264b0a0beb Make functional gate job work on Xenial
With the functional gate job now being run on Xenial instead of Trusty,
the mysql version being used is much newer. Here we enable the variable
show_compatibility_56 that allows mysql system variables to be available
through SHOW statements. This should fix the gate currently failing
due to 'SHOW VARIABLES' statements erroring out.

Change-Id: Ica368351a669458d3dd4085403f086335a4470c7
2016-09-06 16:55:42 -07:00
Paul Van Eck
2de6fb4b13 Fix functional tests
Trying to run 'tox -v -epy27-func-mysql' yields errors. Changed the
connection string to contain '+pymysql' like the real connection string.
Also a test failure was resolved as one of the tests was still
expecting CPID when it shouldn't.

Change-Id: I507ef60758ca80d9ec2d47cef5dd4542c920171f
2015-09-28 14:30:24 -07:00
Vladislav Kuzmin
16affe2d12 Improve database creation for testing
Create MySQL database before starting tests and cleanup after that.
MySQL database is able to work in standalone mode where establish
connection using a Unix domain socket.
This patch makes it possible to perform functional tests with `tox -e py27-func-mysql`.
If an enviroment variable REFSTACK_TEST_MYSQL_URL is set then tests will run with it
and a database will not be created.
Update test requirements.

Change-Id: I0cdba19701bbf06109e78f78f275038caeecd881
2015-03-06 10:14:04 +03:00