[MM-32234] Fix config.json getting reset (#16805)
* Add support for read-only config stores * Allow read/write config store for plugin commands that require it
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
77da23e84b
Коммит
9c9fbe6dd9
@@ -129,7 +129,7 @@ func TestSendMailUsingConfig(t *testing.T) {
|
||||
|
||||
fsInner, err := config.NewFileStore("config.json", false)
|
||||
require.Nil(t, err)
|
||||
fs, err := config.NewStoreFromBacking(fsInner, nil)
|
||||
fs, err := config.NewStoreFromBacking(fsInner, nil, false)
|
||||
require.Nil(t, err)
|
||||
|
||||
cfg := fs.Get()
|
||||
@@ -170,7 +170,7 @@ func TestSendMailWithEmbeddedFilesUsingConfig(t *testing.T) {
|
||||
|
||||
fsInner, err := config.NewFileStore("config.json", false)
|
||||
require.Nil(t, err)
|
||||
fs, err := config.NewStoreFromBacking(fsInner, nil)
|
||||
fs, err := config.NewStoreFromBacking(fsInner, nil, false)
|
||||
require.Nil(t, err)
|
||||
|
||||
cfg := fs.Get()
|
||||
@@ -217,7 +217,7 @@ func TestSendMailUsingConfigAdvanced(t *testing.T) {
|
||||
|
||||
fsInner, err := config.NewFileStore("config.json", false)
|
||||
require.Nil(t, err)
|
||||
fs, err := config.NewStoreFromBacking(fsInner, nil)
|
||||
fs, err := config.NewStoreFromBacking(fsInner, nil, false)
|
||||
require.Nil(t, err)
|
||||
|
||||
cfg := fs.Get()
|
||||
|
||||
Ссылка в новой задаче
Block a user