horizon/openstack_dashboard/test/integration_tests
Akihiro Motoki 4ef9ba94c0 Avoid duplicated maintenance of integration test config
Configurations of the integration tests are maintained both
in horizon.conf and in-code configuration. It is redundant.

Configurations of the integration tests are defined by oslo.config.
We can use default values from them and generate a sample config file
using oslo-config-generator.

This commit drops horizon.conf and generates the sample config.
We no longer have horizon.conf, so the logic to load the config files
is updated accordingly.

Also makes the usage of single and double quotes in config.py consistent.

Change-Id: Id16c9fd4114316ade63c74097e486623d0c5be9f
2020-01-10 00:55:43 +09:00
..
pages Merge "Fix volumes and volume_snapshots integration tests" 2019-12-02 20:13:30 +00:00
regions Merge "Fix volumes and volume_snapshots integration tests" 2019-12-02 20:13:30 +00:00
tests Merge "Fix volumes and volume_snapshots integration tests" 2019-12-02 20:13:30 +00:00
README.rst Avoid duplicated maintenance of integration test config 2020-01-10 00:55:43 +09:00
__init__.py Integration tests - running the tests 2014-02-26 10:45:21 +00:00
basewebobject.py Fix pep8 errors 2018-04-11 00:34:21 +09:00
config.py Avoid duplicated maintenance of integration test config 2020-01-10 00:55:43 +09:00
decorators.py Handle move of ABCs to collections.abc 2019-09-10 19:21:20 +09:00
helpers.py Switch integration tests to run with python3 2019-03-05 09:10:01 +00:00
horizon.conf Merge "Fix volumes and volume_snapshots integration tests" 2019-12-02 20:13:30 +00:00
video_recorder.py Clean up logger usage 2017-04-13 04:35:50 +00:00

README.rst

Horizon Integration Tests

Horizon's integration tests treat Horizon as a black box.

Running the integration tests

  1. Set up an OpenStack server

  2. Prepare the configuration file at local-horizon.conf if you need to change the default configurations. Note that horizon.conf can be used for the same purpose too from the historical reason.

    You can generate a sample configuration file by the following command:

    $ oslo-config-generator \
          --namespace openstack_dashboard_integration_tests
          --output-file openstack_dashboard/test/integration_tests/horizon.conf.sample
  3. Run the tests. :

    $ tox -e integration

More information

https://wiki.openstack.org/wiki/Horizon/Testing/UI

https://wiki.mozilla.org/QA/Execution/Web_Testing/Docs/Automation/StyleGuide#Page_Objects