Skip to content

Commit 38f9f6c

Browse files
Merge pull request #732 from openstack-k8s-operators/OSPRH-14663/add-network-attachment-default-telemetry
Add test for podlevel TLS with NAD for MetricStorage
2 parents f516441 + 3b1a2cc commit 38f9f6c

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

ci/default-telemetry/tasks/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,7 @@
2525
- name: Test CustomMonitoringStack
2626
ansible.builtin.include_tasks:
2727
file: test_custom_monitoring_stack.yml
28+
29+
- name: Test podlevel TLS with NAD for MetricStorage
30+
ansible.builtin.include_tasks:
31+
file: test_podlevel_tls_with_nad_metricstorage.yml
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
- name: Enable TLS at a pod level
2+
ansible.builtin.command:
3+
cmd: |
4+
oc patch oscp/{{ default_telemetry_control_plane_name }} --type='json' -p '[{"op": "replace", "path": "/spec/tls/podLevel/enabled", "value":true}]'
5+
6+
- name: Set NAD for MetricStorage
7+
ansible.builtin.command:
8+
cmd: |
9+
oc patch oscp/{{ default_telemetry_control_plane_name }} --type='json' -p '[{"op": "replace", "path": "/spec/telemetry/template/metricStorage/networkAttachments", "value":["ctlplane"]}]'
10+
11+
- name: Wait until MetricStorage is ready
12+
ansible.builtin.command:
13+
cmd:
14+
oc wait telemetry telemetry --for=condition=Ready --timeout=2m
15+
16+
- name: Get telemetry-operator logs
17+
ansible.builtin.import_tasks: "get-operator-logs.yml"
18+
19+
- name: |
20+
TEST Check that telemetry-operator logs don't include any errors when using TLS at a pod level
21+
OSPRH-14635
22+
ansible.builtin.set_fact:
23+
error_list: "{{ operator_logs.stdout | ansible.builtin.regex_findall('ERROR.*') }}"
24+
failed_when: error_list | length != 0

0 commit comments

Comments
 (0)