Skip to content

Commit

Permalink
chore: improve chainsaw tests (#2645)
Browse files Browse the repository at this point in the history
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
  • Loading branch information
eddycharly authored Feb 16, 2024
1 parent 9be479d commit 7282fa7
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ metadata:
name: prometheus-kubernetessd-targetallocator
---
apiVersion: v1
kind: ConfigMap
metadata:
name: prometheus-kubernetessd-collector
data:
collector.yaml: |
exporters:
Expand All @@ -33,6 +36,11 @@ data:
processors: []
receivers:
- prometheus
kind: ConfigMap
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: prometheus-kubernetessd-collector
status:
numberMisscheduled: 0
(desiredNumberScheduled == numberReady): true
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ spec:
- assert:
file: 00-assert.yaml
catch:
- script:
content: ./tests/e2e/smoke-daemonset/check-daemonset.sh
- podLogs:
selector: app.kubernetes.io/managed-by=opentelemetry-operator
- name: step-01
Expand Down

This file was deleted.

1 change: 1 addition & 0 deletions tests/e2e/smoke-daemonset/00-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ spec:
type: RollingUpdate
status:
numberMisscheduled: 0
(desiredNumberScheduled == numberReady): true
5 changes: 1 addition & 4 deletions tests/e2e/smoke-daemonset/chainsaw-test.yaml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ metadata:
name: smoke-daemonset
spec:
steps:
- catch:
- script:
content: ./tests/e2e/smoke-daemonset/check-daemonset.sh
name: step-00
- name: step-00
try:
- apply:
file: 00-install.yaml
Expand Down
15 changes: 0 additions & 15 deletions tests/e2e/smoke-daemonset/check-daemonset.sh

This file was deleted.

0 comments on commit 7282fa7

Please sign in to comment.