Skip to content

Commit

Permalink
update
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 committed Feb 21, 2024
1 parent 1a0e8fe commit 0422e93
Showing 1 changed file with 34 additions and 17 deletions.
51 changes: 34 additions & 17 deletions tests/e2e-upgrade/upgrade/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,13 @@ spec:
file: 20-assert.yaml
- name: step-21
try:
- script:
content: kubectl apply -f tempostack.yaml
- script:
content: kubectl delete tempo check-operator-ready
- apply:
file: tempostack.yaml
- delete:
ref:
apiVersion: tempo.grafana.com/v1alpha1
kind: TempoStack
name: check-operator-ready
- name: step-30
try:
- apply:
Expand All @@ -36,9 +39,14 @@ spec:
file: 30-assert.yaml
- name: step-31
try:
- script:
content: /bin/sh -c "kubectl get --namespace $NAMESPACE tempo simplest -o
jsonpath='{.status.conditions[?(@.type==\"Ready\")].status}' | grep True"
- assert:
resource:
apiVersion: tempo.grafana.com/v1alpha1
kind: TempoStack
metadata:
name: simplest
status:
(length(conditions[?(type == 'Ready' && status == 'True')]) == 0): false
- name: step-40
try:
- apply:
Expand All @@ -57,23 +65,32 @@ spec:
file: 60-upgrade-operator.yaml
- assert:
file: 60-assert.yaml
- script:
content: kubectl -n chainsaw-operator-upgrade get subscriptions.operators.coreos.com
tempo -o yaml
- get:
resource: subscriptions.operators.coreos.com
namespace: chainsaw-operator-upgrade
name: tempo
format: yaml
catch:
- podLogs:
namespace: chainsaw-operator-upgrade
selector: app.kubernetes.io/name=tempo-operator
tail: 100
- name: step-61
try:
- script:
content: /bin/sh -c "kubectl get --namespace $NAMESPACE tempo simplest -o
jsonpath='{.status.conditions[?(@.type==\"Ready\")].status}' | grep True"
- script:
content: kubectl get --namespace $NAMESPACE deployment -o yaml
- script:
content: kubectl get --namespace $NAMESPACE statefulset -o yaml
- assert:
resource:
apiVersion: tempo.grafana.com/v1alpha1
kind: TempoStack
metadata:
name: simplest
status:
(length(conditions[?(type == 'Ready' && status == 'True')]) == 0): false
- get:
resource: deployment
format: yaml
- get:
resource: statefulset
format: yaml
- name: step-70
try:
- apply:
Expand Down

0 comments on commit 0422e93

Please sign in to comment.