fix test
This commit is contained in:
parent
7006250375
commit
2a0efa37d0
1 changed files with 2 additions and 20 deletions
|
@ -74,26 +74,8 @@
|
||||||
:accessModes ["ReadWriteOnce"]
|
:accessModes ["ReadWriteOnce"]
|
||||||
:resources {:requests {:storage "50Gi"}}
|
:resources {:requests {:storage "50Gi"}}
|
||||||
:selector {:matchLabels {:app.kubernetes.io/application "cloud"}}}}
|
:selector {:matchLabels {:app.kubernetes.io/application "cloud"}}}}
|
||||||
(cut/generate-pvc {})))
|
(cut/generate-pvc {:pv-storage-size-gb 50 :pvc-storage-class-name "local-path"}))))
|
||||||
(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"})))
|
|
||||||
(is (= {:apiVersion "v1"
|
|
||||||
:kind "PersistentVolumeClaim"
|
|
||||||
:metadata {:name "cloud-pvc"
|
|
||||||
:labels {:app.kubernetes.io/application "cloud"}}
|
|
||||||
:spec {:storageClassName "manual"
|
|
||||||
:accessModes ["ReadWriteOnce"]
|
|
||||||
:resources {:requests {:storage "500Gi"}}
|
|
||||||
:selector {:matchLabels {:app.kubernetes.io/application "cloud"}}}}
|
|
||||||
(cut/generate-pvc {:pv-storage-size-gb 500}))))
|
|
||||||
|
|
||||||
(deftest should-generate-deployment
|
(deftest should-generate-deployment
|
||||||
(is (= {:apiVersion "apps/v1"
|
(is (= {:apiVersion "apps/v1"
|
||||||
:kind "Deployment"
|
:kind "Deployment"
|
||||||
|
|
Loading…
Reference in a new issue