Commit Graph

20 Commits

Author SHA1 Message Date
Matthias Runge ca45bbdca0 Retire panko, the code is no longer maintained.
The contents of this repository are still available in the Git source
code management system. To see the contents of this repository before it
reached its end of life, please check out the previous commit with
"git checkout HEAD^1".

For any further questions, please email
openstack-discuss@lists.openstack.org or join #openstack-telemetry on OFTC.

Change-Id: Ic8a7001e708d8da7cf8951eefd0a96762ea5fa46
2021-05-27 11:36:44 +02:00
Mehdi Abaakouk 92782ad6a7 Add python 3.7 gating
This also moves all tests in standard venv

Depends-On: I248c7ff3e306fa1086920c24baa73312e5e31b91
Change-Id: I23a6046ae6741ed71c52d3129d6238d4a6dd1f1e
2018-07-26 14:47:34 +02:00
Alexei Kornienko e626c9ca28 Refactored run-tests script
Refactored run-tests script to become a setup script.
This is needed to make it work correctly with arbitary command we want
to run in venv (testenv:venv in tox).

Change-Id: I91d0e7a05fb1b9fa13e18789281fdf5267f5b526
2014-02-10 15:30:25 +02:00
Julien Danjou 693204a37e nova notifier: disable tests + update sample conf
The nova notifier is again broken due to Nova switch to oslo.messaging.

Anyway, it's likely that this code has been broken for a long time, as
it is not enabled nor tested on devstack anymore. And it's very unlikely
compatible with oslo.messaging.

This patch only disable the run of the tests for now, but we might
consider removing the code before i3 if nobody stands up and try to fix
it in a way or another.

This patch also update the configuration file for the new keystoneclient
release.

Change-Id: I679154baff476957f46e7930db69aeec7e368648
2014-02-05 13:00:25 +01:00
Julien Danjou c759a1b212 tests: kill all started processes on exit
Just killing MongoDB is not enough, we also need to kill processes such
as the cat ones used to read the fifo.

Change-Id: I3fd99e333e69625e3872e24b9337cad17d46d737
2014-01-22 11:35:55 +01:00
Julien Danjou 4f0574d59f tests: pass /dev/null as config for mongod
On certain system, such as Darwin, the default mongod binary is a
wrapper adding a default configuration file. Let's specify that there's
no configuration file to read, otherwise a log file is used instead of
stdout.

Change-Id: I56c72cd61399405fd57d6e3f2b1f53ca6a395835
2014-01-08 15:19:10 +01:00
Doug Hellmann 08eb600479 Fail tests early if mongod is not found
Instead of letting the tests report connection errors,
check for the mongod process early and don't run the
tests at all if it is not found.

Change-Id: Iebf420ba62954ffe0d2b9c23375c9a0ff9673845
2013-09-23 15:36:19 -04:00
Julien Danjou 84c571acb9 run-tests: fix MongoDB start wait
There's actually 2 lines that matches the current rule:

  [websvr] admin web console waiting for connections on port 30000
  [initandlisten] waiting for connections on port 29000

Let's make it more tighten.

Related-Bug: #1218488

Change-Id: I4ba56a7c2406a9851aa8087b4cabb0aa31698763
2013-09-11 10:43:08 +02:00
Alexei Kornienko d17dde508b Improved MongoClient pooling to avoid out of connections error
Use 1 MongoClient instance per database server determined by host:port +
connection options

Fixes bug #1218488

Change-Id: If06844f6bf09674216b029310c1a5f445c4476fe
2013-09-05 12:37:02 +03:00
Mehdi Abaakouk 2152627f1a Disable the pymongo pooling feature for tests
Because pymongo doesn't close connection on .close() when we use its
pool, we disable the MongoClient pooling feature for running tests.

This allow to use a normal number of connection in mongod for test.

Fixes bug #1218488

Change-Id: Ie4c74620937816ed0592f5ac72de99dee3173ad8
2013-09-05 10:54:34 +02:00
Lianhao Lu 27937c395d Fixed nova notifier unit test
This fixed the bug #1221033 caused by the latest nova chagnes.

Temproarily enlarge the max allowed connection to mongoDB as a
workaround for bug #1218488. That bug should be addressed by
https://review.openstack.org/44465

Change-Id: I49d82bcc2c1ac6481b0f5d321db2f70549a95d55
2013-09-05 16:09:26 +08:00
Dirk Mueller 7a85b2d83e Append /usr/sbin:/sbin to the path for searching mongodb
At least on SUSE, it is not installed in /usr/bin,
which means it can not be found as normal user.

Change-Id: I636cb16429962807d9e88ba87e494ac3c7e1e5a9
2013-09-02 18:40:25 +02:00
Mehdi Abaakouk 056e883373 Refactored storage tests to use testscenarios
This refactore storage tests to use testscenarios

The test_impl_* files now have only test related the a particular
backend.

All common tests are in test_impl_scenarios.py (previously named
base.py)

The maxconns of Mongod have been increase to allow db2 to run

Parts of blueprint db-tests-with-scenarios

Change-Id: I94955ca1cead3f7c7e04b57b9ce1313324e4a349
2013-08-26 14:24:22 +02:00
Julien Danjou 13914a3cd5 Enable concurrency on nova notifier tests
Change-Id: I1ff5657466b5ebd24cae02e68342b16c90998ab9
2013-08-20 11:33:04 +02:00
Chmouel Boudjnah 5b76dd1594 Fix generating coverage on MacOSX
- Closes-Bug: 1208448

Change-Id: I494938c712dcf78362c01e11839021dd16a64751
2013-08-05 15:53:10 +02:00
Alexei Kornienko 5983a99da9 Added separate MongoDB database for each test
This allows to run all the tests concurrently

Change-Id: If29c09e6f8e5e0e7c3ae98bd9a71842dcfb43011
2013-07-29 12:13:24 +03:00
Julien Danjou d2578433b1 Disable mongod prealloc, wait for it to start
No prealloc should make mongod starts faster, and the while loop will
wait it is listening before running the tests.

Change-Id: Ia2ff201c0cfa882aa00bb7ce8ce990525f18339e
2013-07-16 15:15:40 +02:00
Mehdi Abaakouk a8b4ff6b33 Ensure correct return code of run-tests.sh
If 'kill -9 mongodb_pid' failed, run-tests.sh exit with a
return code of 0.

This change ensure that the return code is the one of the failed
command.

Change-Id: Iad58dac3fa66d1ea688af706940511033c1d76f7
2013-07-16 00:19:40 +02:00
Mehdi Abaakouk b3ebef4e92 Use run-tests.sh for tox coverage tests
The coverage tests mustn't run in parallel and must have a working
mongod instance like other tests.

So just use the run-tests.sh with a special flags --coverage

Fix bug #1199411

Change-Id: Id750697a69213ee753280b7adc8f726dbdb1fca5
2013-07-15 17:45:10 +02:00
Julien Danjou 048c59c930 Use a real MongoDB instance to run unit tests
This will allow more real tests, and use of more functionnality not
implemented in MIM such as aggregation.

Change-Id: Ie38deadf190db33863c99d4610157349484ac10f
2013-07-15 16:15:24 +02:00