From 70e3b967f1de76505c5318c1b57e59dc6c0db45c Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 10 Aug 2021 16:01:43 +0200 Subject: [PATCH] fixed some test errors --- src/test/cljc/dda/c4k_nextcloud/backup_test.cljc | 6 +++--- src/test/cljc/dda/c4k_nextcloud/nextcloud_test.cljc | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/test/cljc/dda/c4k_nextcloud/backup_test.cljc b/src/test/cljc/dda/c4k_nextcloud/backup_test.cljc index d9b5f38..8fb9179 100644 --- a/src/test/cljc/dda/c4k_nextcloud/backup_test.cljc +++ b/src/test/cljc/dda/c4k_nextcloud/backup_test.cljc @@ -10,7 +10,7 @@ :kind "Secret" :metadata {:name "backup-secret"} :type "Opaque" - :data + :stringData {:aws-access-key-id "YXdzLWlk", :aws-secret-access-key "YXdzLXNlY3JldA==", :restic-password "cmVzdGljLXB3"}} (cut/generate-secret {:aws-access-key-id "aws-id" :aws-secret-access-key "aws-secret" :restic-password "restic-pw"})))) @@ -27,7 +27,7 @@ (deftest should-generate-cron (is (= {:apiVersion "batch/v1beta1" :kind "CronJob" - :metadata {:name "nextcloud-backup" + :metadata {:name "cloud-backup" :labels {:app.kubernetes.part-of "cloud"}} :spec {:schedule "10 23 * * *" :successfulJobsHistoryLimit 1 @@ -85,7 +85,7 @@ :volumes [{:name "nextcloud-data-volume" :persistentVolumeClaim - {:claimName "nextcloud-pvc"}} + {:claimName "cloud-pvc"}} {:name "backup-secret-volume" :secret {:secretName "backup-secret"}}] diff --git a/src/test/cljc/dda/c4k_nextcloud/nextcloud_test.cljc b/src/test/cljc/dda/c4k_nextcloud/nextcloud_test.cljc index b48bd0f..47f2b9f 100644 --- a/src/test/cljc/dda/c4k_nextcloud/nextcloud_test.cljc +++ b/src/test/cljc/dda/c4k_nextcloud/nextcloud_test.cljc @@ -32,14 +32,14 @@ :nginx.ingress.kubernetes.io/proxy-read-timeout "300"} :namespace "default"} :spec - {:tls [{:hosts ["xx"], :secretName "nextcloud-secret"}] + {:tls [{:hosts ["xx"], :secretName "cloud-secret"}] :rules [{:host "xx" :http {:paths [{:path "/" :backend - {:serviceName "nextcloud-service", :servicePort 80}}]}}]}} + {:serviceName "cloud-service", :servicePort 80}}]}}]}} (cut/generate-ingress {:fqdn "xx"})))) (deftest should-generate-persistent-volume