Search in sources :

Example 6 with PasswordPolicyTO

use of org.apache.syncope.common.lib.policy.PasswordPolicyTO in project syncope by apache.

the class PolicyITCase method getPasswordPolicy.

@Test
public void getPasswordPolicy() {
    PasswordPolicyTO policyTO = policyService.read(PolicyType.PASSWORD, "986d1236-3ac5-4a19-810c-5ab21d79cba1");
    assertNotNull(policyTO);
    assertTrue(policyTO.getUsedByResources().contains(RESOURCE_NAME_NOPROPAGATION));
    assertTrue(policyTO.getUsedByRealms().containsAll(Arrays.asList("/", "/odd", "/even")));
}
Also used : PasswordPolicyTO(org.apache.syncope.common.lib.policy.PasswordPolicyTO) Test(org.junit.jupiter.api.Test)

Aggregations

PasswordPolicyTO (org.apache.syncope.common.lib.policy.PasswordPolicyTO)6 Test (org.junit.jupiter.api.Test)4 AccountPolicyTO (org.apache.syncope.common.lib.policy.AccountPolicyTO)3 ImplementationTO (org.apache.syncope.common.lib.to.ImplementationTO)3 Response (javax.ws.rs.core.Response)2 SyncopeClientException (org.apache.syncope.common.lib.SyncopeClientException)2 DefaultPasswordRuleConf (org.apache.syncope.common.lib.policy.DefaultPasswordRuleConf)2 PullPolicyTO (org.apache.syncope.common.lib.policy.PullPolicyTO)2 RealmTO (org.apache.syncope.common.lib.to.RealmTO)2 UserTO (org.apache.syncope.common.lib.to.UserTO)2 Entity (org.apache.syncope.core.persistence.api.entity.Entity)2 Realm (org.apache.syncope.core.persistence.api.entity.Realm)2 AccountPolicy (org.apache.syncope.core.persistence.api.entity.policy.AccountPolicy)2 PasswordPolicy (org.apache.syncope.core.persistence.api.entity.policy.PasswordPolicy)2 PullPolicy (org.apache.syncope.core.persistence.api.entity.policy.PullPolicy)2 ExternalResource (org.apache.syncope.core.persistence.api.entity.resource.ExternalResource)2 Collectors (java.util.stream.Collectors)1 PolicyTO (org.apache.syncope.common.lib.policy.PolicyTO)1 AnyTypeDAO (org.apache.syncope.core.persistence.api.dao.AnyTypeDAO)1 ExternalResourceDAO (org.apache.syncope.core.persistence.api.dao.ExternalResourceDAO)1