aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichal Nasiadka <mnasiadka@gmail.com>2025-10-28 17:59:56 +0100
committerMichal Nasiadka <mnasiadka@gmail.com>2025-10-29 06:19:51 +0000
commite67a4dea7322e53a7426b2ce054723cbe5a030be (patch)
tree29b3556d86daf77b4d2ebfe42ce27ec5b6097622 /tests
parent977febad189394b49f6fc1fb2ffef5907599be4b (diff)
downloadkolla-ansible-e67a4dea7322e53a7426b2ce054723cbe5a030be.tar.gz
kolla-ansible-e67a4dea7322e53a7426b2ce054723cbe5a030be.zip
CI: test-dashboard: Use http/https where configured
Also move zuul_return to run only on primary Change-Id: I5b27663e8c539715e6aeb18b179a4f0b98103f7f Signed-off-by: Michal Nasiadka <mnasiadka@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/post.yml24
-rw-r--r--tests/testinfra/test_horizon.py6
2 files changed, 16 insertions, 14 deletions
diff --git a/tests/post.yml b/tests/post.yml
index 83b34638f..46e437096 100644
--- a/tests/post.yml
+++ b/tests/post.yml
@@ -7,18 +7,6 @@
zuul_work_dir: '/home/zuul/tempest'
tasks:
- - name: Return artifact to Zuul
- zuul_return:
- data:
- zuul:
- artifacts:
- - name: "TestInfra Unit Test Report"
- url: "testinfra/test-results-testinfra.html"
- metadata:
- type: unit_test_report
- - name: "TestInfra Screenshots"
- url: "testinfra/screenshots"
-
# TODO(mhiner): Currently only Docker to Podman migration is tested.
# If we want to test the other direction we have to rework this.
- name: Change container engine after the migration
@@ -96,6 +84,18 @@
# TODO(mnasiadka): Remove in G/2026.1 cycle
ignore_errors: true
+ - name: Return artifact to Zuul
+ zuul_return:
+ data:
+ zuul:
+ artifacts:
+ - name: "TestInfra Unit Test Report"
+ url: "testinfra/test-results-testinfra.html"
+ metadata:
+ type: unit_test_report
+ - name: "TestInfra Screenshots"
+ url: "testinfra/screenshots"
+
- name: Check for existence of ara sqlite
stat:
path: "{{ ansible_env.HOME }}/.ara/server/ansible.sqlite"
diff --git a/tests/testinfra/test_horizon.py b/tests/testinfra/test_horizon.py
index 84b101e22..abdb787c6 100644
--- a/tests/testinfra/test_horizon.py
+++ b/tests/testinfra/test_horizon.py
@@ -38,7 +38,8 @@ def test_horizon_screenshot(host):
command_executor='http://localhost:4444/wd/hub',
options=firefox_options)
- horizon_url = "https://192.0.2.10"
+ horizon_proto = host.environment().get('HORIZON_PROTO')
+ horizon_url = horizon_proto + "://192.0.2.10"
try:
driver.get(horizon_url)
@@ -77,7 +78,8 @@ def test_horizon_login(host):
command_executor='http://localhost:4444/wd/hub',
options=firefox_options)
- horizon_url = "https://192.0.2.10"
+ horizon_proto = host.environment().get('HORIZON_PROTO')
+ horizon_url = horizon_proto + "://192.0.2.10"
logout_url = '/'.join((
horizon_url,
'auth',