From efc61145861c93c88a4c48573d1604a3f3daea2b Mon Sep 17 00:00:00 2001 From: Jean-Marc Andre Date: Sat, 8 May 2021 23:02:38 +0200 Subject: [PATCH] updated restore tests --- test/02-backupconf.yaml | 1 + test/03-restoresession.yaml | 27 +++++++++++++++++++++++---- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/test/02-backupconf.yaml b/test/02-backupconf.yaml index 00b8cda..e1a04fd 100644 --- a/test/02-backupconf.yaml +++ b/test/02-backupconf.yaml @@ -5,6 +5,7 @@ metadata: name: backup-demo namespace: demo spec: + suspend: true repository: repo-minio schedule: "15 * * * *" targets: diff --git a/test/03-restoresession.yaml b/test/03-restoresession.yaml index d2087e0..9cb2348 100644 --- a/test/03-restoresession.yaml +++ b/test/03-restoresession.yaml @@ -5,7 +5,26 @@ metadata: name: restore-demo spec: backupSession: - ref: - name: backupsession-backup-demo-1619904678 - namespace: demo - + spec: + ref: + name: backup-demo + namespace: demo + status: + keep: monthly + startTime: "2021-05-01T22:15:28Z" + state: Success + target: + - duration: 17.952754232s + kind: Sidecar + name: nginx-deployment + snapshotId: f411315c + startTime: "2021-05-01T22:15:34Z" + state: Success + try: 1 + - duration: 25.46747271s + kind: Job + name: backup-pg + snapshotId: ca673e5a + startTime: "2021-05-01T22:15:55Z" + state: Success + try: 1