fixed test

This commit is contained in:
bom 2022-03-18 12:40:43 +01:00
parent 7453c4edd9
commit 48918d8d8c

View file

@ -67,12 +67,14 @@
(cut/generate-persistent-volume {:nextcloud-data-volume-path "xx"})))) (cut/generate-persistent-volume {:nextcloud-data-volume-path "xx"}))))
(deftest should-generate-persistent-volume-claim (deftest should-generate-persistent-volume-claim
(is (= {([:apiVersion "v1"] (is (= {:apiVersion "v1"
[:kind "PersistentVolumeClaim"] :kind "PersistentVolumeClaim"
[:metadata #ordered/map :metadata {:name "cloud-pvc"
([:name "cloud-pvc"] :labels {:app.kubernetes.io/application "cloud"}}
[:labels #ordered/map :spec {:storageClassName "manual"
([:app.kubernetes.io/application "cloud"])])] [:spec #ordered/map ([:storageClassName "manual"] [:accessModes ["ReadWriteOnce"]] [:resources #ordered/map ([:requests #ordered/map ([:storage "50Gi"])])] [:selector #ordered/map ([:matchLabels #ordered/map ([:app.kubernetes.io/application "cloud"])])])])} :accessModes ["ReadWriteOnce"]
:resources {:requests {:storage "50Gi"}}
:selector {:matchLabels {:app.kubernetes.io/application "cloud"}}}}
(cut/generate-pvc {:nextcloud-data-volume-path "xx"})))) (cut/generate-pvc {:nextcloud-data-volume-path "xx"}))))
(deftest should-generate-deployment (deftest should-generate-deployment