[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
Этот коммит содержится в:
Ibrahim Serdar Acikgoz
2020-07-14 15:59:35 +03:00
коммит произвёл GitHub
родитель e980dd7bd3
Коммит ec78168242
8 изменённых файлов: 102 добавлений и 0 удалений

Просмотреть файл

@@ -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)
})
}