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 24, 2024
1 parent 1a0e8fe commit dd7cc63
Showing 1 changed file with 38 additions and 17 deletions.
55 changes: 38 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,15 @@ 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:
(conditions[?type == 'Ready']):
- status: 'True'
- name: step-40
try:
- apply:
Expand All @@ -57,23 +66,35 @@ 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
catch:
- podLogs:
namespace: chainsaw-operator-upgrade
selector: app.kubernetes.io/name=tempo-operator
tail: 100
finally:
- get:
resource: subscriptions.operators.coreos.com
namespace: chainsaw-operator-upgrade
name: tempo
format: yaml
- 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:
(conditions[?type == 'Ready']):
- status: 'True'
finally:
- get:
resource: deployment
format: yaml
- get:
resource: statefulset
format: yaml
- name: step-70
try:
- apply:
Expand Down

0 comments on commit dd7cc63

Please sign in to comment.