Skip to content

Commit 39e1213

Browse files
committed
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 <[email protected]>
1 parent 5184f2e commit 39e1213

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

e2e/testutils/plugins.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ func SetupPlugin(t *testing.T, ctx context.Context) *fs.Dir {
3232
},
3333
Interface: types.PluginConfigInterface{
3434
Socket: "basic.sock",
35-
Types: []types.PluginInterfaceType{{Capability: "docker.dummy/1.0"}},
35+
Types: []types.PluginInterfaceType{{
36+
Capability: "dummy",
37+
Prefix: "docker",
38+
Version: "1.0",
39+
}},
3640
},
3741
Entrypoint: []string{"/basic"},
3842
}

0 commit comments

Comments
 (0)