| | |
| | | title: sweeper |
| | | carlicense: ABC 123 |
| | | |
| | | dn: uid=cfish, ou=People, ou=aci branch, o=Delete Tests, o=ACI Tests, dc=example,dc=com |
| | | cn: Cat Fish |
| | | sn: Fish |
| | | givenname: Cat |
| | | objectclass: top |
| | | objectclass: person |
| | | objectclass: organizationalPerson |
| | | objectclass: inetOrgPerson |
| | | ou: Product Development |
| | | ou: People |
| | | l: Santa Clara |
| | | uid: cfish |
| | | mail: cfish@example.com |
| | | telephonenumber: +1 408 555 6067 |
| | | facsimiletelephonenumber: +1 408 555 0111 |
| | | roomnumber: 2511 |
| | | userpassword: oranges |
| | | title: engineer |
| | | title: architect |
| | | title: sweeper |
| | | carlicense: ABC 123 |
| | | |
| | | dn: ou=non-aci branch, o=Delete Tests, o=ACI Tests, dc=example,dc=com |
| | | objectclass: top |
| | | objectclass: organizationalunit |
| | |
| | | title: sweeper |
| | | carlicense: ABC 123 |
| | | |
| | | dn: uid=cfish, ou=People, ou=non-aci branch, o=Delete Tests, o=ACI Tests, dc=example,dc=com |
| | | cn: Cat Fish |
| | | sn: Fish |
| | | givenname: Cat |
| | | objectclass: top |
| | | objectclass: person |
| | | objectclass: organizationalPerson |
| | | objectclass: inetOrgPerson |
| | | ou: Product Development |
| | | ou: People |
| | | l: Santa Clara |
| | | uid: cfish |
| | | mail: cfish@example.com |
| | | telephonenumber: +1 408 555 6067 |
| | | facsimiletelephonenumber: +1 408 555 0111 |
| | | roomnumber: 2511 |
| | | userpassword: oranges |
| | | title: engineer |
| | | title: architect |
| | | title: sweeper |
| | | carlicense: ABC 123 |
| | | |
| New file |
| | |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License, Version 1.0 only |
| | | # (the "License"). You may not use this file except in compliance |
| | | # with the License. |
| | | # |
| | | # You can obtain a copy of the license at |
| | | # trunk/opends/resource/legal-notices/OpenDS.LICENSE |
| | | # or https://OpenDS.dev.java.net/OpenDS.LICENSE. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at |
| | | # trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable, |
| | | # add the following below this CDDL HEADER, with the fields enclosed |
| | | # by brackets "[]" replaced with your own identifying information: |
| | | # Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Portions Copyright 2007 Sun Microsystems, Inc. |
| | | # |
| | | |
| | | dn: ou=aci branch, o=Delete Tests, o=ACI Tests, dc=example,dc=com |
| | | changetype: modify |
| | | add: aci |
| | | aci: (targetattr="*")(targetfilter="(title=sweeper)")(version 3.0; acl "add_multi_aci4"; allow (delete) userdn="ldap:///all";) |
| | | |
| | | dn: o=Delete Tests, o=ACI Tests, dc=example,dc=com |
| | | changetype: modify |
| | | add: aci |
| | | aci: (targetattr="*")(targetfilter="(title=sweeper)")(version 3.0; acl "add_multi_aci4"; deny (add,write) userdn="ldap:///all";) |
| | | |
| | | dn: dc=example,dc=com |
| | | changetype: modify |
| | | add: aci |
| | | aci: (target="ldap:///ou=aci branch, o=Delete Tests, o=ACI Tests, dc=example,dc=com")(targetattr="*")(targetfilter="(title=sweeper)")(version 3.0; acl "add_multi_aci4"; deny (search,write) userdn="ldap:///all";) |
| | | |
| | | dn: o=ACI Tests, dc=example,dc=com |
| | | changetype: modify |
| | | add: aci |
| | | aci: (target="ldap:///ou=aci branch, o=Delete Tests, o=ACI Tests, dc=example,dc=com")(targetattr="*")(targattrfilters="add=l:(l=Paris),del=l:(|(l=San*)(l=Aus*)(l=Gren*))")(version 3.0; acl "add_multi_aci4"; deny (search,read) userdn="ldap:///ou=aci branch, o=Delete Tests, o=ACI Tests, dc=example,dc=com";) |
| | | |
| | | dn: dc=example,dc=com |
| | | changetype: modify |
| | | add: aci |
| | | aci: (target="ldap:///o=ACI Tests, dc=example,dc=com")(targetattr="*")(version 3.0; acl "add_multi_aci4"; deny (selfwrite) userdn="ldap:///all";) |
| | | |
| | | |
| New file |
| | |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License, Version 1.0 only |
| | | # (the "License"). You may not use this file except in compliance |
| | | # with the License. |
| | | # |
| | | # You can obtain a copy of the license at |
| | | # trunk/opends/resource/legal-notices/OpenDS.LICENSE |
| | | # or https://OpenDS.dev.java.net/OpenDS.LICENSE. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at |
| | | # trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable, |
| | | # add the following below this CDDL HEADER, with the fields enclosed |
| | | # by brackets "[]" replaced with your own identifying information: |
| | | # Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Portions Copyright 2007 Sun Microsystems, Inc. |
| | | # |
| | | |
| | | dn: ou=aci branch, o=Delete Tests, o=ACI Tests, dc=example,dc=com |
| | | changetype: modify |
| | | add: aci |
| | | aci: (targetattr="*")(targetfilter="(title=sweeper)")(version 3.0; acl "add_multi_aci5"; allow (delete) userdn="ldap:///all";) |
| | | |
| | | dn: o=Delete Tests, o=ACI Tests, dc=example,dc=com |
| | | changetype: modify |
| | | add: aci |
| | | aci: (targetattr="*")(version 3.0; acl "add_multi_aci5"; deny (delete) userdn="ldap:///uid=buser, ou=People, o=ACI Tests, dc=example,dc=com";) |
| | | |
| | | dn: dc=example,dc=com |
| | | changetype: modify |
| | | add: aci |
| | | aci: (target="ldap:///ou=aci branch, o=Delete Tests, o=ACI Tests, dc=example,dc=com")(targetattr="*")(targetfilter="(title=sweeper)")(version 3.0; acl "add_multi_aci5"; deny (search,write) userdn="ldap:///all";) |
| | | |
| | | dn: o=ACI Tests, dc=example,dc=com |
| | | changetype: modify |
| | | add: aci |
| | | aci: (target="ldap:///ou=aci branch, o=Delete Tests, o=ACI Tests, dc=example,dc=com")(targetattr="*")(targattrfilters="add=l:(l=Paris),del=l:(|(l=San*)(l=Aus*)(l=Gren*))")(version 3.0; acl "add_multi_aci5"; deny (search,read) userdn="ldap:///ou=aci branch, o=Delete Tests, o=ACI Tests, dc=example,dc=com";) |
| | | |
| | | dn: dc=example,dc=com |
| | | changetype: modify |
| | | add: aci |
| | | aci: (target="ldap:///o=ACI Tests, dc=example,dc=com")(targetattr="*")(version 3.0; acl "add_multi_aci5"; deny (selfwrite) userdn="ldap:///all";) |
| | | |
| | | |
| New file |
| | |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License, Version 1.0 only |
| | | # (the "License"). You may not use this file except in compliance |
| | | # with the License. |
| | | # |
| | | # You can obtain a copy of the license at |
| | | # trunk/opends/resource/legal-notices/OpenDS.LICENSE |
| | | # or https://OpenDS.dev.java.net/OpenDS.LICENSE. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at |
| | | # trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable, |
| | | # add the following below this CDDL HEADER, with the fields enclosed |
| | | # by brackets "[]" replaced with your own identifying information: |
| | | # Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Portions Copyright 2007 Sun Microsystems, Inc. |
| | | # |
| | | |
| | | dn: uid=tmorris, ou=People, ou=aci branch, o=Delete Tests, o=ACI Tests, dc=example,dc=com |
| | | changetype: delete |
| New file |
| | |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License, Version 1.0 only |
| | | # (the "License"). You may not use this file except in compliance |
| | | # with the License. |
| | | # |
| | | # You can obtain a copy of the license at |
| | | # trunk/opends/resource/legal-notices/OpenDS.LICENSE |
| | | # or https://OpenDS.dev.java.net/OpenDS.LICENSE. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at |
| | | # trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable, |
| | | # add the following below this CDDL HEADER, with the fields enclosed |
| | | # by brackets "[]" replaced with your own identifying information: |
| | | # Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Portions Copyright 2007 Sun Microsystems, Inc. |
| | | # |
| | | |
| | | dn: uid=tmorris, ou=People, ou=non-aci branch, o=Delete Tests, o=ACI Tests, dc=example,dc=com |
| | | changetype: delete |
| New file |
| | |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License, Version 1.0 only |
| | | # (the "License"). You may not use this file except in compliance |
| | | # with the License. |
| | | # |
| | | # You can obtain a copy of the license at |
| | | # trunk/opends/resource/legal-notices/OpenDS.LICENSE |
| | | # or https://OpenDS.dev.java.net/OpenDS.LICENSE. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at |
| | | # trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable, |
| | | # add the following below this CDDL HEADER, with the fields enclosed |
| | | # by brackets "[]" replaced with your own identifying information: |
| | | # Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Portions Copyright 2007 Sun Microsystems, Inc. |
| | | # |
| | | |
| | | dn: uid=cfish, ou=People, ou=aci branch, o=Delete Tests, o=ACI Tests, dc=example,dc=com |
| | | changetype: delete |
| New file |
| | |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License, Version 1.0 only |
| | | # (the "License"). You may not use this file except in compliance |
| | | # with the License. |
| | | # |
| | | # You can obtain a copy of the license at |
| | | # trunk/opends/resource/legal-notices/OpenDS.LICENSE |
| | | # or https://OpenDS.dev.java.net/OpenDS.LICENSE. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at |
| | | # trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable, |
| | | # add the following below this CDDL HEADER, with the fields enclosed |
| | | # by brackets "[]" replaced with your own identifying information: |
| | | # Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Portions Copyright 2007 Sun Microsystems, Inc. |
| | | # |
| | | |
| | | dn: uid=cfish, ou=People, ou=non-aci branch, o=Delete Tests, o=ACI Tests, dc=example,dc=com |
| | | changetype: delete |
| New file |
| | |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License, Version 1.0 only |
| | | # (the "License"). You may not use this file except in compliance |
| | | # with the License. |
| | | # |
| | | # You can obtain a copy of the license at |
| | | # trunk/opends/resource/legal-notices/OpenDS.LICENSE |
| | | # or https://OpenDS.dev.java.net/OpenDS.LICENSE. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at |
| | | # trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable, |
| | | # add the following below this CDDL HEADER, with the fields enclosed |
| | | # by brackets "[]" replaced with your own identifying information: |
| | | # Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Portions Copyright 2007 Sun Microsystems, Inc. |
| | | # |
| | | |
| | | dn: ou=aci branch, o=Delete Tests,o=ACI Tests, dc=example,dc=com |
| | | changetype: modify |
| | | delete: aci |
| | | |
| | | dn: o=Delete Tests,o=ACI Tests, dc=example,dc=com |
| | | changetype: modify |
| | | delete: aci |
| | | |
| | | dn: o=ACI Tests, dc=example,dc=com |
| | | changetype: modify |
| | | delete: aci |
| | | |
| | | dn: dc=example,dc=com |
| | | changetype: modify |
| | | delete: aci |
| | | |
| | |
| | | #@TestName Add Entry - Multi ACIs 1, overall deny |
| | | #@TestIssue 439 |
| | | #@TestPurpose Add an entry against two ACIs with with overall deny |
| | | #@TestPreamble Admin adds an aci to the dn of one existing branch. |
| | | #@TestPreamble Admin adds two acis. |
| | | #@TestStep Client adds an entry in the targeted branch. |
| | | #@TestStep Client adds an entry in the non-targeted branch. |
| | | #@TestStep Remove aci. |
| | |
| | | #@TestName Add Entry - Multi ACIs 2, overall allow |
| | | #@TestIssue 439 |
| | | #@TestPurpose Add an entry against two ACIs with an overall allow |
| | | #@TestPreamble Admin adds an aci to the dn of one existing branch. |
| | | #@TestPreamble Admin adds two acis. |
| | | #@TestStep Client adds an entry in the targeted branch. |
| | | #@TestStep Client adds an entry in the non-targeted branch. |
| | | #@TestStep Remove aci. |
| | |
| | | #@TestName Add Entry - Multi ACIs 3, mixed allow and deny |
| | | #@TestIssue 439 |
| | | #@TestPurpose Add an entry against multiple ACIs where the allow or deny depends on specific userds |
| | | #@TestPreamble Admin adds an aci to the dn of one existing branch. |
| | | #@TestPreamble Admin adds two acis. |
| | | #@TestStep Client adds an entry in the targeted branch. |
| | | #@TestStep Client adds an entry in the targeted branch by a prohibited user. |
| | | #@TestStep Client adds an entry in the non-targeted branch. |
| | |
| | | Place test-specific test information here. |
| | | The tag, TestMarker, must be the same as the tag, TestSuiteName. |
| | | #@TestMarker ACI Add Entry Tests |
| | | #@TestName Add Entry - Multi ACIs 4, overall allow |
| | | #@TestName Add Entry - Multi ACIs 4, overall allow with many ACIs |
| | | #@TestIssue 439 |
| | | #@TestPurpose Add an entry against two ACIs with an overall allow |
| | | #@TestPreamble Admin adds an aci to the dn of one existing branch. |
| | | #@TestPurpose Add an entry against many ACIs with an overall allow |
| | | #@TestPreamble Admin adds many acis. |
| | | #@TestStep Client adds an entry in the targeted branch. |
| | | #@TestStep Client adds an entry in the non-targeted branch. |
| | | #@TestStep Remove aci. |
| | |
| | | #@TestMarker ACI Add Entry Tests |
| | | #@TestName Add Entry - Multi ACIs 5, mixed allow and deny with many ACIs |
| | | #@TestIssue 439 |
| | | #@TestPurpose Add an entry against multiple ACIs where the allow or deny depends on specific userds |
| | | #@TestPreamble Admin adds an aci to the dn of one existing branch. |
| | | #@TestPurpose Add an entry against many ACIs where the allow or deny depends on specific userds |
| | | #@TestPreamble Admin adds many acis. |
| | | #@TestStep Client adds an entry in the targeted branch. |
| | | #@TestStep Client adds an entry in the targeted branch by a prohibited user. |
| | | #@TestStep Client adds an entry in the non-targeted branch. |
| | |
| | | 'entryToBeModified' : '%s/aci/aci_delete_entry/del_targetfilter_entry5.ldif' % STAGED_DATA_DIR } |
| | | </call> |
| | | |
| | | <if expr="RC != 0"> |
| | | <if expr="RC != 50"> |
| | | <tcstatus result="'fail'"/> |
| | | </if> |
| | | |
| | |
| | | #@TestPostamble none |
| | | #@TestResult Success if OpenDS returns 0 |
| | | for ACI add and delete operations, |
| | | 0 for step 1, and |
| | | 0 for steps 1 and 2, and |
| | | 50 for all other steps. |
| | | --> |
| | | <!-- cross reference to http://docs.sun.com/source/816-6698-10/aci.html --> |
| | |
| | | 'entryToBeModified' : '%s/aci/aci_delete_entry/del_targetattr_entry2.ldif' % STAGED_DATA_DIR } |
| | | </call> |
| | | |
| | | <if expr="RC != 50"> |
| | | <if expr="RC != 0"> |
| | | <tcstatus result="'fail'"/> |
| | | </if> |
| | | |
| | |
| | | Place test-specific test information here. |
| | | The tag, TestMarker, must be the same as the tag, TestSuiteName. |
| | | #@TestMarker ACI Delete Entry Tests |
| | | #@TestName Delete Entry - Multi ACIs 1 |
| | | #@TestName Delete Entry - Multi ACIs 1, overall deny |
| | | #@TestIssue 442 |
| | | #@TestPurpose Test delete with 2 ACIs |
| | | #@TestPurpose Test delete with 2 ACIs, overall deny |
| | | #@TestPreamble Admin adds two acis. |
| | | #@TestStep Client deletes an entry with the targeted branch. |
| | | #@TestStep Client deletes an entry that is not with the targeted branch. |
| | |
| | | --> |
| | | <!-- cross reference to http://docs.sun.com/source/816-6698-10/aci.html --> |
| | | <!-- cross reference to DS6 docs --> |
| | | <testcase name="'ACI: Delete: Delete Entry - multi ACIs 1'"> |
| | | <testcase name="'ACI: Delete: Delete Entry - multi ACIs 1, overall deny'"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | |
| | | Place test-specific test information here. |
| | | The tag, TestMarker, must be the same as the tag, TestSuiteName. |
| | | #@TestMarker ACI Delete Entry Tests |
| | | #@TestName Delete Entry - Multi ACIs 2 |
| | | #@TestName Delete Entry - Multi ACIs 2, overall allow |
| | | #@TestIssue 442 |
| | | #@TestPurpose Test delete with 2 ACIs |
| | | #@TestPurpose Test delete with 2 ACIs, overall allow |
| | | #@TestPreamble Admin adds two acis. |
| | | #@TestStep Client deletes an entry with the targeted branch. |
| | | #@TestStep Client deletes an entry that is not with the targeted branch. |
| | |
| | | --> |
| | | <!-- cross reference to http://docs.sun.com/source/816-6698-10/aci.html --> |
| | | <!-- cross reference to DS6 docs --> |
| | | <testcase name="'ACI: Delete: Delete Entry - multi ACIs 2'"> |
| | | <testcase name="'ACI: Delete: Delete Entry - multi ACIs 2, overall allow'"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | |
| | | Place test-specific test information here. |
| | | The tag, TestMarker, must be the same as the tag, TestSuiteName. |
| | | #@TestMarker ACI Delete Entry Tests |
| | | #@TestName Delete Entry - Multi ACIs 3 |
| | | #@TestName Delete Entry - Multi ACIs 3, mixed allow and deny |
| | | #@TestIssue 442 |
| | | #@TestPurpose Test delete with 2 ACIs |
| | | #@TestPurpose Test delete with 2 ACIs, mixed allow and deny |
| | | #@TestPreamble Admin adds two acis. |
| | | #@TestStep Client deletes an entry with the targeted branch by a prohibited userdn. |
| | | #@TestStep Client deletes an entry with the targeted branch. |
| | |
| | | --> |
| | | <!-- cross reference to http://docs.sun.com/source/816-6698-10/aci.html --> |
| | | <!-- cross reference to DS6 docs --> |
| | | <testcase name="'ACI: Delete: Delete Entry - multi ACIs 3'"> |
| | | <testcase name="'ACI: Delete: Delete Entry - multi ACIs 3, mixed allow and deny'"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=buser,ou=people,o=ACI Tests,dc=example,dc=com' , |
| | | 'dsInstancePswd' : 'ACIRules' , |
| | | 'entryToBeModified' : '%s/aci/aci_delete_entry/del_multi_aci_entry3.ldif' % STAGED_DATA_DIR } |
| | | 'entryToBeModified' : '%s/aci/aci_delete_entry/del_common_prohibited_entry.ldif' % STAGED_DATA_DIR } |
| | | </call> |
| | | |
| | | <if expr="RC != 50"> |
| | |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- |
| | | Place test-specific test information here. |
| | | The tag, TestMarker, must be the same as the tag, TestSuiteName. |
| | | #@TestMarker ACI Delete Entry Tests |
| | | #@TestName Delete Entry - Multi ACIs 4, overall allow with many ACIs |
| | | #@TestIssue 442 |
| | | #@TestPurpose Test delete with many ACIs, overall allow with many ACIs |
| | | #@TestPreamble Admin adds two acis. |
| | | #@TestStep Client deletes an entry with the targeted branch. |
| | | #@TestStep Client deletes an entry that is not with the targeted branch. |
| | | #@TestStep Remove aci. |
| | | #@TestStep Client deletes an entry with the previously targeted branch. |
| | | #@TestPostamble none |
| | | #@TestResult Success if OpenDS returns 0 |
| | | for ACI add and delete operations, |
| | | 0 for step 1, and |
| | | 50 for all other steps. |
| | | --> |
| | | <!-- cross reference to http://docs.sun.com/source/816-6698-10/aci.html --> |
| | | <!-- cross reference to DS6 docs --> |
| | | <testcase name="'ACI: Delete: Delete Entry - multi ACIs 4, overall allow with many ACIs'"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <script> |
| | | curr_aci_ldif_file = '%s/aci/aci_delete_entry/add_multi_acis4.ldif' % LOCAL_DATA_DIR |
| | | curr_aci=retrieve_aci('%s' % curr_aci_ldif_file); |
| | | </script> |
| | | |
| | | <message> |
| | | 'ACI: Delete: Delete Entry - multi ACIs 4, preamble adding aci,\n %s' % curr_aci |
| | | </message> |
| | | |
| | | <call function="'modifyEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'entryToBeModified' : '%s' % curr_aci_ldif_file } |
| | | </call> |
| | | |
| | | <if expr="RC != 0"> |
| | | <tcstatus result="'fail'"/> |
| | | </if> |
| | | |
| | | <message> |
| | | 'ACI: Delete: Delete Entry - multi ACIs 4, user deleting entry from targeted branch' |
| | | </message> |
| | | |
| | | <call function="'modifyEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' , |
| | | 'dsInstancePswd' : 'ACIRules' , |
| | | 'entryToBeModified' : '%s/aci/aci_delete_entry/del_multi_aci_entry4.ldif' % STAGED_DATA_DIR } |
| | | </call> |
| | | |
| | | <if expr="RC != 0"> |
| | | <tcstatus result="'fail'"/> |
| | | </if> |
| | | |
| | | <message> |
| | | 'ACI: Delete: Delete Entry - multi ACIs 4, user deleting entry from non-targeted branch' |
| | | </message> |
| | | |
| | | <call function="'modifyEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' , |
| | | 'dsInstancePswd' : 'ACIRules' , |
| | | 'entryToBeModified' : '%s/aci/aci_delete_entry/del_multi_aci_entry4a.ldif' % STAGED_DATA_DIR } |
| | | </call> |
| | | |
| | | <if expr="RC != 50"> |
| | | <tcstatus result="'fail'"/> |
| | | </if> |
| | | |
| | | <message> |
| | | 'ACI: Delete: Delete Entry - multi ACIs 4, admin deleting aci' |
| | | </message> |
| | | |
| | | <call function="'modifyEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'entryToBeModified' : '%s/aci/aci_delete_entry/del_multi_acis2.ldif' % STAGED_DATA_DIR } |
| | | </call> |
| | | |
| | | <if expr="RC != 0"> |
| | | <tcstatus result="'fail'"/> |
| | | </if> |
| | | |
| | | <message> |
| | | 'ACI: Delete: Delete Entry - multi ACIs 4, user deleting entry in previously targeted branch' |
| | | </message> |
| | | |
| | | <call function="'modifyEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' , |
| | | 'dsInstancePswd' : 'ACIRules' , |
| | | 'entryToBeModified' : '%s/aci/aci_delete_entry/del_common_prohibited_entry.ldif' % STAGED_DATA_DIR } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult , |
| | | 'expected' : 50 } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- |
| | | Place test-specific test information here. |
| | | The tag, TestMarker, must be the same as the tag, TestSuiteName. |
| | | #@TestMarker ACI Delete Entry Tests |
| | | #@TestName Delete Entry - Multi ACIs 5, mixed allow and deny with many ACIs |
| | | #@TestIssue 442 |
| | | #@TestPurpose Test delete with many ACIs, mixed allow and deny with many ACIs |
| | | #@TestPreamble Admin adds many acis, mixed allow and deny with many ACIs. |
| | | #@TestStep Client deletes an entry with the targeted branch by a prohibited userdn. |
| | | #@TestStep Client deletes an entry with the targeted branch. |
| | | #@TestStep Client deletes an entry that is not with the targeted branch. |
| | | #@TestStep Remove aci. |
| | | #@TestStep Client deletes an entry with the previously targeted branch. |
| | | #@TestPostamble none |
| | | #@TestResult Success if OpenDS returns 0 |
| | | for ACI add and delete operations, |
| | | 0 for step 2, and |
| | | 50 for all other steps. |
| | | --> |
| | | <!-- cross reference to http://docs.sun.com/source/816-6698-10/aci.html --> |
| | | <!-- cross reference to DS6 docs --> |
| | | <testcase name="'ACI: Delete: Delete Entry - multi ACIs 5, mixed allow and deny with many ACIs'"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <script> |
| | | curr_aci_ldif_file = '%s/aci/aci_delete_entry/add_multi_acis5.ldif' % LOCAL_DATA_DIR |
| | | curr_aci=retrieve_aci('%s' % curr_aci_ldif_file); |
| | | </script> |
| | | |
| | | <message> |
| | | 'ACI: Delete: Delete Entry - multi ACIs 5, preamble adding aci,\n %s' % curr_aci |
| | | </message> |
| | | |
| | | <call function="'modifyEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'entryToBeModified' : '%s' % curr_aci_ldif_file } |
| | | </call> |
| | | |
| | | <if expr="RC != 0"> |
| | | <tcstatus result="'fail'"/> |
| | | </if> |
| | | |
| | | <message> |
| | | 'ACI: Delete: Delete Entry - multi ACIs 5, user deleting entry from targeted branch by a prohibited userdn' |
| | | </message> |
| | | |
| | | <call function="'modifyEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=buser,ou=people,o=ACI Tests,dc=example,dc=com' , |
| | | 'dsInstancePswd' : 'ACIRules' , |
| | | 'entryToBeModified' : '%s/aci/aci_delete_entry/del_common_prohibited_entry.ldif' % STAGED_DATA_DIR } |
| | | </call> |
| | | |
| | | <if expr="RC != 50"> |
| | | <tcstatus result="'fail'"/> |
| | | </if> |
| | | |
| | | <message> |
| | | 'ACI: Delete: Delete Entry - multi ACIs 5, user deleting entry from targeted branch' |
| | | </message> |
| | | |
| | | <call function="'modifyEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' , |
| | | 'dsInstancePswd' : 'ACIRules' , |
| | | 'entryToBeModified' : '%s/aci/aci_delete_entry/del_multi_aci_entry5.ldif' % STAGED_DATA_DIR } |
| | | </call> |
| | | |
| | | <if expr="RC != 0"> |
| | | <tcstatus result="'fail'"/> |
| | | </if> |
| | | |
| | | <message> |
| | | 'ACI: Delete: Delete Entry - multi ACIs 5, user deleting entry from non-targeted branch' |
| | | </message> |
| | | |
| | | <call function="'modifyEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' , |
| | | 'dsInstancePswd' : 'ACIRules' , |
| | | 'entryToBeModified' : '%s/aci/aci_delete_entry/del_multi_aci_entry5a.ldif' % STAGED_DATA_DIR } |
| | | </call> |
| | | |
| | | <if expr="RC != 50"> |
| | | <tcstatus result="'fail'"/> |
| | | </if> |
| | | |
| | | <message> |
| | | 'ACI: Delete: Delete Entry - multi ACIs 5, admin deleting aci' |
| | | </message> |
| | | |
| | | <call function="'modifyEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'entryToBeModified' : '%s/aci/aci_delete_entry/del_multi_acis2.ldif' % STAGED_DATA_DIR } |
| | | </call> |
| | | |
| | | <if expr="RC != 0"> |
| | | <tcstatus result="'fail'"/> |
| | | </if> |
| | | |
| | | <message> |
| | | 'ACI: Delete: Delete Entry - multi ACIs 5, user deleting entry in previously targeted branch' |
| | | </message> |
| | | |
| | | <call function="'modifyEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' , |
| | | 'dsInstancePswd' : 'ACIRules' , |
| | | 'entryToBeModified' : '%s/aci/aci_delete_entry/del_common_prohibited_entry.ldif' % STAGED_DATA_DIR } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult , |
| | | 'expected' : 50 } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- |
| | | Place test-specific test information here. |
| | | The tag, TestMarker, must be the same as the tag, TestSuiteName. |