test: update existing test
This commit is contained in:
parent
99778f8a24
commit
c554e9731c
1 changed files with 9 additions and 8 deletions
|
@ -477,16 +477,17 @@ func TestShouldApplyGlobalAuth(t *testing.T) {
|
||||||
authURL string
|
authURL string
|
||||||
globalAuthURL string
|
globalAuthURL string
|
||||||
enableglobalExternalAuth bool
|
enableglobalExternalAuth bool
|
||||||
|
globalAuthDefaultEnable bool
|
||||||
expected bool
|
expected bool
|
||||||
}{
|
}{
|
||||||
{"authURL, globalAuthURL and enabled", authURL, globalAuthURL, true, false},
|
{"authURL, globalAuthURL and enabled", authURL, globalAuthURL, true, true, false},
|
||||||
{"authURL, globalAuthURL and disabled", authURL, globalAuthURL, false, false},
|
{"authURL, globalAuthURL and disabled", authURL, globalAuthURL, false, true, false},
|
||||||
{"authURL, empty globalAuthURL and enabled", authURL, "", true, false},
|
{"authURL, empty globalAuthURL and enabled", authURL, "", true, true, false},
|
||||||
{"authURL, empty globalAuthURL and disabled", authURL, "", false, false},
|
{"authURL, empty globalAuthURL and disabled", authURL, "", false, true, false},
|
||||||
{"globalAuthURL and enabled", "", globalAuthURL, true, true},
|
{"globalAuthURL and enabled", "", globalAuthURL, true, true, true},
|
||||||
{"globalAuthURL and disabled", "", globalAuthURL, false, false},
|
{"globalAuthURL and disabled", "", globalAuthURL, false, true, false},
|
||||||
{"all empty and enabled", "", "", true, false},
|
{"all empty and enabled", "", "", true, true, false},
|
||||||
{"all empty and disabled", "", "", false, false},
|
{"all empty and disabled", "", "", false, true, false},
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, testCase := range testCases {
|
for _, testCase := range testCases {
|
||||||
|
|
Loading…
Reference in a new issue