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

View file

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