Merge branch 'master' of ssh://repo.prod.meissa.de:2222/meissa/c4k-common
This commit is contained in:
commit
0564dd4850
5 changed files with 17 additions and 2 deletions
|
@ -3,5 +3,11 @@
|
|||
[clojure.test :refer [deftest is are testing run-tests]]
|
||||
[dda.c4k-common.macros :refer [inline-resources]]))
|
||||
|
||||
(deftest should-inline-resources
|
||||
(deftest should-count-inline-resources
|
||||
(is (= 3 (count (inline-resources "ingress")))))
|
||||
|
||||
(deftest should-inline-resources
|
||||
(let [resource-path (fn [name] (str "dda/c4k_common/inline_resources_test/" name))]
|
||||
(is (= "1" (get (inline-resources "dda/c4k_common/inline_resources_test") (resource-path "inline_resource_1.yaml"))))
|
||||
(is (= "2" (get (inline-resources "dda/c4k_common/inline_resources_test") (resource-path "inline_resource_2.yaml"))))
|
||||
(is (= "3" (get (inline-resources "dda/c4k_common/inline_resources_test") (resource-path "inline_resource_3.yaml"))))))
|
|
@ -3,5 +3,11 @@
|
|||
[cljs.test :refer-macros [deftest is]]
|
||||
[dda.c4k-common.macros :refer-macros [inline-resources]]))
|
||||
|
||||
(deftest should-inline-resources
|
||||
(deftest should-count-inline-resources
|
||||
(is (= 3 (count (inline-resources "ingress")))))
|
||||
|
||||
(deftest should-inline-resources
|
||||
(let [resource-path (fn [name] (str "dda/c4k_common/inline_resources_test/" name))]
|
||||
(is (= "1" (get (inline-resources "dda/c4k_common/inline_resources_test") (resource-path "inline_resource_1.yaml"))))
|
||||
(is (= "2" (get (inline-resources "dda/c4k_common/inline_resources_test") (resource-path "inline_resource_2.yaml"))))
|
||||
(is (= "3" (get (inline-resources "dda/c4k_common/inline_resources_test") (resource-path "inline_resource_3.yaml"))))))
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
1
|
|
@ -0,0 +1 @@
|
|||
2
|
|
@ -0,0 +1 @@
|
|||
3
|
Loading…
Reference in a new issue