forked from baron/baron-sso
동기화 기초구조 마련
This commit is contained in:
@@ -730,12 +730,25 @@ func TestNormalizeTenantConfigRejectsNonTextLoginIDFields(t *testing.T) {
|
||||
func TestNormalizeTenantConfigAcceptsTenantVisibilityAndOrgUnitType(t *testing.T) {
|
||||
config, err := normalizeTenantConfig(map[string]any{
|
||||
"visibility": "internal",
|
||||
"orgUnitType": "팀",
|
||||
"orgUnitType": "센터",
|
||||
})
|
||||
|
||||
assert.NoError(t, err)
|
||||
assert.Equal(t, "internal", config["visibility"])
|
||||
assert.Equal(t, "팀", config["orgUnitType"])
|
||||
assert.Equal(t, "센터", config["orgUnitType"])
|
||||
}
|
||||
|
||||
func TestNormalizeTenantConfigAcceptsTaskForceAndExecutiveOrgUnitTypes(t *testing.T) {
|
||||
for _, orgUnitType := range []string{"TF", "TF팀", "임원직속"} {
|
||||
t.Run(orgUnitType, func(t *testing.T) {
|
||||
config, err := normalizeTenantConfig(map[string]any{
|
||||
"orgUnitType": orgUnitType,
|
||||
})
|
||||
|
||||
assert.NoError(t, err)
|
||||
assert.Equal(t, orgUnitType, config["orgUnitType"])
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
func TestNormalizeTenantConfigRejectsInvalidTenantVisibility(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user