8 Commits

Author SHA1 Message Date
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