
The plugin CI is failing right now because python-keystoneclient fails to import the latest oslo.config package. Traceback (most recent call last): File "stacklight_tests/run_tests.py", line 75, in <module> import_tests() File "stacklight_tests/run_tests.py", line 44, in import_tests from stacklight_tests.elasticsearch_kibana import test_smoke_bvt # noqa File "/home/jenkins/workspace/8.0.fuel-plugin.lma-collector.deploy-test/stacklight_tests/elasticsearch_kibana/test_smoke_bvt.py", line 18, in <module> from stacklight_tests.elasticsearch_kibana import api File "/home/jenkins/workspace/8.0.fuel-plugin.lma-collector.deploy-test/stacklight_tests/elasticsearch_kibana/api.py", line 19, in <module> from stacklight_tests import base_test File "/home/jenkins/workspace/8.0.fuel-plugin.lma-collector.deploy-test/stacklight_tests/base_test.py", line 19, in <module> from fuelweb_test.tests import base_test_case File "/home/jenkins/workspace/8.0.fuel-plugin.lma-collector.deploy-test/venv_test/local/lib/python2.7/site-packages/fuelweb_test/tests/base_test_case.py", line 24, in <module> from fuelweb_test.models.environment import EnvironmentModel File "/home/jenkins/workspace/8.0.fuel-plugin.lma-collector.deploy-test/venv_test/local/lib/python2.7/site-packages/fuelweb_test/models/environment.py", line 45, in <module> from fuelweb_test.models.fuel_web_client import FuelWebClient File "/home/jenkins/workspace/8.0.fuel-plugin.lma-collector.deploy-test/venv_test/local/lib/python2.7/site-packages/fuelweb_test/models/fuel_web_client.py", line 63, in <module> from fuelweb_test.models.nailgun_client import NailgunClient File "/home/jenkins/workspace/8.0.fuel-plugin.lma-collector.deploy-test/venv_test/local/lib/python2.7/site-packages/fuelweb_test/models/nailgun_client.py", line 18, in <module> from fuelweb_test.helpers.http import HTTPClient File "/home/jenkins/workspace/8.0.fuel-plugin.lma-collector.deploy-test/venv_test/local/lib/python2.7/site-packages/fuelweb_test/helpers/http.py", line 19, in <module> from keystoneclient.v2_0 import Client as KeystoneClient File "/home/jenkins/workspace/8.0.fuel-plugin.lma-collector.deploy-test/venv_test/local/lib/python2.7/site-packages/keystoneclient/v2_0/__init__.py", line 1, in <module> from keystoneclient.v2_0.client import Client # noqa File "/home/jenkins/workspace/8.0.fuel-plugin.lma-collector.deploy-test/venv_test/local/lib/python2.7/site-packages/keystoneclient/v2_0/client.py", line 19, in <module> from keystoneclient.auth.identity import v2 as v2_auth File "/home/jenkins/workspace/8.0.fuel-plugin.lma-collector.deploy-test/venv_test/local/lib/python2.7/site-packages/keystoneclient/auth/__init__.py", line 16, in <module> from keystoneclient.auth.conf import * # noqa File "/home/jenkins/workspace/8.0.fuel-plugin.lma-collector.deploy-test/venv_test/local/lib/python2.7/site-packages/keystoneclient/auth/conf.py", line 14, in <module> from oslo_config import cfg File "/home/jenkins/workspace/8.0.fuel-plugin.lma-collector.deploy-test/venv_test/local/lib/python2.7/site-packages/oslo_config/cfg.py", line 378, in <module> from oslo_config._i18n import _LI, _LW File "/home/jenkins/workspace/8.0.fuel-plugin.lma-collector.deploy-test/venv_test/local/lib/python2.7/site-packages/oslo_config/_i18n.py", line 32, in <module> _C = _translators.contextual_form AttributeError: 'TranslatorFactory' object has no attribute 'contextual_form' Change-Id: I2aa14aaebb908b56c6c6901d8631525bd5080c36
StackLight tests
This project contains the functional tests for the StackLight plugins.
It is based on two other projects:
-
Fuel-Devops (documentation).
-
Fuel-QA (documentation).
Getting started
-
Provision the SQL database for fuel-qa (see the official documentation for the detailed procedure).
-
Prepare the environment:
cp openrc.default openrc # Edit the openrc file as needed . openrc ./utils/fuel-qa-builder/prepare_env.sh
-
Activate the Python virtual environment:
. $VENV_PATH/bin/activate
-
If you want to run UI test in headless mode, install these packages:
sudo apt-get install xvfb firefox -y
-
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]
.