use of com.axway.apim.users.UserApp in project apim-cli by Axway-API-Management-Plus.
the class ExportUserTestAction method runTest.
@Override
public ExportResult runTest(TestContext context) {
UserExportParams params = new UserExportParams();
addParameters(params, context);
params.setLoginName(getParamLoginName(context));
UserApp app = new UserApp();
LOG.info("Running " + app.getClass().getSimpleName() + " with params: " + params);
ExportResult result = app.export(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.users.UserApp in project apim-cli by Axway-API-Management-Plus.
the class ImportUserTestAction method runTest.
@Override
public void runTest(TestContext context) {
UserImportParams params = new UserImportParams();
addParameters(params, context);
params.setConfig(this.configFile.getPath());
UserApp app = new UserApp();
LOG.info("Running " + app.getClass().getSimpleName() + " with params: " + params);
ImportResult result = app.importUsers(params);
if (this.getExpectedReturnCode(context) != result.getRc()) {
throw new ValidationException("Expected RC was: " + this.getExpectedReturnCode(context) + " but got: " + result.getRc());
}
}
Aggregations