From 016c7610f96cc038ed4cfc9f6c55e3bae8e1416c Mon Sep 17 00:00:00 2001 From: jem Date: Sun, 11 Jul 2021 14:52:51 +0200 Subject: [PATCH] fix test --- src/test/cljc/dda/c4k_jira/jira_test.cljc | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/test/cljc/dda/c4k_jira/jira_test.cljc b/src/test/cljc/dda/c4k_jira/jira_test.cljc index b635897..5c16b91 100644 --- a/src/test/cljc/dda/c4k_jira/jira_test.cljc +++ b/src/test/cljc/dda/c4k_jira/jira_test.cljc @@ -53,12 +53,8 @@ :hostPath {:path "xx"}}} (cut/generate-persistent-volume {:jira-data-volume-path "xx"})))) -(deftest should-generate-pod - (is (= {:kind "Pod" - :apiVersion "v1" - :metadata {:name "jira-app", :labels {:app "jira"}} - :spec - {:containers +(deftest should-generate-deployment + (is (= {:containers [{:image "domaindrivenarchitecture/c4k-jira" :name "jira-app" :imagePullPolicy "IfNotPresent" @@ -80,5 +76,5 @@ [{:name "jira-data-volume" :persistentVolumeClaim {:claimName "jira-pvc"}} {:name "postgres-secret-volume" - :secret {:secretName "postgres-secret"}}]}} - (cut/generate-pod {:fqdn "xx"})))) + :secret {:secretName "postgres-secret"}}]} + (get-in (cut/generate-deployment {:fqdn "xx"}) [:spec :template :spec]))))