Этот коммит содержится в:
Joram Wilander
2017-12-01 08:21:44 -05:00
коммит произвёл GitHub
родитель 965a1bf784
Коммит 239e8df3f4
2 изменённых файлов: 8 добавлений и 1 удалений

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

@@ -164,6 +164,13 @@ func TestUpdateOAuthApp(t *testing.T) {
t.Fatal("IsTrusted should have updated")
}
th.LoginBasic2()
updatedApp.CreatorId = th.BasicUser2.Id
_, resp = Client.UpdateOAuthApp(oapp)
CheckForbiddenStatus(t, resp)
th.LoginBasic()
th.App.UpdateConfig(func(cfg *model.Config) { *cfg.ServiceSettings.EnableOnlyAdminIntegrations = false })
th.App.SetDefaultRolesBasedOnConfig()
_, resp = Client.UpdateOAuthApp(oapp)