Refactor ingress-test

This commit is contained in:
erik 2022-11-01 15:39:09 +01:00
parent 75ef2572e3
commit f8c0b40788

View file

@ -1,4 +1,4 @@
(ns dda.c4k-website.ingress-test (ns dda.c4k-website.ingress-cert-test
(: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]])
@ -10,8 +10,6 @@
(st/instrument `cut/generate-https-ingress) (st/instrument `cut/generate-https-ingress)
(st/instrument `cut/generate-certificate) (st/instrument `cut/generate-certificate)
; ToDo: Refactor to ingress-cert-test
(deftest should-generate-rule (deftest should-generate-rule
(is (= {:host "test.com", (is (= {:host "test.com",
:http :http
@ -119,4 +117,4 @@
(cut/generate-certificate {:fqdns ["test.de" "test.org" "www.test.de" "www.test.org"] (cut/generate-certificate {:fqdns ["test.de" "test.org" "www.test.de" "www.test.org"]
:app-name "c4k-common-app" :app-name "c4k-common-app"
:cert-name "test-io-cert" :cert-name "test-io-cert"
:issuer "prod"})))) :issuer "prod"}))))