Doesn't fail if proxy-ssl-name annotation is not specified
This commit is contained in:
parent
141ea59b7f
commit
0ab2e72e95
2 changed files with 8 additions and 10 deletions
|
|
@ -94,7 +94,6 @@ func TestAnnotations(t *testing.T) {
|
|||
data[parser.GetAnnotationWithPrefix("proxy-ssl-session-reuse")] = "off"
|
||||
data[parser.GetAnnotationWithPrefix("proxy-ssl-verify")] = "on"
|
||||
data[parser.GetAnnotationWithPrefix("proxy-ssl-verify-depth")] = "3"
|
||||
data[parser.GetAnnotationWithPrefix("proxy-ssl-name")] = "testname.namespace"
|
||||
|
||||
ing.SetAnnotations(data)
|
||||
|
||||
|
|
@ -129,8 +128,8 @@ func TestAnnotations(t *testing.T) {
|
|||
if u.VerifyDepth != 3 {
|
||||
t.Errorf("expected %v but got %v", 3, u.VerifyDepth)
|
||||
}
|
||||
if u.ProxySSLName != "testname.namespace" {
|
||||
t.Errorf("expected %v but got %v", "testname.namespace", u.ProxySSLName)
|
||||
if u.ProxySSLName != "$host" {
|
||||
t.Errorf("expected %v but got %v", "$host", u.ProxySSLName)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue