Browse Source

Merge "Add option to install chrome when running tempest"

Zuul 4 months ago
parent
commit
fdb1c71b27

+ 2
- 1
roles/validate-tempest/README.md View File

@@ -62,7 +62,8 @@ Role Variables
62 62
 * `tempest_deployer_input_file`: <file path> The path to tripleo deployer input file which contains the pre configured
63 63
                                  configuration for the deployed cloud using TripleO.
64 64
 * `tempest_os_cloud`: <string> String name of the cloud to export as OS_CLOUD when using clouds.yaml rather than stackrc
65
-* `stackviz_tarball`: <string> Stackviz tarball url to be installed via pip
65
+* `tempest_use_headless_chrome`: true/false - whether the headless chrome docker container should be pulled, and run
66
+* `tempest_headless_chrome_port`: <int> - the entrypoint into the headless chrome container
66 67
 
67 68
 
68 69
 Skip tests file

+ 4
- 0
roles/validate-tempest/defaults/main.yml View File

@@ -99,3 +99,7 @@ tempest_conf_removal_queens:
99 99
   network-feature-enabled.api_extensions: dvr
100 100
 tempest_os_cloud: ""
101 101
 stackviz_tarball: "https://tarballs.openstack.org/package-stackviz-element/stackviz-latest.tar.gz"
102
+
103
+# Headless Chrome configuration
104
+tempest_use_headless_chrome: false
105
+tempest_headless_chrome_port: 9999

+ 7
- 0
roles/validate-tempest/templates/run-tempest.sh.j2 View File

@@ -73,6 +73,13 @@ export CONTAINER_BINARY='docker'
73 73
 
74 74
 sudo $CONTAINER_BINARY pull {{ tempest_container_registry }}/{{ tempest_container_namespace }}:{{ tempest_container_tag }}
75 75
 
76
+{% if tempest_use_headless_chrome|bool %}
77
+docker pull selenium/standalone-chrome
78
+docker 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 83
 # Run tempest container using docker mouting required files
77 84
 sudo $CONTAINER_BINARY run --net=host -i -v $TEMPEST_HOST_DATA:{{ tempest_data }} \
78 85
     -e PYTHONWARNINGS="${PYTHONWARNINGS:-}" \

Loading…
Cancel
Save