fix tests

This commit is contained in:
jerger 2022-02-11 16:39:53 +01:00
parent fe8643b249
commit 63b88dac8e
2 changed files with 13 additions and 11 deletions

View file

@ -65,19 +65,22 @@
:metadata
{:name "shynet-webserver-ingress"
:annotations
{:cert-manager.io/cluster-issuer "letsencrypt-staging-issuer"
:nginx.ingress.kubernetes.io/proxy-body-size "256m"
:nginx.ingress.kubernetes.io/ssl-redirect "true"
:nginx.ingress.kubernetes.io/rewrite-target "/"
:nginx.ingress.kubernetes.io/proxy-connect-timeout "300"
:nginx.ingress.kubernetes.io/proxy-send-timeout "300"
:nginx.ingress.kubernetes.io/proxy-read-timeout "300"}}
{:ingress.kubernetes.io/force-ssl-redirect true
:ingress.kubernetes.io/ssl-redirect true
:cert-manager.io/cluster-issuer
"letsencrypt-staging-issuer"}}
:spec
{:tls [{:hosts ["test.com"], :secretName "shynet-secret"}]
:rules
[{:host "test.com"
:http {:paths [{:backend {:service
{:name "shynet-webserver-service" :port {:number 8080}}}, :path "/", :pathType "Prefix"}]}}]}}
:http
{:paths
[{:backend
{:service
{:name "shynet-webserver-service"
:port {:number 8080}}}
:path "/"
:pathType "Prefix"}]}}]}}
(cut/generate-ingress {:fqdn "test.com" :issuer :staging}))))
(deftest should-generate-secret

View file

@ -1,7 +1,6 @@
(ns dda.c4k-shynet.browser-test
(:require
#?(:clj [clojure.test :refer [deftest is are testing run-tests]]
:cljs [cljs.test :refer-macros [deftest is are testing run-tests]])
[cljs.test :refer-macros [deftest is are testing run-tests]]
[hickory.render :as hr]
[dda.c4k-shynet.browser :as cut]))