use of alien4cloud.deployment.DeploymentTopologyDTO in project alien4cloud by alien4cloud.
the class DeploymentTopologyStepDefinitions method theDeploymentTopologyShouldNotHaveAnyInputArtifacts.
@Then("^the deployment topology should not have any input artifacts$")
public void theDeploymentTopologyShouldNotHaveAnyInputArtifacts() throws Throwable {
DeploymentTopologyDTO dto = getDeploymentTopologyDTO();
Assert.assertTrue(MapUtils.isEmpty(dto.getTopology().getUploadedInputArtifacts()));
}
use of alien4cloud.deployment.DeploymentTopologyDTO in project alien4cloud by alien4cloud.
the class DeploymentSetupValidationStepDefinitions method getDTOAndassertNotNull.
private DeploymentTopologyDTO getDTOAndassertNotNull() throws IOException {
String response = Context.getInstance().getRestResponse();
DeploymentTopologyDTO dto = JsonUtil.read(response, DeploymentTopologyDTO.class, Context.getJsonMapper()).getData();
assertNotNull(dto);
return dto;
}
use of alien4cloud.deployment.DeploymentTopologyDTO in project alien4cloud by alien4cloud.
the class DeploymentTopologyStepDefinitions method the_node_in_the_deployment_topology_should_have_the_property_with_value.
@Then("^The node \"(.*?)\" in the deployment topology should have the property \"(.*?)\" with value \"(.*?)\"$")
public void the_node_in_the_deployment_topology_should_have_the_property_with_value(String nodeName, String propertyName, String expectPropertyValue) throws Throwable {
DeploymentTopologyDTO dto = getDeploymentTopologyDTO();
NodeTemplate node = dto.getTopology().getNodeTemplates().get(nodeName);
assertNodePropertyValueEquals(node, propertyName, expectPropertyValue);
}
use of alien4cloud.deployment.DeploymentTopologyDTO in project alien4cloud by alien4cloud.
the class DeploymentTopologyStepDefinitions method theDeploymentTopologyShouldHaveTheFollowingInputsArtifacts.
@Then("^the deployment topology should have the following inputs artifacts$")
public void theDeploymentTopologyShouldHaveTheFollowingInputsArtifacts(Map<String, String> expectedArtifacts) throws Throwable {
DeploymentTopologyDTO dto = getDeploymentTopologyDTO();
Map<String, String> uploadedArtifacts = dto.getTopology().getUploadedInputArtifacts().entrySet().stream().collect(Collectors.toMap(Map.Entry::getKey, entry -> entry.getValue().getArtifactName()));
Assert.assertEquals(expectedArtifacts, uploadedArtifacts);
}
use of alien4cloud.deployment.DeploymentTopologyDTO in project alien4cloud by alien4cloud.
the class DeploymentTopologyStepDefinitions method theDeploymentTopologyShouldNotHaveAnyLocationPolicies.
@Then("^the deployment topology should not have any location policies$")
public void theDeploymentTopologyShouldNotHaveAnyLocationPolicies() throws Throwable {
DeploymentTopologyDTO dto = getDeploymentTopologyDTO();
Assert.assertTrue(MapUtils.isEmpty(dto.getLocationPolicies()));
}
Aggregations