The mysql-python library does not support Python 3, so to be able to
run the functional tests under Python 3 we need a new library. The
oslo.db package uses and supports PyMySQL.
In addition to changing the dependency, change the database connection
string used.
Change-Id: Ide944f8df051bb5e011af1c881387a166d041b7c
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Co-Authored-By: Vitalii Solodilov <mcdkr@yandex.ru>
When the TC merged I2637dd714cbb6d38ef8b8dc1083e359207118284 we're
supposed to invoke stestr rather than testr so lets do that
Change-Id: Icd303c37d2371d44726d55c947bbc8b9e99f2a1c
If developer make a mistake in a migration script that CI doesn't show
the error. This patch fixed it adding execution of upgrade database
command before PostgreSQL and MySQL tests.
Closes-Bug: #1611036
Change-Id: I641e39da6a66528e940a1924ba9c4797bbaa2a11
Signed-off-by: Vitalii Solodilov <mcdkr@yandex.ru>
* Moved `created_at` and `updated_at` to MistralModelBase to generate a
default value without microseconds
* Increased time delay in scheduler tests. This change doesn't affect
a test duration
* Removed the PostgreSQL database generation commands because there
already are in the `tools/test-setup.sh` script
* Downloaded the python MySQL driver
Change-Id: I50c924ee94619c6622fc553f05a929607646f1fe
Signed-off-by: Vitalii Solodilov <mcdkr@yandex.ru>
* Corrected the path to the mistral config file in a unit test
* Minor improvement in the run_tests.sh script
* Fixed unstable the `test_rerun_join_with_branch_errors` and
test_rerun_on_join_task test. task3 id is properly passed now
* Removed unused `insert_or_ignore` api and tests. This api
broke the test in PostgreSQL case
* Passed correct value to the filter in
`test_filter_action_definitions_by_has_filter` test
Change-Id: I2ce3d2e1be001d9c0c76ebe5293b2bf578a7160b
Signed-off-by: Vitalii Solodilov <mcdkr@yandex.ru>
- access to the "openstack_citest" db under the "openstack_citest" user
in case if tests run on Jenkins gate, do not run commands under the
'sudo' because sudo access is revoked on Jenkins gates
- add one more argument that determines in how many threads tests will be run
(by default tests will be run in 1 thread, otherwise tests fail because of
incorrect cleanup mechanism in unit tests)
Change-Id: If332e8661f9309f71a3a0174144026de99df463e
For two reasons:
* The configuration file can be generated by using oslo-config-generator
CLI command provided by oslo.config module, which is generally adopted
by OpenStack projects.
* Reduce maintenance effort for each configuration item change.
Change-Id: If2f2559d669275b5fd252790657521049296c156
Modify run_tests.sh to run unit tests with PostgreSQL. Fix a number of
connection pool and deadlock related issues in the unit tests. Fix DB
clean up routine to remove records in the correct context and order.
Change-Id: If88c00a326c025af885d061ca95588939195b7c5
Implements: blueprint run-unit-tests-on-postgresql
* use oslo graduated modules, delete openstack/common package since there
is no dependency on oslo-incubator modules now.
* delete openstack-common.conf for the reason above.
* update project requirements automatically.
Change-Id: I80610cbfe7fd54263c8a2d9178ec9a2498c91899
Closes-Bug: #1459188
The usage of $(COMMAND) shoud be preferred. Details can be
found at http://mywiki.wooledge.org/BashFAQ/082.
Also replaced two ` used in strings with '.
Change-Id: Ia729470c58da6fe2e505426bd5ce93214ec1f655
- Move all gate tests from functionaltests folder to the mistral/tests/functional
- Edit run directory for gate tests in the functionaltests/run_tests.sh
- Leave 'resources' folder in the 'mistral/tests' to use examples from it in the tempest tests
Change-Id: I4d6d6a653aab5af00c5cae7c21495f4a86ebfe42