MM-14723: Add config flag for creating bots (#10795)

* MM-14723 add config flag for creating bots

* MM-14723 - update i18n to handle new config flag

* MM-14723 - change API tests to allow bots by default

* Update i18n/en.json

Co-Authored-By: andresoro <ao15@my.fsu.edu>

* MM-14723: add config flag for enabling/disabling bot creation

* undo changes to apitestlib.go to explicitly change config in each test

* add unit tests for config changes

* MM-14723 update test cases

* MM-14723 update test cases to use UpdateConfig method
Этот коммит содержится в:
Andres Orozco
2019-05-13 10:48:32 -04:00
коммит произвёл Christopher Speller
родитель b3aa3d4567
Коммит 30061df036
5 изменённых файлов: 151 добавлений и 1 удалений

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

@@ -293,6 +293,7 @@ type ServiceSettings struct {
EnableEmailInvitations *bool
ExperimentalLdapGroupSync *bool
DisableBotsWhenOwnerIsDeactivated *bool `restricted:"true"`
CreateBotAccounts *bool
}
func (s *ServiceSettings) SetDefaults() {
@@ -635,6 +636,10 @@ func (s *ServiceSettings) SetDefaults() {
if s.DisableBotsWhenOwnerIsDeactivated == nil {
s.DisableBotsWhenOwnerIsDeactivated = NewBool(true)
}
if s.CreateBotAccounts == nil {
s.CreateBotAccounts = NewBool(false)
}
}
type ClusterSettings struct {