From 39e121361570a8c32af08305f89c355e18f4ac3f Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 20 Aug 2025 22:00:06 +0200 Subject: [PATCH] e2e/testutils: fix incorrect use of PluginConfigInterface This code was using the type incorrectly; current versions of the API MarshalText ignore this mistake, but the moby/moby/api module produces an error: === Failed === FAIL: e2e/global TestPromptExitCode/plugin_install (0.28s) cli_test.go:203: assertion failed: error is not nil: json: error calling MarshalText for type plugin.CapabilityID: capability "docker.dummy/1.0" cannot contain a dot === FAIL: e2e/global TestPromptExitCode/plugin_upgrade (0.26s) cli_test.go:203: assertion failed: error is not nil: json: error calling MarshalText for type plugin.CapabilityID: capability "docker.dummy/1.0" cannot contain a dot Signed-off-by: Sebastiaan van Stijn --- e2e/testutils/plugins.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/e2e/testutils/plugins.go b/e2e/testutils/plugins.go index 1485f425b1..7406798fd7 100644 --- a/e2e/testutils/plugins.go +++ b/e2e/testutils/plugins.go @@ -32,7 +32,11 @@ func SetupPlugin(t *testing.T, ctx context.Context) *fs.Dir { }, Interface: types.PluginConfigInterface{ Socket: "basic.sock", - Types: []types.PluginInterfaceType{{Capability: "docker.dummy/1.0"}}, + Types: []types.PluginInterfaceType{{ + Capability: "dummy", + Prefix: "docker", + Version: "1.0", + }}, }, Entrypoint: []string{"/basic"}, }