Provisioning: Fix plugin provisioning storing SecureJsonData (#46149)

* Provisioning: Fix plugin provisioning storing SecureJsonData

* Fix tests and rename service to pluginSettings
This commit is contained in:
idafurjes
2022-03-03 11:57:33 +01:00
committed by GitHub
parent b54b438a24
commit fa7323e6d5
3 changed files with 24 additions and 15 deletions

View File

@ -32,7 +32,7 @@ func TestPluginProvisioner(t *testing.T) {
}
reader := &testConfigReader{result: cfg}
store := &mockStore{}
ap := PluginProvisioner{log: log.New("test"), cfgProvider: reader, store: store}
ap := PluginProvisioner{log: log.New("test"), cfgProvider: reader, store: store, pluginSettings: store}
err := ap.applyChanges(context.Background(), "")
require.NoError(t, err)
@ -96,3 +96,7 @@ func (m *mockStore) UpdatePluginSetting(ctx context.Context, cmd *models.UpdateP
m.sentCommands = append(m.sentCommands, cmd)
return nil
}
func (m *mockStore) UpdatePluginSettingVersion(ctx context.Context, cmd *models.UpdatePluginSettingVersionCmd) error {
return nil
}