File tree Expand file tree Collapse file tree 3 files changed +8
-21
lines changed Expand file tree Collapse file tree 3 files changed +8
-21
lines changed Original file line number Diff line number Diff line change 4646
4747 common_manifest_test_id : " RHOSO-12677"
4848 common_manifest_list :
49- - " loki-operator 2"
50- - " loki-helm-operator 1"
51-
49+ - ["loki-operator", "2"]
50+ - ["loki-helm-operator", "1"]
5251 common_service_test_id : " RHOSO-12675"
5352 common_service_nspace : openshift-logging
5453 common_service_list :
Original file line number Diff line number Diff line change 4949 - common_manifest_list is defined
5050 ansible.builtin.include_tasks : " manifest_tests.yml"
5151 loop : " {{ common_manifest_list }}"
52+ loop_control :
53+ loop_var : manifest
5254
5355- name : " Run crd tests"
5456 when :
Original file line number Diff line number Diff line change 11---
2- - name : Get number of packages
3- ansible.builtin.shell :
4- cmd : |
5- echo "{{ item }}" | awk '{print $2;}'
6- register : num_expected
7- changed_when : false
8-
9- - name : Get package name
10- ansible.builtin.shell :
11- cmd : |
12- echo "{{ item }}" | awk '{print $1;}'
13- register : pack_name
14- changed_when : false
15-
162- name : |
17- TEST Get {{ item }} packagemanifest
3+ TEST Get {{ manifest[0] }} {{ manifest[1] }} packagemanifest
184 {{ common_manifest_test_id }}
195 ansible.builtin.shell :
206 cmd : |
21- oc get packagemanifests | grep "{{ pack_name.stdout }}" | wc -l
22- register : num_found
7+ oc get packagemanifests | grep "{{ manifest[0] }}"
8+ register : num_found
239 changed_when : false
24- failed_when : num_expected.stdout != num_found.stdout
10+ failed_when : manifest[1] | int != num_found.stdout_lines | length
You can’t perform that action at this time.
0 commit comments