Search in sources :

Example 1 with ApplicationProperties

use of org.apache.airavata.testsuite.multitenantedairavata.utils.ApplicationProperties in project airavata by apache.

the class ApplicationRegister method addLocalEchoApplication.

private ApplicationProperties addLocalEchoApplication() throws Exception {
    Gateway testGateway = airavata.getGateway(authzToken, props.getGname());
    String localEchoModuleId = airavata.registerApplicationModule(authzToken, props.getGname(), createApplicationModule(TestFrameworkConstants.AppcatalogConstants.LOCAL_ECHO_NAME, TestFrameworkConstants.AppcatalogConstants.LOCAL_ECHO_VERSION, TestFrameworkConstants.AppcatalogConstants.LOCAL_ECHO_DESCRIPTION));
    System.out.println("Echo Module Id " + localEchoModuleId);
    String echoInterfaceId = registerLocalEchoInterface(testGateway, localEchoModuleId);
    applicationInterfaceListPerGateway.put(echoInterfaceId, testGateway.getGatewayId());
    String echoLocalAppDeployId = airavata.registerApplicationDeployment(authzToken, testGateway.getGatewayId(), createApplicationDeployment(localEchoModuleId, localResourceId, TestFrameworkConstants.LOCAL_ECHO_JOB_FILE_PATH, ApplicationParallelismType.SERIAL, TestFrameworkConstants.AppcatalogConstants.LOCAL_ECHO_DESCRIPTION, null, null, null));
    applicationDeployementListPerGateway.put(echoLocalAppDeployId, testGateway.getGatewayId());
    return new ApplicationProperties(localEchoModuleId, echoInterfaceId, echoLocalAppDeployId);
}
Also used : Gateway(org.apache.airavata.model.workspace.Gateway) ApplicationProperties(org.apache.airavata.testsuite.multitenantedairavata.utils.ApplicationProperties)

Aggregations

Gateway (org.apache.airavata.model.workspace.Gateway)1 ApplicationProperties (org.apache.airavata.testsuite.multitenantedairavata.utils.ApplicationProperties)1