[MM-38082] Add local-mode handler for config reload endpoint (#18252)

* Add local-mode handler for config reload endpoint

* Remove redundant method
Этот коммит содержится в:
Claudio Costa
2021-08-25 20:29:41 +02:00
коммит произвёл GitHub
родитель 3048f5d435
Коммит ddfa6e2436
4 изменённых файлов: 13 добавлений и 5 удалений

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

@@ -126,10 +126,10 @@ func TestReloadConfig(t *testing.T) {
CheckForbiddenStatus(t, resp)
})
t.Run("as system admin", func(t *testing.T) {
_, err := th.SystemAdminClient.ReloadConfig()
th.TestForSystemAdminAndLocal(t, func(t *testing.T, client *model.Client4) {
_, err := client.ReloadConfig()
require.NoError(t, err)
})
}, "as system admin and local mode")
t.Run("as restricted system admin", func(t *testing.T) {
th.App.UpdateConfig(func(cfg *model.Config) { *cfg.ExperimentalSettings.RestrictSystemAdmin = true })