summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHonza Pokorny <honza@redhat.com>2018-10-02 14:00:54 -0300
committerChandan Kumar <chkumar@redhat.com>2018-11-19 13:52:48 +0530
commit7ff41dea0ea397287cc8eff6f19cf66a317f7bd7 (patch)
treea2be05c2608f6b484bc4a8f8022e478439d28003
parent4c87f1f678de5dbbc4682b845469d7aee48156e1 (diff)
Add option to install chrome when running tempest
Notes
Notes (review): Code-Review+2: Juan Antonio Osorio Robles <jaosorior@redhat.com> Code-Review+1: Arx Cruz <arxcruz@redhat.com> Workflow+1: Emilien Macchi <emilien@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Thu, 22 Nov 2018 21:49:05 +0000 Reviewed-on: https://review.openstack.org/607323 Project: openstack/tripleo-quickstart-extras Branch: refs/heads/master
-rw-r--r--roles/validate-tempest/README.md3
-rw-r--r--roles/validate-tempest/defaults/main.yml4
-rw-r--r--roles/validate-tempest/templates/run-tempest.sh.j27
3 files changed, 13 insertions, 1 deletions
diff --git a/roles/validate-tempest/README.md b/roles/validate-tempest/README.md
index 283181b..48683cd 100644
--- a/roles/validate-tempest/README.md
+++ b/roles/validate-tempest/README.md
@@ -63,7 +63,8 @@ Role Variables
63* `tempest_deployer_input_file`: <file path> The path to tripleo deployer input file which contains the pre configured 63* `tempest_deployer_input_file`: <file path> The path to tripleo deployer input file which contains the pre configured
64 configuration for the deployed cloud using TripleO. 64 configuration for the deployed cloud using TripleO.
65* `tempest_os_cloud`: <string> String name of the cloud to export as OS_CLOUD when using clouds.yaml rather than stackrc 65* `tempest_os_cloud`: <string> String name of the cloud to export as OS_CLOUD when using clouds.yaml rather than stackrc
66* `stackviz_tarball`: <string> Stackviz tarball url to be installed via pip 66* `tempest_use_headless_chrome`: true/false - whether the headless chrome docker container should be pulled, and run
67* `tempest_headless_chrome_port`: <int> - the entrypoint into the headless chrome container
67 68
68 69
69Skip tests file 70Skip tests file
diff --git a/roles/validate-tempest/defaults/main.yml b/roles/validate-tempest/defaults/main.yml
index 5470aad..86efd82 100644
--- a/roles/validate-tempest/defaults/main.yml
+++ b/roles/validate-tempest/defaults/main.yml
@@ -99,3 +99,7 @@ tempest_conf_removal_queens:
99 network-feature-enabled.api_extensions: dvr 99 network-feature-enabled.api_extensions: dvr
100tempest_os_cloud: "" 100tempest_os_cloud: ""
101stackviz_tarball: "https://tarballs.openstack.org/package-stackviz-element/stackviz-latest.tar.gz" 101stackviz_tarball: "https://tarballs.openstack.org/package-stackviz-element/stackviz-latest.tar.gz"
102
103# Headless Chrome configuration
104tempest_use_headless_chrome: false
105tempest_headless_chrome_port: 9999
diff --git a/roles/validate-tempest/templates/run-tempest.sh.j2 b/roles/validate-tempest/templates/run-tempest.sh.j2
index d222fed..e84c232 100644
--- a/roles/validate-tempest/templates/run-tempest.sh.j2
+++ b/roles/validate-tempest/templates/run-tempest.sh.j2
@@ -73,6 +73,13 @@ export CONTAINER_BINARY='docker'
73 73
74sudo $CONTAINER_BINARY pull {{ tempest_container_registry }}/{{ tempest_container_namespace }}:{{ tempest_container_tag }} 74sudo $CONTAINER_BINARY pull {{ tempest_container_registry }}/{{ tempest_container_namespace }}:{{ tempest_container_tag }}
75 75
76{% if tempest_use_headless_chrome|bool %}
77docker pull selenium/standalone-chrome
78docker run -d \
79 -p {{ tempest_headless_chrome_port }}:{{ tempest_headless_chrome_port }} \
80 -v /dev/shm:/dev/shm selenium/standalone-chrome
81{% endif %}
82
76# Run tempest container using docker mouting required files 83# Run tempest container using docker mouting required files
77sudo $CONTAINER_BINARY run --net=host -i -v $TEMPEST_HOST_DATA:{{ tempest_data }} \ 84sudo $CONTAINER_BINARY run --net=host -i -v $TEMPEST_HOST_DATA:{{ tempest_data }} \
78 -e PYTHONWARNINGS="${PYTHONWARNINGS:-}" \ 85 -e PYTHONWARNINGS="${PYTHONWARNINGS:-}" \