Commit Graph

12 Commits

Author SHA1 Message Date
Andreas Jaeger 9e22aa5af0 Retire repository
Fuel (from openstack namespace) and fuel-ccp (in x namespace)
repositories are unused and ready to retire.

This change removes all content from the repository and adds the usual
README file to point out that the repository is retired following the
process from
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project

See also
http://lists.openstack.org/pipermail/openstack-discuss/2019-December/011647.html

Depends-On: https://review.opendev.org/699362
Change-Id: I7b6da23a9ca05fb94f9f14e0f304cce596c469e8
2019-12-18 09:55:16 +01:00
asledzinskiy ca1ad32f20 Add tests to check rabbit cluster
- Add client to work with rabbit cluster: create queue,
message publishing, check cluster state
- Add failover tests for rabbit nodes

Change-Id: Ifde0aac45a43460d9af15442381bf0843bfe072e
2016-12-22 13:39:08 +02:00
Dennis Dmitriev a736489db9 Revert only the latest snapshot that matches the test requirements
- 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>
2016-11-18 12:38:23 +02:00
ydehtiarov b3d4103688 CCP fetch yaml default intialization fix
default fetch config moved into appropriate include file

Change-Id: Icc00d17ca99f1c14cd3fcc21b0bb655a9a5afcfa
2016-10-12 16:24:40 +03:00
ydehtiarov 4429dbcc1a ccp fetch tests
- ccp fetch testcases
- git-ssh service mock fixture(instantiate docker container running git ssh server)
- ccpmanager fetch updated to support yaml config
- ccpmanager fetch return execution result
- ccp manager fetch ignore exit code and return to upper layer
- updated scenarious for using yaml file
- git-ssh-server teardown added
- openstack images origin added into settings
- usage of show_step fixture added

Change-Id: Ife76165b9c1bf335dad4ae89dff4bfe6d2bc3e40
2016-10-11 18:39:58 +03:00
Dmitry Tyzhnenko 55520fd90e Remove deprecated deploy config parameter
Change-Id: Ib7464b4ddaca0ab53b348869ccf07bb578fee91d
Closes-bug: #1630499
2016-10-05 18:53:01 +03:00
Dennis Dmitriev 2cac42dd09 Revert snapshots in each fixture as a workaround
If @pytest.mark.revert_snapshot(name=<some_name>) is used for
test case, but the snapshot *or* it's config is missing in the
environment, then each fixture will try to revert the snapshot
that belongs to the fixture.

Change-Id: I819dba2e775f5be38ea8cd12c6909b2e7399e3a8
2016-09-21 11:42:42 +03:00
Dmitry Tyzhnenko 316fa360e4 Migrate to cpp conf file
Change-Id: I93d160db9ccb220f18a5d5737ba2b873209180e0
2016-09-16 10:14:22 +00:00
Dmitry Tyzhnenko 92e6702cb2 Init default params for cppmanager when reverting
Change-Id: I1f9efc9bb19a0455a4a90b217a6554a1260c7f68
2016-09-06 13:32:09 +03:00
Dmitry Tyzhnenko 135bdd34cc Pre commit test for keystone
Change-Id: I0a430e8288b88334ca1de5738c101078a869c04e
2016-09-05 15:29:33 +00:00
Dennis Dmitriev 0d72509ce4 Store config when snapshots are taken and restore it with revert
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
2016-09-01 18:29:25 +03:00
Dennis Dmitriev b36041e4ce Move tests into a ./tests folder
- 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
2016-08-24 18:36:25 +00:00