Skip to content

Commit

Permalink
spnego: fix response header access in test for go versions before 1.14
Browse files Browse the repository at this point in the history
  • Loading branch information
nrolans authored and jcmturner committed Jun 13, 2022
1 parent fee19e4 commit 67e327a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v8/spnego/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func TestService_SPNEGOKRB_NoAuthHeaderWithBasicAuth(t *testing.T) {
t.Fatalf("Request error: %v\n", err)
}
assert.Equal(t, http.StatusUnauthorized, httpResp.StatusCode, "Status code in response to client with no SPNEGO not as expected")
assert.ElementsMatch(t, []string{"Negotiate", "Basic realm=\"Kerberos Authentication\""}, httpResp.Header.Values("WWW-Authenticate"), "Authentication headers not set by server.")
assert.ElementsMatch(t, []string{"Negotiate", "Basic realm=\"Kerberos Authentication\""}, httpResp.Header["Www-Authenticate"], "Authentication headers not set by server.")
}

func TestService_SPNEGOKRB_ValidUser(t *testing.T) {
Expand Down

0 comments on commit 67e327a

Please sign in to comment.