mirror of https://github.com/docker/cli.git
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 <github@gone.nl>
This commit is contained in:
parent
5184f2ed65
commit
39e1213615
|
|
@ -32,7 +32,11 @@ func SetupPlugin(t *testing.T, ctx context.Context) *fs.Dir {
|
||||||
},
|
},
|
||||||
Interface: types.PluginConfigInterface{
|
Interface: types.PluginConfigInterface{
|
||||||
Socket: "basic.sock",
|
Socket: "basic.sock",
|
||||||
Types: []types.PluginInterfaceType{{Capability: "docker.dummy/1.0"}},
|
Types: []types.PluginInterfaceType{{
|
||||||
|
Capability: "dummy",
|
||||||
|
Prefix: "docker",
|
||||||
|
Version: "1.0",
|
||||||
|
}},
|
||||||
},
|
},
|
||||||
Entrypoint: []string{"/basic"},
|
Entrypoint: []string{"/basic"},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue