(t *testing.T)
| 183 | } |
| 184 | |
| 185 | func TestInterfaceName(t *testing.T) { |
| 186 | c := NewCLI(t) |
| 187 | |
| 188 | version := c.RunDockerCmd(t, "version", "-f", "{{.Server.Version}}") |
| 189 | major, _, found := strings.Cut(version.Combined(), ".") |
| 190 | assert.Assert(t, found) |
| 191 | if major == "26" || major == "27" { |
| 192 | t.Skip("Skipping test due to docker version < 28") |
| 193 | } |
| 194 | |
| 195 | const projectName = "network_interface_name" |
| 196 | res := c.RunDockerComposeCmd(t, "-f", "./fixtures/network-interface-name/compose.yaml", "--project-name", projectName, "run", "test") |
| 197 | t.Cleanup(func() { |
| 198 | c.cleanupWithDown(t, projectName) |
| 199 | }) |
| 200 | res.Assert(t, icmd.Expected{Out: "foobar@"}) |
| 201 | } |
| 202 | |
| 203 | func TestNetworkRecreate(t *testing.T) { |
| 204 | c := NewCLI(t) |
nothing calls this directly
no test coverage detected