Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Jun 12, 2024
1 parent 2d35a89 commit b1ebb19
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmd/apps/openfaas_ingress_app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
)

func Test_buildYAML_Issuer(t *testing.T) {
templBytes, _ := buildIssuerYAML("openfaas.subdomain.example.com", "openfaas@subdomain.example.com", "traefik", "openfaas-gateway", false, false, "openfaas")
templBytes, _ := buildIssuerYAML("[email protected]", "traefik", false, false, "openfaas")
var want = `
apiVersion: cert-manager.io/v1
kind: Issuer
Expand All @@ -32,12 +32,12 @@ spec:

got := string(templBytes)
if want != got {
t.Errorf("want:\n%q\ngot:\n%q\n", want, got)
t.Errorf("want:\n%q\n\ngot:\n%q\n", want, got)
}
}

func Test_buildYAML_IssuerTakesEmailOverride(t *testing.T) {
templBytes, _ := buildIssuerYAML("openfaas.subdomain.example.com", "openfaas@subdomain.example.com", "traefik", "openfaas-gateway", false, false, "openfaas")
templBytes, _ := buildIssuerYAML("[email protected]", "traefik", false, false, "openfaas")
var want = `
apiVersion: cert-manager.io/v1
kind: Issuer
Expand All @@ -63,7 +63,7 @@ spec:
}

func Test_buildIssuerYAMLStaging(t *testing.T) {
templBytes, _ := buildIssuerYAML("openfaas.subdomain.example.com", "openfaas@subdomain.example.com", "traefik", "openfaas-gateway", true, false, "openfaas")
templBytes, _ := buildIssuerYAML("[email protected]", "traefik", true, false, "openfaas")
var want = `
apiVersion: cert-manager.io/v1
kind: Issuer
Expand Down Expand Up @@ -282,7 +282,7 @@ spec:
}

func Test_buildYAMLClusterIssuer_HasNoNamespace(t *testing.T) {
templBytes, _ := buildIssuerYAML("openfaas.subdomain.example.com", "openfaas@subdomain.example.com", "traefik", "openfaas-gateway", true, true, "openfaas")
templBytes, _ := buildIssuerYAML("[email protected]", "traefik", true, true, "openfaas")
var want = `
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
Expand Down

0 comments on commit b1ebb19

Please sign in to comment.