From c2dca55d7d44571e20721cabb6d32b3b044c3416 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 27 Aug 2025 10:32:59 +0200 Subject: [PATCH] testutil/fixtures/plugin: makePluginBundle: fix invalid spec The fixture was using an invalid formatted Capability, which wasn't detected in the old API code, but fails with the API module, for example: === RUN TestPluginsWithRuntimes plugin_test.go:269: assertion failed: error is not nil: json: error calling MarshalText for type plugin.CapabilityID: capability "docker.dummy/1.0" cannot contain a dot --- FAIL: TestPluginsWithRuntimes (0.63s) === RUN TestPluginBackCompatMediaTypes plugin_test.go:331: assertion failed: error is not nil: json: error calling MarshalText for type plugin.CapabilityID: capability "docker.dummy/1.0" cannot contain a dot --- FAIL: TestPluginBackCompatMediaTypes (0.11s) FAIL This patch applies the same changes as ee560a3b23191e3e37838128a1cf3d7db29b489c in the master branch. Signed-off-by: Sebastiaan van Stijn --- testutil/fixtures/plugin/plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testutil/fixtures/plugin/plugin.go b/testutil/fixtures/plugin/plugin.go index a7b73a7aca..4fe65ad9dc 100644 --- a/testutil/fixtures/plugin/plugin.go +++ b/testutil/fixtures/plugin/plugin.go @@ -142,7 +142,7 @@ func makePluginBundle(inPath string, opts ...CreateOpt) (io.ReadCloser, error) { p := &types.PluginConfig{ Interface: types.PluginConfigInterface{ Socket: "basic.sock", - Types: []types.PluginInterfaceType{{Capability: "docker.dummy/1.0"}}, + Types: []types.PluginInterfaceType{{Prefix: "docker", Capability: "dummy", Version: "1.0"}}, }, Entrypoint: []string{"/basic"}, }