Skip to content

Commit

Permalink
- fix integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
rathnapandi committed Dec 20, 2023
1 parent 18e98c3 commit a6e23c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ env:
CACHE_FILE_APIM: api-manager_7_7_20231130.cache.tar
CACHE_FILE_CASSANDRA: cassandra_4_0_11.cache.tar
FED_FILE: swagger-promote-7.7-20231130.fed
LOG_LEVEL: debug
LOG_LEVEL: info

jobs:
build:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public void runImportUser(@Optional @CitrusResource TestContext context) {
variable("userCustomProperty2", "2");
variable("userCustomProperty3", "true");
$(echo("####### Import user: '${loginName}' having custom properties and a password #######"));

String updatedConfigFile = TestUtils.createTestConfig("/com/axway/apim/users/userImport/SingleUser.json", context, "users", true);
$(testContext -> {
String[] args = {"user", "import", "-c", updatedConfigFile, "-h", testContext.replaceDynamicContentInString("${apiManagerHost}"), "-u", testContext.replaceDynamicContentInString("${apiManagerUser}"), "-p", testContext.replaceDynamicContentInString("${apiManagerPass}")};
Expand All @@ -64,9 +65,7 @@ public void runImportUser(@Optional @CitrusResource TestContext context) {

$(echo("####### Try to login with created user #######"));
$(http().client(apiManager).send().post("/login").message().contentType(MediaType.APPLICATION_FORM_URLENCODED_VALUE)
.body("username=${loginName}&password=${password}&success=/title"));

.body("username=${loginName}&password=${password}"));
$(http().client(apiManager).receive().response(HttpStatus.OK));

}
}

0 comments on commit a6e23c7

Please sign in to comment.