Skip to content

Commit 9af6e7b

Browse files
committed
Rewrite test content to use array slices
Key searching is not supported
1 parent 4bff23c commit 9af6e7b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

tests/probes/yamlfilecontent/openshift-logging.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,22 @@ spec:
99
- type: "elasticsearch"
1010
name: elasticsearch
1111
endpoint: elasticsearch.openshift-logging.svc:9200
12+
mode: 066
1213
secret:
1314
name: fluentd
1415
- type: "elasticsearch"
1516
name: elasticsearch-insecure
1617
endpoint: elasticsearch-insecure.svc.messaging.cluster.local
18+
mode: "066"
1719
insecure: true
1820
- type: "forward"
1921
name: secureforward-offcluster
2022
endpoint: https://secureforward.offcluster.com:9200
23+
mode: "067"
2124
secret:
2225
name: secureforward
2326
pipelines:
27+
- inputSource: "hello"
2428
- name: container-logs
2529
inputSource: logs.app
2630
outputRefs:

tests/probes/yamlfilecontent/test_probes_yamlfilecontent.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,19 +80,19 @@
8080
<ind-def:yamlfilecontent_object version="1" id="oval:0:obj:3">
8181
<ind-def:path>/tmp</ind-def:path>
8282
<ind-def:filename>openshift-logging.yaml</ind-def:filename>
83-
<ind-def:yamlpath>.spec.outputs[type=forward].name</ind-def:yamlpath>
83+
<ind-def:yamlpath>.spec.outputs[2].name</ind-def:yamlpath>
8484
</ind-def:yamlfilecontent_object>
8585

8686
<ind-def:yamlfilecontent_object version="1" id="oval:0:obj:4">
8787
<ind-def:path>/tmp</ind-def:path>
8888
<ind-def:filename>openshift-logging.yaml</ind-def:filename>
89-
<ind-def:yamlpath>.spec.outputs[type=elasticsearch].name</ind-def:yamlpath>
89+
<ind-def:yamlpath>.spec.outputs[0:2].name</ind-def:yamlpath>
9090
</ind-def:yamlfilecontent_object>
9191

9292
<ind-def:yamlfilecontent_object version="1" id="oval:0:obj:5">
9393
<ind-def:path>/tmp</ind-def:path>
9494
<ind-def:filename>openshift-logging.yaml</ind-def:filename>
95-
<ind-def:yamlpath>.spec.outputs[type=elasticsearch]</ind-def:yamlpath>
95+
<ind-def:yamlpath>.spec.outputs[0]</ind-def:yamlpath>
9696
</ind-def:yamlfilecontent_object>
9797

9898
</objects>

0 commit comments

Comments
 (0)