(t *testing.T)
| 559 | } |
| 560 | |
| 561 | func TestSessionValidationFailure(t *testing.T) { |
| 562 | patTest, err := NewPassAccessTokenTest(PassAccessTokenTestOptions{ |
| 563 | ValidToken: false, |
| 564 | }) |
| 565 | require.NoError(t, err) |
| 566 | t.Cleanup(patTest.Close) |
| 567 | |
| 568 | // An unsuccessful validation will return 403 and not set the auth cookie. |
| 569 | code, cookie := patTest.getCallbackEndpoint() |
| 570 | assert.Equal(t, http.StatusForbidden, code) |
| 571 | assert.Equal(t, "", cookie) |
| 572 | } |
| 573 | |
| 574 | type SignInPageTest struct { |
| 575 | opts *options.Options |
nothing calls this directly
no test coverage detected