Merge "CI: Fix prometheus-efk scenario with TLS enabled"
This commit is contained in:
commit
118ca739e3
@ -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