Plugins: Add integration test for provisioned plugin dashboard import (#105681)

* add test

* make it fail

* get test work reliably

* get or create db section

* remove unnecessary code

* move test to first

* add comment

* apply PR feedback
This commit is contained in:
Will Browne
2025-06-12 14:24:47 +01:00
committed by GitHub
parent f9fb9d268f
commit cf31954f2a
5 changed files with 258 additions and 4 deletions
@@ -254,6 +254,8 @@ func (ps *ProvisioningServiceImpl) ProvisionDatasources(ctx context.Context) err
}
func (ps *ProvisioningServiceImpl) ProvisionPlugins(ctx context.Context) error {
ps.mutex.Lock()
defer ps.mutex.Unlock()
appPath := filepath.Join(ps.Cfg.ProvisioningPath, "plugins")
if err := ps.provisionPlugins(ctx, appPath, ps.pluginStore, ps.pluginsSettings, ps.orgService); err != nil {
err = fmt.Errorf("%v: %w", "app provisioning error", err)