From 48b515b19ea9c07a88ec631b5c16882428266b15 Mon Sep 17 00:00:00 2001 From: Shubham Gupta <69793468+shubham-cmyk@users.noreply.github.com> Date: Wed, 13 Dec 2023 13:38:03 +0530 Subject: [PATCH] test: try Ping cluster (#726) * try Ping cluster Signed-off-by: Shubham Gupta * use script Signed-off-by: Shubham Gupta * PONG Signed-off-by: Shubham Gupta * ping cluster Signed-off-by: Shubham Gupta * remove Signed-off-by: Shubham Gupta * try spacing Signed-off-by: Shubham Gupta * pong Signed-off-by: Shubham Gupta * fix quote Signed-off-by: Shubham Gupta --------- Signed-off-by: Shubham Gupta --- .../v1beta2/setup/redis-cluster/chainsaw-test.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 c1cfc8b9d..1a020f2ca 100644 --- a/tests/e2e-chainsaw/v1beta2/setup/redis-cluster/chainsaw-test.yaml +++ b/tests/e2e-chainsaw/v1beta2/setup/redis-cluster/chainsaw-test.yaml @@ -16,4 +16,11 @@ spec: - assert: file: ready-svc.yaml - assert: - file: ready-pvc.yaml \ No newline at end of file + file: ready-pvc.yaml + - name: Ping Cluster + try: + - script: + content: | + kubectl exec --namespace ${NAMESPACE} --container redis-cluster-v1beta2-leader redis-cluster-v1beta2-leader-0 -- redis-cli -c -p 6379 ping + check: + ($stdout=='PONG'): true