|
@@ -52,7 +52,7 @@ func TestNetworks(t *testing.T) {
|
|
|
assert.Assert(t, strings.Contains(output, `"word":`))
|
|
assert.Assert(t, strings.Contains(output, `"word":`))
|
|
|
|
|
|
|
|
res = c.RunDockerCmd(t, "network", "ls")
|
|
res = c.RunDockerCmd(t, "network", "ls")
|
|
|
- res.Assert(t, icmd.Expected{Out: projectName + "-dbnet"})
|
|
|
|
|
|
|
+ res.Assert(t, icmd.Expected{Out: projectName + "_dbnet"})
|
|
|
res.Assert(t, icmd.Expected{Out: "microservices"})
|
|
res.Assert(t, icmd.Expected{Out: "microservices"})
|
|
|
})
|
|
})
|
|
|
|
|
|
|
@@ -126,7 +126,7 @@ func TestIPAMConfig(t *testing.T) {
|
|
|
const projectName = "ipam_e2e"
|
|
const projectName = "ipam_e2e"
|
|
|
|
|
|
|
|
t.Run("ensure we do not reuse previous networks", func(t *testing.T) {
|
|
t.Run("ensure we do not reuse previous networks", func(t *testing.T) {
|
|
|
- c.RunDockerOrExitError(t, "network", "rm", projectName+"-default")
|
|
|
|
|
|
|
+ c.RunDockerOrExitError(t, "network", "rm", projectName+"_default")
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
t.Run("up", func(t *testing.T) {
|
|
t.Run("up", func(t *testing.T) {
|
|
@@ -135,7 +135,7 @@ func TestIPAMConfig(t *testing.T) {
|
|
|
|
|
|
|
|
t.Run("ensure service get fixed IP assigned", func(t *testing.T) {
|
|
t.Run("ensure service get fixed IP assigned", func(t *testing.T) {
|
|
|
res := c.RunDockerCmd(t, "inspect", projectName+"-foo-1", "-f",
|
|
res := c.RunDockerCmd(t, "inspect", projectName+"-foo-1", "-f",
|
|
|
- fmt.Sprintf(`{{ $network := index .NetworkSettings.Networks "%s-default" }}{{ $network.IPAMConfig.IPv4Address }}`, projectName))
|
|
|
|
|
|
|
+ fmt.Sprintf(`{{ $network := index .NetworkSettings.Networks "%s_default" }}{{ $network.IPAMConfig.IPv4Address }}`, projectName))
|
|
|
res.Assert(t, icmd.Expected{Out: "10.1.0.100"})
|
|
res.Assert(t, icmd.Expected{Out: "10.1.0.100"})
|
|
|
})
|
|
})
|
|
|
|
|
|