Skip to content

Commit d77b05b

Browse files
committed
fix: correct JSONPath in inconclusive background analysis test
- Change jsonPath from {$.json} to {$} to get full response - Update conditions to use result.json.status instead of result.status - Fixes flaky TestCanaryInconclusiveBackgroundAnalysis e2e test
1 parent 0c6ebf7 commit d77b05b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/e2e/functional/analysistemplate-web-background-inconclusive.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ spec:
1111
- name: web
1212
interval: 7s
1313
inconclusiveLimit: 3
14-
successCondition: result.status == "success"
15-
failureCondition: result.status == "failure"
14+
successCondition: result.json.status == "success"
15+
failureCondition: result.json.status == "failure"
1616
provider:
1717
web:
1818
url: "{{args.url-val}}"
1919
method: POST
2020
jsonBody:
2121
status: "inconclusive"
22-
jsonPath: "{$.json}"
22+
jsonPath: "{$}"

0 commit comments

Comments
 (0)