sahara-dashboard/saharadashboard/tests
Christian Berendt f3c15c6f54 Enabled checks for E226, E251, E265
Thoas checks are also enabled in Horizon and should be enabled here as well.

* E226 missing whitespace around arithmetic operator
* E251 unexpected spaces around keyword / parameter equals
* E265 block comment should start with '# '

Change-Id: Ib44fd1b327c23752acfc5b98cd468881b781c816
2014-07-22 13:39:39 +02:00
..
cluster_template_tests Enabled checks for E226, E251, E265 2014-07-22 13:39:39 +02:00
cluster_tests Enabled checks for E226, E251, E265 2014-07-22 13:39:39 +02:00
configs Enabled checks for E226, E251, E265 2014-07-22 13:39:39 +02:00
image_registry_tests Renaming savannadashboard directory to saharadashboard 2014-03-12 13:52:59 -04:00
node_group_template_tests Update dicts with plugin services 2014-04-10 12:53:30 +04:00
resources Renaming savannadashboard directory to saharadashboard 2014-03-12 13:52:59 -04:00
README.rst Renaming savannadashboard directory to saharadashboard 2014-03-12 13:52:59 -04:00
__init__.py Renaming savannadashboard directory to saharadashboard 2014-03-12 13:52:59 -04:00
base.py Enabled checks for E226, E251, E265 2014-07-22 13:39:39 +02:00

README.rst

Sahara Dashboard Selenium Tests

Main goal of Selenium Tests ----------

Selenium tests for Sahara Dashboard are designed to check the correctness of the Sahara Dashboard Horizon plug-in.

How to run UI tests: ----------

It's assumed that sahara and horizon are already installed and running.

Information about installation and start of sahara and horizon can be found on the sahara site

http://docs.openstack.org/developer/sahara/#user-guide in tabs Sahara Installation Guide and Sahara UI Installation Guide.

  1. Go to sahara dashboard path.

  2. Create config file for selenium tests - saharadashboard/tests/configs/config.py. You can take a look at the sample config file - saharadashboard/tests/configs/config.py.sample. All values used in saharadashboard/tests/configs/parameters.py file are defaults, so, if they are applicable for your environment then you can skip config file creation.

  3. Install virtual framebuffer X server for X Version 11 (Xvfb): sudo apt-get -y install xvfb

  4. Install Firefox: sudo add-apt-repository ppa:ubuntu-mozilla-security/ppa sudo apt-get update sudo apt-get install firefox libstdc++5

  5. To run ui tests you should use the corresponding tox env: tox -e uitests. If need to run only one test module, use:

    tox -e uitests -- '<module_name>'

    <module_name> may be equal 'cluster', 'cluster_template', 'image_registry', 'node_group_template', 'image_registry', 'vanilla', 'hdp' It's full list of actual modules.

Coverage:

-Clusters -Cluster templates -Node group templates -Image registry -Data sources -Job binaries -Jobs -Job executions