TripleO UI plugin for tempest
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OpenDev Sysadmins dc5ad09f1d OpenDev Migration Patch 1 month ago
doc Add basic project structure 7 months ago
releasenotes Add basic project structure 7 months ago
tempest_tripleo_ui Selenium infra 6 months ago
.gitignore Add basic project structure 7 months ago
.gitreview OpenDev Migration Patch 1 month ago
.zuul.yaml Add basic project structure 7 months ago
LICENSE Add basic project structure 7 months ago
README.rst Selenium infra 6 months ago
requirements.txt Selenium infra 6 months ago
setup.cfg Add basic project structure 7 months ago
setup.py Add basic project structure 7 months ago
test-requirements.txt Add basic project structure 7 months ago
tox.ini Add venv testenv to tox.ini 7 months ago

README.rst

Team and repository tags

image

tempest-tripleo-ui

Tempest Plugin for TripleO UI

  • Free software: Apache 2.0 license

Using

Install this plugin in the same python environment as tempest.

Installing the web driver

Selenium drives the browser by using a web driver. Currently Firefox and Chrome are supported.

  1. To install the Firefox driver: Download the latest driver from https://github.com/mozilla/geckodriver/releases/. Place the executable somewhere in your $PATH, and configure your tempest.conf with the full path to it. See an example tempest.conf file below.
  2. To install the Chrome driver: Download the latest driver from https://sites.google.com/a/chromium.org/chromedriver/downloads. Unzip the downloaded file you'll get an executable called "chromedriver". Place the executable somewhere in your $PATH.

Configuration for testing

If your undercloud has been installed with tripleo-quickstart, you can test the tempest-tripleo-ui plugin without much difficulty.

On your undercloud:

  • cd ~
  • Clone the tempest-tripleo-ui repo git clone https://git.openstack.org/openstack/tempest-tripleo-ui
  • Install it cd tempest-tripleo-ui; sudo python setup.py install; cd ..
  • Modify tempest-setup.sh to add tripleo_ui.url http://192.168.24.1:3000 to the $TEMPESTCONF command
  • Modify whitelist_file.conf to add tempest_tripleo_ui.tests.scenario.test_basic.TestBasic
  • Run ./tempest-setup.sh

This will run all of the tests contained in the tempest-tripleo-ui plugin against your undercloud.

Sample tempest.conf

For the UI tests to work, a minimal tempest.conf should include: 1) The credentials to log in (same credentials which are used on the command line) 2) The URL where the login screen to the UI can be found 3) The webdriver to use, which could be one of: "Chrome" or "Firefox" 4) If using Firefox, set marionette_binary to point to the path to the driver

[DEFAULT] log_dir = /home/tester/src/tempest/cloud-01/logs log_file = tempest.log

[oslo_concurrency] lock_path = /home/tester/src/tempest/cloud-01/tempest_lock

[auth] admin_username = admin admin_password = password admin_project_name = admin admin_domain_name = default

[identity] auth_version = v3 uri_v3 = https://server:443/keystone/v3

[tripleo_ui] webdriver = "Chrome" marionette_binary = "/home/tester/bin/wires" url = "https://server"

[logger_root] level=DEBUG handlers=file