use of com.axway.apim.organization.OrganizationApp in project apim-cli by Axway-API-Management-Plus.
the class ExportOrganizationTestAction method runTest.
@Override
public ExportResult runTest(TestContext context) {
OrgExportParams params = new OrgExportParams();
addParameters(params, context);
params.setName(getVariable(context, PARAM_NAME));
OrganizationApp app = new OrganizationApp();
LOG.info("Running " + app.getClass().getSimpleName() + " with params: " + params);
ExportResult result = app.exportOrgs(params);
if (this.getExpectedReturnCode(context) != result.getRc()) {
throw new ValidationException("Expected RC was: " + this.getExpectedReturnCode(context) + " but got: " + result.getRc());
}
return result;
}
use of com.axway.apim.organization.OrganizationApp in project apim-cli by Axway-API-Management-Plus.
the class ImportOrganizationTestAction method runTest.
@Override
public void runTest(TestContext context) {
OrgImportParams params = new OrgImportParams();
addParameters(params, context);
params.setConfig(this.configFile.getPath());
OrganizationApp app = new OrganizationApp();
LOG.info("Running " + app.getClass().getSimpleName() + " with params: " + params);
int rc = app.importOrganization(params);
if (this.getExpectedReturnCode(context) != rc) {
throw new ValidationException("Expected RC was: " + this.getExpectedReturnCode(context) + " but got: " + rc);
}
}
Aggregations