mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 03:21:51 +08:00
Plugins: Refactor plugin repository API (#69063)
* support grafana wildcard version * undo go.mod changes * tidy * flesh out tests * refactor * add tests * tidy naming * undo some changes * split interfaces * separation * update new signature * simplify * update var namings * unexport types * introduce opts pattern * reorder test * fix compat checks * middle ground * unexport client * move back * fix tests * inline logger * make client usable * use fake logger * tidy errors * remove unused types * fix test * review fixes * rework compatibility * adjust installer * fix tests * opts => cfg * remove unused var * fix var name
This commit is contained in:
@ -41,6 +41,12 @@ func TestIntegrationPlugins(t *testing.T) {
|
||||
PluginAdminEnabled: true,
|
||||
})
|
||||
|
||||
origBuildVersion := setting.BuildVersion
|
||||
setting.BuildVersion = "0.0.0-test"
|
||||
t.Cleanup(func() {
|
||||
setting.BuildVersion = origBuildVersion
|
||||
})
|
||||
|
||||
grafanaListedAddr, store := testinfra.StartGrafana(t, dir, cfgPath)
|
||||
|
||||
type testCase struct {
|
||||
|
Reference in New Issue
Block a user