From 4538cc5a2498fc99cca38b9cc5e51f97a315a6c1 Mon Sep 17 00:00:00 2001 From: bom Date: Fri, 18 Mar 2022 14:11:43 +0100 Subject: [PATCH] mob --- .../dda/c4k_nextcloud/nextcloud_test.cljc | 22 +++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/src/test/cljc/dda/c4k_nextcloud/nextcloud_test.cljc b/src/test/cljc/dda/c4k_nextcloud/nextcloud_test.cljc index 1c92aa9..7432827 100644 --- a/src/test/cljc/dda/c4k_nextcloud/nextcloud_test.cljc +++ b/src/test/cljc/dda/c4k_nextcloud/nextcloud_test.cljc @@ -70,11 +70,29 @@ :kind "PersistentVolumeClaim" :metadata {:name "cloud-pvc" :labels {:app.kubernetes.io/application "cloud"}} - :spec {:storageClassName "manual" + :spec {:storageClassName "local-path" :accessModes ["ReadWriteOnce"] :resources {:requests {:storage "50Gi"}} :selector {:matchLabels {:app.kubernetes.io/application "cloud"}}}} - (cut/generate-pvc {:nextcloud-data-volume-path "xx"})))) + (cut/generate-pvc {}))) + (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 (is (= {:apiVersion "apps/v1"