fixed some test errors

This commit is contained in:
leo 2021-08-10 16:01:43 +02:00
parent 5908a1b8d8
commit 70e3b967f1
2 changed files with 5 additions and 5 deletions

View file

@ -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"}}]

View file

@ -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