test expand existing test

This commit is contained in:
Tore S. Loenoey 2023-11-23 14:19:30 +01:00 committed by Tore Stendal Lønøy
parent 295cc1ae3e
commit 3f6f3775ff
No known key found for this signature in database

View file

@ -447,6 +447,14 @@ func TestBuildAuthLocation(t *testing.T) {
{"globalAuthURL and disabled", "", globalAuthURL, false, true, ""},
{"all empty and enabled", "", "", true, true, ""},
{"all empty and disabled", "", "", false, true, ""},
{"authURL, globalAuthURL and enabled, defaultEnable is false", authURL, globalAuthURL, true, false, externalAuthPath},
{"authURL, globalAuthURL and disabled, defaultEnable is false", authURL, globalAuthURL, false, false, externalAuthPath},
{"authURL, empty globalAuthURL and enabled, defaultEnable is false", authURL, "", true, false, externalAuthPath},
{"authURL, empty globalAuthURL and disabled, defaultEnable is false", authURL, "", false, false, externalAuthPath},
{"globalAuthURL and enabled, defaultEnable is false", "", globalAuthURL, true, false, externalAuthPath},
{"globalAuthURL and disabled, defaultEnable is false", "", globalAuthURL, false, false, ""},
{"all empty and enabled, defaultEnable is false", "", "", true, false, ""},
{"all empty and disabled, defaultEnable is false", "", "", false, false, ""},
}
for _, testCase := range testCases {