Skip to content

Commit

Permalink
Brings adding users and roles to set environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirishikesan committed Jan 24, 2024
1 parent e570a95 commit c83b9cc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ public void setEnvironment() throws Exception {
apiStore = new APIStoreRestClient(getStoreURLHttp());
apiEndPointUrl = backEndServerUrl.getWebAppURLHttp() + "jaxrs_basic/services/customers/customerservice/";
apiIdentifier = new APIIdentifier(USER_TEST, API_NAME, API_VERSION_1_0_0);
userManagementClient.addUser(USER_TEST, USER_TEST_PASSWORD, ROLE_LIST, USER_TEST);
userManagementClient.addRole(API_SUBSCRIBER, new String[]{ USER_TEST }, API_SUBSCRIBER_PERMISSIONS);
}

//1. Auth0 Key Manager
Expand Down Expand Up @@ -1150,8 +1152,6 @@ public void testAddKeyManagerWithExistingKeyManagerName() throws ApiException {
,dependsOnMethods = "testDeleteKeyManagerWithAuth0")
public void testKeyManagerPermissions() throws Exception {

userManagementClient.addUser(USER_TEST, USER_TEST_PASSWORD, ROLE_LIST, USER_TEST);
userManagementClient.addRole(API_SUBSCRIBER, new String[]{ USER_TEST }, API_SUBSCRIBER_PERMISSIONS);
String providerName = user.getUserName();

APIRequest apiRequest;
Expand Down

0 comments on commit c83b9cc

Please sign in to comment.