fixed test
This commit is contained in:
parent
7453c4edd9
commit
48918d8d8c
1 changed files with 8 additions and 6 deletions
|
@ -67,12 +67,14 @@
|
|||
(cut/generate-persistent-volume {:nextcloud-data-volume-path "xx"}))))
|
||||
|
||||
(deftest should-generate-persistent-volume-claim
|
||||
(is (= {([:apiVersion "v1"]
|
||||
[:kind "PersistentVolumeClaim"]
|
||||
[:metadata #ordered/map
|
||||
([:name "cloud-pvc"]
|
||||
[:labels #ordered/map
|
||||
([: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"])])])])}
|
||||
(is (= {:apiVersion "v1"
|
||||
:kind "PersistentVolumeClaim"
|
||||
:metadata {:name "cloud-pvc"
|
||||
:labels {:app.kubernetes.io/application "cloud"}}
|
||||
:spec {:storageClassName "manual"
|
||||
:accessModes ["ReadWriteOnce"]
|
||||
:resources {:requests {:storage "50Gi"}}
|
||||
:selector {:matchLabels {:app.kubernetes.io/application "cloud"}}}}
|
||||
(cut/generate-pvc {:nextcloud-data-volume-path "xx"}))))
|
||||
|
||||
(deftest should-generate-deployment
|
||||
|
|
Loading…
Reference in a new issue