- Add client to work with rabbit cluster: create queue,
message publishing, check cluster state
- Add failover tests for rabbit nodes
Change-Id: Ifde0aac45a43460d9af15442381bf0843bfe072e
- add pytest marks 'revert_snapshot' to all required fixtures instead
of reverting the snapshots inside them
- add get_top_fixtures_marks() that extracts all the marks
'revert_snapshot' from the test and it's fixtures, order the marks
in the same way as the fixtures depends on each other,
- in the fixture 'revert_snapshot' try to find the most suitable
snapshot for reverting, from latest to earliest.
- mark 'revert_snapshot' removed from system tests which use fixtures
with the same mark (for example, 'k8s_deployed' mark removed from
system tests where the fixture 'k8scluster' is used as a top fixture)
Change-Id: Iad9e56d96d870aa4204ba23e76a5b4df01d4385b
Co-Authored-By: Dmitry Tyzhnenko <dtyzhnenko@mirantis.com>
YamlEditor is a simple way to manipulate YAML content
in the files stored on the localhost or on the remote host.
- YamlEditor moved from fuel-qa/fuelweb-test/helpers/utils.py
- add possibility to work with multi-document YAMLs (variable
document_id sets the current document to edit)
- add 'multi_constructor' and 'representer' to work with YAMLs
that are using different tags (for example "!include") without
parsing these tags.
Examples:
// Local YAML file
with underlay.yaml_editor('/path/to/file') as editor:
editor.content[key] = "value"
// Remote YAML file on k8s host
with underlay.yaml_editor('/path/to/file',
host=config.k8s.kube_host) as editor:
editor.content[key] = "value"
Change-Id: I4741197125c508a90dac5c8df93381a040542a4a
- to run this test, the following env variable should be exported:
export STACKLIGHT_ENABLE=true
- os manager
- os deployed fixture
- os deployed with stacklight fixture
- assertion messages added
- moved to component folder
- list of files switched from ls to find
- elastic client return None if not items found
- show_step applied to all scenarios
Change-Id: I4ded419730889761ffa102a23e97d655a07d20fa
Sometimes tests hang while performing requests to the
netchecker. To prevent that 5 seconds connection timeout
is added. Also @retry decorator is used for re-trying
connection if it fails.
Change-Id: Iea90a04fc713304fb98807488021be9971273280
- K8sClient moved from ./models to ./managers
- all YAMLs placed to ./tests/fixtures/templates
- all tests placed to ./tests/ into separated folders depending
on tests types
- ssh_manager removed from helpers (unused)
- main folder 'mcp_tests' renamed to 'fuel_ccp_tests'
- conftest.py moved to the ./tests/system and ./tests/component
folder because of failed unit tests (we use fixtures with
autouse=True which fail unit tests).
- empty conftest.py added to the root of fuel_ccp_tests module
to get unit tests passed
Change-Id: I25671dd7d6f3ee294a4e4146f9f2c2ba4d9b2d06