From 6c41eeab261f8453618e2f956362ec37761600ca Mon Sep 17 00:00:00 2001 From: linghan-hub <56351212+linghan-hub@users.noreply.github.com> Date: Mon, 9 Oct 2023 11:21:52 +0800 Subject: [PATCH] chore: add e2e test cases (#5347) --- Makefile | 6 +++ .../{05_hscale_up.yaml => 05_hscale_out.yaml} | 2 +- ...{06_hscale_down.yaml => 06_hscale_in.yaml} | 2 +- .../{06_hscale_up.yaml => 06_hscale_out.yaml} | 2 +- ...{07_hscale_down.yaml => 07_hscale_in.yaml} | 2 +- .../{06_hscale_up.yaml => 06_hscale_in.yaml} | 2 +- ...07_hscale_down.yaml => 07_hscale_out.yaml} | 2 +- .../{05_hscale_up.yaml => 05_hscale_out.yaml} | 2 +- .../testdata/smoketest/kafka/06_reconfig.yaml | 18 ++++++++ .../smoketest/mongodb/06_hscale_out.yaml | 10 +++++ .../07_hscale_in.yaml} | 8 ++-- ...6_reconfigure.yaml => 08_reconfigure.yaml} | 0 ..._snapshot.yaml => 09_backup_snapshot.yaml} | 0 ...e.yaml => 10_backup_snapshot_restore.yaml} | 0 .../{06_hscale_up.yaml => 06_hscale_out.yaml} | 2 +- ...{07_hscale_down.yaml => 07_hscale_in.yaml} | 2 +- .../{06_hscale_up.yaml => 06_hscale_out.yaml} | 2 +- ...{07_hscale_down.yaml => 07_hscale_in.yaml} | 2 +- .../{06_hscale_up.yaml => 06_hscale_out.yaml} | 2 +- ...{07_hscale_down.yaml => 07_hscale_in.yaml} | 2 +- .../{05_hscale_up.yaml => 05_hscale_out.yaml} | 2 +- ...{06_hscale_down.yaml => 06_hscale_in.yaml} | 2 +- .../{06_hscale_up.yaml => 06_hscale_out.yaml} | 2 +- ...{07_hscale_down.yaml => 07_hscale_in.yaml} | 2 +- .../{06_hscale_up.yaml => 06_hscale_out.yaml} | 2 +- ...{07_hscale_down.yaml => 07_hscale_in.yaml} | 2 +- .../{05_hscale_up.yaml => 05_hscale_out.yaml} | 2 +- ...{06_hscale_down.yaml => 06_hscale_in.yaml} | 2 +- .../smoketest/postgresql/10_reconfigure.yaml | 18 ++++++++ ..._snapshot.yaml => 11_backup_snapshot.yaml} | 0 ...e.yaml => 12_backup_snapshot_restore.yaml} | 0 .../smoketest/pulsar/01_stop_bookies.yaml | 10 +++++ .../smoketest/pulsar/02_start_bookies.yaml | 10 +++++ ...art_proxy.yaml => 03_restart_bookies.yaml} | 4 +- ...art_broker.yaml => 04_restart_broker.yaml} | 2 - .../smoketest/pulsar/05_stop_broker.yaml | 10 +++++ .../smoketest/pulsar/06_start_broker.yaml | 10 +++++ ...okeeper.yaml => 07_restart_zookeeper.yaml} | 0 .../smoketest/pulsar/08_stop_zookeeper.yaml | 10 +++++ .../smoketest/pulsar/09_start_zookeeper.yaml | 10 +++++ .../{04_hscale_up.yaml => 10_hscale_out.yaml} | 2 +- ...{05_hscale_down.yaml => 11_hscale_in.yaml} | 2 +- ...lume_expand.yaml => 12_volume_expand.yaml} | 0 ...8_reconfigure.yaml => 13_reconfigure.yaml} | 6 +-- .../pulsar/14_vscale_broker_out.yaml | 12 ++++++ .../smoketest/pulsar/15_vscale_broker_in.yaml | 12 ++++++ ...vscale.yaml => 16_vscale_bookies_out.yaml} | 12 +----- .../pulsar/17_vscale_bookies_in.yaml | 12 ++++++ .../{02_hscale_up.yaml => 02_hscale_out.yaml} | 2 +- ...{03_hscale_down.yaml => 03_hscale_in.yaml} | 2 +- test/e2e/testdata/smoketest/redis/08_cv.yaml | 26 ----------- .../smoketest/redis/08_reconfigure.yaml | 18 ++++++++ ..._snapshot.yaml => 09_backup_snapshot.yaml} | 0 .../testdata/smoketest/redis/09_upgrade.yaml | 9 ---- ...e.yaml => 10_backup_snapshot_restore.yaml} | 0 .../{05_hscale_up.yaml => 05_hscale_out.yaml} | 2 +- ...{06_hscale_down.yaml => 06_hscale_in.yaml} | 2 +- .../{06_hscale_up.yaml => 06_hscale_out.yaml} | 2 +- ...{07_hscale_down.yaml => 07_hscale_in.yaml} | 2 +- .../weaviate/00_weaviatecluster.yaml | 31 +++++++++++++ .../smoketest/weaviate/01_vscale.yaml | 12 ++++++ .../smoketest/weaviate/02_hscale_out.yaml | 10 +++++ .../testdata/smoketest/weaviate/03_stop.yaml | 10 +++++ .../testdata/smoketest/weaviate/04_start.yaml | 10 +++++ .../smoketest/weaviate/05_restart.yaml | 10 +++++ .../smoketest/weaviate/06_reconfigure.yaml | 16 +++++++ .../{04_hscale_up.yaml => 04_hscale_out.yaml} | 2 +- ...{05_hscale_down.yaml => 05_hscale_in.yaml} | 2 +- .../testdata/smoketest/wesql/06_vexpand.yaml | 2 +- test/e2e/testdata/smoketest/wesql/07_cv.yaml | 43 ------------------- .../wesql/{09_stop.yaml => 07_stop.yaml} | 0 .../wesql/{10_start.yaml => 08_start.yaml} | 0 .../testdata/smoketest/wesql/08_upgrade.yaml | 9 ---- .../{11_restart.yaml => 09_restart.yaml} | 0 ...2_reconfigure.yaml => 10_reconfigure.yaml} | 0 ..._snapshot.yaml => 11_backup_snapshot.yaml} | 0 ...e.yaml => 12_backup_snapshot_restore.yaml} | 0 77 files changed, 307 insertions(+), 141 deletions(-) rename test/e2e/testdata/smoketest/etcd/{05_hscale_up.yaml => 05_hscale_out.yaml} (82%) rename test/e2e/testdata/smoketest/etcd/{06_hscale_down.yaml => 06_hscale_in.yaml} (81%) rename test/e2e/testdata/smoketest/foxlake/{06_hscale_up.yaml => 06_hscale_out.yaml} (85%) rename test/e2e/testdata/smoketest/foxlake/{07_hscale_down.yaml => 07_hscale_in.yaml} (85%) rename test/e2e/testdata/smoketest/greptimedb/{06_hscale_up.yaml => 06_hscale_in.yaml} (84%) rename test/e2e/testdata/smoketest/greptimedb/{07_hscale_down.yaml => 07_hscale_out.yaml} (87%) rename test/e2e/testdata/smoketest/kafka/{05_hscale_up.yaml => 05_hscale_out.yaml} (82%) create mode 100644 test/e2e/testdata/smoketest/kafka/06_reconfig.yaml create mode 100644 test/e2e/testdata/smoketest/mongodb/06_hscale_out.yaml rename test/e2e/testdata/smoketest/{kafka/06_hscale_down.yaml => mongodb/07_hscale_in.yaml} (50%) rename test/e2e/testdata/smoketest/mongodb/{06_reconfigure.yaml => 08_reconfigure.yaml} (100%) rename test/e2e/testdata/smoketest/mongodb/{07_backup_snapshot.yaml => 09_backup_snapshot.yaml} (100%) rename test/e2e/testdata/smoketest/mongodb/{08_backup_snapshot_restore.yaml => 10_backup_snapshot_restore.yaml} (100%) rename test/e2e/testdata/smoketest/nebula/{06_hscale_up.yaml => 06_hscale_out.yaml} (85%) rename test/e2e/testdata/smoketest/nebula/{07_hscale_down.yaml => 07_hscale_in.yaml} (89%) rename test/e2e/testdata/smoketest/oceanbase/{06_hscale_up.yaml => 06_hscale_out.yaml} (81%) rename test/e2e/testdata/smoketest/oceanbase/{07_hscale_down.yaml => 07_hscale_in.yaml} (80%) rename test/e2e/testdata/smoketest/official-postgresql/{06_hscale_up.yaml => 06_hscale_out.yaml} (82%) rename test/e2e/testdata/smoketest/official-postgresql/{07_hscale_down.yaml => 07_hscale_in.yaml} (82%) rename test/e2e/testdata/smoketest/openldap/{05_hscale_up.yaml => 05_hscale_out.yaml} (81%) rename test/e2e/testdata/smoketest/openldap/{06_hscale_down.yaml => 06_hscale_in.yaml} (81%) rename test/e2e/testdata/smoketest/oracle/{06_hscale_up.yaml => 06_hscale_out.yaml} (82%) rename test/e2e/testdata/smoketest/oracle/{07_hscale_down.yaml => 07_hscale_in.yaml} (81%) rename test/e2e/testdata/smoketest/orioledb/{06_hscale_up.yaml => 06_hscale_out.yaml} (81%) rename test/e2e/testdata/smoketest/orioledb/{07_hscale_down.yaml => 07_hscale_in.yaml} (81%) rename test/e2e/testdata/smoketest/postgresql/{05_hscale_up.yaml => 05_hscale_out.yaml} (83%) rename test/e2e/testdata/smoketest/postgresql/{06_hscale_down.yaml => 06_hscale_in.yaml} (82%) create mode 100644 test/e2e/testdata/smoketest/postgresql/10_reconfigure.yaml rename test/e2e/testdata/smoketest/postgresql/{10_backup_snapshot.yaml => 11_backup_snapshot.yaml} (100%) rename test/e2e/testdata/smoketest/postgresql/{11_backup_snapshot_restore.yaml => 12_backup_snapshot_restore.yaml} (100%) create mode 100644 test/e2e/testdata/smoketest/pulsar/01_stop_bookies.yaml create mode 100644 test/e2e/testdata/smoketest/pulsar/02_start_bookies.yaml rename test/e2e/testdata/smoketest/pulsar/{01_restart_proxy.yaml => 03_restart_bookies.yaml} (67%) rename test/e2e/testdata/smoketest/pulsar/{02_restart_broker.yaml => 04_restart_broker.yaml} (88%) create mode 100644 test/e2e/testdata/smoketest/pulsar/05_stop_broker.yaml create mode 100644 test/e2e/testdata/smoketest/pulsar/06_start_broker.yaml rename test/e2e/testdata/smoketest/pulsar/{03_restart_zookeeper.yaml => 07_restart_zookeeper.yaml} (100%) create mode 100644 test/e2e/testdata/smoketest/pulsar/08_stop_zookeeper.yaml create mode 100644 test/e2e/testdata/smoketest/pulsar/09_start_zookeeper.yaml rename test/e2e/testdata/smoketest/pulsar/{04_hscale_up.yaml => 10_hscale_out.yaml} (83%) rename test/e2e/testdata/smoketest/pulsar/{05_hscale_down.yaml => 11_hscale_in.yaml} (83%) rename test/e2e/testdata/smoketest/pulsar/{07_volume_expand.yaml => 12_volume_expand.yaml} (100%) rename test/e2e/testdata/smoketest/pulsar/{08_reconfigure.yaml => 13_reconfigure.yaml} (76%) create mode 100644 test/e2e/testdata/smoketest/pulsar/14_vscale_broker_out.yaml create mode 100644 test/e2e/testdata/smoketest/pulsar/15_vscale_broker_in.yaml rename test/e2e/testdata/smoketest/pulsar/{06_vscale.yaml => 16_vscale_bookies_out.yaml} (50%) create mode 100644 test/e2e/testdata/smoketest/pulsar/17_vscale_bookies_in.yaml rename test/e2e/testdata/smoketest/redis/{02_hscale_up.yaml => 02_hscale_out.yaml} (82%) rename test/e2e/testdata/smoketest/redis/{03_hscale_down.yaml => 03_hscale_in.yaml} (81%) delete mode 100644 test/e2e/testdata/smoketest/redis/08_cv.yaml create mode 100644 test/e2e/testdata/smoketest/redis/08_reconfigure.yaml rename test/e2e/testdata/smoketest/redis/{10_backup_snapshot.yaml => 09_backup_snapshot.yaml} (100%) delete mode 100644 test/e2e/testdata/smoketest/redis/09_upgrade.yaml rename test/e2e/testdata/smoketest/redis/{11_backup_snapshot_restore.yaml => 10_backup_snapshot_restore.yaml} (100%) rename test/e2e/testdata/smoketest/risingwave/{05_hscale_up.yaml => 05_hscale_out.yaml} (89%) rename test/e2e/testdata/smoketest/risingwave/{06_hscale_down.yaml => 06_hscale_in.yaml} (89%) rename test/e2e/testdata/smoketest/starrocks/{06_hscale_up.yaml => 06_hscale_out.yaml} (80%) rename test/e2e/testdata/smoketest/starrocks/{07_hscale_down.yaml => 07_hscale_in.yaml} (80%) create mode 100644 test/e2e/testdata/smoketest/weaviate/00_weaviatecluster.yaml create mode 100644 test/e2e/testdata/smoketest/weaviate/01_vscale.yaml create mode 100644 test/e2e/testdata/smoketest/weaviate/02_hscale_out.yaml create mode 100644 test/e2e/testdata/smoketest/weaviate/03_stop.yaml create mode 100644 test/e2e/testdata/smoketest/weaviate/04_start.yaml create mode 100644 test/e2e/testdata/smoketest/weaviate/05_restart.yaml create mode 100644 test/e2e/testdata/smoketest/weaviate/06_reconfigure.yaml rename test/e2e/testdata/smoketest/wesql/{04_hscale_up.yaml => 04_hscale_out.yaml} (82%) rename test/e2e/testdata/smoketest/wesql/{05_hscale_down.yaml => 05_hscale_in.yaml} (81%) delete mode 100644 test/e2e/testdata/smoketest/wesql/07_cv.yaml rename test/e2e/testdata/smoketest/wesql/{09_stop.yaml => 07_stop.yaml} (100%) rename test/e2e/testdata/smoketest/wesql/{10_start.yaml => 08_start.yaml} (100%) delete mode 100644 test/e2e/testdata/smoketest/wesql/08_upgrade.yaml rename test/e2e/testdata/smoketest/wesql/{11_restart.yaml => 09_restart.yaml} (100%) rename test/e2e/testdata/smoketest/wesql/{12_reconfigure.yaml => 10_reconfigure.yaml} (100%) rename test/e2e/testdata/smoketest/wesql/{13_backup_snapshot.yaml => 11_backup_snapshot.yaml} (100%) rename test/e2e/testdata/smoketest/wesql/{14_backup_snapshot_restore.yaml => 12_backup_snapshot_restore.yaml} (100%) diff --git a/Makefile b/Makefile index 2064db2cb70..30d3d819f96 100644 --- a/Makefile +++ b/Makefile @@ -665,6 +665,10 @@ else ifeq ($(TEST_TYPE), orioledb) $(HELM) dependency build deploy/orioledb-cluster --skip-refresh $(HELM) upgrade --install orioledb deploy/orioledb $(HELM) template oriole-cluster deploy/orioledb-cluster > test/e2e/testdata/smoketest/orioledb/00_orioledbcluster.yaml +else ifeq ($(TEST_TYPE), weaviate) + $(HELM) dependency build deploy/weaviate-cluster --skip-refresh + $(HELM) upgrade --install weaviate deploy/weaviate + $(HELM) template weaviate-cluster deploy/weaviate-cluster > test/e2e/testdata/smoketest/weaviate/00_weaviatecluster.yaml else $(error "test type does not exist") endif @@ -708,6 +712,8 @@ else ifeq ($(TEST_TYPE), oceanbase) $(HELM) upgrade --install official-postgresql deploy/official-postgresql else ifeq ($(TEST_TYPE), openldap) $(HELM) upgrade --install openldap deploy/openldap +else ifeq ($(TEST_TYPE), weaviate) + $(HELM) upgrade --install weaviate deploy/weaviate else $(error "test type does not exist") endif diff --git a/test/e2e/testdata/smoketest/etcd/05_hscale_up.yaml b/test/e2e/testdata/smoketest/etcd/05_hscale_out.yaml similarity index 82% rename from test/e2e/testdata/smoketest/etcd/05_hscale_up.yaml rename to test/e2e/testdata/smoketest/etcd/05_hscale_out.yaml index a96048a5138..b816c4e33f4 100644 --- a/test/e2e/testdata/smoketest/etcd/05_hscale_up.yaml +++ b/test/e2e/testdata/smoketest/etcd/05_hscale_out.yaml @@ -1,7 +1,7 @@ apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: - generateName: etcd-cluster-hscale-up- + generateName: etcd-cluster-hscale-out- spec: clusterRef: etcd-cluster type: HorizontalScaling diff --git a/test/e2e/testdata/smoketest/etcd/06_hscale_down.yaml b/test/e2e/testdata/smoketest/etcd/06_hscale_in.yaml similarity index 81% rename from test/e2e/testdata/smoketest/etcd/06_hscale_down.yaml rename to test/e2e/testdata/smoketest/etcd/06_hscale_in.yaml index 07929f39097..ef4083f467a 100644 --- a/test/e2e/testdata/smoketest/etcd/06_hscale_down.yaml +++ b/test/e2e/testdata/smoketest/etcd/06_hscale_in.yaml @@ -1,7 +1,7 @@ apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: - generateName: etcd-cluster-hscale-down- + generateName: etcd-cluster-hscale-in- spec: clusterRef: etcd-cluster type: HorizontalScaling diff --git a/test/e2e/testdata/smoketest/foxlake/06_hscale_up.yaml b/test/e2e/testdata/smoketest/foxlake/06_hscale_out.yaml similarity index 85% rename from test/e2e/testdata/smoketest/foxlake/06_hscale_up.yaml rename to test/e2e/testdata/smoketest/foxlake/06_hscale_out.yaml index 7b359fd8bf1..64a3d87aca7 100644 --- a/test/e2e/testdata/smoketest/foxlake/06_hscale_up.yaml +++ b/test/e2e/testdata/smoketest/foxlake/06_hscale_out.yaml @@ -1,7 +1,7 @@ apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: - generateName: foxlake-cluster-hscale-up- + generateName: foxlake-cluster-hscale-out- spec: clusterRef: foxlake-cluster type: HorizontalScaling diff --git a/test/e2e/testdata/smoketest/foxlake/07_hscale_down.yaml b/test/e2e/testdata/smoketest/foxlake/07_hscale_in.yaml similarity index 85% rename from test/e2e/testdata/smoketest/foxlake/07_hscale_down.yaml rename to test/e2e/testdata/smoketest/foxlake/07_hscale_in.yaml index dfa12de73e6..6de5d70489d 100644 --- a/test/e2e/testdata/smoketest/foxlake/07_hscale_down.yaml +++ b/test/e2e/testdata/smoketest/foxlake/07_hscale_in.yaml @@ -1,7 +1,7 @@ apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: - generateName: foxlake-cluster-hscale-down- + generateName: foxlake-cluster-hscale-in- spec: clusterRef: foxlake-cluster type: HorizontalScaling diff --git a/test/e2e/testdata/smoketest/greptimedb/06_hscale_up.yaml b/test/e2e/testdata/smoketest/greptimedb/06_hscale_in.yaml similarity index 84% rename from test/e2e/testdata/smoketest/greptimedb/06_hscale_up.yaml rename to test/e2e/testdata/smoketest/greptimedb/06_hscale_in.yaml index 71faae95a2c..7c0fb69fa88 100644 --- a/test/e2e/testdata/smoketest/greptimedb/06_hscale_up.yaml +++ b/test/e2e/testdata/smoketest/greptimedb/06_hscale_in.yaml @@ -1,7 +1,7 @@ apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: - generateName: greptimedb-cluster-hscale-up- + generateName: greptimedb-cluster-hscale-in- spec: clusterRef: greptimedb-cluster type: HorizontalScaling diff --git a/test/e2e/testdata/smoketest/greptimedb/07_hscale_down.yaml b/test/e2e/testdata/smoketest/greptimedb/07_hscale_out.yaml similarity index 87% rename from test/e2e/testdata/smoketest/greptimedb/07_hscale_down.yaml rename to test/e2e/testdata/smoketest/greptimedb/07_hscale_out.yaml index 84dcf5e1899..7a594b6c27a 100644 --- a/test/e2e/testdata/smoketest/greptimedb/07_hscale_down.yaml +++ b/test/e2e/testdata/smoketest/greptimedb/07_hscale_out.yaml @@ -1,7 +1,7 @@ apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: - generateName: greptimedb-cluster-hscale-down- + generateName: greptimedb-cluster-hscale-out- spec: clusterRef: greptimedb-cluster type: HorizontalScaling diff --git a/test/e2e/testdata/smoketest/kafka/05_hscale_up.yaml b/test/e2e/testdata/smoketest/kafka/05_hscale_out.yaml similarity index 82% rename from test/e2e/testdata/smoketest/kafka/05_hscale_up.yaml rename to test/e2e/testdata/smoketest/kafka/05_hscale_out.yaml index 0c09902be99..bb492220d77 100644 --- a/test/e2e/testdata/smoketest/kafka/05_hscale_up.yaml +++ b/test/e2e/testdata/smoketest/kafka/05_hscale_out.yaml @@ -1,7 +1,7 @@ apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: - generateName: kafka-cluster-hscale-up- + generateName: kafka-cluster-hscale-out- spec: clusterRef: kafka-cluster type: HorizontalScaling diff --git a/test/e2e/testdata/smoketest/kafka/06_reconfig.yaml b/test/e2e/testdata/smoketest/kafka/06_reconfig.yaml new file mode 100644 index 00000000000..937dd6a9fb4 --- /dev/null +++ b/test/e2e/testdata/smoketest/kafka/06_reconfig.yaml @@ -0,0 +1,18 @@ +apiVersion: apps.kubeblocks.io/v1alpha1 +kind: OpsRequest +metadata: + generateName: kafka-cluster-reconfiguring- +spec: + clusterRef: kafka-cluster + reconfigure: + componentName: broker + configurations: + - keys: + - key: kafka-configuration-tpl + parameters: + - key: MaxRAMPercentage + value: "200" + - key: MaxGCPauseMillis + value: "30" + name: mysql-consensusset-config + type: Reconfiguring \ No newline at end of file diff --git a/test/e2e/testdata/smoketest/mongodb/06_hscale_out.yaml b/test/e2e/testdata/smoketest/mongodb/06_hscale_out.yaml new file mode 100644 index 00000000000..7217749e1f8 --- /dev/null +++ b/test/e2e/testdata/smoketest/mongodb/06_hscale_out.yaml @@ -0,0 +1,10 @@ +apiVersion: apps.kubeblocks.io/v1alpha1 +kind: OpsRequest +metadata: + generateName: mongodb-cluster-hscale-out- +spec: + clusterRef: mongodb-cluster + type: HorizontalScaling + horizontalScaling: + - componentName: mongodb + replicas: 3 \ No newline at end of file diff --git a/test/e2e/testdata/smoketest/kafka/06_hscale_down.yaml b/test/e2e/testdata/smoketest/mongodb/07_hscale_in.yaml similarity index 50% rename from test/e2e/testdata/smoketest/kafka/06_hscale_down.yaml rename to test/e2e/testdata/smoketest/mongodb/07_hscale_in.yaml index e751764334a..3f9b4eab217 100644 --- a/test/e2e/testdata/smoketest/kafka/06_hscale_down.yaml +++ b/test/e2e/testdata/smoketest/mongodb/07_hscale_in.yaml @@ -1,10 +1,10 @@ apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: - generateName: kafka-cluster-hscale-down- + generateName: mongodb-cluster-hscale-in- spec: - clusterRef: kafka-cluster + clusterRef: mongodb-cluster type: HorizontalScaling horizontalScaling: - - componentName: broker - replicas: 2 \ No newline at end of file + - componentName: mongodb + replicas: 1 \ No newline at end of file diff --git a/test/e2e/testdata/smoketest/mongodb/06_reconfigure.yaml b/test/e2e/testdata/smoketest/mongodb/08_reconfigure.yaml similarity index 100% rename from test/e2e/testdata/smoketest/mongodb/06_reconfigure.yaml rename to test/e2e/testdata/smoketest/mongodb/08_reconfigure.yaml diff --git a/test/e2e/testdata/smoketest/mongodb/07_backup_snapshot.yaml b/test/e2e/testdata/smoketest/mongodb/09_backup_snapshot.yaml similarity index 100% rename from test/e2e/testdata/smoketest/mongodb/07_backup_snapshot.yaml rename to test/e2e/testdata/smoketest/mongodb/09_backup_snapshot.yaml diff --git a/test/e2e/testdata/smoketest/mongodb/08_backup_snapshot_restore.yaml b/test/e2e/testdata/smoketest/mongodb/10_backup_snapshot_restore.yaml similarity index 100% rename from test/e2e/testdata/smoketest/mongodb/08_backup_snapshot_restore.yaml rename to test/e2e/testdata/smoketest/mongodb/10_backup_snapshot_restore.yaml diff --git a/test/e2e/testdata/smoketest/nebula/06_hscale_up.yaml b/test/e2e/testdata/smoketest/nebula/06_hscale_out.yaml similarity index 85% rename from test/e2e/testdata/smoketest/nebula/06_hscale_up.yaml rename to test/e2e/testdata/smoketest/nebula/06_hscale_out.yaml index 552694fbae6..3e263a3c44f 100644 --- a/test/e2e/testdata/smoketest/nebula/06_hscale_up.yaml +++ b/test/e2e/testdata/smoketest/nebula/06_hscale_out.yaml @@ -1,7 +1,7 @@ apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: - generateName: nebula-cluster-hscale-up- + generateName: nebula-cluster-hscale-out- spec: clusterRef: nebula-cluster type: HorizontalScaling diff --git a/test/e2e/testdata/smoketest/nebula/07_hscale_down.yaml b/test/e2e/testdata/smoketest/nebula/07_hscale_in.yaml similarity index 89% rename from test/e2e/testdata/smoketest/nebula/07_hscale_down.yaml rename to test/e2e/testdata/smoketest/nebula/07_hscale_in.yaml index b1bec500c30..e0cf1765cb3 100644 --- a/test/e2e/testdata/smoketest/nebula/07_hscale_down.yaml +++ b/test/e2e/testdata/smoketest/nebula/07_hscale_in.yaml @@ -1,7 +1,7 @@ apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: - generateName: nebula-cluster-hscale-down- + generateName: nebula-cluster-hscale-in- spec: clusterRef: nebula-cluster type: HorizontalScaling diff --git a/test/e2e/testdata/smoketest/oceanbase/06_hscale_up.yaml b/test/e2e/testdata/smoketest/oceanbase/06_hscale_out.yaml similarity index 81% rename from test/e2e/testdata/smoketest/oceanbase/06_hscale_up.yaml rename to test/e2e/testdata/smoketest/oceanbase/06_hscale_out.yaml index c4f14b45fe9..8186d1d905a 100644 --- a/test/e2e/testdata/smoketest/oceanbase/06_hscale_up.yaml +++ b/test/e2e/testdata/smoketest/oceanbase/06_hscale_out.yaml @@ -1,7 +1,7 @@ apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: - generateName: oceanbase-cluster-hscale-up- + generateName: oceanbase-cluster-hscale-out- spec: clusterRef: oceanbase-cluster type: HorizontalScaling diff --git a/test/e2e/testdata/smoketest/oceanbase/07_hscale_down.yaml b/test/e2e/testdata/smoketest/oceanbase/07_hscale_in.yaml similarity index 80% rename from test/e2e/testdata/smoketest/oceanbase/07_hscale_down.yaml rename to test/e2e/testdata/smoketest/oceanbase/07_hscale_in.yaml index ad50ee949d7..9ecc1fd6ca5 100644 --- a/test/e2e/testdata/smoketest/oceanbase/07_hscale_down.yaml +++ b/test/e2e/testdata/smoketest/oceanbase/07_hscale_in.yaml @@ -1,7 +1,7 @@ apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: - generateName: oceanbase-cluster-hscale-down- + generateName: oceanbase-cluster-hscale-in- spec: clusterRef: oceanbase-cluster type: HorizontalScaling diff --git a/test/e2e/testdata/smoketest/official-postgresql/06_hscale_up.yaml b/test/e2e/testdata/smoketest/official-postgresql/06_hscale_out.yaml similarity index 82% rename from test/e2e/testdata/smoketest/official-postgresql/06_hscale_up.yaml rename to test/e2e/testdata/smoketest/official-postgresql/06_hscale_out.yaml index ea7b6a98d22..0063748b57a 100644 --- a/test/e2e/testdata/smoketest/official-postgresql/06_hscale_up.yaml +++ b/test/e2e/testdata/smoketest/official-postgresql/06_hscale_out.yaml @@ -1,7 +1,7 @@ apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: - generateName: official-pg-hscale-up- + generateName: official-pg-hscale-out- spec: clusterRef: official-pg type: HorizontalScaling diff --git a/test/e2e/testdata/smoketest/official-postgresql/07_hscale_down.yaml b/test/e2e/testdata/smoketest/official-postgresql/07_hscale_in.yaml similarity index 82% rename from test/e2e/testdata/smoketest/official-postgresql/07_hscale_down.yaml rename to test/e2e/testdata/smoketest/official-postgresql/07_hscale_in.yaml index 53d15ba74a9..ab7ba4f4341 100644 --- a/test/e2e/testdata/smoketest/official-postgresql/07_hscale_down.yaml +++ b/test/e2e/testdata/smoketest/official-postgresql/07_hscale_in.yaml @@ -1,7 +1,7 @@ apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: - generateName: official-pg-hscale-down- + generateName: official-pg-hscale-in- spec: clusterRef: official-pg type: HorizontalScaling diff --git a/test/e2e/testdata/smoketest/openldap/05_hscale_up.yaml b/test/e2e/testdata/smoketest/openldap/05_hscale_out.yaml similarity index 81% rename from test/e2e/testdata/smoketest/openldap/05_hscale_up.yaml rename to test/e2e/testdata/smoketest/openldap/05_hscale_out.yaml index 56d637c2993..f2ed7288719 100644 --- a/test/e2e/testdata/smoketest/openldap/05_hscale_up.yaml +++ b/test/e2e/testdata/smoketest/openldap/05_hscale_out.yaml @@ -1,7 +1,7 @@ apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: - generateName: openldap-cluster-hscale-up- + generateName: openldap-cluster-hscale-out- spec: clusterRef: openldap-cluster type: HorizontalScaling diff --git a/test/e2e/testdata/smoketest/openldap/06_hscale_down.yaml b/test/e2e/testdata/smoketest/openldap/06_hscale_in.yaml similarity index 81% rename from test/e2e/testdata/smoketest/openldap/06_hscale_down.yaml rename to test/e2e/testdata/smoketest/openldap/06_hscale_in.yaml index 87082b7829b..539e4fdb5af 100644 --- a/test/e2e/testdata/smoketest/openldap/06_hscale_down.yaml +++ b/test/e2e/testdata/smoketest/openldap/06_hscale_in.yaml @@ -1,7 +1,7 @@ apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: - generateName: openldap-cluster-hscale-down- + generateName: openldap-cluster-hscale-in- spec: clusterRef: openldap-cluster type: HorizontalScaling diff --git a/test/e2e/testdata/smoketest/oracle/06_hscale_up.yaml b/test/e2e/testdata/smoketest/oracle/06_hscale_out.yaml similarity index 82% rename from test/e2e/testdata/smoketest/oracle/06_hscale_up.yaml rename to test/e2e/testdata/smoketest/oracle/06_hscale_out.yaml index 60dac8237fb..3f88fddb390 100644 --- a/test/e2e/testdata/smoketest/oracle/06_hscale_up.yaml +++ b/test/e2e/testdata/smoketest/oracle/06_hscale_out.yaml @@ -1,7 +1,7 @@ apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: - generateName: oracle-cluster-hscale-up- + generateName: oracle-cluster-hscale-out- spec: clusterRef: oracle-cluster type: HorizontalScaling diff --git a/test/e2e/testdata/smoketest/oracle/07_hscale_down.yaml b/test/e2e/testdata/smoketest/oracle/07_hscale_in.yaml similarity index 81% rename from test/e2e/testdata/smoketest/oracle/07_hscale_down.yaml rename to test/e2e/testdata/smoketest/oracle/07_hscale_in.yaml index 57f2a1c8ffa..35f96d8cc69 100644 --- a/test/e2e/testdata/smoketest/oracle/07_hscale_down.yaml +++ b/test/e2e/testdata/smoketest/oracle/07_hscale_in.yaml @@ -1,7 +1,7 @@ apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: - generateName: oracle-cluster-hscale-down- + generateName: oracle-cluster-hscale-in- spec: clusterRef: oracle-cluster type: HorizontalScaling diff --git a/test/e2e/testdata/smoketest/orioledb/06_hscale_up.yaml b/test/e2e/testdata/smoketest/orioledb/06_hscale_out.yaml similarity index 81% rename from test/e2e/testdata/smoketest/orioledb/06_hscale_up.yaml rename to test/e2e/testdata/smoketest/orioledb/06_hscale_out.yaml index 52972bca93b..80a01d1ec46 100644 --- a/test/e2e/testdata/smoketest/orioledb/06_hscale_up.yaml +++ b/test/e2e/testdata/smoketest/orioledb/06_hscale_out.yaml @@ -1,7 +1,7 @@ apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: - generateName: orioledb-cluster-hscale-up- + generateName: orioledb-cluster-hscale-out- spec: clusterRef: orioledb-cluster type: HorizontalScaling diff --git a/test/e2e/testdata/smoketest/orioledb/07_hscale_down.yaml b/test/e2e/testdata/smoketest/orioledb/07_hscale_in.yaml similarity index 81% rename from test/e2e/testdata/smoketest/orioledb/07_hscale_down.yaml rename to test/e2e/testdata/smoketest/orioledb/07_hscale_in.yaml index 5e74ad073de..2edc2ae57de 100644 --- a/test/e2e/testdata/smoketest/orioledb/07_hscale_down.yaml +++ b/test/e2e/testdata/smoketest/orioledb/07_hscale_in.yaml @@ -1,7 +1,7 @@ apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: - generateName: orioledb-cluster-hscale-down- + generateName: orioledb-cluster-hscale-in- spec: clusterRef: orioledb-cluster type: HorizontalScaling diff --git a/test/e2e/testdata/smoketest/postgresql/05_hscale_up.yaml b/test/e2e/testdata/smoketest/postgresql/05_hscale_out.yaml similarity index 83% rename from test/e2e/testdata/smoketest/postgresql/05_hscale_up.yaml rename to test/e2e/testdata/smoketest/postgresql/05_hscale_out.yaml index c7b9e112dd7..89f431593ff 100644 --- a/test/e2e/testdata/smoketest/postgresql/05_hscale_up.yaml +++ b/test/e2e/testdata/smoketest/postgresql/05_hscale_out.yaml @@ -1,7 +1,7 @@ apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: - generateName: pg-cluster-hscale-up- + generateName: pg-cluster-hscale-out- spec: clusterRef: pg-cluster type: HorizontalScaling diff --git a/test/e2e/testdata/smoketest/postgresql/06_hscale_down.yaml b/test/e2e/testdata/smoketest/postgresql/06_hscale_in.yaml similarity index 82% rename from test/e2e/testdata/smoketest/postgresql/06_hscale_down.yaml rename to test/e2e/testdata/smoketest/postgresql/06_hscale_in.yaml index 9e891189f87..35685176ada 100644 --- a/test/e2e/testdata/smoketest/postgresql/06_hscale_down.yaml +++ b/test/e2e/testdata/smoketest/postgresql/06_hscale_in.yaml @@ -1,7 +1,7 @@ apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: - generateName: pg-cluster-hscale-down- + generateName: pg-cluster-hscale-in- spec: clusterRef: pg-cluster type: HorizontalScaling diff --git a/test/e2e/testdata/smoketest/postgresql/10_reconfigure.yaml b/test/e2e/testdata/smoketest/postgresql/10_reconfigure.yaml new file mode 100644 index 00000000000..e8290352de7 --- /dev/null +++ b/test/e2e/testdata/smoketest/postgresql/10_reconfigure.yaml @@ -0,0 +1,18 @@ +apiVersion: apps.kubeblocks.io/v1alpha1 +kind: OpsRequest +metadata: + generateName: pg-cluster-reconfiguring- +spec: + clusterRef: pg-cluster + reconfigure: + componentName: postgresql + configurations: + - keys: + - key: postgresql.conf + parameters: + - key: max_connections + value: "60" + - key: checkpoint_timeout + value: "20min" + name: postgresql-configuration + type: Reconfiguring \ No newline at end of file diff --git a/test/e2e/testdata/smoketest/postgresql/10_backup_snapshot.yaml b/test/e2e/testdata/smoketest/postgresql/11_backup_snapshot.yaml similarity index 100% rename from test/e2e/testdata/smoketest/postgresql/10_backup_snapshot.yaml rename to test/e2e/testdata/smoketest/postgresql/11_backup_snapshot.yaml diff --git a/test/e2e/testdata/smoketest/postgresql/11_backup_snapshot_restore.yaml b/test/e2e/testdata/smoketest/postgresql/12_backup_snapshot_restore.yaml similarity index 100% rename from test/e2e/testdata/smoketest/postgresql/11_backup_snapshot_restore.yaml rename to test/e2e/testdata/smoketest/postgresql/12_backup_snapshot_restore.yaml diff --git a/test/e2e/testdata/smoketest/pulsar/01_stop_bookies.yaml b/test/e2e/testdata/smoketest/pulsar/01_stop_bookies.yaml new file mode 100644 index 00000000000..e2f92fde160 --- /dev/null +++ b/test/e2e/testdata/smoketest/pulsar/01_stop_bookies.yaml @@ -0,0 +1,10 @@ +apiVersion: apps.kubeblocks.io/v1alpha1 +kind: OpsRequest +metadata: + generateName: pulsar-cluster-stop- +spec: + clusterRef: pulsar-cluster + ttlSecondsAfterSucceed: 3600 + type: Stop + restart: + - componentName: bookies \ No newline at end of file diff --git a/test/e2e/testdata/smoketest/pulsar/02_start_bookies.yaml b/test/e2e/testdata/smoketest/pulsar/02_start_bookies.yaml new file mode 100644 index 00000000000..c303b215291 --- /dev/null +++ b/test/e2e/testdata/smoketest/pulsar/02_start_bookies.yaml @@ -0,0 +1,10 @@ +apiVersion: apps.kubeblocks.io/v1alpha1 +kind: OpsRequest +metadata: + generateName: pulsar-cluster-start- +spec: + clusterRef: pulsar-cluster + ttlSecondsAfterSucceed: 3600 + type: Start + restart: + - componentName: bookies \ No newline at end of file diff --git a/test/e2e/testdata/smoketest/pulsar/01_restart_proxy.yaml b/test/e2e/testdata/smoketest/pulsar/03_restart_bookies.yaml similarity index 67% rename from test/e2e/testdata/smoketest/pulsar/01_restart_proxy.yaml rename to test/e2e/testdata/smoketest/pulsar/03_restart_bookies.yaml index f5336ca31a2..7629b130ffb 100644 --- a/test/e2e/testdata/smoketest/pulsar/01_restart_proxy.yaml +++ b/test/e2e/testdata/smoketest/pulsar/03_restart_bookies.yaml @@ -1,10 +1,10 @@ apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: - generateName: pulsar-cluster-restart-proxy- + generateName: pulsar-cluster-restart-bookies- spec: clusterRef: pulsar-cluster ttlSecondsAfterSucceed: 3600 type: Restart restart: - - componentName: proxy \ No newline at end of file + - componentName: bookies \ No newline at end of file diff --git a/test/e2e/testdata/smoketest/pulsar/02_restart_broker.yaml b/test/e2e/testdata/smoketest/pulsar/04_restart_broker.yaml similarity index 88% rename from test/e2e/testdata/smoketest/pulsar/02_restart_broker.yaml rename to test/e2e/testdata/smoketest/pulsar/04_restart_broker.yaml index 5206efdeca0..7dd132285ae 100644 --- a/test/e2e/testdata/smoketest/pulsar/02_restart_broker.yaml +++ b/test/e2e/testdata/smoketest/pulsar/04_restart_broker.yaml @@ -1,5 +1,3 @@ -03_restart_zookeeper: - yaml: apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: diff --git a/test/e2e/testdata/smoketest/pulsar/05_stop_broker.yaml b/test/e2e/testdata/smoketest/pulsar/05_stop_broker.yaml new file mode 100644 index 00000000000..debe7450bf6 --- /dev/null +++ b/test/e2e/testdata/smoketest/pulsar/05_stop_broker.yaml @@ -0,0 +1,10 @@ +apiVersion: apps.kubeblocks.io/v1alpha1 +kind: OpsRequest +metadata: + generateName: pulsar-cluster-stop- +spec: + clusterRef: pulsar-cluster + ttlSecondsAfterSucceed: 3600 + type: Stop + restart: + - componentName: broker \ No newline at end of file diff --git a/test/e2e/testdata/smoketest/pulsar/06_start_broker.yaml b/test/e2e/testdata/smoketest/pulsar/06_start_broker.yaml new file mode 100644 index 00000000000..a620097983e --- /dev/null +++ b/test/e2e/testdata/smoketest/pulsar/06_start_broker.yaml @@ -0,0 +1,10 @@ +apiVersion: apps.kubeblocks.io/v1alpha1 +kind: OpsRequest +metadata: + generateName: pulsar-cluster-start- +spec: + clusterRef: pulsar-cluster + ttlSecondsAfterSucceed: 3600 + type: Start + restart: + - componentName: broker \ No newline at end of file diff --git a/test/e2e/testdata/smoketest/pulsar/03_restart_zookeeper.yaml b/test/e2e/testdata/smoketest/pulsar/07_restart_zookeeper.yaml similarity index 100% rename from test/e2e/testdata/smoketest/pulsar/03_restart_zookeeper.yaml rename to test/e2e/testdata/smoketest/pulsar/07_restart_zookeeper.yaml diff --git a/test/e2e/testdata/smoketest/pulsar/08_stop_zookeeper.yaml b/test/e2e/testdata/smoketest/pulsar/08_stop_zookeeper.yaml new file mode 100644 index 00000000000..519a2082827 --- /dev/null +++ b/test/e2e/testdata/smoketest/pulsar/08_stop_zookeeper.yaml @@ -0,0 +1,10 @@ +apiVersion: apps.kubeblocks.io/v1alpha1 +kind: OpsRequest +metadata: + generateName: pulsar-cluster-stop- +spec: + clusterRef: pulsar-cluster + ttlSecondsAfterSucceed: 3600 + type: Stop + restart: + - componentName: zookeeper \ No newline at end of file diff --git a/test/e2e/testdata/smoketest/pulsar/09_start_zookeeper.yaml b/test/e2e/testdata/smoketest/pulsar/09_start_zookeeper.yaml new file mode 100644 index 00000000000..3717825895f --- /dev/null +++ b/test/e2e/testdata/smoketest/pulsar/09_start_zookeeper.yaml @@ -0,0 +1,10 @@ +apiVersion: apps.kubeblocks.io/v1alpha1 +kind: OpsRequest +metadata: + generateName: pulsar-cluster-start- +spec: + clusterRef: pulsar-cluster + ttlSecondsAfterSucceed: 3600 + type: Start + restart: + - componentName: zookeeper \ No newline at end of file diff --git a/test/e2e/testdata/smoketest/pulsar/04_hscale_up.yaml b/test/e2e/testdata/smoketest/pulsar/10_hscale_out.yaml similarity index 83% rename from test/e2e/testdata/smoketest/pulsar/04_hscale_up.yaml rename to test/e2e/testdata/smoketest/pulsar/10_hscale_out.yaml index da6fa8ed330..517542441c4 100644 --- a/test/e2e/testdata/smoketest/pulsar/04_hscale_up.yaml +++ b/test/e2e/testdata/smoketest/pulsar/10_hscale_out.yaml @@ -1,7 +1,7 @@ apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: - generateName: pulsar-horizontalscaling-up- + generateName: pulsar-horizontalscaling-out- spec: clusterRef: pulsar-cluster type: HorizontalScaling diff --git a/test/e2e/testdata/smoketest/pulsar/05_hscale_down.yaml b/test/e2e/testdata/smoketest/pulsar/11_hscale_in.yaml similarity index 83% rename from test/e2e/testdata/smoketest/pulsar/05_hscale_down.yaml rename to test/e2e/testdata/smoketest/pulsar/11_hscale_in.yaml index 71174f22f77..b60e4332c87 100644 --- a/test/e2e/testdata/smoketest/pulsar/05_hscale_down.yaml +++ b/test/e2e/testdata/smoketest/pulsar/11_hscale_in.yaml @@ -1,7 +1,7 @@ apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: - generateName: pulsar-horizontalscaling-down- + generateName: pulsar-horizontalscaling-in- spec: clusterRef: pulsar-cluster type: HorizontalScaling diff --git a/test/e2e/testdata/smoketest/pulsar/07_volume_expand.yaml b/test/e2e/testdata/smoketest/pulsar/12_volume_expand.yaml similarity index 100% rename from test/e2e/testdata/smoketest/pulsar/07_volume_expand.yaml rename to test/e2e/testdata/smoketest/pulsar/12_volume_expand.yaml diff --git a/test/e2e/testdata/smoketest/pulsar/08_reconfigure.yaml b/test/e2e/testdata/smoketest/pulsar/13_reconfigure.yaml similarity index 76% rename from test/e2e/testdata/smoketest/pulsar/08_reconfigure.yaml rename to test/e2e/testdata/smoketest/pulsar/13_reconfigure.yaml index fc54c556c13..33345815628 100644 --- a/test/e2e/testdata/smoketest/pulsar/08_reconfigure.yaml +++ b/test/e2e/testdata/smoketest/pulsar/13_reconfigure.yaml @@ -5,12 +5,12 @@ metadata: spec: clusterRef: pulsar-cluster reconfigure: - componentName: mysql + componentName: broker configurations: - keys: - - key: bookkeeper.conf + - key: broker.conf parameters: - key: lostBookieRecoveryDelay value: "1000" - name: mysql-consensusset-config + name: broker-config type: Reconfiguring \ No newline at end of file diff --git a/test/e2e/testdata/smoketest/pulsar/14_vscale_broker_out.yaml b/test/e2e/testdata/smoketest/pulsar/14_vscale_broker_out.yaml new file mode 100644 index 00000000000..584e77a3f80 --- /dev/null +++ b/test/e2e/testdata/smoketest/pulsar/14_vscale_broker_out.yaml @@ -0,0 +1,12 @@ +apiVersion: apps.kubeblocks.io/v1alpha1 +kind: OpsRequest +metadata: + generateName: pulsar-cluster-vscale-out- +spec: + clusterRef: pulsar-cluster + type: VerticalScaling + verticalScaling: + - componentName: broker + requests: + memory: "1Gi" + cpu: 1 \ No newline at end of file diff --git a/test/e2e/testdata/smoketest/pulsar/15_vscale_broker_in.yaml b/test/e2e/testdata/smoketest/pulsar/15_vscale_broker_in.yaml new file mode 100644 index 00000000000..f33e98d41b3 --- /dev/null +++ b/test/e2e/testdata/smoketest/pulsar/15_vscale_broker_in.yaml @@ -0,0 +1,12 @@ +apiVersion: apps.kubeblocks.io/v1alpha1 +kind: OpsRequest +metadata: + generateName: pulsar-cluster-vscale-in- +spec: + clusterRef: pulsar-cluster + type: VerticalScaling + verticalScaling: + - componentName: broker + requests: + memory: "512Mi" + cpu: 300m \ No newline at end of file diff --git a/test/e2e/testdata/smoketest/pulsar/06_vscale.yaml b/test/e2e/testdata/smoketest/pulsar/16_vscale_bookies_out.yaml similarity index 50% rename from test/e2e/testdata/smoketest/pulsar/06_vscale.yaml rename to test/e2e/testdata/smoketest/pulsar/16_vscale_bookies_out.yaml index a160cba203f..f8395f038f8 100644 --- a/test/e2e/testdata/smoketest/pulsar/06_vscale.yaml +++ b/test/e2e/testdata/smoketest/pulsar/16_vscale_bookies_out.yaml @@ -1,22 +1,12 @@ apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: - generateName: pulsar-cluster-vscale- + generateName: pulsar-cluster-vscale-out- spec: clusterRef: pulsar-cluster type: VerticalScaling verticalScaling: - - componentName: broker - requests: - memory: "1Gi" - cpu: 1 - limits: - memory: "1Gi" - cpu: 1 - componentName: bookies requests: - memory: "1Gi" - cpu: 1 - limits: memory: "1Gi" cpu: 1 \ No newline at end of file diff --git a/test/e2e/testdata/smoketest/pulsar/17_vscale_bookies_in.yaml b/test/e2e/testdata/smoketest/pulsar/17_vscale_bookies_in.yaml new file mode 100644 index 00000000000..1c2deef9903 --- /dev/null +++ b/test/e2e/testdata/smoketest/pulsar/17_vscale_bookies_in.yaml @@ -0,0 +1,12 @@ +apiVersion: apps.kubeblocks.io/v1alpha1 +kind: OpsRequest +metadata: + generateName: pulsar-cluster-vscale-in- +spec: + clusterRef: pulsar-cluster + type: VerticalScaling + verticalScaling: + - componentName: bookies + requests: + memory: "512Mi" + cpu: 300m \ No newline at end of file diff --git a/test/e2e/testdata/smoketest/redis/02_hscale_up.yaml b/test/e2e/testdata/smoketest/redis/02_hscale_out.yaml similarity index 82% rename from test/e2e/testdata/smoketest/redis/02_hscale_up.yaml rename to test/e2e/testdata/smoketest/redis/02_hscale_out.yaml index 687c1ae22e3..f06350f63ad 100644 --- a/test/e2e/testdata/smoketest/redis/02_hscale_up.yaml +++ b/test/e2e/testdata/smoketest/redis/02_hscale_out.yaml @@ -1,7 +1,7 @@ apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: - generateName: redis-cluster-hscale-up- + generateName: redis-cluster-hscale-out- spec: clusterRef: redis-cluster type: HorizontalScaling diff --git a/test/e2e/testdata/smoketest/redis/03_hscale_down.yaml b/test/e2e/testdata/smoketest/redis/03_hscale_in.yaml similarity index 81% rename from test/e2e/testdata/smoketest/redis/03_hscale_down.yaml rename to test/e2e/testdata/smoketest/redis/03_hscale_in.yaml index 512a0984356..84e5ed7425b 100644 --- a/test/e2e/testdata/smoketest/redis/03_hscale_down.yaml +++ b/test/e2e/testdata/smoketest/redis/03_hscale_in.yaml @@ -1,7 +1,7 @@ apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: - generateName: redis-cluster-hscale-down- + generateName: redis-cluster-hscale-in- spec: clusterRef: redis-cluster type: HorizontalScaling diff --git a/test/e2e/testdata/smoketest/redis/08_cv.yaml b/test/e2e/testdata/smoketest/redis/08_cv.yaml deleted file mode 100644 index a68147056db..00000000000 --- a/test/e2e/testdata/smoketest/redis/08_cv.yaml +++ /dev/null @@ -1,26 +0,0 @@ -apiVersion: apps.kubeblocks.io/v1alpha1 -kind: ClusterVersion -metadata: - name: redis-7.0.6-latest -spec: - clusterDefinitionRef: redis - componentVersions: - - componentDefRef: redis - versionsContext: - containers: - - image: redis/redis-stack-server:7.0.6-RC8 - imagePullPolicy: IfNotPresent - name: redis - systemAccountSpec: - cmdExecutorConfig: - image: registry.cn-hangzhou.aliyuncs.com/apecloud/redis-stack-server:7.0.6-RC8 - - componentDefRef: redis-sentinel - versionsContext: - containers: - - image: redis/redis-stack-server:7.0.6-RC8 - imagePullPolicy: IfNotPresent - name: redis-sentinel - initContainers: - - image: redis/redis-stack-server:7.0.6-RC8 - imagePullPolicy: IfNotPresent - name: init-redis-sentinel \ No newline at end of file diff --git a/test/e2e/testdata/smoketest/redis/08_reconfigure.yaml b/test/e2e/testdata/smoketest/redis/08_reconfigure.yaml new file mode 100644 index 00000000000..2a954279ec3 --- /dev/null +++ b/test/e2e/testdata/smoketest/redis/08_reconfigure.yaml @@ -0,0 +1,18 @@ +apiVersion: apps.kubeblocks.io/v1alpha1 +kind: OpsRequest +metadata: + generateName: redis-cluster-reconfiguring- +spec: + clusterRef: redis-cluster + reconfigure: + componentName: redis + configurations: + - keys: + - key: redis.conf + parameters: + - key: maxmemory + value: "636870912" + - key: maxmemory-policy + value: "20min" + name: redis-replication-config + type: Reconfiguring \ No newline at end of file diff --git a/test/e2e/testdata/smoketest/redis/10_backup_snapshot.yaml b/test/e2e/testdata/smoketest/redis/09_backup_snapshot.yaml similarity index 100% rename from test/e2e/testdata/smoketest/redis/10_backup_snapshot.yaml rename to test/e2e/testdata/smoketest/redis/09_backup_snapshot.yaml diff --git a/test/e2e/testdata/smoketest/redis/09_upgrade.yaml b/test/e2e/testdata/smoketest/redis/09_upgrade.yaml deleted file mode 100644 index 07030813d99..00000000000 --- a/test/e2e/testdata/smoketest/redis/09_upgrade.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: apps.kubeblocks.io/v1alpha1 -kind: OpsRequest -metadata: - generateName: redis-cluster-upgrade- -spec: - clusterRef: redis-cluster - type: Upgrade - upgrade: - clusterVersionRef: redis-7.0.6-latest \ No newline at end of file diff --git a/test/e2e/testdata/smoketest/redis/11_backup_snapshot_restore.yaml b/test/e2e/testdata/smoketest/redis/10_backup_snapshot_restore.yaml similarity index 100% rename from test/e2e/testdata/smoketest/redis/11_backup_snapshot_restore.yaml rename to test/e2e/testdata/smoketest/redis/10_backup_snapshot_restore.yaml diff --git a/test/e2e/testdata/smoketest/risingwave/05_hscale_up.yaml b/test/e2e/testdata/smoketest/risingwave/05_hscale_out.yaml similarity index 89% rename from test/e2e/testdata/smoketest/risingwave/05_hscale_up.yaml rename to test/e2e/testdata/smoketest/risingwave/05_hscale_out.yaml index aec4954cf52..a30d40ed543 100644 --- a/test/e2e/testdata/smoketest/risingwave/05_hscale_up.yaml +++ b/test/e2e/testdata/smoketest/risingwave/05_hscale_out.yaml @@ -1,7 +1,7 @@ apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: - generateName: risingwave-cluster-hscale-up- + generateName: risingwave-cluster-hscale-out- spec: clusterRef: risingwave-cluster type: HorizontalScaling diff --git a/test/e2e/testdata/smoketest/risingwave/06_hscale_down.yaml b/test/e2e/testdata/smoketest/risingwave/06_hscale_in.yaml similarity index 89% rename from test/e2e/testdata/smoketest/risingwave/06_hscale_down.yaml rename to test/e2e/testdata/smoketest/risingwave/06_hscale_in.yaml index 4ce881f1761..222f5dd4898 100644 --- a/test/e2e/testdata/smoketest/risingwave/06_hscale_down.yaml +++ b/test/e2e/testdata/smoketest/risingwave/06_hscale_in.yaml @@ -1,7 +1,7 @@ apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: - generateName: risingwave-cluster-hscale-down- + generateName: risingwave-cluster-hscale-in- spec: clusterRef: risingwave-cluster type: HorizontalScaling diff --git a/test/e2e/testdata/smoketest/starrocks/06_hscale_up.yaml b/test/e2e/testdata/smoketest/starrocks/06_hscale_out.yaml similarity index 80% rename from test/e2e/testdata/smoketest/starrocks/06_hscale_up.yaml rename to test/e2e/testdata/smoketest/starrocks/06_hscale_out.yaml index 0e3a4b73666..b5c71e91c96 100644 --- a/test/e2e/testdata/smoketest/starrocks/06_hscale_up.yaml +++ b/test/e2e/testdata/smoketest/starrocks/06_hscale_out.yaml @@ -1,7 +1,7 @@ apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: - generateName: starrocks-cluster-hscale-up- + generateName: starrocks-cluster-hscale-out- spec: clusterRef: starrocks-cluster type: HorizontalScaling diff --git a/test/e2e/testdata/smoketest/starrocks/07_hscale_down.yaml b/test/e2e/testdata/smoketest/starrocks/07_hscale_in.yaml similarity index 80% rename from test/e2e/testdata/smoketest/starrocks/07_hscale_down.yaml rename to test/e2e/testdata/smoketest/starrocks/07_hscale_in.yaml index e38457dff59..9e0387e7c0e 100644 --- a/test/e2e/testdata/smoketest/starrocks/07_hscale_down.yaml +++ b/test/e2e/testdata/smoketest/starrocks/07_hscale_in.yaml @@ -1,7 +1,7 @@ apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: - generateName: starrocks-cluster-hscale-down- + generateName: starrocks-cluster-hscale-in- spec: clusterRef: starrocks-cluster type: HorizontalScaling diff --git a/test/e2e/testdata/smoketest/weaviate/00_weaviatecluster.yaml b/test/e2e/testdata/smoketest/weaviate/00_weaviatecluster.yaml new file mode 100644 index 00000000000..b573739d56a --- /dev/null +++ b/test/e2e/testdata/smoketest/weaviate/00_weaviatecluster.yaml @@ -0,0 +1,31 @@ +--- +# Source: weaviate-cluster/templates/cluster.yaml +apiVersion: apps.kubeblocks.io/v1alpha1 +kind: Cluster +metadata: + name: weaviate-cluster + labels: + helm.sh/chart: weaviate-cluster-0.7.0-alpha.0 + app.kubernetes.io/name: weaviate-cluster + app.kubernetes.io/instance: weaviate-cluster + app.kubernetes.io/version: "1.18.0" + app.kubernetes.io/managed-by: Helm +spec: + clusterDefinitionRef: weaviate # ref clusterdefinition.name + clusterVersionRef: weaviate-1.18.0 # ref clusterversion.name + terminationPolicy: Delete + affinity: + componentSpecs: + - name: weaviate # user-defined + componentDefRef: weaviate # ref clusterdefinition components.name + monitor: false + replicas: 1 + volumeClaimTemplates: + - name: data # ref clusterdefinition components.containers.volumeMounts.name + spec: + storageClassName: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 10Gi diff --git a/test/e2e/testdata/smoketest/weaviate/01_vscale.yaml b/test/e2e/testdata/smoketest/weaviate/01_vscale.yaml new file mode 100644 index 00000000000..8ebaa789e1f --- /dev/null +++ b/test/e2e/testdata/smoketest/weaviate/01_vscale.yaml @@ -0,0 +1,12 @@ +apiVersion: apps.kubeblocks.io/v1alpha1 +kind: OpsRequest +metadata: + generateName: weaviate-cluster-vscale- +spec: + clusterRef: weaviate-cluster + type: VerticalScaling + verticalScaling: + - componentName: weaviate + requests: + cpu: "500m" + memory: 500Mi \ No newline at end of file diff --git a/test/e2e/testdata/smoketest/weaviate/02_hscale_out.yaml b/test/e2e/testdata/smoketest/weaviate/02_hscale_out.yaml new file mode 100644 index 00000000000..56eb606dd6d --- /dev/null +++ b/test/e2e/testdata/smoketest/weaviate/02_hscale_out.yaml @@ -0,0 +1,10 @@ +apiVersion: apps.kubeblocks.io/v1alpha1 +kind: OpsRequest +metadata: + generateName: weaviate-cluster-hscale-out- +spec: + clusterRef: weaviate-cluster + type: HorizontalScaling + horizontalScaling: + - componentName: weaviate + replicas: 3 \ No newline at end of file diff --git a/test/e2e/testdata/smoketest/weaviate/03_stop.yaml b/test/e2e/testdata/smoketest/weaviate/03_stop.yaml new file mode 100644 index 00000000000..a89faac13de --- /dev/null +++ b/test/e2e/testdata/smoketest/weaviate/03_stop.yaml @@ -0,0 +1,10 @@ +apiVersion: apps.kubeblocks.io/v1alpha1 +kind: OpsRequest +metadata: + generateName: weaviate-cluster-stop- +spec: + clusterRef: weaviate-cluster + ttlSecondsAfterSucceed: 27017 + type: Stop + restart: + - componentName: weaviate \ No newline at end of file diff --git a/test/e2e/testdata/smoketest/weaviate/04_start.yaml b/test/e2e/testdata/smoketest/weaviate/04_start.yaml new file mode 100644 index 00000000000..a01d0276ab8 --- /dev/null +++ b/test/e2e/testdata/smoketest/weaviate/04_start.yaml @@ -0,0 +1,10 @@ +apiVersion: apps.kubeblocks.io/v1alpha1 +kind: OpsRequest +metadata: + generateName: weaviate-cluster-start- +spec: + clusterRef: weaviate-cluster + ttlSecondsAfterSucceed: 27017 + type: Start + restart: + - componentName: weaviate \ No newline at end of file diff --git a/test/e2e/testdata/smoketest/weaviate/05_restart.yaml b/test/e2e/testdata/smoketest/weaviate/05_restart.yaml new file mode 100644 index 00000000000..cebf63ea030 --- /dev/null +++ b/test/e2e/testdata/smoketest/weaviate/05_restart.yaml @@ -0,0 +1,10 @@ +apiVersion: apps.kubeblocks.io/v1alpha1 +kind: OpsRequest +metadata: + generateName: weaviate-cluster-restart- +spec: + clusterRef: weaviate-cluster + ttlSecondsAfterSucceed: 27017 + type: Restart + restart: + - componentName: weaviate \ No newline at end of file diff --git a/test/e2e/testdata/smoketest/weaviate/06_reconfigure.yaml b/test/e2e/testdata/smoketest/weaviate/06_reconfigure.yaml new file mode 100644 index 00000000000..e6aed6f80f2 --- /dev/null +++ b/test/e2e/testdata/smoketest/weaviate/06_reconfigure.yaml @@ -0,0 +1,16 @@ +apiVersion: apps.kubeblocks.io/v1alpha1 +kind: OpsRequest +metadata: + generateName: weaviate-cluster-reconfiguring- +spec: + clusterRef: weaviate-cluster + reconfigure: + componentName: weaviate + configurations: + - keys: + - key: envs + parameters: + - key: AUTHENTICATION_APIKEY_ENABLED + value: "false" + name: weaviate-env-template + type: Reconfiguring \ No newline at end of file diff --git a/test/e2e/testdata/smoketest/wesql/04_hscale_up.yaml b/test/e2e/testdata/smoketest/wesql/04_hscale_out.yaml similarity index 82% rename from test/e2e/testdata/smoketest/wesql/04_hscale_up.yaml rename to test/e2e/testdata/smoketest/wesql/04_hscale_out.yaml index 02d16789d0c..b6e628ee7be 100644 --- a/test/e2e/testdata/smoketest/wesql/04_hscale_up.yaml +++ b/test/e2e/testdata/smoketest/wesql/04_hscale_out.yaml @@ -1,7 +1,7 @@ apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: - generateName: mysql-cluster-hscale-up- + generateName: mysql-cluster-hscale-out- spec: clusterRef: mysql-cluster type: HorizontalScaling diff --git a/test/e2e/testdata/smoketest/wesql/05_hscale_down.yaml b/test/e2e/testdata/smoketest/wesql/05_hscale_in.yaml similarity index 81% rename from test/e2e/testdata/smoketest/wesql/05_hscale_down.yaml rename to test/e2e/testdata/smoketest/wesql/05_hscale_in.yaml index 7df3d5c20c4..08647fd9d1f 100644 --- a/test/e2e/testdata/smoketest/wesql/05_hscale_down.yaml +++ b/test/e2e/testdata/smoketest/wesql/05_hscale_in.yaml @@ -1,7 +1,7 @@ apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: - generateName: mysql-cluster-hscale-down- + generateName: mysql-cluster-hscale-in- spec: clusterRef: mysql-cluster type: HorizontalScaling diff --git a/test/e2e/testdata/smoketest/wesql/06_vexpand.yaml b/test/e2e/testdata/smoketest/wesql/06_vexpand.yaml index 6e550f6fc57..9fb238aab5c 100644 --- a/test/e2e/testdata/smoketest/wesql/06_vexpand.yaml +++ b/test/e2e/testdata/smoketest/wesql/06_vexpand.yaml @@ -9,4 +9,4 @@ spec: - componentName: mysql volumeClaimTemplates: - name: data - storage: "20Gi" \ No newline at end of file + storage: "21Gi" \ No newline at end of file diff --git a/test/e2e/testdata/smoketest/wesql/07_cv.yaml b/test/e2e/testdata/smoketest/wesql/07_cv.yaml deleted file mode 100644 index 9797c1eaa46..00000000000 --- a/test/e2e/testdata/smoketest/wesql/07_cv.yaml +++ /dev/null @@ -1,43 +0,0 @@ -apiVersion: apps.kubeblocks.io/v1alpha1 -kind: ClusterVersion -metadata: - name: ac-mysql-8.0.30-latest -spec: - clusterDefinitionRef: apecloud-mysql - componentVersions: - - componentDefRef: mysql - versionsContext: - containers: - - name: mysql - image: docker.io/apecloud/apecloud-mysql-server:latest # updated - imagePullPolicy: IfNotPresent - - name: vttablet - image: registry.cn-hangzhou.aliyuncs.com/apecloud/apecloud-mysql-scale:0.1.1 - imagePullPolicy: IfNotPresent - - name: metrics - image: registry.cn-hangzhou.aliyuncs.com/apecloud/agamotto:0.1.2-beta.1 - imagePullPolicy: "IfNotPresent" - systemAccountSpec: - cmdExecutorConfig: - image: registry.cn-hangzhou.aliyuncs.com/apecloud/apecloud-mysql-server:8.0.30-5.beta1.20230802.g5b589f1.12 - switchoverSpec: - cmdExecutorConfig: - image: registry.cn-hangzhou.aliyuncs.com/apecloud/apecloud-mysql-server:8.0.30-5.beta1.20230802.g5b589f1.12 - - componentDefRef: vtcontroller - versionsContext: - containers: - - name: etcd - image: registry.cn-hangzhou.aliyuncs.com/apecloud/apecloud-mysql-scale:0.1.1 - imagePullPolicy: IfNotPresent - - name: vtctld - image: registry.cn-hangzhou.aliyuncs.com/apecloud/apecloud-mysql-scale:0.1.1 - imagePullPolicy: IfNotPresent - - name: vtconsensus - image: registry.cn-hangzhou.aliyuncs.com/apecloud/apecloud-mysql-scale:0.1.1 - imagePullPolicy: IfNotPresent - - componentDefRef: vtgate - versionsContext: - containers: - - name: vtgate - image: registry.cn-hangzhou.aliyuncs.com/apecloud/apecloud-mysql-scale:0.1.1 - imagePullPolicy: IfNotPresent \ No newline at end of file diff --git a/test/e2e/testdata/smoketest/wesql/09_stop.yaml b/test/e2e/testdata/smoketest/wesql/07_stop.yaml similarity index 100% rename from test/e2e/testdata/smoketest/wesql/09_stop.yaml rename to test/e2e/testdata/smoketest/wesql/07_stop.yaml diff --git a/test/e2e/testdata/smoketest/wesql/10_start.yaml b/test/e2e/testdata/smoketest/wesql/08_start.yaml similarity index 100% rename from test/e2e/testdata/smoketest/wesql/10_start.yaml rename to test/e2e/testdata/smoketest/wesql/08_start.yaml diff --git a/test/e2e/testdata/smoketest/wesql/08_upgrade.yaml b/test/e2e/testdata/smoketest/wesql/08_upgrade.yaml deleted file mode 100644 index 3222151bb38..00000000000 --- a/test/e2e/testdata/smoketest/wesql/08_upgrade.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: apps.kubeblocks.io/v1alpha1 -kind: OpsRequest -metadata: - generateName: mysql-cluster-upgrade- -spec: - clusterRef: mysql-cluster - type: Upgrade - upgrade: - clusterVersionRef: ac-mysql-8.0.30-latest \ No newline at end of file diff --git a/test/e2e/testdata/smoketest/wesql/11_restart.yaml b/test/e2e/testdata/smoketest/wesql/09_restart.yaml similarity index 100% rename from test/e2e/testdata/smoketest/wesql/11_restart.yaml rename to test/e2e/testdata/smoketest/wesql/09_restart.yaml diff --git a/test/e2e/testdata/smoketest/wesql/12_reconfigure.yaml b/test/e2e/testdata/smoketest/wesql/10_reconfigure.yaml similarity index 100% rename from test/e2e/testdata/smoketest/wesql/12_reconfigure.yaml rename to test/e2e/testdata/smoketest/wesql/10_reconfigure.yaml diff --git a/test/e2e/testdata/smoketest/wesql/13_backup_snapshot.yaml b/test/e2e/testdata/smoketest/wesql/11_backup_snapshot.yaml similarity index 100% rename from test/e2e/testdata/smoketest/wesql/13_backup_snapshot.yaml rename to test/e2e/testdata/smoketest/wesql/11_backup_snapshot.yaml diff --git a/test/e2e/testdata/smoketest/wesql/14_backup_snapshot_restore.yaml b/test/e2e/testdata/smoketest/wesql/12_backup_snapshot_restore.yaml similarity index 100% rename from test/e2e/testdata/smoketest/wesql/14_backup_snapshot_restore.yaml rename to test/e2e/testdata/smoketest/wesql/12_backup_snapshot_restore.yaml