1. Move QuietLogger and logwrap to core
2. Fix QuietLogger (if log level was upper, than in param,
QuietLogger ebabled additional logging instead of pass)
3. Cover by unit-tests
4. Added missed license text
5. add *.log to gitignore
Change-Id: If842791000c76852fe1dec1e66edcc081c278b2c
Blueprint: fuel-qa-join-helpers
(cherry picked from commit b7ca0ff)
1. Use flexible config based on dictConfig
2. debug decorator wan not used for a years -> dropped
3. Hardcode logger to fuel-qa.__name__ from __name__ due to not root package for now
4. Due to different behavior between labs, override devops logger to act as QA.
5. Capture all propagated to root logger with warning+ level at file only.
6. Do not propagate py.warnings due to a lot of useless warnings from packages
Blueprint: fuel-qa-join-helpers
Change-Id: I0e66909caf11fd98988b601b5054ed1fa9e1aaa9
By default we want to hide all messages except errors but in several cases
(like assert_ha_services_ready) we need to suppress error messages too.
Change-Id: I513c73055f0e517b308868b1cd500a185ea81be2
1. SingletonMeta -> modified to allow handling multiple classes and moved to metaclasses too.
2. @logwrap : process asserts too
Changes reason:
@logwrap was changed during test debug (was assert in wrapped function
and stacktrace was not enough for reason understand) and moved out of
test changest due to not mandatory for this test.
Pros: Now assert, raised in wrapped function is recorded in log with
details.
SingletonMeta: was changed as "nice to have" during work on plugin
helpers. Later plugin helpers was moved out of SshManager, and all code
changes was moved to this changeset.
Pros: Single way for handling the same tasks in different places.
Previously SshManager used Metaclass, which could not be reused for
more, than one class and Environment used __new__ directly written
in class code.
Related-Bug: #1518979
Related-Bug: #1519050
Change-Id: I798302879400747909229cc208f97a669f25bbf3
For define own group, put it into group_list in
define_custom_group() at run_tests.py
Implements blueprint template-based-testcases
Change-Id: I8804768f17dc2368b7c2f99dc838ec0308bba79a
assert_ha_services_ready():
OSTF 'HA' test group should be used to validate if a cluster
in the operational state.
There are rabbitmq and mysql checks, and will be added haproxy
and pacemaker checks.
Without these services the cluster can fail requests from tests.
assert_os_services_ready():
OSTF 'Sanity' test group to wait until OpenStack services are
ready.
Change-Id: Ie1bddc965719ca59a143f8f43c53546a4553b1b9
Closes-Bug: #1383247
Closes-Bug: #1455910
Apply refactoring patch https://review.openstack.org/#/c/149612/.
Move contents of fuel-main/fuelweb_test to the repo.
Add run_tests.sh.
Change fuel-devops version to 2.9.0 in requirements file.
Change-Id: Id321d63d97290f2fb22736abbe1d74315aed2893