Skip to content

Commit

Permalink
fixup c4a2029 to call SetAnnotations() after setting auth-tls-secret,…
Browse files Browse the repository at this point in the history
… not after
  • Loading branch information
rctay committed Jul 26, 2021
1 parent d749504 commit fc62ff4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/ingress/annotations/authtls/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ func TestAnnotations(t *testing.T) {
ing := buildIngress()
data := map[string]string{}

ing.SetAnnotations(data)

data[parser.GetAnnotationWithPrefix("auth-tls-secret")] = "default/demo-secret"

ing.SetAnnotations(data)

fakeSecret := &mockSecret{}
i, err := NewParser(fakeSecret).Parse(ing)
if err != nil {
Expand Down

0 comments on commit fc62ff4

Please sign in to comment.