mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
TestIpcModeOlderClient: skip if client < 1.40
This test case requires not just daemon >= 1.40, but also client API >= 1.40. In case older client is used, we'll get failure from the very first check: > ipcmode_linux_test.go:313: assertion failed: shareable (string) != private (string) Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
parent
83ac2b4c13
commit
1ada1c8391
1 changed files with 3 additions and 1 deletions
|
@ -300,12 +300,14 @@ func TestDaemonIpcModeShareableFromConfig(t *testing.T) {
|
||||||
// by default, even when the daemon default is private.
|
// by default, even when the daemon default is private.
|
||||||
func TestIpcModeOlderClient(t *testing.T) {
|
func TestIpcModeOlderClient(t *testing.T) {
|
||||||
skip.If(t, versions.LessThan(testEnv.DaemonAPIVersion(), "1.40"), "requires a daemon with DefaultIpcMode: private")
|
skip.If(t, versions.LessThan(testEnv.DaemonAPIVersion(), "1.40"), "requires a daemon with DefaultIpcMode: private")
|
||||||
|
c := testEnv.APIClient()
|
||||||
|
skip.If(t, versions.LessThan(c.ClientVersion(), "1.40"), "requires client API >= 1.40")
|
||||||
|
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
|
|
||||||
// pre-check: default ipc mode in daemon is private
|
// pre-check: default ipc mode in daemon is private
|
||||||
c := testEnv.APIClient()
|
|
||||||
cID := container.Create(t, ctx, c, container.WithAutoRemove)
|
cID := container.Create(t, ctx, c, container.WithAutoRemove)
|
||||||
|
|
||||||
inspect, err := c.ContainerInspect(ctx, cID)
|
inspect, err := c.ContainerInspect(ctx, cID)
|
||||||
|
|
Loading…
Add table
Reference in a new issue