From 667ceae327e57d543a0aeb27dafa255556d363e6 Mon Sep 17 00:00:00 2001 From: yangw Date: Fri, 6 Oct 2023 13:33:21 +0800 Subject: [PATCH] Fix e2e test (#658) * fix kuttl timeout unit to second Signed-off-by: drivebyer * fix assert rediscluster version Signed-off-by: drivebyer * Update readme.md --------- Signed-off-by: drivebyer Co-authored-by: Shubham Gupta <69793468+shubham-cmyk@users.noreply.github.com> --- tests/e2e/v1beta2/setup/ready-cluster.yaml | 2 +- tests/readme.md | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/e2e/v1beta2/setup/ready-cluster.yaml b/tests/e2e/v1beta2/setup/ready-cluster.yaml index 57d53c708..54077ef06 100644 --- a/tests/e2e/v1beta2/setup/ready-cluster.yaml +++ b/tests/e2e/v1beta2/setup/ready-cluster.yaml @@ -1,4 +1,4 @@ -apiVersion: redis.redis.opstreelabs.in/v1beta1 +apiVersion: redis.redis.opstreelabs.in/v1beta2 kind: RedisCluster metadata: name: redis-cluster-v1beta2 diff --git a/tests/readme.md b/tests/readme.md index 155b89fb3..5538aa670 100644 --- a/tests/readme.md +++ b/tests/readme.md @@ -13,8 +13,6 @@ Ensure you have the following tools installed: ## **Steps** -### **1. Set Up a 3-node Kind Cluster** - ## Steps to Follow ### 1. Set Up a 3-node Kind Cluster @@ -22,7 +20,7 @@ Ensure you have the following tools installed: Create a 3-node kind cluster using the provided configuration: ```bash -kind create cluster --config /redis-operator/tests/_config/kind-example-config.yaml +kind create cluster --config /redis-operator/tests/_config/kind-config.yaml ``` ### 2. Install the Redis Operator @@ -38,5 +36,5 @@ Please refer to the repository's README for detailed instructions on installing Execute the kuttl test using the following command: ```bash -kubectl kuttl test redis-operator/tests/e2e/v1beta2 --config /redis-operator/tests/_config/kuttl-test.yaml --timeout 10m +kubectl kuttl test redis-operator/tests/e2e/v1beta2 --config /redis-operator/tests/_config/kuttl-test.yaml --timeout 600 ```