CI: Fix prometheus-efk scenario with TLS enabled

Change-Id: Ic55a7384c298ef517aa4b7f0eaa67d53b5d70df0
This commit is contained in:
Mark Goddard 2022-05-24 09:31:30 +01:00
parent 5d28a7c89b
commit 8bff3e9a67
2 changed files with 5 additions and 0 deletions

View File

@ -521,6 +521,8 @@
cmd: test-prometheus-efk.sh
executable: /bin/bash
chdir: "{{ kolla_ansible_src_dir }}"
environment:
TLS_ENABLED: "{{ tls_enabled }}"
when: scenario == "prometheus-efk"
- name: Run test-venus.sh script

View File

@ -39,6 +39,9 @@ function check_elasticsearch {
--location
--fail
)
if [[ "$TLS_ENABLED" = "True" ]]; then
args+=(--cacert $OS_CACERT)
fi
if ! curl "${args[@]}" $ELASTICSEARCH_URL > $output_path; then
return 1
fi