Commit Graph

18 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
Volodymyr Shypyguzov e1c94fbe0e Add conformance test
Add simple test that runs conformance tests using pre-built image
Requires path to it to be set via E2E_CONFORMANCE_IMAGE env variable

Change-Id: I80d82531d8a80912f007b814c287d96e1e286244
2016-12-28 13:46:36 +02: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
Jenkins 52ddfb73e3 Test logging aggregation
- 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
2016-09-30 17:42:52 +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
Dennis Dmitriev 833867c846 Add 'hardware' snapshot with 'clean' environment
'hardware' snapshot will be reverted only if no 'revert_snapshot'
mark specified for test or if the specified in the mark snapshot
name not found in the environment.

If 'hardware' snapshot exists in the environment, then it won't
be created/overwritten with next test run.

Change-Id: I1c4837d7b7903c0234ff4f12763cda882289bce1
2016-09-22 12:28:09 +00:00
Jenkins 88b8c8dcba Merge "Revert snapshots in each fixture as a workaround" 2016-09-22 12:02:09 +00:00
Artem Panchenko 49359a3617 Use local DNS server for kubernetes by default
Change-Id: I2e16b1b86b020f10ee25dea47443751c49770ad4
2016-09-21 11:43:35 +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
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
Jenkins 49a67c277f Merge "Use local DNS server for tests by default" 2016-09-16 10:01:43 +00:00
Artem Panchenko 9d1a4fbf5c Use local DNS server for tests by default
Change-Id: I9daa84188d0e05a536d49ffc7c6bffdf7ce16d03
2016-09-15 18:41:22 +03:00
Sergey Lebedev fa2d7fc54b Use environment name in snapshot config names
To work with multiple devops environments in case devops is hardware
  manager.

Change-Id: I7e8c4c454a83d4ba2e925dbe78e2d43a5987ca12
2016-09-14 13:42:51 +03:00
Dennis Dmitriev 3002cff1b6 Scale up k8s cluster using fuel-ccp-installer
Change-Id: I9a16bafe003a71702ac6f1742acee99df6f29164
2016-09-07 17:38:03 +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 826f23da88 Bump k8s to 1.3.5
It was bumped to 1.3.5 in fuel-ccp-installer [1]

[1] https://review.openstack.org/#/c/356422/

Change-Id: I7a4fc35ce5f05f6fb621d2e80cebf0c9a8510c70
2016-08-25 09:22:01 +00: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