Skip to content

Commit a60c034

Browse files
committed
Add symlink coverage to existing rclone e2e tests
Signed-off-by: Ismail Ibrahim Quwarah <iquwarah@redhat.com>
1 parent aacc6ec commit a60c034

6 files changed

Lines changed: 14 additions & 221 deletions

File tree

custom-scorecard-tests/config-downstream.yaml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,6 @@ stages:
5555
storage:
5656
spec:
5757
mountPath: {}
58-
- entrypoint:
59-
- volsync-custom-scorecard-tests
60-
- test_rclone_priv_with_symlinks.yml
61-
image: quay.io/backube/volsync-custom-scorecard-tests:latest
62-
labels:
63-
suite: volsync-e2e
64-
test: test_rclone_priv_with_symlinks.yml
65-
storage:
66-
spec:
67-
mountPath: {}
6858
- entrypoint:
6959
- volsync-custom-scorecard-tests
7060
- test_rclone_with_customca_configmap.yml

custom-scorecard-tests/config.yaml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,6 @@ stages:
5555
storage:
5656
spec:
5757
mountPath: {}
58-
- entrypoint:
59-
- volsync-custom-scorecard-tests
60-
- test_rclone_priv_with_symlinks.yml
61-
image: quay.io/backube/volsync-custom-scorecard-tests:latest
62-
labels:
63-
suite: volsync-e2e
64-
test: test_rclone_priv_with_symlinks.yml
65-
storage:
66-
spec:
67-
mountPath: {}
6858
- entrypoint:
6959
- volsync-custom-scorecard-tests
7060
- test_rclone_with_customca_configmap.yml

custom-scorecard-tests/scorecard/bases/patches/e2e-tests-stage1.yaml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,6 @@
4141
storage:
4242
spec:
4343
mountPath: {}
44-
- entrypoint:
45-
- volsync-custom-scorecard-tests
46-
- test_rclone_priv_with_symlinks.yml
47-
image: quay.io/backube/volsync-custom-scorecard-tests:latest
48-
labels:
49-
suite: volsync-e2e
50-
test: test_rclone_priv_with_symlinks.yml
51-
storage:
52-
spec:
53-
mountPath: {}
5444
- entrypoint:
5545
- volsync-custom-scorecard-tests
5646
- test_rclone_with_customca_configmap.yml

test-e2e/test_rclone_normal.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,18 @@
4747
requests:
4848
storage: 1Gi
4949

50-
- name: Write data into the source PVC
50+
- name: Write data and symlinks into the source PVC
5151
include_role:
5252
name: write_to_pvc
5353
vars:
5454
data: 'data'
5555
path: '/datafile'
5656
pvc_name: 'data-source'
57+
symlinks:
58+
- path: '/mysql.sock'
59+
target: '/var/run/mysqld/mysqld.sock'
60+
- path: '/link-relative'
61+
target: 'datafile'
5762

5863
- name: Sync data from source volume (w/ mSC)
5964
kubernetes.core.k8s:
@@ -242,3 +247,4 @@
242247
pvc1_name: data-source
243248
pvc2_name: data-dest
244249
timeout: 900
250+
skip_symlink_check: true

test-e2e/test_rclone_priv.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,18 @@
5050
requests:
5151
storage: 1Gi
5252

53-
- name: Write data into the source PVC
53+
- name: Write data and symlinks into the source PVC
5454
include_role:
5555
name: write_to_pvc
5656
vars:
5757
data: 'data'
5858
path: '/datafile'
5959
pvc_name: 'data-source'
60+
symlinks:
61+
- path: '/mysql.sock'
62+
target: '/var/run/mysqld/mysqld.sock'
63+
- path: '/link-relative'
64+
target: 'datafile'
6065

6166
- name: Sync data from source volume
6267
kubernetes.core.k8s:
@@ -184,3 +189,4 @@
184189
pvc1_name: data-source
185190
pvc2_name: data-dest
186191
timeout: 900
192+
skip_symlink_check: true

test-e2e/test_rclone_priv_with_symlinks.yml

Lines changed: 0 additions & 189 deletions
This file was deleted.

0 commit comments

Comments
 (0)