Mm 42465 (#19771)
* when plugins are disabled, still allow onboarding to complete
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
b5e78a0ce1
Коммит
3531432738
@@ -914,4 +914,20 @@ func TestCompleteOnboarding(t *testing.T) {
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
t.Run("as a system admin when plugins are disabled", func(t *testing.T) {
|
||||
th.App.UpdateConfig(func(cfg *model.Config) {
|
||||
*cfg.PluginSettings.Enable = false
|
||||
})
|
||||
|
||||
t.Cleanup(func() {
|
||||
th.App.UpdateConfig(func(cfg *model.Config) {
|
||||
*cfg.PluginSettings.Enable = true
|
||||
})
|
||||
})
|
||||
|
||||
resp, err := th.SystemAdminClient.CompleteOnboarding(req)
|
||||
require.NoError(t, err)
|
||||
CheckOKStatus(t, resp)
|
||||
})
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user