- Add client to work with rabbit cluster: create queue,
message publishing, check cluster state
- Add failover tests for rabbit nodes
Change-Id: Ifde0aac45a43460d9af15442381bf0843bfe072e
Now 'underlay', 'k8scluster' or 'ccpcluster' can restore
a snapshot if the snapshot name was specified in the
pytest.mark.revert_snapshot(name=<str>).
Snapshot is reverted *only* if:
- name of the snapshot matches the name of the snapshot that
is created by fixture:
* 'underlay' fixture reverts only 'underlay' snapshot
* 'k8scluster' reverts only 'k8s_deployed' snapshot
* 'ccpcluster' reverts only 'ccp_deployed' snapshot
- snapshot actualy exists at the moment
If fixture made changes to the environment, it takes a snapshot
and stores current config to a file 'config_<snapshot_name>.ini'
Other changes:
- Removed 'initial' snapshot. It doesn't makes sense because
matches to the environment state 'never powered on yet'
- Add 'underlay' snapshot instead of 'initial', that stands for
ready Underlay layer (operation systems are provisioned and
configured)
- Move hardware.start() from 'hardware' fixture to 'underlay'
- Use for tests @pytest.mark.revert_snapshot with more suitable
snapshot names
Change-Id: I15ac734736563e3e40cd850adc49e1b4a070ae20
fuel_ccp_tests can be installed as a package:
pip install git+git://github.com/openstack/fuel-ccp-tests --upgrade
To run the test, use 'fuel_ccp_tests' CLI and pytest marks:
fuel_ccp_tests -k fuel_ccp_installer # Run all the k8s install tests
fuel_ccp_tests -k ccp_cli_errexit_codes # Run all errorcode tests
fuel_ccp_tests -k deploy_openstack # Run ccp install test
fuel_ccp_tests -k horizon_component # Run pre-commit test
# for horizon
Change-Id: Ib5b1869264529661958840fced5b7c49e6f19647
- 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