From 48918d8d8c28a014d33a8ec45f5ae43ea9e5b7a4 Mon Sep 17 00:00:00 2001 From: bom Date: Fri, 18 Mar 2022 12:40:43 +0100 Subject: [PATCH] fixed test --- .../cljc/dda/c4k_nextcloud/nextcloud_test.cljc | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/test/cljc/dda/c4k_nextcloud/nextcloud_test.cljc b/src/test/cljc/dda/c4k_nextcloud/nextcloud_test.cljc index e313178..df0e81a 100644 --- a/src/test/cljc/dda/c4k_nextcloud/nextcloud_test.cljc +++ b/src/test/cljc/dda/c4k_nextcloud/nextcloud_test.cljc @@ -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