fix tests

This commit is contained in:
jerger 2022-07-05 21:53:27 +02:00
parent 859230cfb3
commit b82b8d662e

View file

@ -53,8 +53,10 @@
:kind "Certificate" :kind "Certificate"
:metadata {:name "shynet-cert", :namespace "default"} :metadata {:name "shynet-cert", :namespace "default"}
:spec :spec
{:secretName "shynet-secret" {:secretName "shynet-cert"
:commonName "test.com" :commonName "test.com"
:duration "2160h",
:renewBefore "360h",
:dnsNames ["test.com"] :dnsNames ["test.com"]
:issuerRef {:name "staging", :kind "ClusterIssuer"}}} :issuerRef {:name "staging", :kind "ClusterIssuer"}}}
(cut/generate-certificate {:fqdn "test.com" :issuer :staging})))) (cut/generate-certificate {:fqdn "test.com" :issuer :staging}))))
@ -70,7 +72,7 @@
:cert-manager.io/cluster-issuer :cert-manager.io/cluster-issuer
"staging"}} "staging"}}
:spec :spec
{:tls [{:hosts ["test.com"], :secretName "shynet-secret"}] {:tls [{:hosts ["test.com"], :secretName "shynet-cert"}]
:rules :rules
[{:host "test.com" [{:host "test.com"
:http :http