From 0deb4b069637eb4436a000f801bf568616012f0c Mon Sep 17 00:00:00 2001 From: Nir Soffer Date: Mon, 27 Nov 2023 04:31:29 +0200 Subject: [PATCH] Add test configurations Add tests configuration for the current subscriptions in ocm-ramen-samples. We will add more configurations when new subscriptions are added. To run test using a custom configuration use: basic-test/run \ --config configs/deployment-k8s-regional-rbd \ env.yaml The default config.yaml is a symlink to the new configuration to keep developers flows working. Developers can create their own test configuration without modifying the source: cp configs/deployment-k8s-regional-rbd.yaml ~/test/myconfig.yaml # edit myconfig.yaml... basic-test/run -c ~/test/myconfig.yaml envs/regional-dr.yaml Signed-off-by: Nir Soffer --- test/basic-test/config.yaml | 12 +----------- test/configs/deployment-k8s-regional-rbd.yaml | 11 +++++++++++ 2 files changed, 12 insertions(+), 11 deletions(-) mode change 100644 => 120000 test/basic-test/config.yaml create mode 100644 test/configs/deployment-k8s-regional-rbd.yaml diff --git a/test/basic-test/config.yaml b/test/basic-test/config.yaml deleted file mode 100644 index 7937d4d03..000000000 --- a/test/basic-test/config.yaml +++ /dev/null @@ -1,11 +0,0 @@ -# SPDX-FileCopyrightText: The RamenDR authors -# SPDX-License-Identifier: Apache-2.0 - ---- -repo: https://github.com/ramendr/ocm-ramen-samples.git -path: subscription -branch: main -name: busybox-sample -namespace: busybox-sample -dr_policy: dr-policy -pvc_label: busybox diff --git a/test/basic-test/config.yaml b/test/basic-test/config.yaml new file mode 120000 index 000000000..c413e585e --- /dev/null +++ b/test/basic-test/config.yaml @@ -0,0 +1 @@ +../configs/deployment-k8s-regional-rbd.yaml \ No newline at end of file diff --git a/test/configs/deployment-k8s-regional-rbd.yaml b/test/configs/deployment-k8s-regional-rbd.yaml new file mode 100644 index 000000000..1f1aaa5ef --- /dev/null +++ b/test/configs/deployment-k8s-regional-rbd.yaml @@ -0,0 +1,11 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + +--- +repo: https://github.com/ramendr/ocm-ramen-samples.git +path: subscription/deployment-k8s-regional-rbd +branch: main +name: deployment-rbd +namespace: deployment-rbd +dr_policy: dr-policy +pvc_label: busybox