CI: Fix prometheus-efk scenario with TLS enabled
Change-Id: Ic55a7384c298ef517aa4b7f0eaa67d53b5d70df0
This commit is contained in:
parent
5d28a7c89b
commit
8bff3e9a67
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user