(t *testing.T)
| 947 | } |
| 948 | |
| 949 | func TestProcessCookieNoCookieError(t *testing.T) { |
| 950 | pcTest, err := NewProcessCookieTestWithDefaults() |
| 951 | if err != nil { |
| 952 | t.Fatal(err) |
| 953 | } |
| 954 | |
| 955 | session, err := pcTest.LoadCookiedSession() |
| 956 | assert.Error(t, err, "cookie \"_oauth2_proxy\" not present") |
| 957 | if session != nil { |
| 958 | t.Errorf("expected nil session. got %#v", session) |
| 959 | } |
| 960 | } |
| 961 | |
| 962 | func TestProcessCookieRefreshNotSet(t *testing.T) { |
| 963 | pcTest, err := NewProcessCookieTestWithOptionsModifiers(func(opts *options.Options) { |
nothing calls this directly
no test coverage detected