Skip to content

Commit

Permalink
Fixing failing test (4.0 schema)
Browse files Browse the repository at this point in the history
  • Loading branch information
semancik committed Nov 8, 2019
1 parent 90bbfd5 commit 0c31ca2
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 26 deletions.
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2010-2017 Evolveum and contributors
~ Copyright (c) 2010-2019 Evolveum and contributors
~
~ This work is dual-licensed under the Apache License 2.0
~ and European Union Public License. See LICENSE file for details.
Expand All @@ -10,13 +10,6 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<name>Testing Password History Policy</name>
<description>Testing password history policy</description>
<lifetime>
<expiration>999</expiration>
<warnBeforeExpiration>9</warnBeforeExpiration>
<lockAfterExpiration>0</lockAfterExpiration>
<minPasswordAge>0</minPasswordAge>
<!-- <passwordHistoryLength>3</passwordHistoryLength> -->
</lifetime>
<stringPolicy>
<description>Testing string policy</description>
<limitations>
Expand Down
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2010-2017 Evolveum and contributors
~ Copyright (c) 2010-2019 Evolveum and contributors
~
~ This work is dual-licensed under the Apache License 2.0
~ and European Union Public License. See LICENSE file for details.
Expand All @@ -10,13 +10,6 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<name>Testing Password History Policy - No History</name>
<description>Testing password history policy</description>
<lifetime>
<expiration>999</expiration>
<warnBeforeExpiration>9</warnBeforeExpiration>
<lockAfterExpiration>0</lockAfterExpiration>
<minPasswordAge>0</minPasswordAge>
<!-- <passwordHistoryLength>0</passwordHistoryLength> -->
</lifetime>
<stringPolicy>
<description>Testing string policy</description>
<limitations>
Expand Down
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2017 Evolveum and contributors
~ Copyright (c) 2017-2019 Evolveum and contributors
~
~ This work is dual-licensed under the Apache License 2.0
~ and European Union Public License. See LICENSE file for details.
Expand All @@ -15,5 +15,4 @@
<minLength>2</minLength>
</limitations>
</stringPolicy>
<minOccurs>0</minOccurs> <!-- Allow no password -->
</valuePolicy>
22 changes: 14 additions & 8 deletions model/model-intest/src/test/resources/common/role-thief.xml
@@ -1,5 +1,5 @@
<!--
~ Copyright (c) 2015-2016 Evolveum and contributors
~ Copyright (c) 2015-2019 Evolveum and contributors
~
~ This work is dual-licensed under the Apache License 2.0
~ and European Union Public License. See LICENSE file for details.
Expand All @@ -10,11 +10,17 @@
xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance/10000000-0000-0000-0000-000000000004">
<name>Thief</name>
<!-- No construction here. By purpose: to test exclusivity without any constructions. -->
<policyConstraints>
<exclusion>
<description>A thief cannot be a pirate at the same time. At least not openly.</description>
<enforcement>enforce</enforcement>
<targetRef oid="12345111-1111-2222-1111-121212111111" type="RoleType"/> <!-- Judge -->
</exclusion>
</policyConstraints>
<assignment>
<policyRule>
<policyConstraints>
<exclusion>
<description>A thief cannot be a pirate at the same time. At least not openly.</description>
<targetRef oid="12345111-1111-2222-1111-121212111111" type="RoleType"/> <!-- Judge -->
</exclusion>
</policyConstraints>
<policyActions>
<enforcement/>
</policyActions>
</policyRule>
</assignment>
</role>

0 comments on commit 0c31ca2

Please sign in to comment.