Commit Graph

17 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
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
Dmitry Tyzhnenko aa27e12680 Split system tests
Change-Id: I797a6fec6dff32c0ea2f7615dbd351644fceee34
2016-10-10 22:59:00 +03:00
Artem Panchenko a9ed14f433 Set 'bvt' mark on test with parametrized deployment
There is a need to run build verification tests with
custom CI artifacts, so the test should pass all
provided settings to the deployment script.

Change-Id: I68ed7a2895f23bb0c3f99ca3c13ede308d17fef2
2016-09-28 16:03:30 +03:00
Artem Panchenko 47c83cf4e8 Don't override 'ipip' option for installer by default
Test should use default value of 'ipip' setting for the
deployment script, unless it's explicitly set from tests
or exported to environment variables.

Also since at the moment 'ipip' is disabled for all
existing tests, we need to add a separate test for
deploying Calico with tunnels. Scenario:

 1. Enable 'ipip' in the settings
 2. Install k8s.
 3. Check Calico IPIP tunnels exist
 4. Basic check of running containers on nodes.
 5. Create nginx pod.
 6. Check created pod is reached
 7. Delete pod.

Change-Id: I4d1e2417b3f4b27e7ca15afebdc3de4bef63a177
2016-09-26 15:06:16 +03:00
Sergey Lebedev e6d5a2fe48 Remove ipip check where it's not needed.
Change-Id: Ia84f5ee5476ee0dd476d3f8415afb8bb26301e6e
2016-09-22 12:44:28 +03:00
Sergey Lebedev 0e023bcd21 LVM plugin for k8s basic test
We have plugin for LVM usage in k8s, this patch adds basic test using
  this plugin.

  This test creates an environment (which should have extra storage),
  installs required software to use LVM on nodes, uploads a plugin to
  each node and then creates nginx pod using this plugin to create its
  storage.

  Sample command to run test:

    ENV_NAME="lvm_usage"\
    CONF_PATH=fuel_ccp_tests/templates/default-with-storage.yaml\
    IMAGE_PATH=/path/to/image LVM_PLUGIN_PATH=/path/to/plugin/binary\
    DEPLOY_SCRIPT=/path/to/fuel-ccp-installer/utils/jenkins/kargo_deploy.sh\
        py.test -s fuel_ccp_tests/tests/system/test_k8s_lvm_plugin_usage.py

Change-Id: I0a31324e445902774f35b6cf2af1d9d43e74f53e
2016-09-16 14:56:28 +03:00
Tatyana Leontovich 672282a487 Add system and component marks
Change-Id: I054095262b8c7552fd99e26aa0138c4bd3776363
2016-09-14 14:52:29 +03:00
Tatyana Leontovich 66dd707206 Add heat test
Test covers:
* update service sources
* build images
* deploy openstack
* run tempest api orchestration tests

Change-Id: I2bc423b194bf3fbc6aa78a55474d2ef4f8690ec7
2016-09-08 15:33:34 +03:00
Jenkins b4be1413a8 Merge "TrivialFix: Remove logging import unused" 2016-09-06 11:51:48 +00:00
Nguyen Hung Phuong 7ae2621739 TrivialFix: Remove logging import unused
This patch removes logging import unused in
fuel_ccp_tests/tests/system/test_ccp_install_k8s.py

Change-Id: Id7472254ddc5e65f99995d77c9f380a1a18d54c0
2016-09-06 16:34:12 +07:00
Dennis Dmitriev 39e76d74cd Tests for fuel-ccp installer idempotency
- deploy k8s in different configurations
- redeploy k8s and check that there were no changes from ansible

Change-Id: Ie68025670fa8a8f63ababede8277c066ed28f8a3
2016-09-05 16:32:58 +00: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 be41fbba5d Add markers to system tests
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
2016-08-30 17:21:24 +00:00
Dennis Dmitriev c8f73d12d9 Fix calling sudo_check_call in check_nginx_pod_is_reached()
Change-Id: I9754b5030e2ccee07902fb2bee08ea965f083cf9
2016-08-25 13:46:22 +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