(t *testing.T)
| 172 | } |
| 173 | |
| 174 | func TestMacAddress(t *testing.T) { |
| 175 | c := NewCLI(t) |
| 176 | const projectName = "network_mac_address" |
| 177 | c.RunDockerComposeCmd(t, "-f", "./fixtures/network-test/mac_address.yaml", "--project-name", projectName, "up", "-d") |
| 178 | t.Cleanup(func() { |
| 179 | c.cleanupWithDown(t, projectName) |
| 180 | }) |
| 181 | res := c.RunDockerCmd(t, "inspect", fmt.Sprintf("%s-test-1", projectName), "-f", "{{ (index .NetworkSettings.Networks \"network_mac_address_default\" ).MacAddress }}") |
| 182 | res.Assert(t, icmd.Expected{Out: "00:e0:84:35:d0:e8"}) |
| 183 | } |
| 184 | |
| 185 | func TestInterfaceName(t *testing.T) { |
| 186 | c := NewCLI(t) |
nothing calls this directly
no test coverage detected