Integration tests for StackLight plugins
Go to file
Rodion Promyshlennikov 86966e30bd Fix tests that checks services' and nodes' alerts
Fix naming of getting vip name method:
method "PluginHelper.full_vip_name" was renamed to "PluginHelper.get_vip_resource_name".
Fix naming of services on nagios: "global-" prefix was added 
for plugins with version >=1.0.
Fix checking of haproxy backends state:
removed checks for services,
that don't have haproxy backend.
Fixed disk usage percentage to be consistent 
with alerts' criteria.
Temporary disabled checking of openvswitch-agent, 
because it is managed by pacemaker.
Removed code duplicity in tests.

Change-Id: If3b77c595fbb5e4348f5f3ebd6e82b445b01062c
Closes-Bug: #1627671
2016-10-04 11:46:06 +03:00
doc Fix documentation 2016-08-03 10:23:02 +02:00
fixtures Add test with public dashboards 2016-08-02 11:08:39 +02:00
stacklight_tests Fix tests that checks services' and nodes' alerts 2016-10-04 11:46:06 +03:00
utils Fixes for consistency after code inspection 2016-09-30 11:08:23 +00:00
.gitignore Move openrc file 2016-05-12 10:36:32 +02:00
.gitreview Added .gitreview 2016-04-22 10:50:26 +00:00
openrc.default Add Grafana dashboards UI test 2016-05-26 18:58:50 +03:00
README.md Add Grafana dashboards UI test 2016-05-26 18:58:50 +03:00
requirements.txt Bump to fuel-devops 2.9.22 2016-08-04 10:03:34 +02:00
tox.ini Generate documentation automatically 2016-05-20 16:49:07 +02:00

StackLight tests

This project contains the functional tests for the StackLight plugins.

It is based on two other projects:

Getting started

  1. Provision the SQL database for fuel-qa (see the official documentation for the detailed procedure).

  2. Prepare the environment:

     cp openrc.default openrc
     # Edit the openrc file as needed
     . openrc
     ./utils/fuel-qa-builder/prepare_env.sh
    
  3. Activate the Python virtual environment:

     . $VENV_PATH/bin/activate
    
  4. If you want to run UI test in headless mode, install these packages:

     sudo apt-get install xvfb firefox -y
    
  5. Run the tests:

     ./utils/jenkins/system_tests.sh -k -K -j fuelweb_test -t test -w $(pwd) -o --group=<your_test_group_to_run>
    

Documentation

The test cases include comments that can be turned into human-readable documentation:

    tox -edocs

The generated documentation is available at doc/_build/html/index.html.

Contributing

If you would like to contribute to the development of this plugin, you must follow the OpenStack development workflow instructions.

Patch reviews take place on the OpenStack Gerrit system.

Guidelines:

  • Run tox before submitting a review.

  • Declare test groups using the @test decorator (see the Proboscis documentation for details)

@test(groups=["<full_unique_name_of_test>",
              "<test_method_purpose>",
              "<plugin_name>",
              "<test_category>"])

For example

@test(groups=["install_influxdb_grafana",
              "install",
              "influxdb_grafana",
              "smoke"])
def install_influxdb_grafana():
    ....

Communication

The OpenStack Development Mailing List is the preferred way to communicate with the members of the project. Emails should be sent to openstack-dev@lists.openstack.org with the subject prefixed by [fuel][plugins][lma].