Commit Graph

10 Commits

Author SHA1 Message Date
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
Mehdi Abaakouk 3b365a1876 tests: rework functional live tests
This allows to run functional live tests without devstack.
And runs tests within the normal tox target without devstack

This increases test coverage because all backend are now tested.

Change-Id: If475b6d1f43a44540f276209a3651e7e790c2233
2017-07-13 12:57:41 +02:00
Julien Danjou 4570e42803 Remove deprecated non-SQL drivers
Change-Id: I1eb890fe422718e986bb92139a023868bace7d96
2016-10-13 15:21:58 +02:00
Julien Danjou 467a0418c8 Replace overtest by pifpaf
This is new and shiny!

Change-Id: I5ccc576211a0c49b65a07cc4054a2d039bd4d5d5
2016-05-27 21:03:20 +02:00
ZhiQiang Fan 832f088e2b add default value to functional test environment variables
AODH_TEST_BACKEND and AODH_SERVICE_URL are required to run functional
test. But it is a burden to export those two environment variables for
default devstack environment, this patch sets AODH_TEST_BACKEND=mysql
and AODH_SERVICE_URL=http://127.0.0.1:8042 if they are not set.

Change-Id: I5e977595dbbb0a01981f9317135ef1eb56602d7e
2016-04-19 01:38:16 +08:00
Julien Danjou 239fbb2e7b tests: replace bash scripts with overtest
This replaces the usage of our custom bash scripts by overtest to setup
the daemon we need (PostgreSQL, MySQL and MongoDB).

Change-Id: I65e0358229043660c81f16ea8c624542bab1d19a
2016-01-19 11:20:35 +01:00
Chris Dent 0fe31249fe Add basic gate functional testing jobs for aodh
This provides a way to run functional tests from the gate, initially
just a simple set of gabbi tests which exercise the API. Once this
has proven to be working we can add more.

The model here is a hybrid of what was started for ceilometer and
what was used in gnocchi with some adjustments to allow for some
local testing.

The tests produced by test_gabbi_live will only run if
AODH_SERVICE_URL is set to the alarming endpoint. A keystone auth
token is needed in AODH_SERVICE_TOKEN. post_test_hook.sh
makes this happen if we are in a devstack-gate environment.
Otherwise they must be set by the caller.

The expectation is that we'll stick more test in tests/functional as
we have time, energy and brains.

Note that the layout of the functional tests assumes that the tests
will skip (or not even generate tests) if a functional environment
is not in place, such as when the unit tests are run.

Change-Id: Ia40e9c6b956209ecd0086ca861a90ce0c92b7b10
2015-07-24 16:38:43 +00:00
Julien Danjou 8372f48b7a Rename to aodh
Change-Id: Ibd4c9811daa6e9e692457ce480a58c964fef7cb9
Signed-off-by: Julien Danjou <julien@danjou.info>
2015-06-25 14:46:39 +02:00
Ilya Tyaptin 57a9fc5bce Add running functional scripts for defined backend
This CR allows running "functional" tox job for different backends.
Short description about expected workflow:
1. Gate job run ceilometer/ceilometer/tests/functional/hooks/post_test_hook.py
with <backend> parameter.
2. This script run "tox -efunctional" command with defined variable
CEILOMETER_TEST_BACKEND
3. After in "run-functional-tests.sh" setup script for the backend
and testr are runned.

In this CR running testr with pretty_tox.sh script added because
it allows to use subunit-trace output which developed in tempest-lib
and improve useful of testr output.

Partially implements: blueprint ceilometer-functional-tests
Change-Id: Idb66aca0b46779516db2baec856df8223dbe5c13
2015-06-04 16:29:02 +03:00