fix tests
This commit is contained in:
parent
e4e2878eb1
commit
8bf97fb5c6
1 changed files with 6 additions and 5 deletions
|
@ -2,9 +2,10 @@
|
||||||
(:require
|
(:require
|
||||||
#?(:clj [clojure.test :refer [deftest is are testing run-tests]]
|
#?(:clj [clojure.test :refer [deftest is are testing run-tests]]
|
||||||
:cljs [cljs.test :refer-macros [deftest is are testing run-tests]])
|
:cljs [cljs.test :refer-macros [deftest is are testing run-tests]])
|
||||||
|
#?(:cljs [dda.c4k-common.macros :refer-macros [inline-resources]])
|
||||||
|
[dda.c4k-common.yaml :as yaml]
|
||||||
[clojure.spec.test.alpha :as st]
|
[clojure.spec.test.alpha :as st]
|
||||||
[dda.c4k-nextcloud.nextcloud :as cut]
|
[dda.c4k-nextcloud.nextcloud :as cut]))
|
||||||
#?(:cljs [dda.c4k-common.macros :refer-macros [inline-resources]])))
|
|
||||||
|
|
||||||
(st/instrument `cut/generate-secret)
|
(st/instrument `cut/generate-secret)
|
||||||
(st/instrument `cut/generate-ingress-and-cert)
|
(st/instrument `cut/generate-ingress-and-cert)
|
||||||
|
@ -75,10 +76,10 @@
|
||||||
:namespace "nextcloud"
|
:namespace "nextcloud"
|
||||||
:labels {:app.kubernetes.io/application "cloud"}}
|
:labels {:app.kubernetes.io/application "cloud"}}
|
||||||
:spec {:storageClassName "local-path"
|
:spec {:storageClassName "local-path"
|
||||||
:accessModes ["ReadWriteOnce"]
|
:accessModes ["ReadWriteOnce"]
|
||||||
:resources {:requests {:storage "50Gi"}}}}
|
:resources {:requests {:storage "50Gi"}}}}
|
||||||
(cut/generate-pvc {:pv-storage-size-gb 50 :pvc-storage-class-name "local-path"}))))
|
(cut/generate-pvc {:pv-storage-size-gb 50 :pvc-storage-class-name "local-path"}))))
|
||||||
|
|
||||||
(deftest should-generate-deployment
|
(deftest should-generate-deployment
|
||||||
(is (= {:apiVersion "apps/v1"
|
(is (= {:apiVersion "apps/v1"
|
||||||
:kind "Deployment"
|
:kind "Deployment"
|
||||||
|
|
Loading…
Add table
Reference in a new issue