From 3e33bc73b17f22b2ed0c4bae2e8f71b1349465c6 Mon Sep 17 00:00:00 2001 From: Frode Nordahl Date: Sat, 12 Oct 2024 09:26:57 +0200 Subject: [PATCH] tempest: Conditionally populate http_image key. The `[image]` section and `http_image` configuration key is optional, only populate it if the caller has populated the `TEST_SWIFT_IP` environment variable. Signed-off-by: Frode Nordahl --- zaza/openstack/charm_tests/tempest/templates/tempest_v3.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zaza/openstack/charm_tests/tempest/templates/tempest_v3.j2 b/zaza/openstack/charm_tests/tempest/templates/tempest_v3.j2 index a313f4c61..f8d133ca5 100644 --- a/zaza/openstack/charm_tests/tempest/templates/tempest_v3.j2 +++ b/zaza/openstack/charm_tests/tempest/templates/tempest_v3.j2 @@ -55,7 +55,7 @@ api_v2 = false api_v3 = true {% endif %} -{% if 'glance' in enabled_services %} +{% if 'glance' in enabled_services and test_swift_ip %} [image] http_image = http://{{ test_swift_ip }}:80/swift/v1/images/cirros-0.3.4-x86_64-uec.tar.gz {% endif %}