Commit Graph

24 Commits

Author SHA1 Message Date
Erno Kuvaja 59a43ef35a Move functional tests to tempest_plugin
Remove pifpaf and dependencies to gnocchi for tox test runs.

Remove redundant gabbi tests.

Move wsme & query unit tests from fuctional to unit test folder where
they belong.

Remove integration tests which has been covered in the new tempest
cases in the depends on patch.

Remove run-tests.sh in favour of just calling stestr.

Depends-On: https://review.opendev.org/c/openstack/telemetry-tempest-plugin/+/901838
Change-Id: I5b33cba27dfcb2bbdf12c9bc6b28ecff9aa18d93
2023-11-28 08:57:16 +00:00
Jaromir Wysoglad 76d367be56 Fix py311 job
The py311 job has currently trouble locating mysqld.
On debian the mysqld binary is installed to /usr/sbin,
but on debian /usr/sbin isn't in PATH by default.
This patch appends /usr/sbin to PATH.

Change-Id: I89b2631f38e6a7292d6e58b4ddee6f7fdfc6fa9f
2023-10-04 10:06:32 -04:00
Stephen Finucane c8d8001a4f Merge run-tests.sh, run-functional-tests.sh
These were always called in series. No point to maintain the separation.

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: Ic100f380eea90115f0a44a82d1d28d5d216bed68
2022-03-23 10:25:53 +00:00
Stephen Finucane 63c3466f29 Migrate to stestr
This is effectively os-testr but maintained.

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I97183318f715b03f31145fa3d0f00bb7bc8a0c82
2022-03-23 10:23:00 +00:00
gord chung 6005f80f9b fix gate
new ostestr is different and is breaking gate. i don't think we
really need ostestr since we don't use it in any of the projects
under Telemetry. so to remain consistent and simple, just follow
similar pattern.

Change-Id: I742de2107cf56ef8b223fa1431529e706cc52377
2017-09-11 17:21:06 +00:00
Mehdi Abaakouk cf15d5a9de tests: simplify tox config
This runs most of the functional tests in the normal tox target.
(all except those tagged live).

Change-Id: Icf69ff743ba223c1b08abe858f567babfaaa64cf
2017-04-28 20:08:02 +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