From 2a0efa37d03a0021ac48bbff46ea5133e72a3040 Mon Sep 17 00:00:00 2001 From: ansgarz Date: Fri, 18 Mar 2022 14:32:56 +0100 Subject: [PATCH] fix test --- .../dda/c4k_nextcloud/nextcloud_test.cljc | 22 ++----------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/src/test/cljc/dda/c4k_nextcloud/nextcloud_test.cljc b/src/test/cljc/dda/c4k_nextcloud/nextcloud_test.cljc index 7432827..6f7e025 100644 --- a/src/test/cljc/dda/c4k_nextcloud/nextcloud_test.cljc +++ b/src/test/cljc/dda/c4k_nextcloud/nextcloud_test.cljc @@ -74,26 +74,8 @@ :accessModes ["ReadWriteOnce"] :resources {:requests {:storage "50Gi"}} :selector {:matchLabels {:app.kubernetes.io/application "cloud"}}}} - (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})))) - + (cut/generate-pvc {:pv-storage-size-gb 50 :pvc-storage-class-name "local-path"})))) + (deftest should-generate-deployment (is (= {:apiVersion "apps/v1" :kind "Deployment"