"127.0.0.1");
log("Adding host description ....");
addHostDescriptor(hostDescription);
ApplicationManager applicationManager = airavataAPI.getApplicationManager();
Assert.assertTrue(applicationManager.isHostDescriptorExists(
hostDescription.getType().getHostName()));
List<InputParameterType> inputParameters = new ArrayList<InputParameterType>();
inputParameters.add(descriptorBuilder.buildInputParameterType("echo_input", "echo input", DataType.STRING));
List<OutputParameterType> outputParameters = new ArrayList<OutputParameterType>();
outputParameters.add(descriptorBuilder.buildOutputParameterType("echo_output", "Echo output", DataType.STRING));
ServiceDescription serviceDescription = descriptorBuilder.buildServiceDescription("Echo", "Echo service",
inputParameters, outputParameters);
log("Adding service description ...");
addServiceDescriptor(serviceDescription, "Echo");
Assert.assertTrue(applicationManager.isServiceDescriptorExists(
serviceDescription.getType().getName()));
// Deployment descriptor
ApplicationDescription applicationDeploymentDescription = descriptorBuilder
.buildApplicationDeploymentDescription("EchoApplication", OsUtils.getEchoExecutable(), OsUtils.getTempFolderPath());
log("Adding deployment description ...");
addApplicationDescriptor(applicationDeploymentDescription, serviceDescription, hostDescription, "EchoApplication");
Assert.assertTrue(applicationManager.isApplicationDescriptorExists(
serviceDescription.getType().getName(), hostDescription.getType().getHostName(),
applicationDeploymentDescription.getType().getApplicationName().getStringValue()));
log("Saving workflow ...");
Workflow workflow = new Workflow(getWorkflowComposeContent("src/test/resources/EchoWorkflow.xwf"));