} else {
executable = getFile("src/test/resources/comma_data.sh");
Runtime.getRuntime().exec("chmod +x "+executable.getAbsolutePath());
}
ApplicationDescription applicationDeploymentDescription = descriptorBuilder
.buildApplicationDeploymentDescription("comma_app_localhost", executable.getAbsolutePath(), OsUtils.getTempFolderPath());
ApplicationDescription applicationDeploymentDescription2 = descriptorBuilder
.buildApplicationDeploymentDescription("echo_app_localhost", OsUtils.getEchoExecutable(), OsUtils.getTempFolderPath());
log("Adding deployment description ...");
airavataAPI.getApplicationManager().addApplicationDescription(serviceDescription, hostDescription,
applicationDeploymentDescription);
Assert.assertTrue(airavataAPI.getApplicationManager().isApplicationDescriptorExists(
serviceDescription.getType().getName(), hostDescription.getType().getHostName(),
applicationDeploymentDescription.getType().getApplicationName().getStringValue()));
airavataAPI.getApplicationManager().addApplicationDescription(serviceDescription2, hostDescription,
applicationDeploymentDescription2);
Assert.assertTrue(airavataAPI.getApplicationManager().isApplicationDescriptorExists(
serviceDescription2.getType().getName(), hostDescription.getType().getHostName(),
applicationDeploymentDescription2.getType().getApplicationName().getStringValue()));
}