From 0d634156bd1bb660ce3d574deadd67837d3f7565 Mon Sep 17 00:00:00 2001 From: Clemens Geibel Date: Fri, 16 Jul 2021 18:10:00 +0200 Subject: [PATCH] Fixed failing test --- infrastructure/docker-backup/image/resources/restore.sh | 4 ++++ src/test/cljc/dda/c4k_jira/backup_test.cljc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/infrastructure/docker-backup/image/resources/restore.sh b/infrastructure/docker-backup/image/resources/restore.sh index ac9b5f7..4798d5b 100755 --- a/infrastructure/docker-backup/image/resources/restore.sh +++ b/infrastructure/docker-backup/image/resources/restore.sh @@ -11,6 +11,8 @@ function main() { file_env POSTGRES_PASSWORD file_env POSTGRES_USER + # Im Jira pod: /opt/atlassian-jira-software-standalone/bin/stop-jira.sh + # Restore latest snapshot into /var/backups/restic-restore rm -rf /var/backups/restic-restore restore-directory '/var/backups/restic-restore' @@ -23,6 +25,8 @@ function main() { drop-create-db restore-roles restore-db + + # /opt/atlassian-jira-software-standalone/bin/start-jira.sh } source /usr/local/lib/functions.sh diff --git a/src/test/cljc/dda/c4k_jira/backup_test.cljc b/src/test/cljc/dda/c4k_jira/backup_test.cljc index 60fb9b5..bdb25eb 100644 --- a/src/test/cljc/dda/c4k_jira/backup_test.cljc +++ b/src/test/cljc/dda/c4k_jira/backup_test.cljc @@ -20,7 +20,7 @@ :metadata {:name "backup-config" :labels {:app.kubernetes.io/name "backup" :app.kubernetes.io/part-of "jira"}} - :stringData + :data {:restic-repository "s3:restic-repository"}} (cut/generate-config {:restic-repository "s3:restic-repository"}))))