public static boolean hasAdapterImplClassProperty(ContainerDef containerDef) { for (Map.Entry<String, String> entry : containerDef.getContainerProperties().entrySet()) { if (entry.getKey().equals(ADAPTER_IMPL_CONFIG_STRING)) { return true; } } return false; }
private List<String> filterArquillianConfigurationPropertiesByAddressAttribute(ContainerDef containerDef) { List<String> fields = new ArrayList<String>(); for (Entry<String, String> entry : containerDef.getContainerProperties().entrySet()) { if (addressPattern.matcher(entry.getKey()).matches()) { fields.add(entry.getKey()); } } return fields; }
private List<String> filterArquillianConfigurationPropertiesByPortAttribute(ContainerDef containerDef) { List<String> fields = new ArrayList<String>(); for (Entry<String, String> entry : containerDef.getContainerProperties().entrySet()) { if (portPattern.matcher(entry.getKey()).matches()) { fields.add(entry.getKey()); } } return fields; }
private List<String> filterArquillianConfigurationPropertiesByPortAttribute(ContainerDef containerDef) { List<String> fields = new ArrayList<String>(); for (Entry<String, String> entry : containerDef.getContainerProperties().entrySet()) { if (portPattern.matcher(entry.getKey()).matches()) { fields.add(entry.getKey()); } } return fields; }
@Override public String get() { return desc.getContainers().get(0).getContainerProperties().get(CONFIGURATION_PROP_1); } });
@Override public String get() { return desc.getContainers().get(0).getContainerProperties().get(CONFIGURATION_PROP_1); } });
@Override public String get() { return desc.getContainers().get(0).getContainerProperties().get(CONFIGURATION_PROP_1); } });
@Override public String get() { return desc.getContainers().get(0).getContainerProperties().get(CONFIGURATION_PROP_1); } });
@Override public String get() { return desc.getContainers().get(0).getContainerProperties().get(CONFIGURATION_PROP_1); } });
@Override public String get() { return desc.getContainers().get(0).getContainerProperties().get(CONFIGURATION_PROP_1); } });
@Override public String get() { return desc.getGroups().get(0).getGroupContainers().get(0).getContainerProperties().get(CONFIGURATION_PROP_1); } });
@Override public String get() { return desc.getGroups().get(0).getGroupContainers().get(0).getContainerProperties().get(CONFIGURATION_PROP_1); } });
@Override public String get() { return desc.getGroups() .get(0) .getGroupContainers() .get(0) .getContainerProperties() .get(CONFIGURATION_PROP_1); } });
@Override public String get() { return desc.getGroups().get(0).getGroupContainers().get(0).getContainerProperties().get(CONFIGURATION_PROP_1); } });
@Override public String get() { return desc.getGroups().get(0).getGroupContainers().get(0).getContainerProperties().get(CONFIGURATION_PROP_1); } });
@Override public String get() { return desc.getGroups().get(0).getGroupContainers().get(0).getContainerProperties().get(CONFIGURATION_PROP_1); } });
@Override public ContainerConfiguration createDeployableConfiguration() throws Exception { ContainerConfiguration config = SecurityActions.newInstance( deployableContainer.getConfigurationClass(), new Class<?>[0], new Object[0]); MapObject.populate(config, containerConfiguration.getContainerProperties()); config.validate(); return config; }
@Override public ContainerConfiguration createDeployableConfiguration() throws Exception { ContainerConfiguration config = SecurityActions.newInstance( deployableContainer.getConfigurationClass(), new Class<?>[0], new Object[0]); MapObject.populate(config, containerConfiguration.getContainerProperties()); config.validate(); return config; }
@Test public void shouldSubstituteDockerServerIpContainerAddressToBootToDockerIp() { Map<String, String> containerConfig = new HashMap<String, String>(); containerConfig.put("myHost", CubeDockerConfiguration.DOCKER_SERVER_IP); when(containerDef.getContainerProperties()).thenReturn(containerConfig); when(cube.getMetadata(HasPortBindings.class)).thenReturn(hasPortBindings); bind(ApplicationScoped.class, OperatingSystemFamily.class, OperatingSystemFamily.MAC); fire(new BeforeSetup(deployableContainer)); verify(containerDef).overrideProperty("myHost", "192.168.0.1"); }
public void observeBeforeStart(@Observes Container event) { ContainerReport containerReport = new ContainerReport(); containerReport.setQualifier(event.getName()); containerReport.setConfiguration(event.getContainerConfiguration().getContainerProperties()); reporter.get().getLastTestSuiteReport().getContainerReports().add(containerReport); reporter.get().setContainerReport(containerReport); }