-
Notifications
You must be signed in to change notification settings - Fork 873
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: e2e test for inconclusive analysisrun
Signed-off-by: Yurii Popivniak <ypopivniak@cargurus.com>
- Loading branch information
1 parent
afa4570
commit b833028
Showing
3 changed files
with
19 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 14 additions & 11 deletions
25
test/e2e/functional/analysistemplate-web-background-inconclusive.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,22 @@ | ||
# A dummy web metric which uses the kubernetes version endpoint as a metric provider | ||
# A web metric which uses the httpbin service as a metric provider | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: AnalysisTemplate | ||
metadata: | ||
name: web-background-inconclusive | ||
spec: | ||
args: | ||
- name: url-val | ||
value: "https://kubernetes.default.svc/version" | ||
value: "https://httpbin.org/anything" | ||
metrics: | ||
- name: web | ||
interval: 7s | ||
inconclusiveLimit: 3 | ||
successCondition: result.major == '2000' | ||
failureCondition: result.major == '1000' | ||
provider: | ||
web: | ||
url: "{{args.url-val}}" | ||
insecure: true | ||
- name: web | ||
interval: 7s | ||
inconclusiveLimit: 3 | ||
successCondition: result.status == "success" | ||
failureCondition: result.status == "failure" | ||
provider: | ||
web: | ||
url: "{{args.url-val}}" | ||
method: POST | ||
jsonBody: | ||
status: "inconclusive" | ||
jsonPath: "{$.json}" |