Skip to content

Commit 9212ec4

Browse files
committed
[roles/common] Update the docs for the pod tests
1 parent 41f6d23 commit 9212ec4

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

roles/common/README.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,22 @@ Variable required for all tasks to run
2727
For pod_tests.yml tasks:
2828

2929
common_pod_list
30-
- list of pods to validate
30+
(list) the list of pods to validate
31+
Each list value can take one of two forms
32+
- (string) the names of the pods to validate
33+
- (dict) with name, nspace, status_str and (optionally) test_id elements.
34+
When a list of strings is used, the other values (listed below) are required.
35+
When the list of dicts is used, the types match the vars below
36+
37+
common_pod_test_id (optional)
38+
- (string) polarion ID number for each test.
39+
This is used as the default value for common_pod_list.test_id
3140
common_pod_status_str
32-
- status of pods to check
41+
- (string) status of pods to check e.g. "Running", "Completed", etc
42+
This is used as the default value for common_pod_list.status_str
3343
common_pod_nspace
34-
- list of projects where pods exist
44+
- (string) The namespace where the pod should exist.
45+
This is also used as default for the common_pod_list.nspace
3546

3647

3748
For subscription_tests.yml tasks:
@@ -116,6 +127,9 @@ can be set at the play level.
116127
common_pod_nspace: openstack
117128
common_pod_list:
118129
- openstackclient
130+
- name: cluster-logging-operator
131+
nspace: openshift-logging
132+
# the status_str and test_id will default to the common_pod_* vars
119133

120134
- name: "Verify subscription"
121135
ansible.builtin.import_role:

0 commit comments

Comments
 (0)