mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-11 08:07:38 +02:00
config: allow dynamic configuration of cookie settings (#1267)
This commit is contained in:
parent
0c51ad0e66
commit
fbf5b403b9
17 changed files with 184 additions and 165 deletions
|
@ -86,9 +86,6 @@ func TestNew(t *testing.T) {
|
|||
badRedirectURL.AuthenticateURL = nil
|
||||
badRedirectURL.CookieName = "B"
|
||||
|
||||
badCookieName := newTestOptions(t)
|
||||
badCookieName.CookieName = ""
|
||||
|
||||
badProvider := newTestOptions(t)
|
||||
badProvider.Provider = ""
|
||||
badProvider.CookieName = "C"
|
||||
|
@ -118,7 +115,6 @@ func TestNew(t *testing.T) {
|
|||
{"good", good, false},
|
||||
{"empty opts", &config.Options{}, true},
|
||||
{"fails to validate", badRedirectURL, true},
|
||||
{"bad cookie name", badCookieName, true},
|
||||
{"bad provider", badProvider, true},
|
||||
{"bad cache url", badGRPCConn, true},
|
||||
{"empty provider url", emptyProviderURL, true},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue