diff --git a/tests/e2e-chainsaw/v1beta2/acl-user/redis-cluster/chainsaw-test.yaml b/tests/e2e-chainsaw/v1beta2/acl-user/redis-cluster/chainsaw-test.yaml index 46bf2141c..f83bfe75f 100644 --- a/tests/e2e-chainsaw/v1beta2/acl-user/redis-cluster/chainsaw-test.yaml +++ b/tests/e2e-chainsaw/v1beta2/acl-user/redis-cluster/chainsaw-test.yaml @@ -25,6 +25,13 @@ spec: file: ready-svc.yaml - assert: file: ready-pvc.yaml + catch: + - description: Redis Operator Logs + podLogs: + namespace: redis-operator-system + selector: control-plane=redis-operator + container: manager + tail: -1 # tail all logs - name: Sleep for five minutes try: diff --git a/tests/e2e-chainsaw/v1beta2/ha-failover/chainsaw-test.yaml b/tests/e2e-chainsaw/v1beta2/ha-failover/chainsaw-test.yaml index f4fd45914..3fb05ca44 100644 --- a/tests/e2e-chainsaw/v1beta2/ha-failover/chainsaw-test.yaml +++ b/tests/e2e-chainsaw/v1beta2/ha-failover/chainsaw-test.yaml @@ -11,6 +11,13 @@ spec: file: sentinel.yaml - create: file: cli-pod.yaml + catch: + - description: Redis Operator Logs + podLogs: + namespace: redis-operator-system + selector: control-plane=redis-operator + container: manager + tail: -1 # tail all logs - name: Sleep for 3 minutes try: @@ -25,6 +32,13 @@ spec: kubectl exec --namespace ${NAMESPACE} redis -- redis-cli -h redis-sentinel-sentinel.${NAMESPACE}.svc -p 26379 sentinel master myMaster | grep -A 1 'flags' | tail -n 1 check: ($stdout=='master'): true + catch: + - description: Redis Operator Logs + podLogs: + namespace: redis-operator-system + selector: control-plane=redis-operator + container: manager + tail: -1 # tail all logs # New created cluster, the first pod is master - name: Terminate the redis-replication-0 pod @@ -33,6 +47,13 @@ spec: timeout: 10s content: | kubectl --namespace ${NAMESPACE} delete pod redis-replication-0 + catch: + - description: Redis Operator Logs + podLogs: + namespace: redis-operator-system + selector: control-plane=redis-operator + container: manager + tail: -1 # tail all logs - name: Sleep for 3 minutes try: @@ -46,4 +67,11 @@ spec: content: | kubectl exec --namespace ${NAMESPACE} redis -- redis-cli -h redis-sentinel-sentinel.${NAMESPACE}.svc -p 26379 sentinel master myMaster | grep -A 1 'flags' | tail -n 1 check: - ($stdout=='master'): true \ No newline at end of file + ($stdout=='master'): true + catch: + - description: Redis Operator Logs + podLogs: + namespace: redis-operator-system + selector: control-plane=redis-operator + container: manager + tail: -1 # tail all logs \ No newline at end of file diff --git a/tests/e2e-chainsaw/v1beta2/setup/redis-cluster/chainsaw-test.yaml b/tests/e2e-chainsaw/v1beta2/setup/redis-cluster/chainsaw-test.yaml index f9f8b5130..c036ab288 100644 --- a/tests/e2e-chainsaw/v1beta2/setup/redis-cluster/chainsaw-test.yaml +++ b/tests/e2e-chainsaw/v1beta2/setup/redis-cluster/chainsaw-test.yaml @@ -17,6 +17,13 @@ spec: file: ready-svc.yaml - assert: file: ready-pvc.yaml + catch: + - description: Redis Operator Logs + podLogs: + namespace: redis-operator-system + selector: control-plane=redis-operator + container: manager + tail: -1 # tail all logs - name: Sleep for five minutes try: @@ -127,4 +134,5 @@ spec: content: | kubectl exec --namespace ${NAMESPACE} --container redis-cluster-v1beta2-follower redis-cluster-v1beta2-follower-2 -- redis-cli -c -p 6379 set foo-5 bar-5 check: - ($stdout=='OK'): true \ No newline at end of file + ($stdout=='OK'): true + diff --git a/tests/e2e-chainsaw/v1beta2/setup/redis-replication/chainsaw-test.yaml b/tests/e2e-chainsaw/v1beta2/setup/redis-replication/chainsaw-test.yaml index bd117a79b..ff7822ce7 100644 --- a/tests/e2e-chainsaw/v1beta2/setup/redis-replication/chainsaw-test.yaml +++ b/tests/e2e-chainsaw/v1beta2/setup/redis-replication/chainsaw-test.yaml @@ -15,6 +15,13 @@ spec: file: ready-svc.yaml - assert: file: ready-pvc.yaml + catch: + - description: Redis Operator Logs + podLogs: + namespace: redis-operator-system + selector: control-plane=redis-operator + container: manager + tail: -1 # tail all logs - name: Ping Replicated Cluster try: diff --git a/tests/e2e-chainsaw/v1beta2/setup/redis-sentinel/chainsaw-test.yaml b/tests/e2e-chainsaw/v1beta2/setup/redis-sentinel/chainsaw-test.yaml index 5e2472bb1..c3a26553d 100644 --- a/tests/e2e-chainsaw/v1beta2/setup/redis-sentinel/chainsaw-test.yaml +++ b/tests/e2e-chainsaw/v1beta2/setup/redis-sentinel/chainsaw-test.yaml @@ -12,4 +12,11 @@ spec: - assert: file: ready-sts.yaml - assert: - file: ready-svc.yaml \ No newline at end of file + file: ready-svc.yaml + catch: + - description: Redis Operator Logs + podLogs: + namespace: redis-operator-system + selector: control-plane=redis-operator + container: manager + tail: -1 # tail all logs \ No newline at end of file