Skip to content

Commit fb6a0b1

Browse files
JohnStrunkcooktheryan
authored andcommitted
Fix simple-rsync e2e for ocp on AWS
Signed-off-by: John Strunk <[email protected]>
1 parent 63dae84 commit fb6a0b1

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

test-kuttl/e2e/simple-rsync/05-populate-source-volume.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ spec:
2020
- name: busybox
2121
image: busybox
2222
command: ["/bin/sh", "-c"]
23-
args: ["echo 'data' > /mnt/datafile; sleep 99999"]
23+
args: ["echo 'data' > /mnt/datafile; sync; sleep 99999"]
2424
volumeMounts:
2525
- name: data
2626
mountPath: "/mnt"
27+
terminationGracePeriodSeconds: 2
2728
volumes:
2829
- name: data
2930
persistentVolumeClaim:

test-kuttl/e2e/simple-rsync/15-create-source.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ spec:
1818
rsync:
1919
sshKeys: $KEYNAME
2020
address: $ADDRESS
21-
copyMethod: Clone
21+
copyMethod: Snapshot
2222
EOF
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
apiVersion: kuttl.dev/v1beta1
3+
kind: TestStep
4+
delete:
5+
- apiVersion: v1
6+
kind: Pod
7+
name: source

test-kuttl/e2e/simple-rsync/30-verify-data.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ spec:
1010
- name: busybox
1111
image: busybox
1212
command: ["/bin/sh", "-c"]
13-
args: ["diff -rs /mnt /mnt2"]
13+
args: ["rm -rf /mnt/lost+found; rm -rf /mnt2/lost+found; diff -rs /mnt /mnt2"]
1414
volumeMounts:
1515
- name: data-src
1616
mountPath: "/mnt"

0 commit comments

Comments
 (0)