use of org.wso2.identity.integration.common.clients.entitlement.EntitlementPolicyServiceClient in project product-is by wso2.
the class EntitlementJSONSupportMultiDecisionProfileTestCase method destroy.
@AfterClass(alwaysRun = true)
public void destroy() throws Exception {
// Remove added policy
entitlementPolicyClient = new EntitlementPolicyServiceClient(backendURL, sessionCookie);
remoteUserStoreManagerServiceClient = new RemoteUserStoreManagerServiceClient(backendURL, sessionCookie);
entitlementPolicyClient.enableDisablePolicy(POLICY_ID, false);
entitlementPolicyClient.removePolicy(POLICY_ID);
remoteUserStoreManagerServiceClient.deleteUser("adminUser");
remoteUserStoreManagerServiceClient.deleteUser("publicUser");
remoteUserStoreManagerServiceClient.deleteUser("localUser");
}
use of org.wso2.identity.integration.common.clients.entitlement.EntitlementPolicyServiceClient in project product-is by wso2.
the class EntitlementNotificationTestCase method testInit.
@BeforeClass(alwaysRun = true)
public void testInit() throws Exception {
super.init();
changeISConfiguration();
super.init();
entitlementPolicyClient = new EntitlementPolicyServiceClient(backendURL, sessionCookie);
userMgtServiceClient = new UserManagementClient(backendURL, sessionCookie);
}
use of org.wso2.identity.integration.common.clients.entitlement.EntitlementPolicyServiceClient in project product-is by wso2.
the class EntitlementPolicyAdminServiceTestCase method testInit.
@BeforeClass(alwaysRun = true)
public void testInit() throws Exception {
super.init();
entitlementPolicyClient = new EntitlementPolicyServiceClient(backendURL, sessionCookie);
}
use of org.wso2.identity.integration.common.clients.entitlement.EntitlementPolicyServiceClient in project product-is by wso2.
the class EntitlementServiceTestCase method testInit.
@BeforeClass(alwaysRun = true)
public void testInit() throws Exception {
super.init();
entitlementPolicyClient = new EntitlementPolicyServiceClient(backendURL, sessionCookie);
entitlementServiceClient = new EntitlementServiceClient(backendURL, sessionCookie);
userProfileMgtClient = new UserProfileMgtServiceClient(backendURL, sessionCookie);
}
use of org.wso2.identity.integration.common.clients.entitlement.EntitlementPolicyServiceClient in project product-is by wso2.
the class ApplicationAuthzTenantTestCase method testInit.
@BeforeClass(alwaysRun = true)
public void testInit() throws Exception {
super.init(TestUserMode.TENANT_ADMIN);
ConfigurationContext configContext = ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
applicationManagementServiceClient = new ApplicationManagementServiceClient(sessionCookie, backendURL, configContext);
ssoConfigServiceClient = new SAMLSSOConfigServiceClient(backendURL, sessionCookie);
remoteUSMServiceClient = new RemoteUserStoreManagerServiceClient(backendURL, sessionCookie);
entitlementPolicyClient = new EntitlementPolicyServiceClient(backendURL, sessionCookie);
httpClientAzUser = HttpClientBuilder.create().setDefaultCookieStore(new BasicCookieStore()).build();
httpClientNonAzUser = HttpClientBuilder.create().setDefaultCookieStore(new BasicCookieStore()).build();
createRole(AZ_TEST_TENANT_ROLE);
createUser(AZ_TEST_TENANT_USER, AZ_TEST_TENANT_USER_PW, new String[] { AZ_TEST_TENANT_ROLE });
userId = UserUtil.getUserId(MultitenantUtils.getTenantAwareUsername(AZ_TEST_TENANT_USER), isServer.getContextTenant());
createUser(NON_AZ_TEST_TENANT_USER, NON_AZ_TEST_TENANT_USER_PW, new String[0]);
createApplication(APPLICATION_NAME);
createSAMLApp(APPLICATION_NAME, true, false, false);
setupXACMLPolicy(POLICY_ID, POLICY);
}
Aggregations