Assert.assertTrue(airavataAPI.getApplicationManager().isServiceDescriptorExists(
serviceDescription.getType().getName()));
// Deployment descriptor
ApplicationDescription applicationDeploymentDescription = descriptorBuilder
.buildApplicationDeploymentDescription("EchoApplication", "/bin/echo", "/tmp");
log("Adding deployment description ...");
try {
airavataAPI.getApplicationManager().addApplicationDescription(serviceDescription, hostDescription,
applicationDeploymentDescription);
Assert.fail("Application Descriptor should already exists and should go to update.");
} catch (DescriptorRecordAlreadyExistsException e) {
log("Updating application description ....");
airavataAPI.getApplicationManager().updateApplicationDescription(serviceDescription, hostDescription,
applicationDeploymentDescription);
}
Assert.assertTrue(airavataAPI.getApplicationManager().isApplicationDescriptorExists(
serviceDescription.getType().getName(), hostDescription.getType().getHostName(),
applicationDeploymentDescription.getType().getApplicationName().getStringValue()));
log("Saving workflow ...");
Workflow workflow = new Workflow(getWorkflowComposeContent("src/test/resources/EchoWorkflow.xwf"));
try {