Functional test defined for Trove is supposed to be running against DevStack. It’s recommended that the host on which the DevStack is running should support nested virtualization, otherwise errors or timeout may occur during the testing. Refer to https://docs.openstack.org/devstack/latest/guides/devstack-with-nested-kvm.html for how to check and enable nested virtualization on the host.
Note
The functional test is different with Trove tempest test.
See Install Trove in DevStack for details.
For example, to run functional test with mysql datastore version 5.7.29, in trove source code directory, run:
ADMIN_PASSWORD=password \
SERVICE_PASSWORD=password \
tox -e trovestack gate-tests mysql mysql 5.7.29
gate-tests
sub-command: <datastore_type> <test_group> <datastore_version>
. There are a few of test groups pre-defined: mysql, mysql-supported-single, mysql-supported-multi, mariadb-supported-single, mariadb-supported-multi, etc.ADMIN_PASSWORD
and SERVICE_PASSWORD
are the passwords defined in the local.conf
file in devstack directory.TESTS_DO_NOT_DELETE_INSTANCE=True
.Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.