Skip to content

Commit 8d32b41

Browse files
committed
[ci] Update the logging tests to use new pod test config format
1 parent d839072 commit 8d32b41

File tree

2 files changed

+23
-18
lines changed

2 files changed

+23
-18
lines changed

ci/logging_tests_controller.yml

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -131,30 +131,33 @@
131131
- logging-loki-querier
132132
- logging-loki-query-frontend
133133
- collector
134+
- name: minio
135+
nspace: minio-dev
136+
test_id: RHOSO-"12674"
134137

135138
### see JIRA LOG-5431 if pods not running
136139
tasks:
137140
- name: "Verify Pods running"
138141
ansible.builtin.import_role:
139142
name: common
140143

141-
- name: "Verify logging pods are running in minio-dev"
142-
hosts: controller
143-
gather_facts: no
144-
ignore_errors: true
145-
environment:
146-
KUBECONFIG: "{{ cifmw_openshift_kubeconfig }}"
147-
PATH: "{{ cifmw_path }}"
148-
vars:
149-
common_pod_test_id: "RHOSO-12674"
150-
common_pod_status_str: "Running"
151-
common_pod_nspace: minio-dev
152-
common_pod_list:
153-
- minio
154-
tasks:
155-
- name: "Run pod running tests"
156-
ansible.builtin.import_role:
157-
name: common
144+
#- name: "Verify logging pods are running in minio-dev"
145+
# hosts: controller
146+
# gather_facts: no
147+
# ignore_errors: true
148+
# environment:
149+
# KUBECONFIG: "{{ cifmw_openshift_kubeconfig }}"
150+
# PATH: "{{ cifmw_path }}"
151+
# vars:
152+
# common_pod_test_id: "RHOSO-12674"
153+
# common_pod_status_str: "Running"
154+
# common_pod_nspace: minio-dev
155+
# common_pod_list:
156+
# - minio
157+
# tasks:
158+
# - name: "Run pod running tests"
159+
# ansible.builtin.import_role:
160+
# name: common
158161

159162

160163
- name: "Verify logging pods have complete status in openstack"

roles/common/tasks/pod_tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
status_str: "{{ item.status_str if \"status_str\" in item else common_pod_status_str }}"
88
test_id: "{{ item.test_id if \"test_id\" in item else common_pod_test_id | default(omit) }}"
99

10-
- debug: var=pod
10+
- name: Show the pod details for this test
11+
ansible.builtin.debug:
12+
var: pod
1113

1214
- block:
1315
# expects that one line will be returned

0 commit comments

Comments
 (0)