File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
ci/default-telemetry/tasks Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 2929- name : Test podlevel TLS with NAD for MetricStorage
3030 ansible.builtin.include_tasks :
3131 file : test_podlevel_tls_with_nad_metricstorage.yml
32+
33+ - name : Test Prometheus_secret values
34+ ansible.builtin.include_tasks :
35+ file : test_prometheus_secret.yml
Original file line number Diff line number Diff line change 1+ - name : Get metric-storage-prometheus-endpoint secret values
2+ ansible.builtin.shell : |
3+ oc get secret metric-storage-prometheus-endpoint -n openstack -o json \
4+ | jq -r '.data | to_entries[] | "\(.key)=\(.value|@base64d)"'
5+ register : secret_output
6+ changed_when : false
7+
8+ - name : Show secret decoded values
9+ ansible.builtin.debug :
10+ var : secret_output.stdout_lines
11+
12+ - name : Assert secret contains expected values
13+ ansible.builtin.assert :
14+ that :
15+ - " 'ca_key=ca.crt' in secret_output.stdout_lines"
16+ - " 'ca_secret=cert-metric-storage-prometheus-svc' in secret_output.stdout_lines"
17+ - " 'host=metric-storage-prometheus.openstack.svc' in secret_output.stdout_lines"
18+ - " 'port=9090' in secret_output.stdout_lines"
19+ fail_msg : " Secret metric-storage-prometheus-endpoint is missing required values"
20+ success_msg : " Secret metric-storage-prometheus-endpoint contains all required values"
You can’t perform that action at this time.
0 commit comments