Skip to content

Commit

Permalink
Merge pull request #16825 from Thisara-Welmilla/fix-failed-api-tests
Browse files Browse the repository at this point in the history
Fix failing is-test-rest-api integration tests
  • Loading branch information
Thisara-Welmilla authored Oct 16, 2023
2 parents 5b46b27 + 597906d commit c26189a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public ApplicationAuthorizedAppsSuccessTest(TestUserMode userMode) throws Except

super.init(userMode);
this.context = isServer;
this.authenticatingUserName = context.getContextTenant().getTenantAdmin().getUserName();
this.authenticatingUserName = context.getContextTenant().getTenantAdmin().getUserNameWithoutDomain();
this.authenticatingCredential = context.getContextTenant().getTenantAdmin().getPassword();
this.tenant = context.getContextTenant().getDomain();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public MeAuthorizedAppsSuccessTest(TestUserMode userMode) throws Exception {

super.init(userMode);
this.context = isServer;
this.authenticatingUserName = context.getContextTenant().getTenantAdmin().getUserName();
this.authenticatingUserName = context.getContextTenant().getTenantAdmin().getUserNameWithoutDomain();
this.authenticatingCredential = context.getContextTenant().getTenantAdmin().getPassword();
this.tenant = context.getContextTenant().getDomain();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public void testGetSessionsWithPagination() {

private void authenticateUser(String user) {

this.authenticatingUserName = user + "@" + tenant;
this.authenticatingUserName = user;
this.authenticatingCredential = TEST_USER_PASSWORD;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public UserSessionMeSuccessTest(TestUserMode userMode, String username1, String
this.tenant = context.getContextTenant().getDomain();
this.session_test_user1 = username1;
this.session_test_user2 = username2;
this.authenticatingUserName = session_test_user1 + "@" + tenant;
this.authenticatingUserName = session_test_user1;
this.authenticatingCredential = TEST_USER_PASSWORD;
}

Expand Down

0 comments on commit c26189a

Please sign in to comment.