Commit Graph

19 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 493dc8b27a Refactor fixtures that check required files and settings
Refactor those fixtures in a more general way, so they can be used in
any test, not only netchecker one.
Just set class variables required_files and required_settings to use them
In that way all required files and settings will be in the test class, and not
in the fixture itself.

Change-Id: I27eb98e46978205f4a4e9769e368d4720e2f8b55
2016-12-07 16:42:43 +02:00
Artem Panchenko b54dbdc3aa Disable netchecker deployment in Calico tests
Since we deploy and run netchecker applications
by tests for Calico, disable its deployment in
kargo.

Change-Id: I2946e8db3aa63c49ddd8ed03287a16b9619c3141
2016-12-02 12:49:50 +02:00
Artem Panchenko a1ac1910f5 Refactor netchecker and calico tests
* moved methods for netchecker setup/start/stop
   to the helpers;
 * added a possiblity to install netchecker to k8s
   cluster w/o fetching additional repositories;
 * resolved #TODO (work with nodes labes via API).

Change-Id: Ic6a8470ff53d7e95c36240d25d816db3c5a0d89d
2016-10-27 16:39:41 +03:00
Jenkins 8c8a6b5167 Merge "Extend 'netchecker-server' integration test" 2016-10-12 07:02:16 +00:00
Artem Panchenko c871e2d97d Extend 'netchecker-server' integration test
Added a new step:

  3. Check that netchecker-server returns 400: 'There are no pods'

before starting netchecker-agent pods.

Merge only after https://review.fuel-infra.org/#/c/26973/

Change-Id: I69fd456274707c9f55302d39c8818a460d2cc0c5
2016-10-05 12:31:23 +03:00
Jenkins 794d931e93 Merge "Remove 'component' mark from netcheker/calico tests" 2016-10-04 10:19:32 +00:00
Artem Panchenko e39c59d327 Netchecker status code is changed from 204 to 200
There is a patch which changes success code response
from the server to '200':

https://review.fuel-infra.org/#/c/26745/

Tests should accept both for backward compatibility.

Change-Id: Ibcdcb89547179dc5e96c7d045d04b3ae2e31635d
2016-10-03 12:09:36 +03:00
Artem Panchenko f90166f6b7 Remove 'component' mark from netcheker/calico tests
The tests for 'mcp-netchecker' and calico are designed
to be executed on CI with custom artifacts set via
parameters. So they can't be run together with rest
component tests without affecting them. That's why
'component' mark was removed.

A separate test/method for network verification after
deployment in BVT is going to be added by another patch.

Also renamed tests method TestFuelCCPNetChecker.test_k8s_netchecker_calico
to TestFuelCCPNetChecker.test_k8s_netchecker, because there
is another test method in another class with the same name:
TestFuelCCPCalico.test_k8s_netchecker_calico.

Closes-bug: #1628512
Change-Id: I5cd7d5f6133a97645676b592fa7628380548e209
2016-09-28 18:13:31 +03:00
Artem Panchenko 0266c5a858 Add connection timeout to the nechecker requests
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
2016-09-22 10:47:39 +00:00
Artem Panchenko 418dbcb549 Add component tests for Calico network plugin
Scenario:
  1. Install k8s with Calico network plugin.
  2. Run netchecker-server service.
  3. Run netchecker-agent daemon set.
  4. Get network verification status.
     Check status is 'OK'.

New test depends on mcp-netchecker tool. Some
related to network checker stuff was moved and
refactored.

Change-Id: I1f1c85a943a937e11f1e61df046d3c1425dd3643
2016-09-22 13:44:59 +03:00
Artem Panchenko 368c492612 Switch netchecker test to use docker images
Add a few improvements to the test for the netchecker:

 * do not build Docker images manually, take ready
   artifacts from the registry;
 * remove redundant sleeps and netcheker-server restart;
 * fix minor typos and wrong copy-paste.

Change-Id: I3a9cbbb670689e5e389e71ce12c0e1b591f5e5d3
2016-09-19 23:11:44 +03:00
Artem Panchenko cb6f9f322b Fix network checker test
The test was broken by I0a31324e445902774f35b6cf2af1d9d43e74f53e

Change-Id: I14afd5c49f4aa3575a8eeeb89add10d6d2127155
2016-09-18 14:07:27 +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 a7e98ce8ca Merge "Update test for the network checker" 2016-09-15 09:11:27 +00:00
Artem Panchenko 5a3f8d5bbd Update test for the network checker
Netchecker functionality was extended, currently it
can provide overall network connectivity status (works
or not). Updated tests to use appropriate API call.

Also changed an aproach for simulation of network
connectivity failure: now tests use more suitable
Calico policy feature instead of iptables.

Change-Id: I15e89810348ca34588ab61f2b0669dc6ef4c9953
2016-09-14 18:58:21 +03:00
Tatyana Leontovich 672282a487 Add system and component marks
Change-Id: I054095262b8c7552fd99e26aa0138c4bd3776363
2016-09-14 14:52:29 +03:00
Artem Panchenko 9d89dd98f1 Create 'show_step' fixture to log tests steps
Added new fixture 'show_step' which provides an
access to the 'log_step' helper, used to log
tests steps specified in the function doc string.

Change-Id: I814684e4b5d8ba3e73ef6dd461d671f25f9b1c6c
2016-09-12 12:47:46 +03:00
Artem Panchenko fe0518443e Add test for k8s network checker
Created new system test for the mcp-netchecker-server
and mcp-netchecker-agent projects.

Change-Id: I9ba91e78ae1f39d874560ec43374b4354adeb563
2016-09-09 11:52:30 +03:00