Duplicated test
@@ -102,30 +102,6 @@ public class DockerComposeConfigHandlerTest {
}
- @Test
- public void networkAliases() throws IOException, MavenFilteringException {
- setupComposeExpectations("docker-compose-network-aliases.yml");
- List<ImageConfiguration> configs = handler.resolve(unresolved, project, session);
-
- // Service 1 has 1 network (network1) with 2 aliases (alias1, alias2)
- NetworkConfig netSvc = configs.get(0).getRunConfiguration().getNetworkingConfig();
- assertEquals("network1", netSvc.getName());
- assertEquals(2, netSvc.getAliases().size());
- assertEquals("alias1", netSvc.getAliases().get(0));
- assertEquals("alias2", netSvc.getAliases().get(1));
-
- // Service 2 has 1 network (network1) with no aliases
- netSvc = configs.get(1).getRunConfiguration().getNetworkingConfig();
- assertEquals("network1", netSvc.getName());
- assertEquals(0, netSvc.getAliases().size());
-
- // Service 3 has 1 network (network1) with 1 aliase (alias1)
- netSvc = configs.get(2).getRunConfiguration().getNetworkingConfig();
- assertEquals("network1", netSvc.getName());
- assertEquals(1, netSvc.getAliases().size());
- assertEquals("alias1", netSvc.getAliases().get(0));
- }
-
@Test
public void negativeVersionTest() throws IOException, MavenFilteringException {
for (String composeFile : new String[] { "version/compose-wrong-version.yml", "version/compose-no-version.yml"} ) {
