[MM-25651] api4/ldap: add migrateid (#14794)
* api4/ldap: add idmigrate * api4/ldap: add migrateid to local api * api4/ldap: improve migrate test * api4/ldap: add licence check
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
e980dd7bd3
Коммит
ec78168242
@@ -96,3 +96,19 @@ func TestUnlinkLdapGroup(t *testing.T) {
|
||||
_, resp = th.SystemAdminClient.UnlinkLdapGroup(entryUUID)
|
||||
CheckNotImplementedStatus(t, resp)
|
||||
}
|
||||
|
||||
func TestMigrateIdLdap(t *testing.T) {
|
||||
th := Setup(t).InitBasic()
|
||||
defer th.TearDown()
|
||||
|
||||
_, resp := th.Client.MigrateIdLdap("objectGUID")
|
||||
CheckForbiddenStatus(t, resp)
|
||||
|
||||
th.TestForSystemAdminAndLocal(t, func(t *testing.T, client *model.Client4) {
|
||||
_, resp = client.MigrateIdLdap("")
|
||||
CheckBadRequestStatus(t, resp)
|
||||
|
||||
_, resp = client.MigrateIdLdap("objectGUID")
|
||||
CheckNotImplementedStatus(t, resp)
|
||||
})
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user