Skip to content

Commit

Permalink
tempest: Conditionally populate http_image key.
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
fnordahl committed Oct 12, 2024
1 parent 115c4e7 commit 3e33bc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zaza/openstack/charm_tests/tempest/templates/tempest_v3.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit 3e33bc7

Please sign in to comment.