Commit Graph

17 Commits

Author SHA1 Message Date
Eyal aaf6879413 Cap psycopg2 to 2.8.3
Gate is failing in installing the latest 2.8.4
see https://zuul.opendev.org/t/openstack/build/fae3aadf6a6f43ebb8c8baa23bfb9801/log/job-output.txt#983

This workaround fixes this

Change-Id: I030aca53928d641ae2f787cd4f8dfce5d3e2b841
2019-10-23 09:26:22 +00:00
Doug Hellmann 59e43988fd switch mysql functional tests to PyMySQL
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>
2018-06-27 20:40:39 +00:00
Brad P. Crochet 9883814cdc Switch to using stestr
When the TC merged I2637dd714cbb6d38ef8b8dc1083e359207118284 we're
supposed to invoke stestr rather than testr so lets do that

Change-Id: Icd303c37d2371d44726d55c947bbc8b9e99f2a1c
2018-05-30 14:46:25 -04:00
Vitalii Solodilov fac2c4ac61 Added test to update the database schema to the latest revision
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>
2018-05-16 09:25:10 +00:00
Vitalii Solodilov 6382cf69dd Fixed the broken MySQL job
* 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>
2018-03-16 10:51:33 +04:00
Zuul b50b0fdb04 Merge "Migrate the jobs to native Zuul v3 format" 2018-01-24 19:57:34 +00:00
Brad P. Crochet dfc03ae6e4 Migrate the jobs to native Zuul v3 format
Change-Id: I10c06d3fb644c7e3026eac7a00660f0465fb0749
Depends-On: I3997350ec1b5bb58328cd761a61dd885177ac339
2018-01-24 07:06:43 +00:00
Vitalii Solodilov cf0484ad2e Fixed integration of the unit tests with PosrgeSQL
* 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>
2018-01-23 04:37:08 +00:00
pawnesh.kumar 2a6f470fea Removal of unneccessary directory in run_tests.sh
Change-Id: I5507b2eff6ce572cd53db640f597b945a5d87165
2016-10-20 16:03:39 +05:30
Anastasia Kuznetsova 75b1482a9f Fix postgresql unit tests running
- 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
2015-08-12 13:57:28 +03:00
LingxianKong d364ef2639 Remove mistral.conf.sample
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
2015-08-12 10:54:59 +08:00
Winson Chan 71f74a93cb Modify run_tests.sh to support PostgreSQL
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
2015-07-06 19:16:59 +00:00
LingxianKong 645576e2f0 Get rid of openstack/common package
* 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
2015-06-24 16:49:06 +08:00
Lingxian Kong 9ab59e2feb Fix the wrong project name in run_tests.sh usage
s/Neutron/Mistral

Change-Id: I8202aa4f1eed4ee5fb1422fbd2ccaed18fc453f5
Closes-Bug: #1421090
2015-02-12 16:23:19 +08:00
Christian Berendt c06f8e7bec Use $(COMMAND) instead of `COMMAND`
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
2014-09-30 15:17:04 +02:00
Anastasia Kuznetsova 79a78b96c4 Move gate tests under mistral/tests
- 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
2014-08-15 11:14:59 +04:00
Nikolay Mahotkin 9cfc57fed3 Move tests to testr
* Restored tools/install_venv scripts

Implements bp mistral-speedup-tests

Change-Id: I25d4755d1f06a248fe1de87da19f42fecba63404
2014-06-04 14:58:29 +04:00