Skip to content

Commit

Permalink
test: adapt keda integration test to remove flakyness (#3372)
Browse files Browse the repository at this point in the history
Signed-off-by: odubajDT <[email protected]>
  • Loading branch information
odubajDT authored Apr 2, 2024
1 parent 95eb17e commit a41001d
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions test/chainsaw/testmetrics/metrics-keda/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ spec:
content: |
kubectl apply --server-side -f https://github.com/kedacore/keda/releases/download/v2.13.1/keda-2.13.1.yaml
- wait:
timeout: 1m
timeout: 3m
apiVersion: v1
kind: Pod
namespace: keda
Expand All @@ -33,6 +33,16 @@ spec:
catch:
- podLogs:
selector: app=podtato-head
- describe:
resource: pods
selector: app=podtato-head
- podLogs:
namespace: keda
selector: name=keda-operator
- describe:
resource: pods
namespace: keda
selector: name=keda-operator
- podLogs:
namespace: keptn-system
selector: app=metrics-operator
Expand All @@ -42,18 +52,17 @@ spec:
- describe:
resource: keptnmetricsprovider
name: my-provider
- describe:
resource: pods
selector: app=podtato-head
- describe:
resource: scaledobject
name: test-scaledobject
finally:
# remove keda in regular step, since in case of failure, we want to have the logs available
- name: step-01
try:
- script:
content: |
kubectl delete -f https://github.com/kedacore/keda/releases/download/v2.13.0/keda-2.13.0.yaml
kubectl delete -f https://github.com/kedacore/keda/releases/download/v2.13.1/keda-2.13.1.yaml
- wait:
timeout: 1m
timeout: 3m
apiVersion: v1
kind: Pod
namespace: keda
Expand Down

0 comments on commit a41001d

Please sign in to comment.