refactoring to use different backend types
5 files added
150 files modified
| | |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright 2006-2008 Sun Microsystems, Inc. |
| | | # Copyright 2006-2009 Sun Microsystems, Inc. |
| | | # |
| | | # |
| | | # dc=com sample LDIF file |
| | |
| | | objectclass: top |
| | | objectclass: domain |
| | | dc: com |
| | | aci: (target ="ldap:///dc=example,dc=com")(targetattr != |
| | | "userPassword")(version 3.0;acl "Anonymous read-search access"; |
| | | allow (read, search, compare)(userdn = "ldap:///anyone");) |
| | | aci: (target="ldap:///dc=example,dc=com") (targetattr = |
| | | "*")(version 3.0; acl "allow all Admin group"; allow(all) groupdn = |
| | | "ldap:///cn=Directory Administrators,ou=Groups,dc=example,dc=com";) |
| | | |
| | | dn: dc=example,dc=com |
| | | objectclass: top |
| | |
| | | objectclass: top |
| | | objectclass: organizationalunit |
| | | ou: People |
| | | aci: (target ="ldap:///ou=People,dc=example,dc=com")(targetattr = |
| | | "userpassword || telephonenumber || facsimiletelephonenumber")(version 3.0; |
| | | acl "Allow self entry modification";allow (write)(userdn = "ldap:///self");) |
| | | aci: (target ="ldap:///ou=People,dc=example,dc=com")(targetattr != |
| | | "cn || sn || uid")(targetfilter ="(ou=Accounting)")(version 3.0; |
| | | acl "Accounting Managers Group Permissions";allow (write) (groupdn = |
| | | "ldap:///cn=Accounting Managers,ou=groups,dc=example,dc=com");) |
| | | aci: (target ="ldap:///ou=People,dc=example,dc=com")(targetattr != |
| | | "cn || sn || uid")(targetfilter ="(ou=Human Resources)")(version 3.0; |
| | | acl "HR Group Permissions";allow (write)(groupdn = "ldap:///cn=HR Managers, |
| | | ou=groups,dc=example,dc=com |
| | | ");) |
| | | aci: (target ="ldap:///ou=People,dc=example,dc=com")(targetattr != |
| | | "cn ||sn || uid")(targetfilter ="(ou=Product Testing)")(version 3.0; |
| | | acl "QA Group Permissions";allow (write)(groupdn = "ldap:///cn=QA Managers, |
| | | ou=groups,dc=example,dc=com");) |
| | | aci: (target ="ldap:///ou=People,dc=example,dc=com")(targetattr != |
| | | "cn || sn || uid")(targetfilter ="(ou=Product Development)")(version 3.0; |
| | | acl "Engineering Group Permissions";allow (write)(groupdn = "ldap:/// |
| | | cn=PD Managers,ou=groups,dc=example,dc=com");) |
| | | |
| | | dn: ou=Special Users,dc=example,dc=com |
| | | objectclass: top |
| | |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright 2006-2008 Sun Microsystems, Inc. |
| | | # Copyright 2006-2009 Sun Microsystems, Inc. |
| | | # |
| | | # |
| | | # dc=com sample LDIF file |
| | |
| | | objectclass: top |
| | | objectclass: domain |
| | | dc: com |
| | | aci: (target ="ldap:///dc=example,dc=com")(targetattr != |
| | | "userPassword")(version 3.0;acl "Anonymous read-search access"; |
| | | allow (read, search, compare)(userdn = "ldap:///anyone");) |
| | | aci: (target="ldap:///dc=example,dc=com") (targetattr = |
| | | "*")(version 3.0; acl "allow all Admin group"; allow(all) groupdn = |
| | | "ldap:///cn=Directory Administrators,ou=Groups,dc=example,dc=com";) |
| | | |
| | | dn: dc=example,dc=com |
| | | objectclass: top |
| | |
| | | objectclass: top |
| | | objectclass: organizationalunit |
| | | ou: People |
| | | aci: (target ="ldap:///ou=People,dc=example,dc=com")(targetattr = |
| | | "userpassword || telephonenumber || facsimiletelephonenumber")(version 3.0; |
| | | acl "Allow self entry modification";allow (write)(userdn = "ldap:///self");) |
| | | aci: (target ="ldap:///ou=People,dc=example,dc=com")(targetattr != |
| | | "cn || sn || uid")(targetfilter ="(ou=Accounting)")(version 3.0; |
| | | acl "Accounting Managers Group Permissions";allow (write) (groupdn = |
| | | "ldap:///cn=Accounting Managers,ou=groups,dc=example,dc=com");) |
| | | aci: (target ="ldap:///ou=People,dc=example,dc=com")(targetattr != |
| | | "cn || sn || uid")(targetfilter ="(ou=Human Resources)")(version 3.0; |
| | | acl "HR Group Permissions";allow (write)(groupdn = "ldap:///cn=HR Managers, |
| | | ou=groups,dc=example,dc=com |
| | | ");) |
| | | aci: (target ="ldap:///ou=People,dc=example,dc=com")(targetattr != |
| | | "cn ||sn || uid")(targetfilter ="(ou=Product Testing)")(version 3.0; |
| | | acl "QA Group Permissions";allow (write)(groupdn = "ldap:///cn=QA Managers, |
| | | ou=groups,dc=example,dc=com");) |
| | | aci: (target ="ldap:///ou=People,dc=example,dc=com")(targetattr != |
| | | "cn || sn || uid")(targetfilter ="(ou=Product Development)")(version 3.0; |
| | | acl "Engineering Group Permissions";allow (write)(groupdn = "ldap:/// |
| | | cn=PD Managers,ou=groups,dc=example,dc=com");) |
| | | |
| | | dn: ou=Special Users,dc=example,dc=com |
| | | objectclass: top |
| | |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright 2006-2008 Sun Microsystems, Inc. |
| | | # Copyright 2006-2009 Sun Microsystems, Inc. |
| | | # |
| | | # |
| | | # dc=com sample LDIF file |
| | |
| | | objectclass: top |
| | | objectclass: domain |
| | | dc: com |
| | | aci: (target ="ldap:///dc=example,dc=com")(targetattr != |
| | | "userPassword")(version 3.0;acl "Anonymous read-search access"; |
| | | allow (read, search, compare)(userdn = "ldap:///anyone");) |
| | | aci: (target="ldap:///dc=example,dc=com") (targetattr = |
| | | "*")(version 3.0; acl "allow all Admin group"; allow(all) groupdn = |
| | | "ldap:///cn=Directory Administrators,ou=Groups,dc=example,dc=com";) |
| | | |
| | | dn: dc=example,dc=com |
| | | objectclass: top |
| | |
| | | objectclass: top |
| | | objectclass: organizationalunit |
| | | ou: People |
| | | aci: (target ="ldap:///ou=People,dc=example,dc=com")(targetattr = |
| | | "userpassword || telephonenumber || facsimiletelephonenumber")(version 3.0; |
| | | acl "Allow self entry modification";allow (write)(userdn = "ldap:///self");) |
| | | aci: (target ="ldap:///ou=People,dc=example,dc=com")(targetattr != |
| | | "cn || sn || uid")(targetfilter ="(ou=Accounting)")(version 3.0; |
| | | acl "Accounting Managers Group Permissions";allow (write) (groupdn = |
| | | "ldap:///cn=Accounting Managers,ou=groups,dc=example,dc=com");) |
| | | aci: (target ="ldap:///ou=People,dc=example,dc=com")(targetattr != |
| | | "cn || sn || uid")(targetfilter ="(ou=Human Resources)")(version 3.0; |
| | | acl "HR Group Permissions";allow (write)(groupdn = "ldap:///cn=HR Managers, |
| | | ou=groups,dc=example,dc=com |
| | | ");) |
| | | aci: (target ="ldap:///ou=People,dc=example,dc=com")(targetattr != |
| | | "cn ||sn || uid")(targetfilter ="(ou=Product Testing)")(version 3.0; |
| | | acl "QA Group Permissions";allow (write)(groupdn = "ldap:///cn=QA Managers, |
| | | ou=groups,dc=example,dc=com");) |
| | | aci: (target ="ldap:///ou=People,dc=example,dc=com")(targetattr != |
| | | "cn || sn || uid")(targetfilter ="(ou=Product Development)")(version 3.0; |
| | | acl "Engineering Group Permissions";allow (write)(groupdn = "ldap:/// |
| | | cn=PD Managers,ou=groups,dc=example,dc=com");) |
| | | |
| | | dn: uid=scarter, ou=People, dc=example,dc=com |
| | | cn: Sam Carter |
| | |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright 2006-2008 Sun Microsystems, Inc. |
| | | # Copyright 2006-2009 Sun Microsystems, Inc. |
| | | # |
| | | # |
| | | # dc=com sample LDIF file |
| | |
| | | objectclass: top |
| | | objectclass: domain |
| | | dc: com |
| | | aci: (target ="ldap:///dc=example,dc=com")(targetattr != |
| | | "userPassword")(version 3.0;acl "Anonymous read-search access"; |
| | | allow (read, search, compare)(userdn = "ldap:///anyone");) |
| | | aci: (target="ldap:///dc=example,dc=com") (targetattr = |
| | | "*")(version 3.0; acl "allow all Admin group"; allow(all) groupdn = |
| | | "ldap:///cn=Directory Administrators,ou=Groups,dc=example,dc=com";) |
| | | |
| | | dn: dc=example,dc=com |
| | | objectclass: top |
| | |
| | | objectclass: top |
| | | objectclass: organizationalunit |
| | | ou: People |
| | | aci: (target ="ldap:///ou=People,dc=example,dc=com")(targetattr = |
| | | "userpassword || telephonenumber || facsimiletelephonenumber")(version 3.0; |
| | | acl "Allow self entry modification";allow (write)(userdn = "ldap:///self");) |
| | | aci: (target ="ldap:///ou=People,dc=example,dc=com")(targetattr != |
| | | "cn || sn || uid")(targetfilter ="(ou=Accounting)")(version 3.0; |
| | | acl "Accounting Managers Group Permissions";allow (write) (groupdn = |
| | | "ldap:///cn=Accounting Managers,ou=groups,dc=example,dc=com");) |
| | | aci: (target ="ldap:///ou=People,dc=example,dc=com")(targetattr != |
| | | "cn || sn || uid")(targetfilter ="(ou=Human Resources)")(version 3.0; |
| | | acl "HR Group Permissions";allow (write)(groupdn = "ldap:///cn=HR Managers, |
| | | ou=groups,dc=example,dc=com |
| | | ");) |
| | | aci: (target ="ldap:///ou=People,dc=example,dc=com")(targetattr != |
| | | "cn ||sn || uid")(targetfilter ="(ou=Product Testing)")(version 3.0; |
| | | acl "QA Group Permissions";allow (write)(groupdn = "ldap:///cn=QA Managers, |
| | | ou=groups,dc=example,dc=com");) |
| | | aci: (target ="ldap:///ou=People,dc=example,dc=com")(targetattr != |
| | | "cn || sn || uid")(targetfilter ="(ou=Product Development)")(version 3.0; |
| | | acl "Engineering Group Permissions";allow (write)(groupdn = "ldap:/// |
| | | cn=PD Managers,ou=groups,dc=example,dc=com");) |
| | | |
| | | dn: uid=scarter, ou=People, dc=example,dc=com |
| | | cn: Sam Carter |
| 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 |
| | | # |
| | | # Copyright 2009 Sun Microsystems, Inc. |
| | | # |
| | | |
| | | dn: dc=com |
| | | changetype: modify |
| | | add: aci |
| | | aci: (target="ldap:///dc=groups,dc=com")(targetattr = "*")(version 3.0;acl "access for application"; allow (all)(userdn = "ldap:///uid=my_application,dc=groups,dc=com");) |
| | | - |
| | | add: aci |
| | | aci: (target="ldap:///ou=static,dc=groups,dc=com")(targetattr = "*")(version 3.0;acl "access for application"; deny (all)(groupdn = "ldap:///cn=my_staticgroup1,dc=groups,dc=com");) |
| | | - |
| | | add: aci |
| | | aci: (target="ldap:///ou=static,dc=groups,dc=com")(targetattr = "*")(version 3.0;acl "access for application"; deny (all)(groupdn = "ldap:///cn=my_staticgroup2,dc=groups,dc=com");) |
| | | - |
| | | add: aci |
| | | aci: (target="ldap:///ou=dynamic,dc=groups,dc=com")(targetattr = "*")(version 3.0;acl "access for application"; deny (all)(groupdn = "ldap:///cn=my_dynamicgroup1,dc=groups,dc=com");) |
| | | - |
| | | add: aci |
| | | aci: (target="ldap:///ou=dynamic,dc=groups,dc=com")(targetattr = "*")(version 3.0;acl "access for application"; deny (all)(groupdn = "ldap:///cn=my_dynamicgroup2,dc=groups,dc=com");) |
| 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 |
| | | # |
| | | # Copyright 2009 Sun Microsystems, Inc. |
| | | # |
| | | |
| | | dn: cn=Access Control Handler,cn=config |
| | | changetype: modify |
| | | add: ds-cfg-global-aci |
| | | ds-cfg-global-aci: (target="ldap:///dc=groups,dc=com")(targetattr = "*")(version 3.0;acl "access for application"; allow (all)(userdn = "ldap:///uid=my_application,dc=groups,dc=com");) |
| | | - |
| | | add: ds-cfg-global-aci |
| | | ds-cfg-global-aci: (target="ldap:///ou=static,dc=groups,dc=com")(targetattr = "*")(version 3.0;acl "access for application"; deny (all)(groupdn = "ldap:///cn=my_staticgroup1,dc=groups,dc=com");) |
| | | - |
| | | add: ds-cfg-global-aci |
| | | ds-cfg-global-aci: (target="ldap:///ou=static,dc=groups,dc=com")(targetattr = "*")(version 3.0;acl "access for application"; deny (all)(groupdn = "ldap:///cn=my_staticgroup2,dc=groups,dc=com");) |
| | | - |
| | | add: ds-cfg-global-aci |
| | | ds-cfg-global-aci: (target="ldap:///ou=dynamic,dc=groups,dc=com")(targetattr = "*")(version 3.0;acl "access for application"; deny (all)(groupdn = "ldap:///cn=my_dynamicgroup1,dc=groups,dc=com");) |
| | | - |
| | | add: ds-cfg-global-aci |
| | | ds-cfg-global-aci: (target="ldap:///ou=dynamic,dc=groups,dc=com")(targetattr = "*")(version 3.0;acl "access for application"; deny (all)(groupdn = "ldap:///cn=my_dynamicgroup2,dc=groups,dc=com");) |
| | |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright 2007-2008 Sun Microsystems, Inc. |
| | | # Copyright 2007-2009 Sun Microsystems, Inc. |
| | | # |
| | | |
| | | dn: dc=com |
| | | objectclass: top |
| | | objectclass: domain |
| | | dc: com |
| | | aci: (target="ldap:///dc=groups,dc=com")(targetattr = "*")(version 3.0;acl "access for application"; |
| | | allow (all)(userdn = "ldap:///uid=my_application,dc=groups,dc=com");) |
| | | aci: (target="ldap:///ou=static,dc=groups,dc=com")(targetattr = "*")(version 3.0;acl "access for application"; |
| | | deny (all)(groupdn = "ldap:///cn=my_staticgroup1,dc=groups,dc=com");) |
| | | aci: (target="ldap:///ou=static,dc=groups,dc=com")(targetattr = "*")(version 3.0;acl "access for application"; |
| | | deny (all)(groupdn = "ldap:///cn=my_staticgroup2,dc=groups,dc=com");) |
| | | aci: (target="ldap:///ou=dynamic,dc=groups,dc=com")(targetattr = "*")(version 3.0;acl "access for application"; |
| | | deny (all)(groupdn = "ldap:///cn=my_dynamicgroup1,dc=groups,dc=com");) |
| | | aci: (target="ldap:///ou=dynamic,dc=groups,dc=com")(targetattr = "*")(version 3.0;acl "access for application"; |
| | | deny (all)(groupdn = "ldap:///cn=my_dynamicgroup2,dc=groups,dc=com");) |
| | | |
| | | dn: dc=groups,dc=com |
| | | objectclass: top |
| New file |
| | |
| | | dn: uid=tmorris, ou=People, o=Privileges Tests, dc=example,dc=com |
| | | changetype: modify |
| | | add: aci |
| | | aci: (targetattr="*")(version 3.0; acl "rep_search_aci_tmorris"; allow (write) userdn="ldap:///uid=auser, o=Privileges Tests,dc=example,dc=com";) |
| | | - |
| | | dn: uid=abergin, ou=People, o=Privileges Tests, dc=example,dc=com |
| | | changetype: modify |
| | | add: aci |
| | | aci: (targetattr="*")(version 3.0; acl "del_search_aci_abergin"; allow (search,read) userdn="ldap:///uid=auser, o=Privileges Tests,dc=example,dc=com";) |
| | | - |
| | | dn: uid=dmiller, ou=People, o=Privileges Tests, dc=example,dc=com |
| | | changetype: modify |
| | | add: aci |
| | | aci: (targetattr="*")(version 3.0; acl "del_search_aci_dmiller"; allow (write) userdn="ldap:///uid=auser, o=Privileges Tests,dc=example,dc=com";) |
| | | - |
| | | dn: uid=gfarmer, ou=People, o=Privileges Tests, dc=example,dc=com |
| | | changetype: modify |
| | | add: aci |
| | | aci: (targetattr="*")(version 3.0; acl "del_search_aci_gfarmer"; allow (write) userdn="ldap:///uid=auser, o=Privileges Tests,dc=example,dc=com";) |
| New file |
| | |
| | | dn: cn=Access Control Handler,cn=config |
| | | changetype: modify |
| | | add: ds-cfg-global-aci |
| | | ds-cfg-global-aci: (targetattr="*")(version 3.0; acl "rep_search_aci_tmorris"; allow (write) userdn="ldap:///uid=auser, o=Privileges Tests,dc=example,dc=com";) |
| | | - |
| | | add: ds-cfg-global-aci |
| | | ds-cfg-global-aci: (targetattr="*")(version 3.0; acl "del_search_aci_abergin"; allow (search,read) userdn="ldap:///uid=auser, o=Privileges Tests,dc=example,dc=com";) |
| | | - |
| | | add: ds-cfg-global-aci |
| | | ds-cfg-global-aci: (targetattr="*")(version 3.0; acl "del_search_aci_dmiller"; allow (write) userdn="ldap:///uid=auser, o=Privileges Tests,dc=example,dc=com";) |
| | | - |
| | | add: ds-cfg-global-aci |
| | | ds-cfg-global-aci: (targetattr="*")(version 3.0; acl "del_search_aci_gfarmer"; allow (write) userdn="ldap:///uid=auser, o=Privileges Tests,dc=example,dc=com";) |
| | |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright 2008 Sun Microsystems, Inc. |
| | | # Copyright 2008-2009 Sun Microsystems, Inc. |
| | | # |
| | | |
| | | dn: cn=Aroot Manager,cn=Root DNs,cn=config |
| | |
| | | ds-rlim-time-limit: 0 |
| | | ds-rlim-size-limit: 0 |
| | | |
| | | dn: dc=com |
| | | dc: com |
| | | objectclass: domain |
| | | |
| | | dn: dc=example,dc=com |
| | | dc: example |
| | | objectclass: domain |
| | | |
| | | dn: o=Privileges Tests, dc=example,dc=com |
| | | o: Privileges Tests |
| | | objectclass: top |
| | |
| | | facsimiletelephonenumber: +1 408 555 8473 |
| | | roomnumber: 4117 |
| | | userpassword: irrefutable |
| | | aci: (targetattr="*")(version 3.0; acl "rep_search_aci_tmorris"; allow (write) userdn="ldap:///uid=auser, o=Privileges Tests,dc=example,dc=com";) |
| | | |
| | | dn: uid=abergin, ou=People, o=Privileges Tests, dc=example,dc=com |
| | | cn: Andy Bergin |
| | |
| | | facsimiletelephonenumber: +1 408 555 7472 |
| | | roomnumber: 3472 |
| | | userpassword: inflict |
| | | aci: (targetattr="*")(version 3.0; acl "del_search_aci_abergin"; allow (search,read) userdn="ldap:///uid=auser, o=Privileges Tests,dc=example,dc=com";) |
| | | |
| | | dn: uid=dmiller, ou=People, o=Privileges Tests, dc=example,dc=com |
| | | cn: David Miller |
| | |
| | | facsimiletelephonenumber: +1 408 555 0111 |
| | | roomnumber: 4135 |
| | | userpassword: gosling |
| | | aci: (targetattr="*")(version 3.0; acl "del_search_aci_dmiller"; allow (write) userdn="ldap:///uid=auser, o=Privileges Tests,dc=example,dc=com";) |
| | | |
| | | dn: uid=gfarmer, ou=People, o=Privileges Tests, dc=example,dc=com |
| | | cn: Gern Farmer |
| | |
| | | title: Engineer |
| | | title: architect |
| | | title: sweeper |
| | | aci: (targetattr="*")(version 3.0; acl "del_search_aci_gfarmer"; allow (write) userdn="ldap:///uid=auser, o=Privileges Tests,dc=example,dc=com";) |
| | | |
| | | dn: uid=kwinters, ou=People, o=Privileges Tests, dc=example,dc=com |
| | | cn: Kelly Winters |
| | |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright 2006-2008 Sun Microsystems, Inc. |
| | | # Copyright 2006-2009 Sun Microsystems, Inc. |
| | | # |
| | | |
| | | dn: dc=com |
| | | dc: com |
| | | objectclass: domain |
| | | |
| | | dn: dc=example,dc=com |
| | | dc: example |
| | | objectclass: domain |
| | | |
| | | dn: o=extensible object tests,dc=example,dc=com |
| | | o: extensible object tests |
| | | objectclass: top |
| | |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright 2007-2008 Sun Microsystems, Inc. |
| | | # Copyright 2007-2009 Sun Microsystems, Inc. |
| | | # |
| | | |
| | | dn: dc=com |
| | | objectclass: top |
| | | objectclass: domain |
| | | dc: com |
| | | aci: (target="ldap:///dc=virtualAttributes,dc=com")(targetattr = "*")(version 3.0;acl "access for application"; |
| | | allow (all)(userdn = "ldap:///uid=my_application,dc=virtualAttributes,dc=com");) |
| | | |
| | | dn: dc=virtualAttributes,dc=com |
| | | objectclass: top |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2007-2008 Sun Microsystems, Inc. |
| | | ! Copyright 2007-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | <defaultcall function="main_aci"/> |
| | |
| | | </function-list-args> |
| | | <sequence> |
| | | |
| | | <block name="'aci'"> |
| | | |
| | | <try> |
| | | <block name="'aci'"> |
| | | |
| | | <sequence> |
| | | |
| | | <!--- Load the job environment for the test group execution --> |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/environment.xml' % TESTS_FUNCTIONS_DIR" /> |
| | | <call function="'loadJobEnvironment'"> |
| | | { 'parent' : STAXParentID } |
| | | </call> |
| | | |
| | | <script> |
| | | CurrentTestPath['group']='aci' |
| | | GLOBAL_ACI_SEARCH="(targetattr!=\"userPassword||authPassword\")(version 3.0; acl \"Anonymous read access\"; allow (read,search,compare) userdn=\"ldap:///anyone\";)" |
| | | </script> |
| | | |
| | | <call function="'testGroup_Preamble'"/> |
| | | |
| | | <!-- List of ACI test suites to run --> |
| | | <script> |
| | | suiteList=[] |
| | | suiteList.append('global_acis') |
| | | suiteList.append('aci_target') |
| | | suiteList.append('aci_targetattr') |
| | | suiteList.append('aci_targetfilter') |
| | | suiteList.append('aci_targattrfilter') |
| | | suiteList.append('aci_targetscope') |
| | | suiteList.append('aci_targetcontrol') |
| | | suiteList.append('aci_delete_entry') |
| | | suiteList.append('aci_add_entry') |
| | | suiteList.append('aci_modify_entry') |
| | | suiteList.append('aci_modify_filter_tests') |
| | | suiteList.append('aci_compare_tests') |
| | | suiteList.append('multiple_aci_tests') |
| | | suiteList.append('aci_modify_rdn') |
| | | suiteList.append('aci_rdn_wildcards') |
| | | suiteList.append('aci_bindtypes') |
| | | suiteList.append('aci_proxy_auth') |
| | | suiteList.append('aci_effective_rights') |
| | | #OOS #suiteList.append('aci_import') |
| | | </script> |
| | | |
| | | <!-- Run the test suites --> |
| | | <iterate var="_suite" in="suiteList"> |
| | | <sequence> |
| | | <try> |
| | | <sequence> |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/aci/%s.xml' % (TESTS_DIR,_suite)"/> |
| | | <call function="'%s' % _suite" /> |
| | | </sequence> |
| | | <catch exception="'STAFException.TestSuite.SetupException'"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'">'Setup of test suite %s failed.' % _suite</message> |
| | | </sequence> |
| | | </catch> |
| | | <catch exception="'STAFException.TestSuite.MainException'"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'">'Main part of test suite %s failed.' % _suite</message> |
| | | </sequence> |
| | | </catch> |
| | | <catch exception="'STAFException.TestSuite.CleanupException'"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'">'Cleanup of test suite %s failed.' % _suite</message> |
| | | </sequence> |
| | | </catch> |
| | | </try> |
| | | </sequence> |
| | | </iterate> |
| | | |
| | | </sequence> |
| | | </block> |
| | | <catch exception="'STAXException.TestGroupException'"> |
| | | <sequence> |
| | | |
| | | <!--- Load the job environment for the test group execution --> |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/environment.xml' % TESTS_FUNCTIONS_DIR" /> |
| | | <call function="'loadJobEnvironment'"> |
| | | { 'parent' : STAXParentID } |
| | | </call> |
| | | |
| | | <script> |
| | | CurrentTestPath['group']='aci' |
| | | GLOBAL_ACI_SEARCH="(targetattr!=\"userPassword||authPassword\")(version 3.0; acl \"Anonymous read access\"; allow (read,search,compare) userdn=\"ldap:///anyone\";)" |
| | | </script> |
| | | |
| | | <call function="'testGroup_Preamble'"/> |
| | | |
| | | <!-- List of ACI test suites to run --> |
| | | <script> |
| | | suiteList=[] |
| | | suiteList.append('global_acis') |
| | | suiteList.append('aci_target') |
| | | suiteList.append('aci_targetattr') |
| | | suiteList.append('aci_targetfilter') |
| | | suiteList.append('aci_targattrfilter') |
| | | suiteList.append('aci_targetscope') |
| | | suiteList.append('aci_targetcontrol') |
| | | suiteList.append('aci_delete_entry') |
| | | suiteList.append('aci_add_entry') |
| | | suiteList.append('aci_modify_entry') |
| | | suiteList.append('aci_modify_filter_tests') |
| | | suiteList.append('aci_compare_tests') |
| | | suiteList.append('multiple_aci_tests') |
| | | suiteList.append('aci_modify_rdn') |
| | | suiteList.append('aci_rdn_wildcards') |
| | | suiteList.append('aci_bindtypes') |
| | | suiteList.append('aci_proxy_auth') |
| | | suiteList.append('aci_effective_rights') |
| | | #OOS suiteList.append('aci_import') |
| | | </script> |
| | | |
| | | <iterate var="_suite" in="suiteList"> |
| | | <sequence> |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/aci/%s.xml' % (TESTS_DIR,_suite)"/> |
| | | <call function="'%s' % _suite" /> |
| | | </sequence> |
| | | </iterate> |
| | | |
| | | <call function="'testGroup_Postamble'"/> |
| | | <message log="1" level="'fatal'">'Execution of Test Group Failed'</message> |
| | | </sequence> |
| | | </block> |
| | | </catch> |
| | | <finally> |
| | | <!-- Test Group postamble --> |
| | | <call function="'testGroup_Postamble'"/> |
| | | </finally> |
| | | </try> |
| | | |
| | | </sequence> |
| | | </function> |
| | | </stax> |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | |
| | | <defaultcall function="aci_cleanup"/> |
| | | |
| | | <function name="aci_cleanup"> |
| | | <function name="aci_cleanup" scope="local"> |
| | | |
| | | <sequence> |
| | | |
| | | <block name="'cleanup'"> |
| | | |
| | | <sequence> |
| | | <block name="'aci_cleanup'"> |
| | | |
| | | |
| | | <block name="'Block DS Process Stop'"> |
| | | <!--- Stop DS --> |
| | | <sequence> |
| | | <message> |
| | | 'Stop DS running on port %s' % (DIRECTORY_INSTANCE_PORT) |
| | | </message> |
| | | <testcase name="getTestCaseName('ACI Cleanup')"> |
| | | |
| | | <call function="'StopDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT, |
| | | 'dsBindDN' : DIRECTORY_INSTANCE_DN, |
| | | 'dsBindPwd' : DIRECTORY_INSTANCE_PSWD } |
| | | <try> |
| | | |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'runFunction'"> |
| | | { 'functionName' : 'ldapDeleteWithScript' , |
| | | 'functionMessage' : 'Recursive delete of suffix.' , |
| | | 'functionException' : 'LDAP.DeleteException' , |
| | | 'functionArguments' : { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsDeleteSubtree' : 'TRUE' , |
| | | 'dsInstanceHost' : server.host , |
| | | 'dsInstancePort' : server.port , |
| | | 'dsInstanceDn' : server.dn , |
| | | 'dsInstancePswd' : server.password , |
| | | 'dsDn' : ['%s' % server.suffix] } |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checkRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | |
| | | <call function="'runFunction'"> |
| | | { 'functionName' : 'StopDsWithScript' , |
| | | 'functionMessage' : 'Stop the Directory Server.' , |
| | | 'functionException' : 'Server.StopException' , |
| | | 'functionArguments' : { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsHost' : server.host , |
| | | 'dsAdminPort' : server.adminport , |
| | | 'dsBindDN' : server.dn , |
| | | 'dsBindPwd' : server.password } |
| | | } |
| | | </call> |
| | | |
| | | </sequence> |
| | | <!--- End Block DS Process Stop --> |
| | | </block> |
| | | |
| | | |
| | | |
| | | <block name="'Block Remove DS Topology'"> |
| | | <!-- Remove the topology created for the test suite --> |
| | | <sequence> |
| | | |
| | | <message> |
| | | 'Remove DS topology created for the Test Suite' |
| | | </message> |
| | | |
| | | <call function="'removeTopology'"/> |
| | | |
| | | <call function="'checkRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | </sequence> |
| | | <!-- End Block Remove DS Topology--> |
| | | </block> |
| | | |
| | | |
| | | </sequence> |
| | | <call function="'runFunction'"> |
| | | { 'functionName' : 'removeTopology' , |
| | | 'functionMessage' : 'Remove DS topology.' , |
| | | 'functionException' : 'Server.RemoveTopologyException' |
| | | } |
| | | </call> |
| | | |
| | | </sequence> |
| | | |
| | | <catch exception="'STAXException.LDAP.DeleteException'" typevar="eType" var="eInfo"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'"> |
| | | '%s: LDAPDelete failed. eInfo(%s)' % (eType,eInfo) |
| | | </message> |
| | | <throw exception="'STAFException.TestSuite.CleanupException'" /> |
| | | </sequence> |
| | | </catch> |
| | | |
| | | <catch exception="'STAXException.Server.RemoveTopologyException'" typevar="eType" var="eInfo"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'"> |
| | | '%s: Remove topology failed. eInfo(%s)' % (eType,eInfo) |
| | | </message> |
| | | <throw exception="'STAFException.TestSuite.CleanupException'" /> |
| | | </sequence> |
| | | </catch> |
| | | |
| | | <catch exception="'STAXException.Server.StopException'" typevar="eType" var="eInfo"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'"> |
| | | '%s: Failed to stop Directory Server. eInfo(%s)' % (eType,eInfo) |
| | | </message> |
| | | <throw exception="'STAFException.TestSuite.CleanupException'" /> |
| | | </sequence> |
| | | </catch> |
| | | <finally> |
| | | <!-- Test Group postamble --> |
| | | <call function="'testCase_Postamble'"/> |
| | | </finally> |
| | | |
| | | </try> |
| | | |
| | | </testcase> |
| | | |
| | | </block> |
| | | |
| | | |
| | | </sequence> |
| | | |
| | | </function> |
| | |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/aci/aci_cleanup.xml' % (TESTS_DIR)"/> |
| | | <call function="'aci_cleanup'" /> |
| | | |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | <block name="'aci-modify-filter-tests-aci1'"> |
| | | |
| | | <sequence> |
| | | |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group']='aci' |
| | | CurrentTestPath['suite']=STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <testcase name="getTestCaseName('ACI 1')"> |
| | | <sequence> |
| | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | <block name="'aci-modify-filter-tests-aci11'"> |
| | | |
| | | <sequence> |
| | | |
| | | <script> |
| | | CurrentTestPath['suite']=STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <testcase name="getTestCaseName('ACI 11')"> |
| | | <sequence> |
| | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | <block name="'aci-modify-filter-tests-aci12'"> |
| | | |
| | | <sequence> |
| | | |
| | | <script> |
| | | CurrentTestPath['suite']=STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | |
| | | <testcase name="getTestCaseName('ACI 12')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | <block name="'aci-modify-filter-tests-aci13'"> |
| | | |
| | | <sequence> |
| | | |
| | | <script> |
| | | CurrentTestPath['suite']=STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <testcase name="getTestCaseName('ACI 13')"> |
| | | <sequence> |
| | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | <block name="'aci-modify-filter-tests-aci14'"> |
| | | |
| | | <sequence> |
| | | |
| | | <script> |
| | | CurrentTestPath['suite']=STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <testcase name="getTestCaseName('ACI 14')"> |
| | | <sequence> |
| | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | <block name="'aci-modify-filter-tests-aci15'"> |
| | | |
| | | <sequence> |
| | | |
| | | <script> |
| | | CurrentTestPath['suite']=STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <testcase name="getTestCaseName('ACI 15')"> |
| | | <sequence> |
| | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | <block name="'aci-modify-filter-tests-aci16'"> |
| | | |
| | | <sequence> |
| | | |
| | | <script> |
| | | CurrentTestPath['suite']=STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <testcase name="getTestCaseName('ACI 16')"> |
| | | <sequence> |
| | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | <block name="'aci-modify-filter-tests-aci2'"> |
| | | |
| | | <sequence> |
| | | |
| | | <script> |
| | | CurrentTestPath['suite']=STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <testcase name="getTestCaseName('ACI 2')"> |
| | | <sequence> |
| | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | | |
| | | </sequence> |
| | | |
| | | </block> |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | <block name="'aci-modify-filter-tests-aci21'"> |
| | | |
| | | <sequence> |
| | | |
| | | <script> |
| | | CurrentTestPath['suite']=STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <testcase name="getTestCaseName('ACI 21')"> |
| | | <sequence> |
| | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | <block name="'aci-modify-filter-tests-aci22'"> |
| | | |
| | | <sequence> |
| | | |
| | | <script> |
| | | CurrentTestPath['suite']=STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <testcase name="getTestCaseName('ACI 22')"> |
| | | <sequence> |
| | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | <block name="'aci-modify-filter-tests-aci23'"> |
| | | |
| | | <sequence> |
| | | |
| | | <script> |
| | | CurrentTestPath['suite']=STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <testcase name="getTestCaseName('ACI 23')"> |
| | | <sequence> |
| | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | <block name="'aci-modify-filter-tests-aci24'"> |
| | | |
| | | <sequence> |
| | | |
| | | <script> |
| | | CurrentTestPath['suite']=STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <testcase name="getTestCaseName('ACI 24')"> |
| | | <sequence> |
| | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | <block name="'aci-modify-filter-tests-aci25'"> |
| | | |
| | | <sequence> |
| | | |
| | | <script> |
| | | CurrentTestPath['suite']=STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <testcase name="getTestCaseName('ACI 25')"> |
| | | <sequence> |
| | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | <block name="'aci-modify-filter-tests-aci26'"> |
| | | |
| | | <sequence> |
| | | |
| | | <script> |
| | | CurrentTestPath['suite']=STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <testcase name="getTestCaseName('ACI 26')"> |
| | | <sequence> |
| | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | <block name="'aci-modify-filter-tests-aci3'"> |
| | | |
| | | <sequence> |
| | | |
| | | <script> |
| | | CurrentTestPath['suite']=STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <testcase name="getTestCaseName('ACI 3')"> |
| | | <sequence> |
| | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | <block name="'aci-modify-filter-tests-aci4'"> |
| | | |
| | | <sequence> |
| | | |
| | | <script> |
| | | CurrentTestPath['suite']=STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <testcase name="getTestCaseName('ACI 4')"> |
| | | <sequence> |
| | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | <block name="'aci-modify-filter-tests-aci5'"> |
| | | |
| | | <sequence> |
| | | |
| | | <script> |
| | | CurrentTestPath['suite']=STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <testcase name="getTestCaseName('ACI 5')"> |
| | | <sequence> |
| | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | |
| | | <sequence> |
| | | |
| | | <script> |
| | | CurrentTestPath['suite']=STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <testcase name="getTestCaseName('ACI 6')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | <message> |
| | | 'ACI: Proxy Auth: Preamble - Removing Search Global ACI' |
| | | </message> |
| | | |
| | | |
| | | <!-- Remove the global ACI --> |
| | | <call function="'modifyGlobalAci'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | |
| | | 'aciValue' : GLOBAL_ACI_SEARCH , |
| | | 'opType' : 'remove' } |
| | | </call> |
| | | |
| | | |
| | | <!-- Allow the proxy auth control for all ldap users read only --> |
| | | <script> |
| | | allow_aci='(targetcontrol=\"*\") (version 3.0; acl \"allow control access\"; allow(read) userdn=\"ldap:///anyone\";)' |
| | | allow_aci='(targetcontrol=\"2.16.840.1.113730.3.4.18\") (version 3.0; acl \"allow proxy auth control access\"; allow(read) userdn=\"ldap:///anyone\";)' |
| | | </script> |
| | | |
| | | |
| | | <!-- Add the ACI under suffix --> |
| | | <call function="'modifyAnAttribute'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | |
| | | <message> |
| | | 'ACI: Proxy Auth: Preamble - existing branch, user searching entry that will be targeted in future tests' |
| | | </message> |
| | | |
| | | |
| | | <!-- Search a users entry as another user. This should return no results --> |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | |
| | | 'testString' : 'dn: uid=tmorris,ou=People,ou=aci branch,o=ACI Tests' , |
| | | 'expectedResult' : '0' } |
| | | </call> |
| | | |
| | | |
| | | <!-- TODO: Also perform a modify operation - should return insufficient access --> |
| | | |
| | | <message> |
| | | 'ACI: Proxy Auth: Preamble - existing branch, user searching entry that will be non-targeted in future tests' |
| | | </message> |
| | | |
| | | |
| | | <!-- Search a users entry as another user. This should return no results --> |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'dn: uid=tmorris,ou=People,ou=non-aci branch,o=ACI Tests' } |
| | | </call> |
| | | |
| | | <!-- TODO: Also perform a modify operation - should return insufficient access --> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | |
| | | <message> |
| | | 'ACI: Proxy Auth: one proxied user, user searching targeted entry' |
| | | </message> |
| | | |
| | | |
| | | <!-- Search a users entry as another user (uid=auser). This should return no results --> |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | |
| | | <message> |
| | | 'ACI: Proxy Auth: one proxied user, second user searching targeted entry' |
| | | </message> |
| | | |
| | | |
| | | <!-- Search a users entry as another user (uid=buser). This should return no results --> |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | |
| | | <message> |
| | | 'ACI: Proxy Auth: one proxied user, proxied user searching targeted entry' |
| | | </message> |
| | | |
| | | |
| | | <!-- Search a users entry as uid=aproxy. This should return no results --> |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | |
| | | 'testString' : 'dn: uid=tmorris,ou=People,ou=aci branch,o=ACI Tests' , |
| | | 'expectedResult' : '0' } |
| | | </call> |
| | | |
| | | |
| | | <!-- Add the proxi aci for user uid=aproxy under ou=aci branch --> |
| | | <script> |
| | | curr_aci_ldif_file = 'add_proxy_aci.ldif' |
| | | curr_aci=retrieve_aci('%s/aci/aci_proxy_auth/%s' % (local.data,curr_aci_ldif_file)); |
| | |
| | | 'entryToBeModified' : '%s/aci/aci_proxy_auth/%s' % (remote.data,curr_aci_ldif_file) } |
| | | </call> |
| | | |
| | | <if expr="RC != 0"> |
| | | <tcstatus result="'fail'"/> |
| | | </if> |
| | | |
| | | <message> |
| | | 'ACI: Proxy Auth: one proxied user, proxy user searching targeted entry' |
| | | </message> |
| | | |
| | | |
| | | <!-- Search users entry with proxy dn without allowed aci access. This should return no results --> |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | |
| | | 'testString' : 'dn: uid=tmorris,ou=People,ou=aci branch,o=ACI Tests' , |
| | | 'expectedResult' : '0' } |
| | | </call> |
| | | |
| | | |
| | | <!-- TODO: Also perform a modify operation - should return insufficient access --> |
| | | |
| | | <message> |
| | | 'ACI: Proxy Auth: one proxied user, admin deleting both acis' |
| | | </message> |
| | | |
| | | |
| | | <!-- Delete the proxy aci for user uid=aproxy --> |
| | | <call function="'modifyEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | |
| | | 'entryToBeModified' : '%s/aci/aci_proxy_auth/del_aci.ldif' % remote.data } |
| | | </call> |
| | | |
| | | <if expr="RC != 0"> |
| | | <tcstatus result="'fail'"/> |
| | | </if> |
| | | |
| | | <message> |
| | | 'ACI: Proxy Auth: one proxied user, user searching targeted entry' |
| | | </message> |
| | | |
| | | |
| | | <!-- Search a users entry as another user. This should return no results --> |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <!-- Allow user uid=auser access to all entries under ou=aci branch --> |
| | | <script> |
| | | curr_aci_ldif_file = 'add_user_aci_all.ldif' |
| | | curr_aci=retrieve_aci('%s/aci/aci_proxy_auth/%s' % (local.data,curr_aci_ldif_file)); |
| | |
| | | 'entryToBeModified' : '%s/aci/aci_proxy_auth/%s' % (remote.data,curr_aci_ldif_file) } |
| | | </call> |
| | | |
| | | <if expr="RC != 0"> |
| | | <tcstatus result="'fail'"/> |
| | | </if> |
| | | |
| | | <message> |
| | | 'ACI: Proxy Auth: one user, one proxied user, user searching targeted entry' |
| | | </message> |
| | | |
| | | |
| | | <!-- Search a users entry under suffix as uid=auser. This should return a result --> |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | |
| | | <message> |
| | | 'ACI: Proxy Auth: one user, one proxied user, user searching targeted entry' |
| | | </message> |
| | | |
| | | |
| | | <!-- Search a users entry as another user. This should return no results --> |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | |
| | | <message> |
| | | 'ACI: Proxy Auth: one user, one proxied user, proxied user searching targeted entry' |
| | | </message> |
| | | |
| | | |
| | | <!-- Search a users entry just as proxy user. This should return no results --> |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | |
| | | 'testString' : 'dn: uid=tmorris,ou=People,ou=aci branch,o=ACI Tests' , |
| | | 'expectedResult' : '0' } |
| | | </call> |
| | | |
| | | |
| | | <!-- Add the proxi aci for user uid=aproxy under ou=aci branch --> |
| | | <script> |
| | | curr_aci_ldif_file = 'add_proxy_aci.ldif' |
| | | curr_aci=retrieve_aci('%s/aci/aci_proxy_auth/%s' % (local.data,curr_aci_ldif_file)); |
| | |
| | | 'entryToBeModified' : '%s/aci/aci_proxy_auth/%s' % (remote.data,curr_aci_ldif_file) } |
| | | </call> |
| | | |
| | | <if expr="RC != 0"> |
| | | <tcstatus result="'fail'"/> |
| | | </if> |
| | | |
| | | <message> |
| | | 'ACI: Proxy Auth: one user, one proxied user, proxied user searching targeted entry' |
| | | </message> |
| | | |
| | | |
| | | <!-- Search users entry with proxy dn with allowed aci access. This should return results --> |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | |
| | | 'testString' : 'cn:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <!-- TODO: Also perform a modify operation - should return success --> |
| | | |
| | | <message> |
| | | 'ACI: Proxy Auth: one user, one proxied user, proxied second user searching targeted entry' |
| | | </message> |
| | | |
| | | |
| | | <!-- Search users entry with proxy dn without allowed aci access. This should return no results --> |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | |
| | | <message> |
| | | 'ACI: Proxy Auth: one user, one proxied user, admin deleting both acis' |
| | | </message> |
| | | |
| | | |
| | | <!-- Remove aci attribute for uid=auser --> |
| | | <call function="'modifyEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | |
| | | 'entryToBeModified' : '%s/aci/aci_proxy_auth/del_aci.ldif' % remote.data } |
| | | </call> |
| | | |
| | | <if expr="RC != 0"> |
| | | <tcstatus result="'fail'"/> |
| | | </if> |
| | | |
| | | <message> |
| | | 'ACI: Proxy Auth: one user, one proxied user, user searching targeted entry' |
| | | </message> |
| | | |
| | | |
| | | <!-- Search a users entry as a uid=auser. This should return no results --> |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | |
| | | </call> |
| | | |
| | | <script> |
| | | allow_aci='(targetcontrol=\"*\") (version 3.0; acl \"allow control access\"; allow(read) userdn=\"ldap:///anyone\";)' |
| | | allow_aci='(targetcontrol=\"2.16.840.1.113730.3.4.18\") (version 3.0; acl \"allow proxy auth control access\"; allow(read) userdn=\"ldap:///anyone\";)' |
| | | </script> |
| | | |
| | | <call function="'modifyAnAttribute'"> |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | |
| | | <defaultcall function="aci_setup"/> |
| | | |
| | | <function name="aci_setup"> |
| | | <function name="aci_setup" scope="local"> |
| | | |
| | | <sequence> |
| | | |
| | | <block name="'setup'"> |
| | | |
| | | <sequence> |
| | | |
| | | <script> |
| | | CurrentTestPath['group']='aci' |
| | | </script> |
| | | |
| | | |
| | | <block name="'Block Create DS Topology'"> |
| | | <!-- Create the topology necessary to the test group/suite --> |
| | | <sequence> |
| | | |
| | | <message> |
| | | 'Create DS topology as described in config.py' |
| | | </message> |
| | | |
| | | <call function="'createTopology'"> |
| | | { 'initialiseInstance' : True } |
| | | </call> |
| | | |
| | | <call function="'checkRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | </sequence> |
| | | <!--- End Block Create DS Topology --> |
| | | </block> |
| | | <testcase name="getTestCaseName('ACI Setup')"> |
| | | |
| | | |
| | | <block name="'Block DS Process Active'"> |
| | | <!--- Start DS --> |
| | | <sequence> |
| | | <try> |
| | | |
| | | <message> |
| | | 'Start DS to run on port %s' % (DIRECTORY_INSTANCE_PORT) |
| | | </message> |
| | | |
| | | <!--- Start DS --> |
| | | <call function="'StartDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME } |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <!-- Create the topology necessary to the test group/suite --> |
| | | <call function="'runFunction'"> |
| | | { 'functionName' : 'createTopology' , |
| | | 'functionMessage' : 'Create DS topology' , |
| | | 'functionException' : 'Server.CreateTopologyException' , |
| | | 'functionArguments' : { 'initialiseInstance' : True } |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checkRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | |
| | | <!-- Start the OpenDS Server --> |
| | | <call function="'runFunction'"> |
| | | { 'functionName' : 'StartDsWithScript' , |
| | | 'functionMessage' : 'Start the Directory Server.' , |
| | | 'functionException' : 'Server.StartException' , |
| | | 'functionArguments' : { 'location' : STAF_REMOTE_HOSTNAME } |
| | | } |
| | | </call> |
| | | |
| | | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 } |
| | | </call> |
| | | |
| | | </sequence> |
| | | <!--- End Block DS Process Active --> |
| | | </block> |
| | | |
| | | <call function="'runFunction'"> |
| | | { 'functionName' : 'isAlive' , |
| | | 'functionMessage' : 'Start the Directory Server.' , |
| | | 'functionException' : 'Server.StartException' , |
| | | 'functionArguments' : { 'noOfLoops' : 100 , |
| | | 'noOfMilliSeconds' : 3000 } |
| | | } |
| | | </call> |
| | | |
| | | <!-- Load the data needed by the test suite --> |
| | | <call function="'runFunction'"> |
| | | { 'functionName' : 'ldapModifyWithScript' , |
| | | 'functionMessage' : 'Adding Initial Entries' , |
| | | 'functionException' : 'LDAP.ModifyException' , |
| | | 'functionArguments' : { 'dsAdd' : 'TRUE' , |
| | | 'dsInstanceHost' : server.host , |
| | | 'dsInstancePort' : server.port , |
| | | 'dsInstanceDn' : server.dn , |
| | | 'dsInstancePswd' : server.password , |
| | | 'dsFilename' : '%s/aci/aci_startup.ldif' % remote.data } |
| | | } |
| | | </call> |
| | | |
| | | </sequence> |
| | | |
| | | |
| | | <block name="'Block DS Load Data'"> |
| | | <!-- Load the data needed by the test suite --> |
| | | <sequence> |
| | | |
| | | <message> |
| | | 'ACI: ACI Setup: Adding Initial Entries' |
| | | <catch exception="'STAXException.Server.CreateTopologyException'" typevar="eType" var="eInfo"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'"> |
| | | '%s: Create topology failed. eInfo(%s)' % (eType,eInfo) |
| | | </message> |
| | | |
| | | <call function="'addEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'entryToBeAdded' : '%s/aci/aci_startup.ldif' % remote.data } |
| | | </call> |
| | | |
| | | <call function="'checkRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | </sequence> |
| | | <!--- End Block DS Load Data --> |
| | | </block> |
| | | |
| | | |
| | | </sequence> |
| | | <throw exception="'STAFException.TestSuite.SetupException'" /> |
| | | </sequence> |
| | | </catch> |
| | | |
| | | <catch exception="'STAXException.Server.StartException'" typevar="eType" var="eInfo"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'"> |
| | | '%s: Failed to start Directory Server. eInfo(%s)' % (eType,eInfo) |
| | | </message> |
| | | <throw exception="'STAFException.TestSuite.SetupException'" /> |
| | | </sequence> |
| | | </catch> |
| | | |
| | | <catch exception="'STAXException.LDAP.ModifyException'" typevar="eType" var="eInfo"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'"> |
| | | '%s: LDAPModify failed. eInfo(%s)' % (eType,eInfo) |
| | | </message> |
| | | <throw exception="'STAFException.TestSuite.SetupException'" /> |
| | | </sequence> |
| | | </catch> |
| | | |
| | | <finally> |
| | | <!-- Test Group postamble --> |
| | | <call function="'testCase_Postamble'"/> |
| | | </finally> |
| | | |
| | | </try> |
| | | |
| | | </testcase> |
| | | |
| | | </block> |
| | | |
| | | </sequence> |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | |
| | | <defaultcall function="global_acis"/> |
| | | |
| | | <function name="global_acis"> |
| | | <function name="global_acis" scope="local"> |
| | | |
| | | <sequence> |
| | | |
| | | <block name="'global-acis'"> |
| | | |
| | | <sequence> |
| | | |
| | | <try> |
| | | |
| | | <sequence> |
| | | |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group']='aci' |
| | | CurrentTestPath['suite']=STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <!--- |
| | | Place suite-specific test information here. |
| | | #@TestSuiteName ACI Global Tests |
| | | #@TestSuitePurpose Test the basic global ACI Support. |
| | | #@TestSuiteGroup Global ACI Tests |
| | | #@TestScript global_acis.xml |
| | | --> |
| | | |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group']='aci' |
| | | CurrentTestPath['suite']=STAXCurrentBlock |
| | | </script> |
| | | <call function="'common_setup'"> |
| | | { |
| | | 'stopServer' : False, |
| | | 'ldifFile' : '%s/aci/aci_startup.ldif' % remote.data |
| | | } |
| | | </call> |
| | | |
| | | |
| | | <!--- |
| | | Place test-specific test information here. |
| | | The tag, TestMarker, must be the same as the tag, TestSuiteName. |
| | | #@TestMarker ACI Global Tests |
| | | #@TestName Global ACI Search |
| | | #@TestIssue 1402 |
| | | #@TestPurpose Search against default global acis |
| | | #@TestPreamble none |
| | | #@TestStep Client searches entry. |
| | | #@TestPostamble none |
| | | #@TestResult Success if OpenDS returns 0 |
| | | and entry for step 1. |
| | | The attributes, sn and dn, should be returned |
| | | but not userpassword. |
| | | --> |
| | | <testcase name="getTestCaseName('Search')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ACI: Global: Search, user searching entry' |
| | | </message> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <!--- |
| | | Place suite-specific test information here. |
| | | #@TestSuiteName ACI Global Tests |
| | | #@TestSuitePurpose Test the basic global ACI Support. |
| | | #@TestSuiteGroup Global ACI Tests |
| | | #@TestScript global_acis.xml |
| | | --> |
| | | |
| | | |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/aci/aci_setup.xml' % (TESTS_DIR)"/> |
| | | <call function="'aci_setup'" /> |
| | | |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' , |
| | | 'dsInstancePswd' : 'ACIRules' , |
| | | 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'attributes' : 'cn sn uid userpassword' } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'sn' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'userpassword' , |
| | | 'expectedResult' : '0' } |
| | | </call> |
| | | |
| | | <call function="'checktestString'"> |
| | | { 'returnString' : returnString , |
| | | 'expectedString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' } |
| | | </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 Global Tests |
| | | #@TestName Global ACI Search - One operational attribute for one entry |
| | | #@TestIssue 1622 |
| | | #@TestPurpose Search one operational attribute for one entry against default global acis |
| | | #@TestPreamble none |
| | | #@TestStep Client searches one operational attribute of an entry. |
| | | #@TestPostamble none |
| | | #@TestResult Success if OpenDS returns 0 |
| | | and entry for step 1. |
| | | The attributes, creatorsname and dn, should be returned. |
| | | --> |
| | | <testcase name="getTestCaseName('Search Operational Attribute of an entry')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <!--- |
| | | Place test-specific test information here. |
| | | The tag, TestMarker, must be the same as the tag, TestSuiteName. |
| | | #@TestMarker ACI Global Tests |
| | | #@TestName Global ACI Search |
| | | #@TestIssue 1402 |
| | | #@TestPurpose Search against default global acis |
| | | #@TestPreamble none |
| | | #@TestStep Client searches entry. |
| | | #@TestPostamble none |
| | | #@TestResult Success if OpenDS returns 0 |
| | | and entry for step 1. |
| | | The attributes, sn and dn, should be returned |
| | | but not userpassword. |
| | | --> |
| | | <testcase name="getTestCaseName('Search')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ACI: Global: Search, user searching entry' |
| | | </message> |
| | | |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' , |
| | | 'dsInstancePswd' : 'ACIRules' , |
| | | 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'attributes' : 'cn sn uid userpassword' } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'sn' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'userpassword' , |
| | | 'expectedResult' : '0' } |
| | | </call> |
| | | |
| | | <call function="'checktestString'"> |
| | | { 'returnString' : returnString , |
| | | 'expectedString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' } |
| | | </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 Global Tests |
| | | #@TestName Global ACI Search - One operational attribute for one entry |
| | | #@TestIssue 1622 |
| | | #@TestPurpose Search one operational attribute for one entry against default global acis |
| | | #@TestPreamble none |
| | | #@TestStep Client searches one operational attribute of an entry. |
| | | #@TestPostamble none |
| | | #@TestResult Success if OpenDS returns 0 |
| | | and entry for step 1. |
| | | The attributes, creatorsname and dn, should be returned. |
| | | --> |
| | | <testcase name="getTestCaseName('Search Operational Attribute of an entry')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ACI: Global: Search, user searching operational attribute of an entry' |
| | | </message> |
| | | |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' , |
| | | 'dsInstancePswd' : 'ACIRules' , |
| | | 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'attributes' : 'creatorsName'} |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'creatorsName' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'checktestString'"> |
| | | { 'returnString' : returnString , |
| | | 'expectedString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' } |
| | | </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 Global Tests |
| | | #@TestName Global ACI Search - All operational attributes for one entry |
| | | #@TestIssue 1622 |
| | | #@TestPurpose Search all operational attributes for one entry against default global acis |
| | | #@TestPreamble Admin modify entry so there are modifyTimestamp and modifiersName attributes |
| | | #@TestStep Client searches all operational attributes of an entry. |
| | | #@TestPostamble none |
| | | #@TestResult Success if OpenDS returns 0 |
| | | and entry for step 1. |
| | | Six attributes and the dn should be returned. |
| | | --> |
| | | <testcase name="getTestCaseName('Search All Operational Attributes of an entry')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ACI: Global: Search, admin modifying entry' |
| | | </message> |
| | | |
| | | <call function="'modifyEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'entryToBeModified' : '%s/aci/global_acis/mod_modifier_entry1.ldif' % (remote.data) } |
| | | </call> |
| | | |
| | | <if expr="RC != 0"> |
| | | <tcstatus result="'fail'"/> |
| | | </if> |
| | | |
| | | <message> |
| | | 'ACI: Global: Search, user searching all operational attributes of an entry' |
| | | </message> |
| | | |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' , |
| | | 'dsInstancePswd' : 'ACIRules' , |
| | | 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'attributes' : '+'} |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'creatorsName:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'createTimestamp:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'entryDN:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'modifiersName:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'modifyTimestamp' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'subschemaSubentry:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'checktestString'"> |
| | | { 'returnString' : returnString , |
| | | 'expectedString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' } |
| | | </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 Global Tests |
| | | #@TestName Global ACI Search - One operational attribute for cn=schema |
| | | #@TestIssue 1622 |
| | | #@TestPurpose Search one operational attribute for cn=schema against default global acis |
| | | #@TestPreamble none |
| | | #@TestStep Client searches one operational attribute of cn=schema. |
| | | #@TestPostamble none |
| | | #@TestResult Success if OpenDS returns 0 |
| | | and entry for step 1. |
| | | The attributes, matchingrules and dn, should be returned. |
| | | --> |
| | | <testcase name="getTestCaseName('Search Operational Attribute, cn=schema')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ACI: Global: Search, user searching operational attribute of cn=schema' |
| | | </message> |
| | | |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' , |
| | | 'dsInstancePswd' : 'ACIRules' , |
| | | 'dsBaseDN' : 'cn=schema' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'attributes' : 'matchingRules' , |
| | | 'extraParams' : '-T -s base' } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'matchingRules:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'checktestString'"> |
| | | { 'returnString' : returnString , |
| | | 'expectedString' : 'dn: cn=schema' } |
| | | </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 Global Tests |
| | | #@TestName Global ACI Search - All operational attributes for cn=schema |
| | | #@TestIssue 1622 |
| | | #@TestPurpose Search all operational attributes for cn=schema against default global acis |
| | | #@TestPreamble none |
| | | #@TestStep Client searches all operational attributes of cn=schema. |
| | | #@TestPostamble none |
| | | #@TestResult Success if OpenDS returns 0 |
| | | and entry for step 1. |
| | | Six attributes and the dn should be returned. |
| | | --> |
| | | <testcase name="getTestCaseName('Search All Operational Attributes, cn=schema')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ACI: Global: Search, user searching operational attribute of cn=schema' |
| | | </message> |
| | | |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' , |
| | | 'dsInstancePswd' : 'ACIRules' , |
| | | 'dsBaseDN' : 'cn=schema' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'attributes' : '+' , |
| | | 'extraParams' : '-T -s base' } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'attributeTypes:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'dITStructureRules:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'ldapSyntaxes:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'matchingRules:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'nameForms:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'objectClasses:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'checktestString'"> |
| | | { 'returnString' : returnString , |
| | | 'expectedString' : 'dn: cn=schema' } |
| | | </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 Global Tests |
| | | #@TestName Global ACI Search - One operational attribute for root dse |
| | | #@TestIssue 1622 |
| | | #@TestPurpose Search one operational attribute for root dse against default global acis |
| | | #@TestPreamble none |
| | | #@TestStep Client searches one operational attribute of root dse. |
| | | #@TestPostamble none |
| | | #@TestResult Success if OpenDS returns 0 |
| | | and entry for step 1. |
| | | The attributes, vendorname and dn, should be returned. |
| | | --> |
| | | <testcase name="getTestCaseName('Search Operational Attribute, root dse')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ACI: Global: Search, user searching operational attribute of root dse' |
| | | </message> |
| | | |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' , |
| | | 'dsInstancePswd' : 'ACIRules' , |
| | | 'dsBaseDN' : ' ' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'attributes' : 'vendorName' , |
| | | 'extraParams' : '-T -s base' } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'vendorName:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'checktestString'"> |
| | | { 'returnString' : returnString , |
| | | 'expectedString' : 'dn: ' } |
| | | </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 Global Tests |
| | | #@TestName Global ACI Search - All operational attributes for root dse |
| | | #@TestIssue 1622 |
| | | #@TestPurpose Search all operational attributes for root dse against default global acis |
| | | #@TestPreamble none |
| | | #@TestStep Client searches all operational attributes of root dse. |
| | | #@TestPostamble none |
| | | #@TestResult Success if OpenDS returns 0 |
| | | and entry for step 1. |
| | | Eight attributes and the dn should be returned. |
| | | --> |
| | | <testcase name="getTestCaseName('Search All Operational Attribute, root dse')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ACI: Global: Search, user searching operational attribute of root dse' |
| | | </message> |
| | | |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' , |
| | | 'dsInstancePswd' : 'ACIRules' , |
| | | 'dsBaseDN' : ' ' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'attributes' : '+' , |
| | | 'extraParams' : '-T -s base' } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'namingContexts:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'supportedAuthPasswordSchemes:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'supportedControl:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'supportedExtension:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'supportedFeatures:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'supportedSASLMechanisms:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'vendorName:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'vendorVersion:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'checktestString'"> |
| | | { 'returnString' : returnString , |
| | | 'expectedString' : 'dn: ' } |
| | | </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 Global Tests |
| | | #@TestName Global ACI Search - All operational attributes for cn=config |
| | | #@TestIssue 1622 |
| | | #@TestPurpose Search all operational attributes for cn=config against default global acis |
| | | #@TestPreamble none |
| | | #@TestStep Client searches all operational attributes for cn=config. |
| | | #@TestPostamble none |
| | | #@TestResult Success if OpenDS returns 50. |
| | | --> |
| | | <testcase name="getTestCaseName('Search Operational Attribute, cn=config')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ACI: Global: Search, user searching operational attribute of an entry' |
| | | </message> |
| | | |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' , |
| | | 'dsInstancePswd' : 'ACIRules' , |
| | | 'dsBaseDN' : 'cn=config' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'attributes' : '+' , |
| | | 'expectedRC' : 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 Global Tests |
| | | #@TestName Global ACI Search - Anonymous |
| | | #@TestIssue 1621 |
| | | #@TestPurpose Anonymous search against default global acis |
| | | #@TestPreamble none |
| | | #@TestStep Client searches entry as anonymous. |
| | | #@TestPostamble none |
| | | #@TestResult Success if OpenDS returns 0 |
| | | and entry for step 1. |
| | | The attributes, uid, sn and dn, should be returned for specified dn. |
| | | --> |
| | | <testcase name="getTestCaseName('Anon Search')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ACI: Global: AnonSearch, user searching entry' |
| | | </message> |
| | | |
| | | <call function="'AnonSearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsBaseDN' : 'ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'extraParams' : '-T' , |
| | | 'dsFilter' : '(uid=scarter)'} |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'sn' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'uid' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'checktestString'"> |
| | | { 'returnString' : returnString , |
| | | 'expectedString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' } |
| | | </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 Global Tests |
| | | #@TestName Global ACI Search - Anonymous with not equals filter |
| | | #@TestIssue 1621 |
| | | #@TestPurpose Anonymous search with not equals filter against default global acis |
| | | #@TestPreamble none |
| | | #@TestStep Client searches entry as anonymous with not equals filter |
| | | #@TestPostamble none |
| | | #@TestResult Success if OpenDS returns 0 |
| | | and entries for step 1. |
| | | The attributes, uid, sn and dn, should be returned for all other entries but the |
| | | for the specified dn. |
| | | --> |
| | | <testcase name="getTestCaseName('Anon Search, not equals filter')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ACI: Global: AnonSearch, not equals filter, user searching entry' |
| | | </message> |
| | | |
| | | <call function="'AnonSearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsBaseDN' : 'ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'extraParams' : '-T' , |
| | | 'dsFilter' : '(!(uid=scarter))'} |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'sn' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'uid' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'checktestString'"> |
| | | { 'returnString' : returnString , |
| | | 'expectedString' : 'dn: uid=tmorris,ou=People,ou=aci branch,o=ACI Tests' } |
| | | </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 Global Tests |
| | | #@TestName Global ACI Compare |
| | | #@TestIssue 1402 |
| | | #@TestPurpose Compare against default global acis |
| | | #@TestPreamble none |
| | | #@TestStep Client compares attribute in an entry. |
| | | #@TestPostamble none |
| | | #@TestResult Success if OpenDS returns 0 |
| | | and returns true for step 1. |
| | | --> |
| | | <testcase name="getTestCaseName('Compare')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ACI: Global: Compare, user comparing entry' |
| | | </message> |
| | | |
| | | <call function="'compareEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' , |
| | | 'dsInstancePswd' : 'ACIRules' , |
| | | 'attrToBeCompared' : 'l:Santa Clara', |
| | | 'entryToBeCompared' : 'uid=tclow, ou=People, ou=aci branch, o=ACI Tests, dc=example,dc=com' } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { 'returnString' : returnString , |
| | | 'expectedString' : 'true' } |
| | | </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 Global Tests |
| | | #@TestName Global ACI Modify |
| | | #@TestIssue 1402 |
| | | #@TestPurpose Modify against default global acis |
| | | #@TestPreamble none |
| | | #@TestStep Client modifies attribute in an entry. |
| | | #@TestPostamble none |
| | | #@TestResult Success if OpenDS returns 50. |
| | | --> |
| | | <testcase name="getTestCaseName('Modify')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ACI: Global: Modify, user modifying entry' |
| | | </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/global_acis/mod_entry1.ldif' % remote.data , |
| | | 'expectedRC' : 50 |
| | | } |
| | | </call> |
| | | <message> |
| | | 'ACI: Global: Search, user searching operational attribute of an entry' |
| | | </message> |
| | | |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' , |
| | | 'dsInstancePswd' : 'ACIRules' , |
| | | 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'attributes' : 'creatorsName'} |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'creatorsName' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'checktestString'"> |
| | | { 'returnString' : returnString , |
| | | 'expectedString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <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 Global Tests |
| | | #@TestName Global ACI Delete |
| | | #@TestIssue 1402 |
| | | #@TestPurpose Delete against default global acis |
| | | #@TestPreamble none |
| | | #@TestStep Client deletes an entry. |
| | | #@TestPostamble none |
| | | #@TestResult Success if OpenDS returns 50. |
| | | --> |
| | | <testcase name="getTestCaseName('Delete')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ACI: Global: Delete, user deleting entry' |
| | | </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/global_acis/del_entry1.ldif' % remote.data , |
| | | 'expectedRC' : 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 Global Tests |
| | | #@TestName Global ACI Modify RDN |
| | | #@TestIssue 1402 |
| | | #@TestPurpose Modify RDN against default global acis |
| | | #@TestPreamble none |
| | | #@TestStep Client modifies the RDN of an entry. |
| | | #@TestPostamble none |
| | | #@TestResult Success if OpenDS returns 50. |
| | | --> |
| | | <testcase name="getTestCaseName('Modify RDN')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ACI: Global: Modify RDN, user modifying rdn of an entry' |
| | | </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/global_acis/modrdn_entry1.ldif' % remote.data , |
| | | 'expectedRC' : 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 Global Tests |
| | | #@TestName Global ACI Modify Self |
| | | #@TestIssue 1402 |
| | | #@TestPurpose Modify self against default global acis |
| | | #@TestPreamble none |
| | | #@TestStep Client modifies attribute in the user entry. |
| | | #@TestPostamble none |
| | | #@TestResult Success if OpenDS returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName('Self Modify')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ACI: Global: Self Modify, user modifying itself' |
| | | </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/global_acis/mod_entry2.ldif' % remote.data } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/aci/aci_cleanup.xml' % (TESTS_DIR)"/> |
| | | <call function="'aci_cleanup'" /> |
| | | |
| | | <!--- |
| | | Place test-specific test information here. |
| | | The tag, TestMarker, must be the same as the tag, TestSuiteName. |
| | | #@TestMarker ACI Global Tests |
| | | #@TestName Global ACI Search - All operational attributes for one entry |
| | | #@TestIssue 1622 |
| | | #@TestPurpose Search all operational attributes for one entry against default global acis |
| | | #@TestPreamble Admin modify entry so there are modifyTimestamp and modifiersName attributes |
| | | #@TestStep Client searches all operational attributes of an entry. |
| | | #@TestPostamble none |
| | | #@TestResult Success if OpenDS returns 0 |
| | | and entry for step 1. |
| | | Six attributes and the dn should be returned. |
| | | --> |
| | | <testcase name="getTestCaseName('Search All Operational Attributes of an entry')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | <message> |
| | | 'ACI: Global: Search, admin modifying entry' |
| | | </message> |
| | | |
| | | <call function="'modifyEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'entryToBeModified' : '%s/aci/global_acis/mod_modifier_entry1.ldif' % (remote.data) } |
| | | </call> |
| | | |
| | | <if expr="RC != 0"> |
| | | <tcstatus result="'fail'"/> |
| | | </if> |
| | | |
| | | <message> |
| | | 'ACI: Global: Search, user searching all operational attributes of an entry' |
| | | </message> |
| | | |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' , |
| | | 'dsInstancePswd' : 'ACIRules' , |
| | | 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'attributes' : '+'} |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'creatorsName:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'createTimestamp:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'entryDN:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'modifiersName:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'modifyTimestamp' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'subschemaSubentry:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'checktestString'"> |
| | | { 'returnString' : returnString , |
| | | 'expectedString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' } |
| | | </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 Global Tests |
| | | #@TestName Global ACI Search - One operational attribute for cn=schema |
| | | #@TestIssue 1622 |
| | | #@TestPurpose Search one operational attribute for cn=schema against default global acis |
| | | #@TestPreamble none |
| | | #@TestStep Client searches one operational attribute of cn=schema. |
| | | #@TestPostamble none |
| | | #@TestResult Success if OpenDS returns 0 |
| | | and entry for step 1. |
| | | The attributes, matchingrules and dn, should be returned. |
| | | --> |
| | | <testcase name="getTestCaseName('Search Operational Attribute, cn=schema')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ACI: Global: Search, user searching operational attribute of cn=schema' |
| | | </message> |
| | | |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' , |
| | | 'dsInstancePswd' : 'ACIRules' , |
| | | 'dsBaseDN' : 'cn=schema' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'attributes' : 'matchingRules' , |
| | | 'extraParams' : '-T -s base' } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'matchingRules:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'checktestString'"> |
| | | { 'returnString' : returnString , |
| | | 'expectedString' : 'dn: cn=schema' } |
| | | </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 Global Tests |
| | | #@TestName Global ACI Search - All operational attributes for cn=schema |
| | | #@TestIssue 1622 |
| | | #@TestPurpose Search all operational attributes for cn=schema against default global acis |
| | | #@TestPreamble none |
| | | #@TestStep Client searches all operational attributes of cn=schema. |
| | | #@TestPostamble none |
| | | #@TestResult Success if OpenDS returns 0 |
| | | and entry for step 1. |
| | | Six attributes and the dn should be returned. |
| | | --> |
| | | <testcase name="getTestCaseName('Search All Operational Attributes, cn=schema')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ACI: Global: Search, user searching operational attribute of cn=schema' |
| | | </message> |
| | | |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' , |
| | | 'dsInstancePswd' : 'ACIRules' , |
| | | 'dsBaseDN' : 'cn=schema' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'attributes' : '+' , |
| | | 'extraParams' : '-T -s base' } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'attributeTypes:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'dITStructureRules:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'ldapSyntaxes:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'matchingRules:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'nameForms:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'objectClasses:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'checktestString'"> |
| | | { 'returnString' : returnString , |
| | | 'expectedString' : 'dn: cn=schema' } |
| | | </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 Global Tests |
| | | #@TestName Global ACI Search - One operational attribute for root dse |
| | | #@TestIssue 1622 |
| | | #@TestPurpose Search one operational attribute for root dse against default global acis |
| | | #@TestPreamble none |
| | | #@TestStep Client searches one operational attribute of root dse. |
| | | #@TestPostamble none |
| | | #@TestResult Success if OpenDS returns 0 |
| | | and entry for step 1. |
| | | The attributes, vendorname and dn, should be returned. |
| | | --> |
| | | <testcase name="getTestCaseName('Search Operational Attribute, root dse')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ACI: Global: Search, user searching operational attribute of root dse' |
| | | </message> |
| | | |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' , |
| | | 'dsInstancePswd' : 'ACIRules' , |
| | | 'dsBaseDN' : ' ' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'attributes' : 'vendorName' , |
| | | 'extraParams' : '-T -s base' } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'vendorName:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'checktestString'"> |
| | | { 'returnString' : returnString , |
| | | 'expectedString' : 'dn: ' } |
| | | </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 Global Tests |
| | | #@TestName Global ACI Search - All operational attributes for root dse |
| | | #@TestIssue 1622 |
| | | #@TestPurpose Search all operational attributes for root dse against default global acis |
| | | #@TestPreamble none |
| | | #@TestStep Client searches all operational attributes of root dse. |
| | | #@TestPostamble none |
| | | #@TestResult Success if OpenDS returns 0 |
| | | and entry for step 1. |
| | | Eight attributes and the dn should be returned. |
| | | --> |
| | | <testcase name="getTestCaseName('Search All Operational Attribute, root dse')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ACI: Global: Search, user searching operational attribute of root dse' |
| | | </message> |
| | | |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' , |
| | | 'dsInstancePswd' : 'ACIRules' , |
| | | 'dsBaseDN' : ' ' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'attributes' : '+' , |
| | | 'extraParams' : '-T -s base' } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'namingContexts:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'supportedAuthPasswordSchemes:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'supportedControl:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'supportedExtension:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'supportedFeatures:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'supportedSASLMechanisms:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'vendorName:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'vendorVersion:' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'checktestString'"> |
| | | { 'returnString' : returnString , |
| | | 'expectedString' : 'dn: ' } |
| | | </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 Global Tests |
| | | #@TestName Global ACI Search - All operational attributes for cn=config |
| | | #@TestIssue 1622 |
| | | #@TestPurpose Search all operational attributes for cn=config against default global acis |
| | | #@TestPreamble none |
| | | #@TestStep Client searches all operational attributes for cn=config. |
| | | #@TestPostamble none |
| | | #@TestResult Success if OpenDS returns 50. |
| | | --> |
| | | <testcase name="getTestCaseName('Search Operational Attribute, cn=config')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ACI: Global: Search, user searching operational attribute of an entry' |
| | | </message> |
| | | |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' , |
| | | 'dsInstancePswd' : 'ACIRules' , |
| | | 'dsBaseDN' : 'cn=config' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'attributes' : '+' , |
| | | 'expectedRC' : 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 Global Tests |
| | | #@TestName Global ACI Search - Anonymous |
| | | #@TestIssue 1621 |
| | | #@TestPurpose Anonymous search against default global acis |
| | | #@TestPreamble none |
| | | #@TestStep Client searches entry as anonymous. |
| | | #@TestPostamble none |
| | | #@TestResult Success if OpenDS returns 0 |
| | | and entry for step 1. |
| | | The attributes, uid, sn and dn, should be returned for specified dn. |
| | | --> |
| | | <testcase name="getTestCaseName('Anon Search')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ACI: Global: AnonSearch, user searching entry' |
| | | </message> |
| | | |
| | | <call function="'AnonSearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsBaseDN' : 'ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'extraParams' : '-T' , |
| | | 'dsFilter' : '(uid=scarter)'} |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'sn' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'uid' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'checktestString'"> |
| | | { 'returnString' : returnString , |
| | | 'expectedString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' } |
| | | </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 Global Tests |
| | | #@TestName Global ACI Search - Anonymous with not equals filter |
| | | #@TestIssue 1621 |
| | | #@TestPurpose Anonymous search with not equals filter against default global acis |
| | | #@TestPreamble none |
| | | #@TestStep Client searches entry as anonymous with not equals filter |
| | | #@TestPostamble none |
| | | #@TestResult Success if OpenDS returns 0 |
| | | and entries for step 1. |
| | | The attributes, uid, sn and dn, should be returned for all other entries but the |
| | | for the specified dn. |
| | | --> |
| | | <testcase name="getTestCaseName('Anon Search, not equals filter')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ACI: Global: AnonSearch, not equals filter, user searching entry' |
| | | </message> |
| | | |
| | | <call function="'AnonSearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsBaseDN' : 'ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'extraParams' : '-T' , |
| | | 'dsFilter' : '(!(uid=scarter))'} |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'sn' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString , |
| | | 'testString' : 'uid' , |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'checktestString'"> |
| | | { 'returnString' : returnString , |
| | | 'expectedString' : 'dn: uid=tmorris,ou=People,ou=aci branch,o=ACI Tests' } |
| | | </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 Global Tests |
| | | #@TestName Global ACI Compare |
| | | #@TestIssue 1402 |
| | | #@TestPurpose Compare against default global acis |
| | | #@TestPreamble none |
| | | #@TestStep Client compares attribute in an entry. |
| | | #@TestPostamble none |
| | | #@TestResult Success if OpenDS returns 0 |
| | | and returns true for step 1. |
| | | --> |
| | | <testcase name="getTestCaseName('Compare')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ACI: Global: Compare, user comparing entry' |
| | | </message> |
| | | |
| | | <call function="'compareEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' , |
| | | 'dsInstancePswd' : 'ACIRules' , |
| | | 'attrToBeCompared' : 'l:Santa Clara', |
| | | 'entryToBeCompared' : 'uid=tclow, ou=People, ou=aci branch, o=ACI Tests, dc=example,dc=com' } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { 'returnString' : returnString , |
| | | 'expectedString' : 'true' } |
| | | </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 Global Tests |
| | | #@TestName Global ACI Modify |
| | | #@TestIssue 1402 |
| | | #@TestPurpose Modify against default global acis |
| | | #@TestPreamble none |
| | | #@TestStep Client modifies attribute in an entry. |
| | | #@TestPostamble none |
| | | #@TestResult Success if OpenDS returns 50. |
| | | --> |
| | | <testcase name="getTestCaseName('Modify')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ACI: Global: Modify, user modifying entry' |
| | | </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/global_acis/mod_entry1.ldif' % remote.data , |
| | | 'expectedRC' : 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 Global Tests |
| | | #@TestName Global ACI Delete |
| | | #@TestIssue 1402 |
| | | #@TestPurpose Delete against default global acis |
| | | #@TestPreamble none |
| | | #@TestStep Client deletes an entry. |
| | | #@TestPostamble none |
| | | #@TestResult Success if OpenDS returns 50. |
| | | --> |
| | | <testcase name="getTestCaseName('Delete')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ACI: Global: Delete, user deleting entry' |
| | | </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/global_acis/del_entry1.ldif' % remote.data , |
| | | 'expectedRC' : 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 Global Tests |
| | | #@TestName Global ACI Modify RDN |
| | | #@TestIssue 1402 |
| | | #@TestPurpose Modify RDN against default global acis |
| | | #@TestPreamble none |
| | | #@TestStep Client modifies the RDN of an entry. |
| | | #@TestPostamble none |
| | | #@TestResult Success if OpenDS returns 50. |
| | | --> |
| | | <testcase name="getTestCaseName('Modify RDN')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ACI: Global: Modify RDN, user modifying rdn of an entry' |
| | | </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/global_acis/modrdn_entry1.ldif' % remote.data , |
| | | 'expectedRC' : 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 Global Tests |
| | | #@TestName Global ACI Modify Self |
| | | #@TestIssue 1402 |
| | | #@TestPurpose Modify self against default global acis |
| | | #@TestPreamble none |
| | | #@TestStep Client modifies attribute in the user entry. |
| | | #@TestPostamble none |
| | | #@TestResult Success if OpenDS returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName('Self Modify')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ACI: Global: Self Modify, user modifying itself' |
| | | </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/global_acis/mod_entry2.ldif' % remote.data } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | </sequence> |
| | | |
| | | <finally> |
| | | <sequence> |
| | | <!-- Test Suite Cleanup --> |
| | | <message>'Finally: Global ACI Cleanup.'</message> |
| | | <try> |
| | | <call function="'common_cleanup'" /> |
| | | <catch exception="'STAFException'"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message> |
| | | </sequence> |
| | | </catch> |
| | | <finally> |
| | | <call function="'testSuite_Postamble'"/> |
| | | </finally> |
| | | </try> |
| | | </sequence> |
| | | </finally> |
| | | |
| | | </try> |
| | | |
| | | </block> |
| | | |
| | | </sequence> |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2006-2008 Sun Microsystems, Inc. |
| | | ! Copyright 2006-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | <defaultcall function="main_backends"/> |
| | |
| | | <function-required-arg name="STAXParentID"/> |
| | | </function-list-args> |
| | | <sequence> |
| | | |
| | | <try> |
| | | <block name="'backends'"> |
| | | <sequence> |
| | | |
| | |
| | | |
| | | <!-- List of backends test suites to run --> |
| | | <script> |
| | | testList = [] |
| | | testList.append('import') |
| | | testList.append('import-tasks') |
| | | testList.append('backup') |
| | | testList.append('backup-tasks') |
| | | testList.append('restore') |
| | | testList.append('restore-tasks') |
| | | testList.append('export') |
| | | testList.append('export-tasks') |
| | | suiteList = [] |
| | | suiteList.append('import') |
| | | suiteList.append('import-tasks') |
| | | suiteList.append('backup') |
| | | suiteList.append('backup-tasks') |
| | | suiteList.append('restore') |
| | | suiteList.append('restore-tasks') |
| | | suiteList.append('export') |
| | | suiteList.append('export-tasks') |
| | | </script> |
| | | |
| | | <iterate var="_test" in="testList" > |
| | | |
| | | <!-- Run the test suites --> |
| | | <iterate var="_suite" in="suiteList"> |
| | | <sequence> |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/backends/%s.xml' % (TESTS_DIR,_test)"/> |
| | | <call function="'main_%s' % _test" /> |
| | | <try> |
| | | <sequence> |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/backends/%s.xml' % (TESTS_DIR,_suite)"/> |
| | | <call function="'main_%s' % _suite" /> |
| | | </sequence> |
| | | <catch exception="'STAFException.TestSuite.SetupException'"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'">'Setup of test suite %s failed.' % _suite</message> |
| | | </sequence> |
| | | </catch> |
| | | <catch exception="'STAFException.TestSuite.MainException'"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'">'Main part of test suite %s failed.' % _suite</message> |
| | | </sequence> |
| | | </catch> |
| | | <catch exception="'STAFException.TestSuite.CleanupException'"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'">'Cleanup of test suite %s failed.' % _suite</message> |
| | | </sequence> |
| | | </catch> |
| | | </try> |
| | | </sequence> |
| | | </iterate> |
| | | <call function="'testGroup_Postamble'"/> |
| | | |
| | | </sequence> |
| | | </block> |
| | | <catch exception="'STAXException.TestGroupException'"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'">'Execution of Test Group Failed'</message> |
| | | </sequence> |
| | | </catch> |
| | | <finally> |
| | | <!-- Test Group postamble --> |
| | | <call function="'testGroup_Postamble'"/> |
| | | </finally> |
| | | </try> |
| | | |
| | | </sequence> |
| | | </function> |
| | | </stax> |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | |
| | | <stax> |
| | |
| | | <message> |
| | | 'Backend: Backend Setup for Export, Backup, and Restore Tests' |
| | | </message> |
| | | <call function="'importLdif'"> |
| | | { 'ldifFile' : '%s/backends/backend_start.ldif' % remote.data } |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'dsLdifFile' : '%s/backends/backend_start.ldif' % remote.data , |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | <defaultcall function="main_backup-tasks"/> |
| | | <function name="main_backup-tasks"> |
| | | <sequence> |
| | | <block name="'backup-tasks'"> |
| | | <sequence> |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group']='backends' |
| | | CurrentTestPath['suite']=STAXCurrentBlock |
| | | </script> |
| | | <call function="'testSuite_Preamble'" /> |
| | | |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/backends/backend_setup.xml' % (TESTS_DIR)" /> |
| | | <call function="'backend_setup'"> { 'loadBackend' : True } </call> |
| | | <testcase name="getTestCaseName('Test 1')"> |
| | | <try> |
| | | <sequence> |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group']='backends' |
| | | CurrentTestPath['suite']=STAXCurrentBlock |
| | | </script> |
| | | <call function="'testSuite_Preamble'" /> |
| | | |
| | | <call function="'common_setup'"> |
| | | { |
| | | 'quickStart' : False , |
| | | 'loadData' : False , |
| | | 'startServer' : True , |
| | | 'stopServer' : False |
| | | } |
| | | </call> |
| | | |
| | | <testcase name="getTestCaseName('Test 1')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <message> |
| | | 'Backend ExportTasks1: Backup the data in OpenDS by scheduling a task' |
| | | </message> |
| | | <call function="'backupTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : '3', |
| | | 'backupDir' : '%s/backends/' % remote.data |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'" /> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | </sequence> |
| | | |
| | | <finally> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <message> |
| | | 'Backend ExportTasks1: Backup the data in OpenDS by scheduling a task' |
| | | </message> |
| | | <call function="'backupTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : '3', |
| | | 'backupDir' : '%s/backends/' % remote.data |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'" /> |
| | | <!-- Test Suite Cleanup --> |
| | | <message>'Finally: Global Backup Cleanup.'</message> |
| | | <try> |
| | | <try> |
| | | <call function="'common_cleanup'" /> |
| | | <catch exception="'STAFException'"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message> |
| | | </sequence> |
| | | </catch> |
| | | </try> |
| | | <finally> |
| | | <call function="'testSuite_Postamble'"/> |
| | | </finally> |
| | | </try> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/backends/backend_cleanup.xml' % (TESTS_DIR)"/> |
| | | <call function="'backend_cleanup'"/> |
| | | <call function="'testSuite_Postamble'"/> |
| | | </sequence> |
| | | </finally> |
| | | </try> |
| | | </block> |
| | | </sequence> |
| | | </function> |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | <defaultcall function="main_backup"/> |
| | | <function name="main_backup"> |
| | | <sequence> |
| | | <block name="'backup'"> |
| | | <sequence> |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group']='backends' |
| | | CurrentTestPath['suite']=STAXCurrentBlock |
| | | </script> |
| | | <call function="'testSuite_Preamble'" /> |
| | | <!--- Test Suite information |
| | | #@TestSuiteName Backend Backup Tests |
| | | #@TestSuitePurpose Verify that the basic backup functionality is working in the Directory Server. |
| | | #@TestSuiteID Backup Tests |
| | | #@TestSuiteGroup Backup |
| | | #@TestGroup Backend |
| | | #@TestScript backup.xml |
| | | #@TestHTMLLink http://opends.dev.java.net/ |
| | | --> |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/backends/backend_setup.xml' % (TESTS_DIR)"/> |
| | | <call function="'backend_setup'"> |
| | | { 'startDS' : False, |
| | | 'loadBackend' : True |
| | | } |
| | | </call> |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Backup Tests |
| | | #@TestName Export: Backup 1 |
| | | #@TestID Backup1 |
| | | #@TestPurpose Backup the data in OpenDS. |
| | | #@TestPreamble |
| | | #@TestSteps Client calls backup with the parameters |
| | | default backendID, and backupDirectory |
| | | #@TestPostamble |
| | | #@TestResult Success if backup returns 0 |
| | | --> |
| | | <testcase name="getTestCaseName('Test 1')"> |
| | | |
| | | <try> |
| | | |
| | | <sequence> |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group']='backends' |
| | | CurrentTestPath['suite']=STAXCurrentBlock |
| | | </script> |
| | | <call function="'testSuite_Preamble'" /> |
| | | <!--- Test Suite information |
| | | #@TestSuiteName Backend Backup Tests |
| | | #@TestSuitePurpose Verify that the basic backup functionality is working in the Directory Server. |
| | | #@TestSuiteID Backup Tests |
| | | #@TestSuiteGroup Backup |
| | | #@TestGroup Backend |
| | | #@TestScript backup.xml |
| | | #@TestHTMLLink http://opends.dev.java.net/ |
| | | --> |
| | | |
| | | <call function="'common_setup'"> |
| | | { |
| | | 'quickStart' : False , |
| | | 'startServer' : False , |
| | | 'loadData' : False , |
| | | 'stopServer' : False |
| | | } |
| | | </call> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Backup Tests |
| | | #@TestName Export: Backup 1 |
| | | #@TestID Backup1 |
| | | #@TestPurpose Backup the data in OpenDS. |
| | | #@TestPreamble |
| | | #@TestSteps Client calls backup with the parameters |
| | | default backendID, and backupDirectory |
| | | #@TestPostamble |
| | | #@TestResult Success if backup returns 0 |
| | | --> |
| | | <testcase name="getTestCaseName('Test 1')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <message> |
| | | 'Backend Backup1: Create a backup of the data in OpenDS' |
| | | </message> |
| | | <call function="'backup'"> |
| | | { 'backupDir' : '%s/backends/backup1' % remote.data |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Backup Tests |
| | | #@TestName Export: Backup 2 |
| | | #@TestID Backup2 |
| | | #@TestPurpose Create an incremental backup of the data in OpenDS. |
| | | #@TestPreamble |
| | | #@TestSteps Client calls backup with the parameters |
| | | default backendID, backupDir, and incremental |
| | | #@TestPostamble |
| | | #@TestResult Success if backup returns 0 |
| | | --> |
| | | <testcase name="getTestCaseName('Test 2')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <message> |
| | | 'Backend Backup2: Create an incremental backup of the data in OpenDS' |
| | | </message> |
| | | <call function="'backup'"> |
| | | { 'backupDir' : '%s/backends/backup1' % remote.data, |
| | | 'extraParams' : '-i' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'" /> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Backup Tests |
| | | #@TestName Export: Backup 3 |
| | | #@TestID Backup3 |
| | | #@TestPurpose Create a backup of the data in OpenDS with a backup id. |
| | | #@TestPreamble |
| | | #@TestSteps Client calls backup with the parameters |
| | | default backendID, backupDir, and backupID |
| | | #@TestPostamble |
| | | #@TestResult Success if backup returns 0 |
| | | --> |
| | | <testcase name="getTestCaseName('Test 3')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <message> |
| | | 'Backend Backup3: Create a backup of the data in OpenDS with a backup id' |
| | | </message> |
| | | <call function="'backup'"> |
| | | { 'backupDir' : '%s/backends/backup2' % remote.data, |
| | | 'extraParams' : '-I 20070714142807Z' |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'" /> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Backup Tests |
| | | #@TestName Export: Backup 4 |
| | | #@TestID Backup4 |
| | | #@TestPurpose Create an incremental backup of the data in OpenDS with a backup id. |
| | | #@TestPreamble |
| | | #@TestSteps Client calls backup with the parameters |
| | | default backendID, backupDir, incremental, and backupID |
| | | #@TestPostamble |
| | | #@TestResult Success if backup returns 0 |
| | | --> |
| | | <testcase name="getTestCaseName('Test 4')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'" /> |
| | | <message> |
| | | 'Backend Backup4: Create an incremental backup of the data in OpenDS with a backup id' |
| | | </message> |
| | | <call function="'backup'"> |
| | | { 'backupDir' : '%s/backends/backup2' % remote.data, |
| | | 'extraParams' : '-B 20070714142807Z -i' |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'" /> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Backup Tests |
| | | #@TestName Export: Backup 5 |
| | | #@TestID Backup5 |
| | | #@TestPurpose Create a compressed backup of the data in OpenDS. |
| | | #@TestPreamble |
| | | #@TestSteps Client calls backup with the parameters |
| | | default backendID, backupDir, and compress |
| | | #@TestPostamble |
| | | #@TestResult Success if backup returns 0 |
| | | --> |
| | | <testcase name="getTestCaseName('Test 5')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <message> |
| | | 'Backend Backup5: Create a compressed backup of the data in OpenDS' |
| | | </message> |
| | | <call function="'backup'"> |
| | | { 'backupDir' : '%s/backends/backup1' % remote.data, |
| | | 'extraParams' : '-c' |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'" /> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | </sequence> |
| | | |
| | | <finally> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <message> |
| | | 'Backend Backup1: Create a backup of the data in OpenDS' |
| | | </message> |
| | | <call function="'backup'"> |
| | | { 'backupDir' : '%s/backends/backup1' % remote.data |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | <!-- Test Suite Cleanup --> |
| | | <message>'Finally: Global Backup Cleanup.'</message> |
| | | <try> |
| | | <try> |
| | | <call function="'common_cleanup'" /> |
| | | <catch exception="'STAFException'"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message> |
| | | </sequence> |
| | | </catch> |
| | | </try> |
| | | <finally> |
| | | <call function="'testSuite_Postamble'"/> |
| | | </finally> |
| | | </try> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Backup Tests |
| | | #@TestName Export: Backup 2 |
| | | #@TestID Backup2 |
| | | #@TestPurpose Create an incremental backup of the data in OpenDS. |
| | | #@TestPreamble |
| | | #@TestSteps Client calls backup with the parameters |
| | | default backendID, backupDir, and incremental |
| | | #@TestPostamble |
| | | #@TestResult Success if backup returns 0 |
| | | --> |
| | | <testcase name="getTestCaseName('Test 2')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <message> |
| | | 'Backend Backup2: Create an incremental backup of the data in OpenDS' |
| | | </message> |
| | | <call function="'backup'"> |
| | | { 'backupDir' : '%s/backends/backup1' % remote.data, |
| | | 'extraParams' : '-i' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'" /> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Backup Tests |
| | | #@TestName Export: Backup 3 |
| | | #@TestID Backup3 |
| | | #@TestPurpose Create a backup of the data in OpenDS with a backup id. |
| | | #@TestPreamble |
| | | #@TestSteps Client calls backup with the parameters |
| | | default backendID, backupDir, and backupID |
| | | #@TestPostamble |
| | | #@TestResult Success if backup returns 0 |
| | | --> |
| | | <testcase name="getTestCaseName('Test 3')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <message> |
| | | 'Backend Backup3: Create a backup of the data in OpenDS with a backup id' |
| | | </message> |
| | | <call function="'backup'"> |
| | | { 'backupDir' : '%s/backends/backup2' % remote.data, |
| | | 'extraParams' : '-I 20070714142807Z' |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'" /> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Backup Tests |
| | | #@TestName Export: Backup 4 |
| | | #@TestID Backup4 |
| | | #@TestPurpose Create an incremental backup of the data in OpenDS with a backup id. |
| | | #@TestPreamble |
| | | #@TestSteps Client calls backup with the parameters |
| | | default backendID, backupDir, incremental, and backupID |
| | | #@TestPostamble |
| | | #@TestResult Success if backup returns 0 |
| | | --> |
| | | <testcase name="getTestCaseName('Test 4')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'" /> |
| | | <message> |
| | | 'Backend Backup4: Create an incremental backup of the data in OpenDS with a backup id' |
| | | </message> |
| | | <call function="'backup'"> |
| | | { 'backupDir' : '%s/backends/backup2' % remote.data, |
| | | 'extraParams' : '-B 20070714142807Z -i' |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'" /> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Backup Tests |
| | | #@TestName Export: Backup 5 |
| | | #@TestID Backup5 |
| | | #@TestPurpose Create a compressed backup of the data in OpenDS. |
| | | #@TestPreamble |
| | | #@TestSteps Client calls backup with the parameters |
| | | default backendID, backupDir, and compress |
| | | #@TestPostamble |
| | | #@TestResult Success if backup returns 0 |
| | | --> |
| | | <testcase name="getTestCaseName('Test 5')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <message> |
| | | 'Backend Backup5: Create a compressed backup of the data in OpenDS' |
| | | </message> |
| | | <call function="'backup'"> |
| | | { 'backupDir' : '%s/backends/backup1' % remote.data, |
| | | 'extraParams' : '-c' |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'" /> |
| | | </sequence> |
| | | </testcase> |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/backends/backend_cleanup.xml' % (TESTS_DIR)"/> |
| | | <call function="'backend_cleanup'"> { 'stopDS' : False } </call> |
| | | <call function="'testSuite_Postamble'" /> |
| | | </sequence> |
| | | </finally> |
| | | |
| | | </try> |
| | | |
| | | </block> |
| | | </sequence> |
| | | </function> |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2006-2008 Sun Microsystems, Inc. |
| | | ! Copyright 2006-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | <defaultcall function="main_export-tasks"/> |
| | | <function name="main_export-tasks"> |
| | | <sequence> |
| | | <block name="'export-tasks'"> |
| | | <sequence> |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group']='backends' |
| | | CurrentTestPath['suite']=STAXCurrentBlock |
| | | </script> |
| | | <call function="'testSuite_Preamble'" /> |
| | | <!--- Test Suite information |
| | | #@TestSuiteName Backend Export Tasks Tests |
| | | #@TestSuitePurpose Verify that the basic export task functionality is working in the Directory Server. |
| | | #@TestSuiteID Export Tasks Tests |
| | | #@TestSuiteGroup Export Tasks |
| | | #@TestGroup Backend |
| | | #@TestScript export.xml |
| | | #@TestHTMLLink http://opends.dev.java.net/ |
| | | --> |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/backends/backend_setup.xml' % (TESTS_DIR)"/> |
| | | <call function="'backend_setup'"> { 'loadBackend' : True } </call> |
| | | <try> |
| | | <sequence> |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Export Tasks 1 |
| | | #@TestID ExportTasks1 |
| | | #@TestPurpose Verify an export task of a LDIF file on the default backend. |
| | | #@TestPreamble |
| | | #@TestSteps An ldif file is created that describes the export task to be |
| | | scheduled. The task is scheduled by adding the ldif file |
| | | with the static ldapmodify. |
| | | #@TestPostamble |
| | | #@TestResult Success if OpenDS returns 0 |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group']='backends' |
| | | CurrentTestPath['suite']=STAXCurrentBlock |
| | | </script> |
| | | <call function="'testSuite_Preamble'" /> |
| | | <!--- Test Suite information |
| | | #@TestSuiteName Backend Export Tasks Tests |
| | | #@TestSuitePurpose Verify that the basic export task functionality is working in the Directory Server. |
| | | #@TestSuiteID Export Tasks Tests |
| | | #@TestSuiteGroup Export Tasks |
| | | #@TestGroup Backend |
| | | #@TestScript export.xml |
| | | #@TestHTMLLink http://opends.dev.java.net/ |
| | | --> |
| | | <testcase name="getTestCaseName('Test 1')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <message> |
| | | 'Backend ExportTasks1: Export the data in OpenDS by scheduling a task' |
| | | </message> |
| | | <call function="'exportLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : '1', |
| | | 'ldifFile' : '%s/backends/ExportTasks1.ldif' % remote.data |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'" /> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: LDIF Default |
| | | #@TestID LDIF Default |
| | | #@TestPurpose Verify an export task of a LDIF file on the default backend. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: LDIF Non Default |
| | | #@TestID LDIF Non Default |
| | | #@TestPurpose Verify an export task of a LDIF file on a differrent backend to the default. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Fractional Include Branch |
| | | #@TestID Fractional Include Branch |
| | | #@TestPurpose Verify an export task of a LDIF file specifying a branch that should be included in the export task. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Fractional Include Branches |
| | | #@TestID Fractional Include Branches |
| | | #@TestPurpose Verify an export task of a LDIF file specifying multiple branches that should be included in the export task. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Fractional Exclude Branch |
| | | #@TestID Fractional Exclude Branch |
| | | #@TestPurpose Verify an export task of a LDIF file specifying a branch that should be excluded in the export task. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Fractional Exclude Branches |
| | | #@TestID Fractional Exclude Branches |
| | | #@TestPurpose Verify an export task of a LDIF file specifying multiple branches that should be excluded in the export task. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Fractional Branches Mix |
| | | #@TestID Fractional Branches Mix |
| | | #@TestPurpose Verify an export task of a LDIF file specifying a mix of include and exclude branches. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Fractional Include Attribute |
| | | #@TestID Fractional Include Attribute |
| | | #@TestPurpose Verify an export task of a LDIF file specifying an attribute that should be included in the export task. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Fractional Include Attributes |
| | | #@TestID Fractional Include Attributes |
| | | #@TestPurpose Verify an export task of a LDIF file specifying multiple attributes that should be included in the export task. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Fractional Exclude Attribute |
| | | #@TestID Fractional Exclude Attribute |
| | | #@TestPurpose Verify an export task of a LDIF file specifying an attribute that should be excluded in the export task. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Fractional Exclude Attributes |
| | | #@TestID Fractional Exclude Attributes |
| | | #@TestPurpose Verify an export task of a LDIF file specifying multiple attribute that should be excluded in the export task. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Fractional Mix |
| | | #@TestID Fractional Mix |
| | | #@TestPurpose Verify an export task of a LDIF file specifying a mix of fractional attributes and branches. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Filtered Include |
| | | #@TestID Filtered Include |
| | | #@TestPurpose Verify an export task of a LDIF file specifying a search filter control which entries are included in the export task. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Filtered Includes |
| | | #@TestID Filtered Includes |
| | | #@TestPurpose Verify an export task of a LDIF file specifying a search filter control which entries are included in the export task. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Filtered Excludes |
| | | #@TestID Filtered Excludes |
| | | #@TestPurpose Verify an export task of a LDIF file specifying multiple search filters control which entries are excluded in the export task. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Filtered Includes |
| | | #@TestID Filtered Includes |
| | | #@TestPurpose Verify an export task of a LDIF file specifying multiple search filters control which entries are included in the export task. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Filtered Excludes Complex |
| | | #@TestID Filtered Excludes Complex |
| | | #@TestPurpose Verify an export task of a LDIF file specifying complex search filters control which entries are excluded in the export task. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Filtered Excludes Complex |
| | | #@TestID Filtered Excludes Complex |
| | | #@TestPurpose Verify an export task of a LDIF file specifying complex search filters control which entries are excluded in the export task. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Fractional Filtered Mix |
| | | #@TestID Fractional Filtered Mix |
| | | #@TestPurpose Verify an export task of a LDIF file specifying a mix of fractional and filtered. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Append To LDIF |
| | | #@TestID Append To LDIF |
| | | #@TestPurpose Verify an export task of a LDIF file specifying that the export task process should append to the existing LDIF file. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Compress LDIF |
| | | #@TestID Compress LDIF |
| | | #@TestPurpose Verify an export task where the LDIF file is compressed. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Encrypt LDIF |
| | | #@TestID Encrypt LDIF |
| | | #@TestPurpose Verify an export task where the LDIF file is encrypted. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Hash Signed LDIF |
| | | #@TestID Hash Signed LDIF |
| | | #@TestPurpose Verify an export task where the LDIF file is hashed/signed. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Wrap Column |
| | | #@TestID Wrap Column |
| | | #@TestPurpose Verify an export task of a LDIF file containing wrapped columns |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Error Codes |
| | | #@TestID Error Codes |
| | | #@TestPurpose Verify an export task fails with an error code. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <call function="'common_setup'"> |
| | | { |
| | | 'quickStart' : False , |
| | | 'loadData' : False , |
| | | 'startServer' : True , |
| | | 'stopServer' : False |
| | | } |
| | | </call> |
| | | <sequence> |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Export Tasks 1 |
| | | #@TestID ExportTasks1 |
| | | #@TestPurpose Verify an export task of a LDIF file on the default backend. |
| | | #@TestPreamble |
| | | #@TestSteps An ldif file is created that describes the export task to be |
| | | scheduled. The task is scheduled by adding the ldif file |
| | | with the static ldapmodify. |
| | | #@TestPostamble |
| | | #@TestResult Success if OpenDS returns 0 |
| | | --> |
| | | <testcase name="getTestCaseName('Test 1')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <message> |
| | | 'Backend ExportTasks1: Export the data in OpenDS by scheduling a task' |
| | | </message> |
| | | <call function="'exportLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : '1', |
| | | 'ldifFile' : '%s/backends/ExportTasks1.ldif' % remote.data |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'" /> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: LDIF Default |
| | | #@TestID LDIF Default |
| | | #@TestPurpose Verify an export task of a LDIF file on the default backend. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: LDIF Non Default |
| | | #@TestID LDIF Non Default |
| | | #@TestPurpose Verify an export task of a LDIF file on a differrent backend to the default. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Fractional Include Branch |
| | | #@TestID Fractional Include Branch |
| | | #@TestPurpose Verify an export task of a LDIF file specifying a branch that should be included in the export task. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Fractional Include Branches |
| | | #@TestID Fractional Include Branches |
| | | #@TestPurpose Verify an export task of a LDIF file specifying multiple branches that should be included in the export task. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Fractional Exclude Branch |
| | | #@TestID Fractional Exclude Branch |
| | | #@TestPurpose Verify an export task of a LDIF file specifying a branch that should be excluded in the export task. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Fractional Exclude Branches |
| | | #@TestID Fractional Exclude Branches |
| | | #@TestPurpose Verify an export task of a LDIF file specifying multiple branches that should be excluded in the export task. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Fractional Branches Mix |
| | | #@TestID Fractional Branches Mix |
| | | #@TestPurpose Verify an export task of a LDIF file specifying a mix of include and exclude branches. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Fractional Include Attribute |
| | | #@TestID Fractional Include Attribute |
| | | #@TestPurpose Verify an export task of a LDIF file specifying an attribute that should be included in the export task. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Fractional Include Attributes |
| | | #@TestID Fractional Include Attributes |
| | | #@TestPurpose Verify an export task of a LDIF file specifying multiple attributes that should be included in the export task. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Fractional Exclude Attribute |
| | | #@TestID Fractional Exclude Attribute |
| | | #@TestPurpose Verify an export task of a LDIF file specifying an attribute that should be excluded in the export task. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Fractional Exclude Attributes |
| | | #@TestID Fractional Exclude Attributes |
| | | #@TestPurpose Verify an export task of a LDIF file specifying multiple attribute that should be excluded in the export task. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Fractional Mix |
| | | #@TestID Fractional Mix |
| | | #@TestPurpose Verify an export task of a LDIF file specifying a mix of fractional attributes and branches. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Filtered Include |
| | | #@TestID Filtered Include |
| | | #@TestPurpose Verify an export task of a LDIF file specifying a search filter control which entries are included in the export task. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Filtered Includes |
| | | #@TestID Filtered Includes |
| | | #@TestPurpose Verify an export task of a LDIF file specifying a search filter control which entries are included in the export task. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Filtered Excludes |
| | | #@TestID Filtered Excludes |
| | | #@TestPurpose Verify an export task of a LDIF file specifying multiple search filters control which entries are excluded in the export task. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Filtered Includes |
| | | #@TestID Filtered Includes |
| | | #@TestPurpose Verify an export task of a LDIF file specifying multiple search filters control which entries are included in the export task. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Filtered Excludes Complex |
| | | #@TestID Filtered Excludes Complex |
| | | #@TestPurpose Verify an export task of a LDIF file specifying complex search filters control which entries are excluded in the export task. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Filtered Excludes Complex |
| | | #@TestID Filtered Excludes Complex |
| | | #@TestPurpose Verify an export task of a LDIF file specifying complex search filters control which entries are excluded in the export task. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Fractional Filtered Mix |
| | | #@TestID Fractional Filtered Mix |
| | | #@TestPurpose Verify an export task of a LDIF file specifying a mix of fractional and filtered. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Append To LDIF |
| | | #@TestID Append To LDIF |
| | | #@TestPurpose Verify an export task of a LDIF file specifying that the export task process should append to the existing LDIF file. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Compress LDIF |
| | | #@TestID Compress LDIF |
| | | #@TestPurpose Verify an export task where the LDIF file is compressed. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Encrypt LDIF |
| | | #@TestID Encrypt LDIF |
| | | #@TestPurpose Verify an export task where the LDIF file is encrypted. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Hash Signed LDIF |
| | | #@TestID Hash Signed LDIF |
| | | #@TestPurpose Verify an export task where the LDIF file is hashed/signed. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Wrap Column |
| | | #@TestID Wrap Column |
| | | #@TestPurpose Verify an export task of a LDIF file containing wrapped columns |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Export Tasks Tests |
| | | #@TestName Export Tasks: Error Codes |
| | | #@TestID Error Codes |
| | | #@TestPurpose Verify an export task fails with an error code. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | </sequence> |
| | | |
| | | </sequence> |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/backends/backend_cleanup.xml' % (TESTS_DIR)"/> |
| | | <call function="'backend_cleanup'"/> |
| | | <call function="'testSuite_Postamble'"/> |
| | | </sequence> |
| | | <finally> |
| | | <sequence> |
| | | <!-- Test Suite Cleanup --> |
| | | <message>'Finally: Global Backup Cleanup.'</message> |
| | | <try> |
| | | <try> |
| | | <call function="'common_cleanup'" /> |
| | | <catch exception="'STAFException'"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message> |
| | | </sequence> |
| | | </catch> |
| | | </try> |
| | | <finally> |
| | | <call function="'testSuite_Postamble'"/> |
| | | </finally> |
| | | </try> |
| | | </sequence> |
| | | </finally> |
| | | </try> |
| | | </block> |
| | | </sequence> |
| | | </function> |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2006-2008 Sun Microsystems, Inc. |
| | | ! Copyright 2006-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | |
| | | <stax> |
| | |
| | | <function name="main_import-tasks"> |
| | | <sequence> |
| | | <block name="'import-tasks'"> |
| | | <sequence> |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group']='backends' |
| | | CurrentTestPath['suite']=STAXCurrentBlock |
| | | </script> |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <try> |
| | | |
| | | <!--- Test Suite information |
| | | #@TestSuiteName Backend Import Tasks Tests |
| | | #@TestSuitePurpose Verify that the basic import using the task based functionality is working in the Directory Server. |
| | | #@TestSuiteID Import Tasks Tests |
| | | #@TestSuiteGroup Import-Tasks |
| | | #@TestGroup Backend |
| | | #@TestScript import-tasks.xml |
| | | #@TestHTMLLink http://opends.dev.java.net/ |
| | | --> |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/backends/backend_setup.xml' % (TESTS_DIR)"/> |
| | | <call function="'backend_setup'" /> |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Import Tasks: LDIF Default |
| | | #@TestID LDIF Default |
| | | #@TestPurpose Verify an import task of a LDIF file using the default backend. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('LDIF Default')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Example.ldif' % remote.data |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller, ou=People, dc=example,dc=com', |
| | | 'uid=rhunt, ou=People, dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Fractional Include Branch |
| | | #@TestID Fractional Include Branch |
| | | #@TestPurpose Verify an import task of a LDIF file specifying a branch that should be included in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Fractional Include Branch')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Include.ldif' % remote.data, |
| | | 'includeBranches' : ['dc=com'], |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller, ou=People, dc=example,dc=com', |
| | | 'uid=rhunt, ou=People, dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Fractional Include Branches |
| | | #@TestID Fractional Include Branches |
| | | #@TestPurpose Verify an import task of a LDIF file specifying multiple branches that should be included in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Fractional Include Branches')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Include.ldif' % remote.data, |
| | | 'includeBranches' : ['dc=com','dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller, ou=People, dc=example,dc=com', |
| | | 'uid=rhunt, ou=People, dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Fractional Exclude Branch |
| | | #@TestID Fractional Exclude Branch |
| | | #@TestPurpose Verify an import task of a LDIF file specifying a branch that should be excluded in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Fractional Exclude Branch')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'" /> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Exclude.ldif' % remote.data, |
| | | 'excludeBranches' : ['ou=Departed,ou=People,dc=example,dc=com'], |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller, ou=People, dc=example,dc=com', |
| | | 'uid=rhunt, ou=People, dc=example,dc=com'], |
| | | 'missingEntries' : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com', |
| | | 'uid=brammage,ou=Departed,ou=People,dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Fractional Exclude Branches |
| | | #@TestID Fractional Exclude Branches |
| | | #@TestPurpose Verify an import task of a LDIF file specifying multiple branches that should be excluded in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Fractional Exclude Branches')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'" /> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Exclude.ldif' % remote.data, |
| | | 'excludeBranches' : ['ou=Departed,ou=People,dc=example,dc=com', |
| | | 'cn=QA Managers,ou=groups,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller, ou=People, dc=example,dc=com', |
| | | 'uid=rhunt, ou=People, dc=example,dc=com'], |
| | | 'missingEntries' : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com', |
| | | 'uid=brammage,ou=Departed,ou=People,dc=example,dc=com', |
| | | 'uid=bbaret,cn=QA Managers,ou=groups,dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Fractional Branches Mix |
| | | #@TestID Fractional Branches Mix |
| | | #@TestPurpose Verify an import task of a LDIF file specifying a mix of include and exclude branches. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Fractional Branches Mix')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Exclude.ldif' % remote.data, |
| | | 'includeBranches' : ['dc=com'], |
| | | 'excludeBranches' : ['ou=Departed,ou=People,dc=example,dc=com'], |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller, ou=People, dc=example,dc=com', |
| | | 'uid=rhunt, ou=People, dc=example,dc=com'], |
| | | 'missingEntries' : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com', |
| | | 'uid=brammage,ou=Departed,ou=People,dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Fractional Include Attribute |
| | | #@TestID Fractional Include Attribute |
| | | #@TestPurpose Verify an import task of a LDIF file specifying an attribute that should be included in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Fractional Include Attribute')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'" /> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Include.ldif' % remote.data, |
| | | 'includeAttributes' : ['dc'], |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['dc=com','dc=example,dc=com'], |
| | | 'missingEntries' : ['ou=People,dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Fractional Include Attributes |
| | | #@TestID Fractional Include Attributes |
| | | #@TestPurpose Verify an import task of a LDIF file specifying multiple attributes that should be included in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Fractional Include Attributes')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'" /> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Include.ldif' % remote.data, |
| | | 'includeAttributes' : ['dc','cn','ou','sn'] |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller,ou=People,dc=example,dc=com', |
| | | 'uid=rhunt,ou=People,dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Fractional Exclude Attribute |
| | | #@TestID Fractional Exclude Attribute |
| | | #@TestPurpose Verify an import task of a LDIF file specifying an attribute that should be excluded in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Fractional Exclude Attribute')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'" /> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Exclude.ldif' % remote.data, |
| | | 'excludeAttributes' : ['userpassword'] |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com'], |
| | | 'missingAttributes' : ['userpassword'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Fractional Exclude Attributes |
| | | #@TestID Fractional Exclude Attributes |
| | | #@TestPurpose Verify an import task of a LDIF file specifying multiple attribute that should be excluded in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Fractional Exclude Attributes')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'" /> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Exclude.ldif' % remote.data, |
| | | 'excludeAttributes' : ['userpassword','mail','roomnumber'] |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com'], |
| | | 'missingAttributes' : ['userpassword','mail','roomnumber'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Fractional Mix |
| | | #@TestID Fractional Mix |
| | | #@TestPurpose Verify an import task of a LDIF file specifying a mix of fractional attributes and branches. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Fractional Mix')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'" /> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Exclude.ldif' % remote.data, |
| | | 'includeBranches' : ['dc=com','dc=example,dc=com','ou=People,dc=example,dc=com'], |
| | | 'excludeBranches' : ['ou=Departed,ou=People,dc=example,dc=com'], |
| | | 'includeAttributes' : ['dc','cn','ou','sn'], |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller, ou=People, dc=example,dc=com', |
| | | 'uid=rhunt, ou=People, dc=example,dc=com'], |
| | | 'missingEntries' : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com', |
| | | 'uid=brammage,ou=Departed,ou=People,dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Filtered Include |
| | | #@TestID Filtered Include |
| | | #@TestPurpose Verify an import task of a LDIF file specifying a search filter control which entries are included in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Filtered Include')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'" /> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Include.ldif' % remote.data, |
| | | 'includeFilters' : ['objectclass=*'], |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller,ou=People,dc=example,dc=com', |
| | | 'uid=rhunt,ou=People,dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Filtered Exclude |
| | | #@TestID Filtered Exclude |
| | | #@TestPurpose Verify an import task of a LDIF file specifying a search filter control which entries are excluded in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Filtered Exclude')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Exclude.ldif' % remote.data, |
| | | 'excludeFilters' : ['objectclass=person'], |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['dc=example,dc=com', |
| | | 'ou=People,dc=example,dc=com'], |
| | | 'missingEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller,ou=People,dc=example,dc=com', |
| | | 'uid=rhunt,ou=People,dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Filtered Includes |
| | | #@TestID Filtered Includes |
| | | #@TestPurpose Verify an import task of a LDIF file specifying multiple search filters control which entries are included in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Filtered Includes')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Include.ldif' % remote.data, |
| | | 'includeFilters' : ['objectclass=domain*','objectclass=organizationalunit'] |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['dc=example,dc=com', |
| | | 'ou=People,dc=example,dc=com'], |
| | | 'missingEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller,ou=People,dc=example,dc=com', |
| | | 'uid=rhunt,ou=People,dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Filtered Excludes |
| | | #@TestID Filtered Excludes |
| | | #@TestPurpose Verify an import task of a LDIF file specifying multiple search filters control which entries are excluded in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Filtered Excludes')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Exclude.ldif' % remote.data, |
| | | 'excludeFilters' : ['objectclass=person','objectclass=organizationalunit'], |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['dc=example,dc=com'], |
| | | 'missingEntries' : ['ou=People,dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Filtered Includes Complex |
| | | #@TestID Filtered Includes Complex |
| | | #@TestPurpose Verify an import task of a LDIF file specifying complex search filters control which entries are included in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Filtered Includes Complex')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Include.ldif' % remote.data, |
| | | 'includeFilters' : ['|(objectclass=person)(objectclass=domain)(objectclass=organizationalunit)'], |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller,ou=People,dc=example,dc=com', |
| | | 'uid=rhunt,ou=People,dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Filtered Excludes Complex |
| | | #@TestID Filtered Excludes Complex |
| | | #@TestPurpose Verify an import task of a LDIF file specifying complex search filters control which entries are excluded in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Filtered Excludes Complex')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Exclude.ldif' % remote.data, |
| | | 'excludeFilters' : ['&(objectclass=person)(ou=Departed)'], |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=rhunt,ou=People,dc=example,dc=com'], |
| | | 'missingEntries' : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Fractional Filtered Mix |
| | | #@TestID Fractional Filtered Mix |
| | | #@TestPurpose Verify an import task of a LDIF file specifying a mix of fractional and filtered. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Fractional Filtered Mix')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Exclude.ldif' % remote.data, |
| | | 'excludeFilters' : ['&(objectclass=person)(ou=Departed)'], |
| | | 'includeBranches' : ['dc=com'], |
| | | 'excludeAttributes' : ['userpassword'] |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com'], |
| | | 'missingAttributes' : ['userpassword'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Append |
| | | #@TestID Append |
| | | #@TestPurpose Verify an import task of a LDIF file specifying that the import process should append to the existing database. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Append')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Append.ldif' % remote.data, |
| | | 'append' : 'TRUE' |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['ou=Departed,ou=People,dc=example,dc=com', |
| | | 'uid=fvinker,ou=Departed,ou=People,dc=example,dc=com', |
| | | 'uid=brammage,ou=Departed,ou=People,dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks:Append Replace Existing |
| | | #@TestID Append Replace Existing |
| | | #@TestPurpose Verify an import task of a LDIF file specifying that an existing entry should be replaced when appending to an existing database. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Append Replace Existing')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Append.ldif' % remote.data, |
| | | 'append' : 'TRUE', |
| | | 'replaceExisting' : 'TRUE' |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['ou=Departed,ou=People,dc=example,dc=com', |
| | | 'uid=fvinker,ou=Departed,ou=People,dc=example,dc=com', |
| | | 'uid=brammage,ou=Departed,ou=People,dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Compressed |
| | | #@TestID Compressed |
| | | #@TestPurpose Verify an import task of a LDIF file specifying the data to import is compressed. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Compressed')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Example.ldif.gz' % remote.data, |
| | | 'isCompressed' : 'TRUE' |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller,ou=People,dc=example,dc=com', |
| | | 'uid=rhunt,ou=People,dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Encrypted |
| | | #@TestID Encrypted |
| | | #@TestPurpose Verify an import task of a LDIF file specifying the data to import is encrypted. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Encrypted')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Example.ldif' % remote.data, |
| | | 'isEncrypted' : 'TRUE' |
| | | } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller,ou=People,dc=example,dc=com', |
| | | 'uid=rhunt,ou=People,dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : 1 , |
| | | 'expected' : 0 , |
| | | 'result' : 'Encrypted LDIF export is not implemented', |
| | | 'issue' : '839' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Hashed Signed |
| | | #@TestID Hashed Signed |
| | | #@TestPurpose Verify an import task of a LDIF file specifying the data to import is hashed/signed. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <!-- Test Not Implemented. Feature not avaliable --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Rejects File |
| | | #@TestID Rejects File |
| | | #@TestPurpose Verify an import task of a LDIF file specifying the a path to a file into which rejected entries may be written if they are not accepted during the import process, when the rejects file is not overwritten. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Rejects File')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Example.ldif' % remote.data, |
| | | 'rejectsFile' : './rejects' |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller,ou=People,dc=example,dc=com', |
| | | 'uid=rhunt,ou=People,dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <!-- Should check there is a rejects file and the contents are correct --> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Rejects File Overwrite |
| | | #@TestID Rejects File Overwrite |
| | | #@TestPurpose Verify an import task of a LDIF file specifying the a path to a file into which rejected entries may be written if they are not accepted during the import process, when the rejects file is overwritten. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Overwrite Rejects File')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Example.ldif' % remote.data, |
| | | 'rejectsFile' : './rejects', |
| | | 'overwriteRejectsFile' : 'TRUE' |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller,ou=People,dc=example,dc=com', |
| | | 'uid=rhunt,ou=People,dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <!-- Should check there is a rejects file and the contents are correct --> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Skip Schema Validation Accept |
| | | #@TestID Skip Schema Validation Accept |
| | | #@TestPurpose Verify an import task of a LDIF file containing invalided schema is accepted when skip schema validation is specified |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Skip Schema Validation Accept')"> |
| | | <sequence> |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group']='backends' |
| | | CurrentTestPath['suite']=STAXCurrentBlock |
| | | </script> |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <!--- Test Suite information |
| | | #@TestSuiteName Backend Import Tasks Tests |
| | | #@TestSuitePurpose Verify that the basic import using the task based functionality is working in the Directory Server. |
| | | #@TestSuiteID Import Tasks Tests |
| | | #@TestSuiteGroup Import-Tasks |
| | | #@TestGroup Backend |
| | | #@TestScript import-tasks.xml |
| | | #@TestHTMLLink http://opends.dev.java.net/ |
| | | --> |
| | | <call function="'common_setup'"> |
| | | { |
| | | 'quickStart' : False , |
| | | 'loadData' : False , |
| | | 'startServer' : True , |
| | | 'stopServer' : False |
| | | } |
| | | </call> |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Import Tasks: LDIF Default |
| | | #@TestID LDIF Default |
| | | #@TestPurpose Verify an import task of a LDIF file using the default backend. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('LDIF Default')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Schema.ldif' % remote.data, |
| | | 'skipSchemaValidation' : 'TRUE' |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Example.ldif' % remote.data |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller, ou=People, dc=example,dc=com', |
| | | 'uid=rhunt, ou=People, dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Fractional Include Branch |
| | | #@TestID Fractional Include Branch |
| | | #@TestPurpose Verify an import task of a LDIF file specifying a branch that should be included in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Fractional Include Branch')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Include.ldif' % remote.data, |
| | | 'includeBranches' : ['dc=com'], |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller, ou=People, dc=example,dc=com', |
| | | 'uid=rhunt, ou=People, dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Fractional Include Branches |
| | | #@TestID Fractional Include Branches |
| | | #@TestPurpose Verify an import task of a LDIF file specifying multiple branches that should be included in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Fractional Include Branches')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Include.ldif' % remote.data, |
| | | 'includeBranches' : ['dc=com','dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller, ou=People, dc=example,dc=com', |
| | | 'uid=rhunt, ou=People, dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Fractional Exclude Branch |
| | | #@TestID Fractional Exclude Branch |
| | | #@TestPurpose Verify an import task of a LDIF file specifying a branch that should be excluded in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Fractional Exclude Branch')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'" /> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Exclude.ldif' % remote.data, |
| | | 'excludeBranches' : ['ou=Departed,ou=People,dc=example,dc=com'], |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller, ou=People, dc=example,dc=com', |
| | | 'uid=rhunt, ou=People, dc=example,dc=com'], |
| | | 'missingEntries' : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com', |
| | | 'uid=brammage,ou=Departed,ou=People,dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Fractional Exclude Branches |
| | | #@TestID Fractional Exclude Branches |
| | | #@TestPurpose Verify an import task of a LDIF file specifying multiple branches that should be excluded in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Fractional Exclude Branches')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'" /> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Exclude.ldif' % remote.data, |
| | | 'excludeBranches' : ['ou=Departed,ou=People,dc=example,dc=com', |
| | | 'cn=QA Managers,ou=groups,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller, ou=People, dc=example,dc=com', |
| | | 'uid=rhunt, ou=People, dc=example,dc=com'], |
| | | 'missingEntries' : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com', |
| | | 'uid=brammage,ou=Departed,ou=People,dc=example,dc=com', |
| | | 'uid=bbaret,cn=QA Managers,ou=groups,dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Fractional Branches Mix |
| | | #@TestID Fractional Branches Mix |
| | | #@TestPurpose Verify an import task of a LDIF file specifying a mix of include and exclude branches. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Fractional Branches Mix')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Exclude.ldif' % remote.data, |
| | | 'includeBranches' : ['dc=com'], |
| | | 'excludeBranches' : ['ou=Departed,ou=People,dc=example,dc=com'], |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller, ou=People, dc=example,dc=com', |
| | | 'uid=rhunt, ou=People, dc=example,dc=com'], |
| | | 'missingEntries' : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com', |
| | | 'uid=brammage,ou=Departed,ou=People,dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Fractional Include Attribute |
| | | #@TestID Fractional Include Attribute |
| | | #@TestPurpose Verify an import task of a LDIF file specifying an attribute that should be included in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Fractional Include Attribute')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'" /> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Include.ldif' % remote.data, |
| | | 'includeAttributes' : ['dc'], |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['dc=com','dc=example,dc=com'], |
| | | 'missingEntries' : ['ou=People,dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Fractional Include Attributes |
| | | #@TestID Fractional Include Attributes |
| | | #@TestPurpose Verify an import task of a LDIF file specifying multiple attributes that should be included in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Fractional Include Attributes')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'" /> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Include.ldif' % remote.data, |
| | | 'includeAttributes' : ['dc','cn','ou','sn'] |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller,ou=People,dc=example,dc=com', |
| | | 'uid=kwinters,ou=People,dc=example,dc=com'], |
| | | 'uid=rhunt,ou=People,dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Skip Schema Validation Reject |
| | | #@TestID Skip Schema Validation Reject |
| | | #@TestPurpose Verify an import task of a LDIF file containing invalided schema is rejected when skip schema validation is not specified |
| | | #@TestName Backend: Import Tasks: Fractional Exclude Attribute |
| | | #@TestID Fractional Exclude Attribute |
| | | #@TestPurpose Verify an import task of a LDIF file specifying an attribute that should be excluded in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Skip Schema Validation Reject')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Schema.ldif' % remote.data, |
| | | 'skipSchemaValidation' : 'FALSE' |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=dmiller,ou=People,dc=example,dc=com'], |
| | | 'missingEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=kwinters,ou=People,dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | <testcase name="getTestCaseName('Fractional Exclude Attribute')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'" /> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Exclude.ldif' % remote.data, |
| | | 'excludeAttributes' : ['userpassword'] |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com'], |
| | | 'missingAttributes' : ['userpassword'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Fractional Exclude Attributes |
| | | #@TestID Fractional Exclude Attributes |
| | | #@TestPurpose Verify an import task of a LDIF file specifying multiple attribute that should be excluded in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Fractional Exclude Attributes')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'" /> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Exclude.ldif' % remote.data, |
| | | 'excludeAttributes' : ['userpassword','mail','roomnumber'] |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com'], |
| | | 'missingAttributes' : ['userpassword','mail','roomnumber'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Fractional Mix |
| | | #@TestID Fractional Mix |
| | | #@TestPurpose Verify an import task of a LDIF file specifying a mix of fractional attributes and branches. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Fractional Mix')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'" /> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Exclude.ldif' % remote.data, |
| | | 'includeBranches' : ['dc=com','dc=example,dc=com','ou=People,dc=example,dc=com'], |
| | | 'excludeBranches' : ['ou=Departed,ou=People,dc=example,dc=com'], |
| | | 'includeAttributes' : ['dc','cn','ou','sn'], |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller, ou=People, dc=example,dc=com', |
| | | 'uid=rhunt, ou=People, dc=example,dc=com'], |
| | | 'missingEntries' : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com', |
| | | 'uid=brammage,ou=Departed,ou=People,dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Filtered Include |
| | | #@TestID Filtered Include |
| | | #@TestPurpose Verify an import task of a LDIF file specifying a search filter control which entries are included in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Filtered Include')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'" /> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Include.ldif' % remote.data, |
| | | 'includeFilters' : ['objectclass=*'], |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller,ou=People,dc=example,dc=com', |
| | | 'uid=rhunt,ou=People,dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Filtered Exclude |
| | | #@TestID Filtered Exclude |
| | | #@TestPurpose Verify an import task of a LDIF file specifying a search filter control which entries are excluded in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Filtered Exclude')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Exclude.ldif' % remote.data, |
| | | 'excludeFilters' : ['objectclass=person'], |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['dc=example,dc=com', |
| | | 'ou=People,dc=example,dc=com'], |
| | | 'missingEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller,ou=People,dc=example,dc=com', |
| | | 'uid=rhunt,ou=People,dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Filtered Includes |
| | | #@TestID Filtered Includes |
| | | #@TestPurpose Verify an import task of a LDIF file specifying multiple search filters control which entries are included in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Filtered Includes')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Include.ldif' % remote.data, |
| | | 'includeFilters' : ['objectclass=domain*','objectclass=organizationalunit'] |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['dc=example,dc=com', |
| | | 'ou=People,dc=example,dc=com'], |
| | | 'missingEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller,ou=People,dc=example,dc=com', |
| | | 'uid=rhunt,ou=People,dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Filtered Excludes |
| | | #@TestID Filtered Excludes |
| | | #@TestPurpose Verify an import task of a LDIF file specifying multiple search filters control which entries are excluded in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Filtered Excludes')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Exclude.ldif' % remote.data, |
| | | 'excludeFilters' : ['objectclass=person','objectclass=organizationalunit'], |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['dc=example,dc=com'], |
| | | 'missingEntries' : ['ou=People,dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Filtered Includes Complex |
| | | #@TestID Filtered Includes Complex |
| | | #@TestPurpose Verify an import task of a LDIF file specifying complex search filters control which entries are included in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Filtered Includes Complex')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Include.ldif' % remote.data, |
| | | 'includeFilters' : ['|(objectclass=person)(objectclass=domain)(objectclass=organizationalunit)'], |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller,ou=People,dc=example,dc=com', |
| | | 'uid=rhunt,ou=People,dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Filtered Excludes Complex |
| | | #@TestID Filtered Excludes Complex |
| | | #@TestPurpose Verify an import task of a LDIF file specifying complex search filters control which entries are excluded in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Filtered Excludes Complex')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Exclude.ldif' % remote.data, |
| | | 'excludeFilters' : ['&(objectclass=person)(ou=Departed)'], |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=rhunt,ou=People,dc=example,dc=com'], |
| | | 'missingEntries' : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Fractional Filtered Mix |
| | | #@TestID Fractional Filtered Mix |
| | | #@TestPurpose Verify an import task of a LDIF file specifying a mix of fractional and filtered. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Fractional Filtered Mix')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Exclude.ldif' % remote.data, |
| | | 'excludeFilters' : ['&(objectclass=person)(ou=Departed)'], |
| | | 'includeBranches' : ['dc=com'], |
| | | 'excludeAttributes' : ['userpassword'] |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com'], |
| | | 'missingAttributes' : ['userpassword'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Append |
| | | #@TestID Append |
| | | #@TestPurpose Verify an import task of a LDIF file specifying that the import process should append to the existing database. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Append')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Append.ldif' % remote.data, |
| | | 'append' : 'TRUE' |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['ou=Departed,ou=People,dc=example,dc=com', |
| | | 'uid=fvinker,ou=Departed,ou=People,dc=example,dc=com', |
| | | 'uid=brammage,ou=Departed,ou=People,dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks:Append Replace Existing |
| | | #@TestID Append Replace Existing |
| | | #@TestPurpose Verify an import task of a LDIF file specifying that an existing entry should be replaced when appending to an existing database. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Append Replace Existing')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Append.ldif' % remote.data, |
| | | 'append' : 'TRUE', |
| | | 'replaceExisting' : 'TRUE' |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['ou=Departed,ou=People,dc=example,dc=com', |
| | | 'uid=fvinker,ou=Departed,ou=People,dc=example,dc=com', |
| | | 'uid=brammage,ou=Departed,ou=People,dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Compressed |
| | | #@TestID Compressed |
| | | #@TestPurpose Verify an import task of a LDIF file specifying the data to import is compressed. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Compressed')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Example.ldif.gz' % remote.data, |
| | | 'isCompressed' : 'TRUE' |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller,ou=People,dc=example,dc=com', |
| | | 'uid=rhunt,ou=People,dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Encrypted |
| | | #@TestID Encrypted |
| | | #@TestPurpose Verify an import task of a LDIF file specifying the data to import is encrypted. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Encrypted')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Example.ldif' % remote.data, |
| | | 'isEncrypted' : 'TRUE' |
| | | } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller,ou=People,dc=example,dc=com', |
| | | 'uid=rhunt,ou=People,dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : 1 , |
| | | 'expected' : 0 , |
| | | 'result' : 'Encrypted LDIF export is not implemented', |
| | | 'issue' : '839' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Hashed Signed |
| | | #@TestID Hashed Signed |
| | | #@TestPurpose Verify an import task of a LDIF file specifying the data to import is hashed/signed. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <!-- Test Not Implemented. Feature not avaliable --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Rejects File |
| | | #@TestID Rejects File |
| | | #@TestPurpose Verify an import task of a LDIF file specifying the a path to a file into which rejected entries may be written if they are not accepted during the import process, when the rejects file is not overwritten. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Rejects File')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Example.ldif' % remote.data, |
| | | 'rejectsFile' : './rejects' |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller,ou=People,dc=example,dc=com', |
| | | 'uid=rhunt,ou=People,dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <!-- Should check there is a rejects file and the contents are correct --> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Rejects File Overwrite |
| | | #@TestID Rejects File Overwrite |
| | | #@TestPurpose Verify an import task of a LDIF file specifying the a path to a file into which rejected entries may be written if they are not accepted during the import process, when the rejects file is overwritten. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Overwrite Rejects File')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Example.ldif' % remote.data, |
| | | 'rejectsFile' : './rejects', |
| | | 'overwriteRejectsFile' : 'TRUE' |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller,ou=People,dc=example,dc=com', |
| | | 'uid=rhunt,ou=People,dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <!-- Should check there is a rejects file and the contents are correct --> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Skip Schema Validation Accept |
| | | #@TestID Skip Schema Validation Accept |
| | | #@TestPurpose Verify an import task of a LDIF file containing invalided schema is accepted when skip schema validation is specified |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <testcase name="getTestCaseName('Skip Schema Validation Accept')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Schema.ldif' % remote.data, |
| | | 'skipSchemaValidation' : 'TRUE' |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller,ou=People,dc=example,dc=com', |
| | | 'uid=kwinters,ou=People,dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Error Codes |
| | | #@TestID Error Codes |
| | | #@TestPurpose Verify an import task fails with an error code. |
| | | #@TestName Backend: Import Tasks: Skip Schema Validation Reject |
| | | #@TestID Skip Schema Validation Reject |
| | | #@TestPurpose Verify an import task of a LDIF file containing invalided schema is rejected when skip schema validation is not specified |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <!-- Need to know what the error codes are --> |
| | | |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/backends/backend_cleanup.xml' % (TESTS_DIR)"/> |
| | | <call function="'backend_cleanup'" /> |
| | | <call function="'testSuite_Postamble'"/> |
| | | </sequence> |
| | | --> |
| | | <testcase name="getTestCaseName('Skip Schema Validation Reject')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <call function="'importLdifTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : STAXCurrentTestcase, |
| | | 'ldifFile' : '%s/backends/Schema.ldif' % remote.data, |
| | | 'skipSchemaValidation' : 'FALSE' |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=dmiller,ou=People,dc=example,dc=com'], |
| | | 'missingEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=kwinters,ou=People,dc=example,dc=com'], |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tasks Tests |
| | | #@TestName Backend: Import Tasks: Error Codes |
| | | #@TestID Error Codes |
| | | #@TestPurpose Verify an import task fails with an error code. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <!-- Need to know what the error codes are --> |
| | | |
| | | </sequence> |
| | | |
| | | <finally> |
| | | <sequence> |
| | | <!-- Test Suite Cleanup --> |
| | | <message>'Finally: Global Backup Cleanup.'</message> |
| | | <try> |
| | | <try> |
| | | <call function="'common_cleanup'" /> |
| | | <catch exception="'STAFException'"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message> |
| | | </sequence> |
| | | </catch> |
| | | </try> |
| | | <finally> |
| | | <call function="'testSuite_Postamble'"/> |
| | | </finally> |
| | | </try> |
| | | </sequence> |
| | | </finally> |
| | | |
| | | </try> |
| | | |
| | | </block> |
| | | </sequence> |
| | | </function> |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2006-2008 Sun Microsystems, Inc. |
| | | ! Copyright 2006-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | |
| | | <stax> |
| | |
| | | <sequence> |
| | | |
| | | <block name="'import'"> |
| | | |
| | | <sequence> |
| | | |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group']='backends' |
| | | CurrentTestPath['suite']=STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <!--- Test Suite information |
| | | #@TestSuiteName Backend Import Tests |
| | | #@TestSuitePurpose Verify that the basic import functionality is working in the Directory Server. |
| | | #@TestSuiteID Import Tests |
| | | #@TestSuiteGroup Import |
| | | #@TestGroup Backend |
| | | #@TestScript import.xml |
| | | #@TestHTMLLink http://opends.dev.java.net/ |
| | | --> |
| | | |
| | | <try> |
| | | |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/backends/backend_setup.xml' % (TESTS_DIR)"/> |
| | | <call function="'backend_setup'"> { 'startDS' : False } </call> |
| | | |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: LDIF Default |
| | | #@TestID LDIF Default |
| | | #@TestPurpose Verify an import of a LDIF file using the default backend. |
| | | #@TestPreamble |
| | | #@TestSteps ./import-ldif.sh -l ../ldif/Example.ldif -n "userRoot" |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | <sequence> |
| | | |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group']='backends' |
| | | CurrentTestPath['suite']=STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <testcase name="getTestCaseName('LDIF Default')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsLdifFile' : '%s/backends/Example.ldif' % remote.data, |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller, ou=People, dc=example,dc=com', |
| | | 'uid=rhunt, ou=People, dc=example,dc=com'] } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: LDIF Non Default |
| | | #@TestID LDIF Non Default |
| | | #@TestPurpose Verify an import of a LDIF file using a differrent backend to the default. |
| | | #@TestPreamble |
| | | #@TestSteps ./import-ldif.sh -n "nonDefault" -l ../ldif/Example.ldif |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!-- Not clear how to create a second backend |
| | | <testcase name="getTestCaseName('LDIF Non Default')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'importLdif'"> |
| | | { 'ldifFile' : '%s/backends/Example.ldif' % remote.data, |
| | | 'backEnd' : 'nonDefault' } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com','uid=dmiller, ou=People, dc=example,dc=com','uid=rhunt, ou=People, dc=example,dc=com'] } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Fractional Include Branch |
| | | #@TestID Fractional Include Branch |
| | | #@TestPurpose Verify an import of a LDIF file specifying a branch that should be included in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Fractional Include Branch')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Include.ldif' % remote.data, |
| | | 'dsIncludeBranch' : ['dc=com'] } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller, ou=People, dc=example,dc=com', |
| | | 'uid=rhunt, ou=People, dc=example,dc=com'] } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Fractional Include Branch with backend ID |
| | | #@TestID Fractional Include Branch |
| | | #@TestPurpose Verify an import of a LDIF file specifying a branch that should be included in the import |
| | | along with the backendID. |
| | | |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Fractional Include Branch with backend ID')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Include.ldif' % remote.data, |
| | | 'dsIncludeBranch' : ['dc=com'], |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller, ou=People, dc=example,dc=com', |
| | | 'uid=rhunt, ou=People, dc=example,dc=com'] } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Fractional Include Branches |
| | | #@TestID Fractional Include Branches |
| | | #@TestPurpose Verify an import of a LDIF file specifying multiple branches that should be included in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Fractional Include Branches')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Include.ldif' % remote.data, |
| | | 'dsIncludeBranch' : ['dc=com','dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller, ou=People, dc=example,dc=com', |
| | | 'uid=rhunt, ou=People, dc=example,dc=com'] } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Fractional Exclude Branch |
| | | #@TestID Fractional Exclude Branch |
| | | #@TestPurpose Verify an import of a LDIF file specifying a branch that should be excluded in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Fractional Exclude Branch')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Exclude.ldif' % remote.data, |
| | | 'dsExcludeBranch' : ['ou=Departed,ou=People,dc=example,dc=com'], |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller, ou=People, dc=example,dc=com', |
| | | 'uid=rhunt, ou=People, dc=example,dc=com'] , |
| | | 'missingEntries' : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com', |
| | | 'uid=brammage,ou=Departed,ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Fractional Exclude Branches |
| | | #@TestID Fractional Exclude Branches |
| | | #@TestPurpose Verify an import of a LDIF file specifying multiple branches that should be excluded in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Fractional Exclude Branches')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Exclude.ldif' % remote.data, |
| | | 'dsExcludeBranch' : ['ou=Departed,ou=People,dc=example,dc=com'], |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller, ou=People, dc=example,dc=com', |
| | | 'uid=rhunt, ou=People, dc=example,dc=com'] , |
| | | 'missingEntries' : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com', |
| | | 'uid=brammage,ou=Departed,ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Fractional Branches Mix |
| | | #@TestID Fractional Branches Mix |
| | | #@TestPurpose Verify an import of a LDIF file specifying a mix of include and exclude branches. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Fractional Branches Mix')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Exclude.ldif' % remote.data, |
| | | 'dsIncludeBranch' : ['dc=com'], |
| | | 'dsExcludeBranch' : ['ou=Departed,ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller, ou=People, dc=example,dc=com', |
| | | 'uid=rhunt, ou=People, dc=example,dc=com'] , |
| | | 'missingEntries' : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com', |
| | | 'uid=brammage,ou=Departed,ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Fractional Include Attribute |
| | | #@TestID Fractional Include Attribute |
| | | #@TestPurpose Verify an import of a LDIF file specifying an attribute that should be included in the import. |
| | | #@TestPreamble |
| | | #@TestSteps ./import-ldif.sh -n "userRoot" -i dc -l Include.ldif |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Fractional Include Attribute')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Include.ldif' % remote.data, |
| | | 'dsIncludeAttribute' : ['dc'], |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['dc=com','dc=example,dc=com'], |
| | | 'missingEntries' : ['ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Fractional Include Attributes |
| | | #@TestID Fractional Include Attributes |
| | | #@TestPurpose Verify an import of a LDIF file specifying multiple attributes that should be included in the import. |
| | | #@TestPreamble |
| | | #@TestSteps ./import-ldif.sh -n "userRoot" -i cn -i dc -i ou -i sn -l Include.ldif |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Fractional Include Attributes')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Include.ldif' % remote.data, |
| | | 'dsIncludeAttribute' : ['dc','cn','ou','sn'], |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller, ou=People, dc=example,dc=com', |
| | | 'uid=rhunt, ou=People, dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Fractional Exclude Attribute |
| | | #@TestID Fractional Exclude Attribute |
| | | #@TestPurpose Verify an import of a LDIF file specifying an attribute that should be excluded in the import. |
| | | #@TestPreamble |
| | | #@TestSteps ./import-ldif.sh -n "userRoot" -e userpassword -l Example.ldif |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Fractional Exclude Attribute')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Exclude.ldif' % remote.data, |
| | | 'dsExcludeAttribute' : ['userpassword'], |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com'], |
| | | 'missingAttributes' : ['userpassword'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Fractional Exclude Attributes |
| | | #@TestID Fractional Exclude Attributes |
| | | #@TestPurpose Verify an import of a LDIF file specifying multiple attribute that should be excluded in the import. |
| | | #@TestPreamble |
| | | #@TestSteps ./import-ldif.sh -n "userRoot" -e userpassword -e mail -e roomnumber -l Example.ldif |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Fractional Exclude Attributes')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Exclude.ldif' % remote.data, |
| | | 'dsExcludeAttribute' : ['userpassword','mail','roomnumber'], |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com'], |
| | | 'missingAttributes' : ['userpassword'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Fractional Mix |
| | | #@TestID Fractional Mix |
| | | #@TestPurpose Verify an import of a LDIF file specifying a mix of fractional attributes and branches. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Fractional Mix')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Example.ldif' % remote.data, |
| | | 'dsIncludeAttribute' : ['dc','cn','ou','sn'], |
| | | 'dsIncludeBranch' : ['dc=com','dc=example,dc=com','ou=People,dc=example,dc=com'], |
| | | 'dsExcludeBranch' : ['ou=Departed,ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller, ou=People, dc=example,dc=com', |
| | | 'uid=rhunt, ou=People, dc=example,dc=com'], |
| | | 'missingEntries' : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com', |
| | | 'uid=brammage,ou=Departed,ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Filtered Include |
| | | #@TestID Filtered Include |
| | | #@TestPurpose Verify an import of a LDIF file specifying a search filter control which entries are included in the import. |
| | | #@TestPreamble |
| | | #@TestSteps ./import-ldif.sh -n "userRoot" -I "objectclass=*" -l Include.ldif |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Filtered Include')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Include.ldif' % remote.data, |
| | | 'dsIncludeFilter' : ['objectclass=*'], |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller,ou=People,dc=example,dc=com', |
| | | 'uid=rhunt,ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Filtered Exclude |
| | | #@TestID Filtered Exclude |
| | | #@TestPurpose Verify an import of a LDIF file specifying a search filter control which entries are excluded in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Filtered Exclude')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Exclude.ldif' % remote.data, |
| | | 'dsExcludeFilter' : ['objectclass=person'], |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['dc=example,dc=com', |
| | | 'ou=People,dc=example,dc=com'], |
| | | 'missingEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller,ou=People,dc=example,dc=com', |
| | | 'uid=rhunt,ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Filtered Includes |
| | | #@TestID Filtered Includes |
| | | #@TestPurpose Verify an import of a LDIF file specifying multiple search filters control which entries are included in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Filtered Includes')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Include.ldif' % remote.data, |
| | | 'dsIncludeFilter' : ['objectclass=domain','objectclass=organizationalunit'], |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['dc=example,dc=com', |
| | | 'ou=People,dc=example,dc=com'], |
| | | 'missingEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller,ou=People,dc=example,dc=com', |
| | | 'uid=rhunt,ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Filtered Excludes |
| | | #@TestID Filtered Excludes |
| | | #@TestPurpose Verify an import of a LDIF file specifying multiple search filters control which entries are excluded in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Filtered Excludes')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Exclude.ldif' % remote.data, |
| | | 'dsExcludeFilter' : ['objectclass=person','objectclass=organizationalunit'], |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['dc=example,dc=com'], |
| | | 'missingEntries' : ['ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Filtered Includes Complex |
| | | #@TestID Filtered Includes Complex |
| | | #@TestPurpose Verify an import of a LDIF file specifying complex search filters control which entries are included in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Filtered Includes Complex')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Include.ldif' % remote.data, |
| | | 'dsIncludeFilter' : ['|(objectclass=person)(objectclass=domain)(objectclass=organizationalunit)'], |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller,ou=People,dc=example,dc=com', |
| | | 'uid=rhunt,ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Filtered Excludes Complex |
| | | #@TestID Filtered Excludes Complex |
| | | #@TestPurpose Verify an import of a LDIF file specifying complex search filters control which entries are excluded in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Filtered Excludes Complex')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Exclude.ldif' % remote.data, |
| | | 'dsExcludeFilter' : ['&(objectclass=person)(ou=Departed)'], |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=rhunt,ou=People,dc=example,dc=com'], |
| | | 'missingEntries' : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Fractional Filtered Mix |
| | | #@TestID Fractional Filtered Mix |
| | | #@TestPurpose Verify an import of a LDIF file specifying a mix of fractional and filtered. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Fractional Filtered Mix')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Exclude.ldif' % remote.data, |
| | | 'dsExcludeFilter' : ['&(objectclass=person)(ou=Departed)'], |
| | | 'dsIncludeBranch' : ['dc=com'], |
| | | 'dsExcludeAttribute' : ['userpassword'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=rhunt,ou=People,dc=example,dc=com'], |
| | | 'missingEntries' : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Append |
| | | #@TestID Append |
| | | #@TestPurpose Verify an import of a LDIF file specifying that the import process should append to the existing database. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Append')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Append.ldif' % remote.data, |
| | | 'dsAppend' : 'TRUE', |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['ou=Departed,ou=People,dc=example,dc=com', |
| | | 'uid=fvinker,ou=Departed,ou=People,dc=example,dc=com', |
| | | 'uid=brammage,ou=Departed,ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Append Replace Existing |
| | | #@TestID Append Replace Existing |
| | | #@TestPurpose Verify an import of a LDIF file specifying that an existing entry should be replaced when appending to an existing database. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Append Replace Existing')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Append.ldif' % remote.data, |
| | | 'dsAppend' : 'TRUE', |
| | | 'dsReplaceExisting' : 'TRUE', |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['ou=Departed,ou=People,dc=example,dc=com', |
| | | 'uid=fvinker,ou=Departed,ou=People,dc=example,dc=com', |
| | | 'uid=brammage,ou=Departed,ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Compressed |
| | | #@TestID Compressed |
| | | #@TestPurpose Verify an import of a LDIF file specifying the data to import is compressed. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Compressed')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Example.ldif.gz' % remote.data, |
| | | 'dsIsCompressed' : 'TRUE', |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller,ou=People,dc=example,dc=com', |
| | | 'uid=rhunt,ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Encrypted |
| | | #@TestID Encrypted |
| | | #@TestPurpose Verify an import of a LDIF file specifying the data to import is encrypted. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Encrypted')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Example.ldif' % remote.data, |
| | | 'dsIsEncrypted' : 'TRUE', |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller,ou=People,dc=example,dc=com', |
| | | 'uid=rhunt,ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <!-- Known issue --> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : 1 , |
| | | 'expected' : 0 , |
| | | 'result' : 'Encrypted LDIF export is not implemented', |
| | | 'issue' : '839' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Hashed Signed |
| | | #@TestID Hashed Signed |
| | | #@TestPurpose Verify an import of a LDIF file specifying the data to import is hashed/signed. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!-- Test Not Implemented. Feature not avaliable --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Rejects File |
| | | #@TestID Rejects File |
| | | #@TestPurpose Verify an import of a LDIF file specifying the a path to a file into which rejected entries may be written if they are not accepted during the import process, when the rejects file is not overwritten. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Rejects File')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Example.ldif' % remote.data, |
| | | 'dsRejectFile' : '%s/rejects.txt' % remote.temp, |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller,ou=People,dc=example,dc=com', |
| | | 'uid=rhunt,ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Rejects File Overwrite |
| | | #@TestID Rejects File Overwrite |
| | | #@TestPurpose Verify an import of a LDIF file specifying the a path to a file into which rejected entries may be written if they are not accepted during the import process, when the rejects file is overwritten. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Rejects File Overwrite')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Example.ldif' % remote.data, |
| | | 'dsRejectFile' : '%s/rejects.txt' % remote.temp, |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller,ou=People,dc=example,dc=com', |
| | | 'uid=rhunt,ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Skip Schema Validation Accept |
| | | #@TestID Skip Schema Validation Accept |
| | | #@TestPurpose Verify an import of a LDIF file containing invalided schema is accepted when skip schema validation is specified |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Skip Schema Validation Accept')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Schema.ldif' % remote.data, |
| | | 'dsSkipSchemaValidation' : 'TRUE', |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller,ou=People,dc=example,dc=com', |
| | | 'uid=kwinters,ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Skip Schema Validation Reject |
| | | #@TestID skip schema validation reject |
| | | #@TestPurpose Verify an import of a LDIF file containing invalided schema is rejected when skip schema validation is not specified |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Skip Schema Validation Reject')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Schema.ldif' % remote.data, |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=dmiller,ou=People,dc=example,dc=com'], |
| | | 'missingEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=kwinters,ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Error Codes |
| | | #@TestID Error Codes |
| | | #@TestPurpose Verify an import fails with an error code. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!-- Need to know what the error codes are --> |
| | | |
| | | |
| | | |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/backends/backend_cleanup.xml' % (TESTS_DIR)"/> |
| | | <call function="'backend_cleanup'"> { 'stopDS' : False } </call> |
| | | |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | <!--- Test Suite information |
| | | #@TestSuiteName Backend Import Tests |
| | | #@TestSuitePurpose Verify that the basic import functionality is working in the Directory Server. |
| | | #@TestSuiteID Import Tests |
| | | #@TestSuiteGroup Import |
| | | #@TestGroup Backend |
| | | #@TestScript import.xml |
| | | #@TestHTMLLink http://opends.dev.java.net/ |
| | | --> |
| | | |
| | | </sequence> |
| | | <call function="'common_setup'"> |
| | | { |
| | | 'quickStart' : False , |
| | | 'startServer' : False , |
| | | 'loadData' : False , |
| | | 'stopServer' : False |
| | | } |
| | | </call> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: LDIF Default |
| | | #@TestID LDIF Default |
| | | #@TestPurpose Verify an import of a LDIF file using the default backend. |
| | | #@TestPreamble |
| | | #@TestSteps ./import-ldif.sh -l ../ldif/Example.ldif -n "userRoot" |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('LDIF Default')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsLdifFile' : '%s/backends/Example.ldif' % remote.data, |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller, ou=People, dc=example,dc=com', |
| | | 'uid=rhunt, ou=People, dc=example,dc=com'] } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: LDIF Non Default |
| | | #@TestID LDIF Non Default |
| | | #@TestPurpose Verify an import of a LDIF file using a differrent backend to the default. |
| | | #@TestPreamble |
| | | #@TestSteps ./import-ldif.sh -n "nonDefault" -l ../ldif/Example.ldif |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!-- Not clear how to create a second backend |
| | | <testcase name="getTestCaseName('LDIF Non Default')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'importLdif'"> |
| | | { 'ldifFile' : '%s/backends/Example.ldif' % remote.data, |
| | | 'backEnd' : 'nonDefault' } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com','uid=dmiller, ou=People, dc=example,dc=com','uid=rhunt, ou=People, dc=example,dc=com'] } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Fractional Include Branch |
| | | #@TestID Fractional Include Branch |
| | | #@TestPurpose Verify an import of a LDIF file specifying a branch that should be included in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Fractional Include Branch')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Include.ldif' % remote.data, |
| | | 'dsIncludeBranch' : ['dc=com'] } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller, ou=People, dc=example,dc=com', |
| | | 'uid=rhunt, ou=People, dc=example,dc=com'] } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Fractional Include Branch with backend ID |
| | | #@TestID Fractional Include Branch |
| | | #@TestPurpose Verify an import of a LDIF file specifying a branch that should be included in the import |
| | | along with the backendID. |
| | | |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Fractional Include Branch with backend ID')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Include.ldif' % remote.data, |
| | | 'dsIncludeBranch' : ['dc=com'], |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller, ou=People, dc=example,dc=com', |
| | | 'uid=rhunt, ou=People, dc=example,dc=com'] } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Fractional Include Branches |
| | | #@TestID Fractional Include Branches |
| | | #@TestPurpose Verify an import of a LDIF file specifying multiple branches that should be included in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Fractional Include Branches')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Include.ldif' % remote.data, |
| | | 'dsIncludeBranch' : ['dc=com','dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller, ou=People, dc=example,dc=com', |
| | | 'uid=rhunt, ou=People, dc=example,dc=com'] } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Fractional Exclude Branch |
| | | #@TestID Fractional Exclude Branch |
| | | #@TestPurpose Verify an import of a LDIF file specifying a branch that should be excluded in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Fractional Exclude Branch')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Exclude.ldif' % remote.data, |
| | | 'dsExcludeBranch' : ['ou=Departed,ou=People,dc=example,dc=com'], |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller, ou=People, dc=example,dc=com', |
| | | 'uid=rhunt, ou=People, dc=example,dc=com'] , |
| | | 'missingEntries' : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com', |
| | | 'uid=brammage,ou=Departed,ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Fractional Exclude Branches |
| | | #@TestID Fractional Exclude Branches |
| | | #@TestPurpose Verify an import of a LDIF file specifying multiple branches that should be excluded in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Fractional Exclude Branches')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Exclude.ldif' % remote.data, |
| | | 'dsExcludeBranch' : ['ou=Departed,ou=People,dc=example,dc=com'], |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller, ou=People, dc=example,dc=com', |
| | | 'uid=rhunt, ou=People, dc=example,dc=com'] , |
| | | 'missingEntries' : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com', |
| | | 'uid=brammage,ou=Departed,ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Fractional Branches Mix |
| | | #@TestID Fractional Branches Mix |
| | | #@TestPurpose Verify an import of a LDIF file specifying a mix of include and exclude branches. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Fractional Branches Mix')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Exclude.ldif' % remote.data, |
| | | 'dsIncludeBranch' : ['dc=com'], |
| | | 'dsExcludeBranch' : ['ou=Departed,ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller, ou=People, dc=example,dc=com', |
| | | 'uid=rhunt, ou=People, dc=example,dc=com'] , |
| | | 'missingEntries' : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com', |
| | | 'uid=brammage,ou=Departed,ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Fractional Include Attribute |
| | | #@TestID Fractional Include Attribute |
| | | #@TestPurpose Verify an import of a LDIF file specifying an attribute that should be included in the import. |
| | | #@TestPreamble |
| | | #@TestSteps ./import-ldif.sh -n "userRoot" -i dc -l Include.ldif |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Fractional Include Attribute')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Include.ldif' % remote.data, |
| | | 'dsIncludeAttribute' : ['dc'], |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['dc=com','dc=example,dc=com'], |
| | | 'missingEntries' : ['ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Fractional Include Attributes |
| | | #@TestID Fractional Include Attributes |
| | | #@TestPurpose Verify an import of a LDIF file specifying multiple attributes that should be included in the import. |
| | | #@TestPreamble |
| | | #@TestSteps ./import-ldif.sh -n "userRoot" -i cn -i dc -i ou -i sn -l Include.ldif |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Fractional Include Attributes')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Include.ldif' % remote.data, |
| | | 'dsIncludeAttribute' : ['dc','cn','ou','sn'], |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller, ou=People, dc=example,dc=com', |
| | | 'uid=rhunt, ou=People, dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Fractional Exclude Attribute |
| | | #@TestID Fractional Exclude Attribute |
| | | #@TestPurpose Verify an import of a LDIF file specifying an attribute that should be excluded in the import. |
| | | #@TestPreamble |
| | | #@TestSteps ./import-ldif.sh -n "userRoot" -e userpassword -l Example.ldif |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Fractional Exclude Attribute')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Exclude.ldif' % remote.data, |
| | | 'dsExcludeAttribute' : ['userpassword'], |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com'], |
| | | 'missingAttributes' : ['userpassword'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Fractional Exclude Attributes |
| | | #@TestID Fractional Exclude Attributes |
| | | #@TestPurpose Verify an import of a LDIF file specifying multiple attribute that should be excluded in the import. |
| | | #@TestPreamble |
| | | #@TestSteps ./import-ldif.sh -n "userRoot" -e userpassword -e mail -e roomnumber -l Example.ldif |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Fractional Exclude Attributes')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Exclude.ldif' % remote.data, |
| | | 'dsExcludeAttribute' : ['userpassword','mail','roomnumber'], |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com'], |
| | | 'missingAttributes' : ['userpassword'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Fractional Mix |
| | | #@TestID Fractional Mix |
| | | #@TestPurpose Verify an import of a LDIF file specifying a mix of fractional attributes and branches. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Fractional Mix')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Example.ldif' % remote.data, |
| | | 'dsIncludeAttribute' : ['dc','cn','ou','sn'], |
| | | 'dsIncludeBranch' : ['dc=com','dc=example,dc=com','ou=People,dc=example,dc=com'], |
| | | 'dsExcludeBranch' : ['ou=Departed,ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller, ou=People, dc=example,dc=com', |
| | | 'uid=rhunt, ou=People, dc=example,dc=com'], |
| | | 'missingEntries' : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com', |
| | | 'uid=brammage,ou=Departed,ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Filtered Include |
| | | #@TestID Filtered Include |
| | | #@TestPurpose Verify an import of a LDIF file specifying a search filter control which entries are included in the import. |
| | | #@TestPreamble |
| | | #@TestSteps ./import-ldif.sh -n "userRoot" -I "objectclass=*" -l Include.ldif |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Filtered Include')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Include.ldif' % remote.data, |
| | | 'dsIncludeFilter' : ['objectclass=*'], |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller,ou=People,dc=example,dc=com', |
| | | 'uid=rhunt,ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Filtered Exclude |
| | | #@TestID Filtered Exclude |
| | | #@TestPurpose Verify an import of a LDIF file specifying a search filter control which entries are excluded in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Filtered Exclude')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Exclude.ldif' % remote.data, |
| | | 'dsExcludeFilter' : ['objectclass=person'], |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['dc=example,dc=com', |
| | | 'ou=People,dc=example,dc=com'], |
| | | 'missingEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller,ou=People,dc=example,dc=com', |
| | | 'uid=rhunt,ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Filtered Includes |
| | | #@TestID Filtered Includes |
| | | #@TestPurpose Verify an import of a LDIF file specifying multiple search filters control which entries are included in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Filtered Includes')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Include.ldif' % remote.data, |
| | | 'dsIncludeFilter' : ['objectclass=domain','objectclass=organizationalunit'], |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['dc=example,dc=com', |
| | | 'ou=People,dc=example,dc=com'], |
| | | 'missingEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller,ou=People,dc=example,dc=com', |
| | | 'uid=rhunt,ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Filtered Excludes |
| | | #@TestID Filtered Excludes |
| | | #@TestPurpose Verify an import of a LDIF file specifying multiple search filters control which entries are excluded in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Filtered Excludes')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Exclude.ldif' % remote.data, |
| | | 'dsExcludeFilter' : ['objectclass=person','objectclass=organizationalunit'], |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['dc=example,dc=com'], |
| | | 'missingEntries' : ['ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Filtered Includes Complex |
| | | #@TestID Filtered Includes Complex |
| | | #@TestPurpose Verify an import of a LDIF file specifying complex search filters control which entries are included in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Filtered Includes Complex')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Include.ldif' % remote.data, |
| | | 'dsIncludeFilter' : ['|(objectclass=person)(objectclass=domain)(objectclass=organizationalunit)'], |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller,ou=People,dc=example,dc=com', |
| | | 'uid=rhunt,ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Filtered Excludes Complex |
| | | #@TestID Filtered Excludes Complex |
| | | #@TestPurpose Verify an import of a LDIF file specifying complex search filters control which entries are excluded in the import. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Filtered Excludes Complex')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Exclude.ldif' % remote.data, |
| | | 'dsExcludeFilter' : ['&(objectclass=person)(ou=Departed)'], |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=rhunt,ou=People,dc=example,dc=com'], |
| | | 'missingEntries' : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Fractional Filtered Mix |
| | | #@TestID Fractional Filtered Mix |
| | | #@TestPurpose Verify an import of a LDIF file specifying a mix of fractional and filtered. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Fractional Filtered Mix')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Exclude.ldif' % remote.data, |
| | | 'dsExcludeFilter' : ['&(objectclass=person)(ou=Departed)'], |
| | | 'dsIncludeBranch' : ['dc=com'], |
| | | 'dsExcludeAttribute' : ['userpassword'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=rhunt,ou=People,dc=example,dc=com'], |
| | | 'missingEntries' : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Append |
| | | #@TestID Append |
| | | #@TestPurpose Verify an import of a LDIF file specifying that the import process should append to the existing database. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Append')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Append.ldif' % remote.data, |
| | | 'dsAppend' : 'TRUE', |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['ou=Departed,ou=People,dc=example,dc=com', |
| | | 'uid=fvinker,ou=Departed,ou=People,dc=example,dc=com', |
| | | 'uid=brammage,ou=Departed,ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Append Replace Existing |
| | | #@TestID Append Replace Existing |
| | | #@TestPurpose Verify an import of a LDIF file specifying that an existing entry should be replaced when appending to an existing database. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Append Replace Existing')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Append.ldif' % remote.data, |
| | | 'dsAppend' : 'TRUE', |
| | | 'dsReplaceExisting' : 'TRUE', |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['ou=Departed,ou=People,dc=example,dc=com', |
| | | 'uid=fvinker,ou=Departed,ou=People,dc=example,dc=com', |
| | | 'uid=brammage,ou=Departed,ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Compressed |
| | | #@TestID Compressed |
| | | #@TestPurpose Verify an import of a LDIF file specifying the data to import is compressed. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Compressed')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Example.ldif.gz' % remote.data, |
| | | 'dsIsCompressed' : 'TRUE', |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller,ou=People,dc=example,dc=com', |
| | | 'uid=rhunt,ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Encrypted |
| | | #@TestID Encrypted |
| | | #@TestPurpose Verify an import of a LDIF file specifying the data to import is encrypted. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Encrypted')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Example.ldif' % remote.data, |
| | | 'dsIsEncrypted' : 'TRUE', |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller,ou=People,dc=example,dc=com', |
| | | 'uid=rhunt,ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <!-- Known issue --> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : 1 , |
| | | 'expected' : 0 , |
| | | 'result' : 'Encrypted LDIF export is not implemented', |
| | | 'issue' : '839' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Hashed Signed |
| | | #@TestID Hashed Signed |
| | | #@TestPurpose Verify an import of a LDIF file specifying the data to import is hashed/signed. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!-- Test Not Implemented. Feature not avaliable --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Rejects File |
| | | #@TestID Rejects File |
| | | #@TestPurpose Verify an import of a LDIF file specifying the a path to a file into which rejected entries may be written if they are not accepted during the import process, when the rejects file is not overwritten. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Rejects File')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Example.ldif' % remote.data, |
| | | 'dsRejectFile' : '%s/rejects.txt' % remote.temp, |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller,ou=People,dc=example,dc=com', |
| | | 'uid=rhunt,ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Rejects File Overwrite |
| | | #@TestID Rejects File Overwrite |
| | | #@TestPurpose Verify an import of a LDIF file specifying the a path to a file into which rejected entries may be written if they are not accepted during the import process, when the rejects file is overwritten. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Rejects File Overwrite')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Example.ldif' % remote.data, |
| | | 'dsRejectFile' : '%s/rejects.txt' % remote.temp, |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller,ou=People,dc=example,dc=com', |
| | | 'uid=rhunt,ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Skip Schema Validation Accept |
| | | #@TestID Skip Schema Validation Accept |
| | | #@TestPurpose Verify an import of a LDIF file containing invalided schema is accepted when skip schema validation is specified |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Skip Schema Validation Accept')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Schema.ldif' % remote.data, |
| | | 'dsSkipSchemaValidation' : 'TRUE', |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=dmiller,ou=People,dc=example,dc=com', |
| | | 'uid=kwinters,ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Skip Schema Validation Reject |
| | | #@TestID skip schema validation reject |
| | | #@TestPurpose Verify an import of a LDIF file containing invalided schema is rejected when skip schema validation is not specified |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Skip Schema Validation Reject')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsLdifFile' : '%s/backends/Schema.ldif' % remote.data, |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=dmiller,ou=People,dc=example,dc=com'], |
| | | 'missingEntries' : ['uid=scarter,ou=People,dc=example,dc=com', |
| | | 'uid=kwinters,ou=People,dc=example,dc=com'] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: Error Codes |
| | | #@TestID Error Codes |
| | | #@TestPurpose Verify an import fails with an error code. |
| | | #@TestPreamble |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | --> |
| | | |
| | | <!-- Need to know what the error codes are --> |
| | | |
| | | </sequence> |
| | | |
| | | <finally> |
| | | <sequence> |
| | | <!-- Test Suite Cleanup --> |
| | | <message>'Finally: Global Backup Cleanup.'</message> |
| | | <try> |
| | | <try> |
| | | <call function="'common_cleanup'" /> |
| | | <catch exception="'STAFException'"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message> |
| | | </sequence> |
| | | </catch> |
| | | </try> |
| | | <finally> |
| | | <call function="'testSuite_Postamble'"/> |
| | | </finally> |
| | | </try> |
| | | </sequence> |
| | | </finally> |
| | | |
| | | </try> |
| | | |
| | | </block> |
| | | |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | <defaultcall function="main_restore-tasks"/> |
| | | <function name="main_restore-tasks"> |
| | | <sequence> |
| | | <block name="'restore-tasks'"> |
| | | <sequence> |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group']='backends' |
| | | CurrentTestPath['suite']=STAXCurrentBlock |
| | | </script> |
| | | <call function="'testSuite_Preamble'"/> |
| | | <!--- Test Suite information |
| | | #@TestSuiteName Backend Restore Tasks Tests |
| | | #@TestSuitePurpose Verify that the basic restore task functionality is working in the Directory Server. |
| | | #@TestSuiteID Restore Tasks Tests |
| | | #@TestSuiteGroup Restore Tasks |
| | | #@TestGroup Backend |
| | | #@TestScript restore-tasks.xml |
| | | #@TestHTMLLink http://opends.dev.java.net/ |
| | | --> |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/backends/backend_setup.xml' % (TESTS_DIR)"/> |
| | | <call function="'backend_setup'"> { 'loadBackend' : True } </call> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Restore Tasks Tests |
| | | #@TestName Restore Tasks: Restore Tasks 1 |
| | | #@TestID RestoreTasks1 |
| | | #@TestPurpose Verify an restore task of a LDIF file on the default backend. |
| | | #@TestPreamble |
| | | #@TestSteps An ldif file is created that describes the restore task to be |
| | | scheduled. The task is scheduled by adding the ldif file |
| | | with the static ldapmodify. |
| | | #@TestPostamble |
| | | #@TestResult Success if OpenDS returns 0 |
| | | --> |
| | | <testcase name="getTestCaseName('Test 1')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <message> |
| | | 'Backend RestoreTasks1: Restore the data in OpenDS by scheduling a task' |
| | | </message> |
| | | <call function="'restoreTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : '4', |
| | | 'backupDir' : '%s/backends/' % remote.data |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | <try> |
| | | <sequence> |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group']='backends' |
| | | CurrentTestPath['suite']=STAXCurrentBlock |
| | | </script> |
| | | <call function="'testSuite_Preamble'"/> |
| | | <!--- Test Suite information |
| | | #@TestSuiteName Backend Restore Tasks Tests |
| | | #@TestSuitePurpose Verify that the basic restore task functionality is working in the Directory Server. |
| | | #@TestSuiteID Restore Tasks Tests |
| | | #@TestSuiteGroup Restore Tasks |
| | | #@TestGroup Backend |
| | | #@TestScript restore-tasks.xml |
| | | #@TestHTMLLink http://opends.dev.java.net/ |
| | | --> |
| | | <call function="'common_setup'"> |
| | | { |
| | | 'quickStart' : False , |
| | | 'loadData' : False , |
| | | 'startServer' : True , |
| | | 'stopServer' : False |
| | | } |
| | | </call> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Restore Tasks Tests |
| | | #@TestName Restore Tasks: Restore Tasks 1 |
| | | #@TestID RestoreTasks1 |
| | | #@TestPurpose Verify an restore task of a LDIF file on the default backend. |
| | | #@TestPreamble |
| | | #@TestSteps An ldif file is created that describes the restore task to be |
| | | scheduled. The task is scheduled by adding the ldif file |
| | | with the static ldapmodify. |
| | | #@TestPostamble |
| | | #@TestResult Success if OpenDS returns 0 |
| | | --> |
| | | <testcase name="getTestCaseName('Test 1')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <message> |
| | | 'Backend RestoreTasks1: Restore the data in OpenDS by scheduling a task' |
| | | </message> |
| | | <call function="'restoreTask'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'taskID' : '4', |
| | | 'backupDir' : '%s/backends/' % remote.data |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/backends/backend_cleanup.xml' % (TESTS_DIR)"/> |
| | | <call function="'backend_cleanup'"/> |
| | | <call function="'testSuite_Postamble'"/> |
| | | </sequence> |
| | | |
| | | </sequence> |
| | | <finally> |
| | | <sequence> |
| | | <!-- Test Suite Cleanup --> |
| | | <message>'Finally: Global Backup Cleanup.'</message> |
| | | <try> |
| | | <try> |
| | | <call function="'common_cleanup'" /> |
| | | <catch exception="'STAFException'"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message> |
| | | </sequence> |
| | | </catch> |
| | | </try> |
| | | <finally> |
| | | <call function="'testSuite_Postamble'"/> |
| | | </finally> |
| | | </try> |
| | | </sequence> |
| | | </finally> |
| | | </try> |
| | | </block> |
| | | </sequence> |
| | | </function> |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | <defaultcall function="main_restore"/> |
| | | <function name="main_restore"> |
| | | <sequence> |
| | | <block name="'restore'"> |
| | | <sequence> |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group']='backends' |
| | | CurrentTestPath['suite']=STAXCurrentBlock |
| | | </script> |
| | | <call function="'testSuite_Preamble'"/> |
| | | <!--- Test Suite information |
| | | #@TestSuiteName Backend Restore Tests |
| | | #@TestSuitePurpose Test the restore functionality for OpenDS. |
| | | #@TestSuiteID Restore Tests |
| | | #@TestSuiteGroup Restore |
| | | #@TestGroup Backend |
| | | #@TestScript restore.xml |
| | | #@TestHTMLLink http://opends.dev.java.net/ |
| | | --> |
| | | |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/backends/backend_setup.xml' % (TESTS_DIR)"/> |
| | | <call function="'backend_setup'"> |
| | | { 'startDS' : True, |
| | | 'loadBackend' : True |
| | | } |
| | | </call> |
| | | <try> |
| | | <sequence> |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group']='backends' |
| | | CurrentTestPath['suite']=STAXCurrentBlock |
| | | </script> |
| | | <call function="'testSuite_Preamble'"/> |
| | | <!--- Test Suite information |
| | | #@TestSuiteName Backend Restore Tests |
| | | #@TestSuitePurpose Test the restore functionality for OpenDS. |
| | | #@TestSuiteID Restore Tests |
| | | #@TestSuiteGroup Restore |
| | | #@TestGroup Backend |
| | | #@TestScript restore.xml |
| | | #@TestHTMLLink http://opends.dev.java.net/ |
| | | --> |
| | | |
| | | <call function="'common_setup'"> |
| | | { |
| | | 'quickStart' : False , |
| | | 'startServer' : False , |
| | | 'loadData' : False , |
| | | 'stopServer' : False |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | 'Create a backup of the data in OpenDS to be used in the restore testcase' |
| | | </message> |
| | |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Restore Tests |
| | | #@TestName Export: Restore 1 |
| | | #@TestID Restore1 |
| | | #@TestPurpose Restore data to OpenDS. |
| | | #@TestPreamble |
| | | #@TestSteps Client calls restore with the parameters |
| | | default backendID, and backupDirectory |
| | | #@TestPostamble |
| | | #@TestResult Success if restore returns 0 |
| | | --> |
| | | <testcase name="getTestCaseName('Test 1')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <message> |
| | | 'Backend Restore1: Restore data to OpenDS' |
| | | </message> |
| | | |
| | | <!-- Stop DS --> |
| | | <call function="'StopDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT, |
| | | 'dsBindDN' : DIRECTORY_INSTANCE_DN, |
| | | 'dsBindPwd' : DIRECTORY_INSTANCE_PSWD |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checkRC'"> |
| | | { 'returncode' : RC, |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | |
| | | <call function="'restore'"> |
| | | { 'backupDir' : '%s/backends/backup1' % remote.data |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | |
| | | <!-- Start DS --> |
| | | <message> |
| | | 'Start DS to run on port %s' % DIRECTORY_INSTANCE_PORT |
| | | </message> |
| | | |
| | | <call function="'StartDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME } |
| | | </call> |
| | | |
| | | <call function="'checkRC'"> |
| | | { 'returncode' : RC, |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Restore Tests |
| | | #@TestName Export: Restore 2 |
| | | #@TestID Restore2 |
| | | #@TestPurpose Restore compressed data to OpenDS. |
| | | #@TestPreamble |
| | | #@TestSteps Client calls restore with the parameters |
| | | default backendID, backupDirectory, and uncompress |
| | | is automatically done |
| | | #@TestPostamble |
| | | #@TestResult Success if restore returns 0 |
| | | --> |
| | | <testcase name="getTestCaseName('Test 2')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <message> |
| | | 'Backend Restore2: Restore compressed data to OpenDS' |
| | | </message> |
| | | |
| | | <!-- Stop DS --> |
| | | <call function="'StopDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT, |
| | | 'dsBindDN' : DIRECTORY_INSTANCE_DN, |
| | | 'dsBindPwd' : DIRECTORY_INSTANCE_PSWD |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checkRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | |
| | | <call function="'backup'"> |
| | | { 'backupDir' : '%s/restore.compressed' % remote.data |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <!-- Start DS --> |
| | | <message> |
| | | 'Start DS to run on port %s' % DIRECTORY_INSTANCE_PORT |
| | | </message> |
| | | <call function="'StartDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME } |
| | | </call> |
| | | <call function="'checkRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'" /> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | </sequence> |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Restore Tests |
| | | #@TestName Export: Restore 1 |
| | | #@TestID Restore1 |
| | | #@TestPurpose Restore data to OpenDS. |
| | | #@TestPreamble |
| | | #@TestSteps Client calls restore with the parameters |
| | | default backendID, and backupDirectory |
| | | #@TestPostamble |
| | | #@TestResult Success if restore returns 0 |
| | | --> |
| | | <testcase name="getTestCaseName('Test 1')"> |
| | | <finally> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <message> |
| | | 'Backend Restore1: Restore data to OpenDS' |
| | | </message> |
| | | |
| | | <!-- Stop DS --> |
| | | <call function="'StopDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT, |
| | | 'dsBindDN' : DIRECTORY_INSTANCE_DN, |
| | | 'dsBindPwd' : DIRECTORY_INSTANCE_PSWD |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checkRC'"> |
| | | { 'returncode' : RC, |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | |
| | | <call function="'restore'"> |
| | | { 'backupDir' : '%s/backends/backup1' % remote.data |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | |
| | | <!-- Start DS --> |
| | | <message> |
| | | 'Start DS to run on port %s' % DIRECTORY_INSTANCE_PORT |
| | | </message> |
| | | |
| | | <call function="'StartDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME } |
| | | </call> |
| | | |
| | | <call function="'checkRC'"> |
| | | { 'returncode' : RC, |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | <!-- Test Suite Cleanup --> |
| | | <message>'Finally: Global Backup Cleanup.'</message> |
| | | <try> |
| | | <try> |
| | | <call function="'common_cleanup'" /> |
| | | <catch exception="'STAFException'"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message> |
| | | </sequence> |
| | | </catch> |
| | | </try> |
| | | <finally> |
| | | <call function="'testSuite_Postamble'"/> |
| | | </finally> |
| | | </try> |
| | | </sequence> |
| | | </testcase> |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Restore Tests |
| | | #@TestName Export: Restore 2 |
| | | #@TestID Restore2 |
| | | #@TestPurpose Restore compressed data to OpenDS. |
| | | #@TestPreamble |
| | | #@TestSteps Client calls restore with the parameters |
| | | default backendID, backupDirectory, and uncompress |
| | | is automatically done |
| | | #@TestPostamble |
| | | #@TestResult Success if restore returns 0 |
| | | --> |
| | | <testcase name="getTestCaseName('Test 2')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <message> |
| | | 'Backend Restore2: Restore compressed data to OpenDS' |
| | | </message> |
| | | |
| | | <!-- Stop DS --> |
| | | <call function="'StopDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT, |
| | | 'dsBindDN' : DIRECTORY_INSTANCE_DN, |
| | | 'dsBindPwd' : DIRECTORY_INSTANCE_PSWD |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checkRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | |
| | | <call function="'backup'"> |
| | | { 'backupDir' : '%s/restore.compressed' % remote.data |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | <!-- Start DS --> |
| | | <message> |
| | | 'Start DS to run on port %s' % DIRECTORY_INSTANCE_PORT |
| | | </message> |
| | | <call function="'StartDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME } |
| | | </call> |
| | | <call function="'checkRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'" /> |
| | | </sequence> |
| | | </testcase> |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/backends/backend_cleanup.xml' % (TESTS_DIR)" /> |
| | | <call function="'backend_cleanup'"> { 'stopDS' : True } </call> |
| | | <call function="'testSuite_Postamble'" /> |
| | | </sequence> |
| | | </finally> |
| | | </try> |
| | | </block> |
| | | </sequence> |
| | | </function> |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2007-2008 Sun Microsystems, Inc. |
| | | ! Copyright 2007-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | </function-list-args> |
| | | |
| | | <sequence> |
| | | |
| | | |
| | | <try> |
| | | |
| | | <block name="'clu'"> |
| | | |
| | | <sequence> |
| | |
| | | --> |
| | | <script> |
| | | CurrentTestPath['group'] = 'clu' |
| | | _group=CurrentTestPath['group'] |
| | | </script> |
| | | |
| | | <call function="'testGroup_Preamble'"/> |
| | | |
| | | |
| | | <!--- |
| | | Links between tests: |
| | | - clu_ldapsearch_checkbehavior add a new suffix |
| | |
| | | clu_verify-index_checkbehavior and clu_dbtest_checkbehavior |
| | | --> |
| | | <script> |
| | | testList = [] |
| | | testList.append(['.','clu_setup']) |
| | | testList.append(['.','clu_ldapsearch_checkoptions']) |
| | | testList.append(['.','clu_ldapsearch_checkbehavior']) |
| | | testList.append(['.','clu_ldapmodify_checkoptions']) |
| | | testList.append(['.','clu_ldapmodify_checkbehavior']) |
| | | testList.append(['.','clu_ldapcompare_checkbehavior']) |
| | | testList.append(['.','clu_ldapdelete_checkbehavior']) |
| | | testList.append(['.','clu_base64_checkbehavior']) |
| | | testList.append(['.','clu_status_checkbehavior']) |
| | | testList.append(['.','clu_ldappasswordmodify_checkbehavior']) |
| | | testList.append(['.','clu_ldifsearch_checkbehavior']) |
| | | testList.append(['.','clu_verify-index_checkbehavior']) |
| | | testList.append(['.','clu_rebuild-index_checkbehavior']) |
| | | testList.append(['.','clu_encode-password_checkbehavior']) |
| | | testList.append(['.','clu_make-ldif_checkbehavior']) |
| | | testList.append(['.','clu_list-backends_checkbehavior']) |
| | | testList.append(['.','clu_manage-tasks_checkbehavior']) |
| | | testList.append(['.','clu_dbtest_checkbehavior']) |
| | | testList.append(['.','clu_ldifmodify_checkbehavior']) |
| | | testList.append(['.','clu_ldif-diff_checkbehavior']) |
| | | testList.append(['.','clu_cleanup']) |
| | | suiteList = [] |
| | | suiteList.append('clu_ldapsearch_checkoptions') |
| | | suiteList.append('clu_ldapsearch_checkbehavior') |
| | | suiteList.append('clu_ldapmodify_checkoptions') |
| | | suiteList.append('clu_ldapmodify_checkbehavior') |
| | | suiteList.append('clu_ldapcompare_checkbehavior') |
| | | suiteList.append('clu_ldapdelete_checkbehavior') |
| | | suiteList.append('clu_base64_checkbehavior') |
| | | suiteList.append('clu_status_checkbehavior') |
| | | suiteList.append('clu_ldappasswordmodify_checkbehavior') |
| | | suiteList.append('clu_ldifsearch_checkbehavior') |
| | | suiteList.append('clu_verify-index_checkbehavior') |
| | | suiteList.append('clu_rebuild-index_checkbehavior') |
| | | suiteList.append('clu_encode-password_checkbehavior') |
| | | suiteList.append('clu_make-ldif_checkbehavior') |
| | | suiteList.append('clu_list-backends_checkbehavior') |
| | | suiteList.append('clu_manage-tasks_checkbehavior') |
| | | suiteList.append('clu_dbtest_checkbehavior') |
| | | suiteList.append('clu_ldifmodify_checkbehavior') |
| | | suiteList.append('clu_ldif-diff_checkbehavior') |
| | | </script> |
| | | |
| | | <iterate var="_test" in="testList"> |
| | | <sequence> |
| | | |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/clu/%s/%s.xml' % |
| | | (TESTS_DIR,_test[0],_test[1])"/> |
| | | |
| | | <call function="'%s' % _test[1]" /> |
| | | |
| | | </sequence> |
| | | |
| | | </iterate> |
| | | |
| | | <call function="'testGroup_Postamble'"/> |
| | | |
| | | |
| | | <!-- Data global to this test group --> |
| | | |
| | | <!-- Run the test suites --> |
| | | <iterate var="_suite" in="suiteList"> |
| | | <sequence> |
| | | <try> |
| | | <sequence> |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/%s/%s.xml' % (TESTS_DIR,_group,_suite)"/> |
| | | <call function="'%s' % _suite" /> |
| | | </sequence> |
| | | <catch exception="'STAFException.TestSuite.SetupException'"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'">'Setup of test suite %s failed.' % _suite</message> |
| | | </sequence> |
| | | </catch> |
| | | <catch exception="'STAFException.TestSuite.MainException'"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'">'Main part of test suite %s failed.' % _suite</message> |
| | | </sequence> |
| | | </catch> |
| | | <catch exception="'STAFException.TestSuite.CleanupException'"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'">'Cleanup of test suite %s failed.' % _suite</message> |
| | | </sequence> |
| | | </catch> |
| | | </try> |
| | | </sequence> |
| | | </iterate> |
| | | |
| | | </sequence> |
| | | </block> |
| | | <catch exception="'STAXException.TestGroupException'"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'">'Execution of Test Group Failed'</message> |
| | | </sequence> |
| | | |
| | | </block> |
| | | |
| | | </catch> |
| | | <finally> |
| | | <!-- Test Group postamble --> |
| | | <call function="'testGroup_Postamble'"/> |
| | | </finally> |
| | | </try> |
| | | |
| | | </sequence> |
| | | |
| | | </function> |
| | | |
| | | </stax> |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | <sequence> |
| | | |
| | | <block name="'clu_base64_checkbehavior'"> |
| | | |
| | | <sequence> |
| | | |
| | | <!--- Test Suite information |
| | | #@TestSuiteName base64 check behavior tests |
| | | #@TestSuitePurpose Test the results of the base64 command. |
| | | #@TestSuiteGroup base64 check behavior tests |
| | | #@TestScript clu_base64_checkbehavior.xml |
| | | --> |
| | | |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group'] = 'clu' |
| | | CurrentTestPath['suite'] = STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker base64 check behavior tests |
| | | #@TestName base64: encode option |
| | | #@TestIssue none |
| | | #@TestPurpose Test base64 encode option. |
| | | #@TestPreamble none |
| | | #@TestStep Do an base64 with encode option. |
| | | #@TestPostamble none |
| | | #@TestResult Success if base64 returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName('base64: encode option')"> |
| | | |
| | | <try> |
| | | |
| | | <sequence> |
| | | |
| | | <sequence> |
| | | <!--- Test Suite information |
| | | #@TestSuiteName base64 check behavior tests |
| | | #@TestSuitePurpose Test the results of the base64 command. |
| | | #@TestSuiteGroup base64 check behavior tests |
| | | #@TestScript clu_base64_checkbehavior.xml |
| | | --> |
| | | |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group'] = 'clu' |
| | | CurrentTestPath['suite'] = STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <call function="'common_setup'"> |
| | | { |
| | | 'quickStart' : False , |
| | | 'loadData' : True , |
| | | 'ldifFile' : '%s/clu/clu_start.ldif' % remote.data , |
| | | 'startServer' : True , |
| | | 'stopServer' : False , |
| | | 'allowPreEncodePassword' : True |
| | | } |
| | | </call> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker base64 check behavior tests |
| | | #@TestName base64: encode option |
| | | #@TestIssue none |
| | | #@TestPurpose Test base64 encode option. |
| | | #@TestPreamble none |
| | | #@TestStep Do an base64 with encode option. |
| | | #@TestPostamble none |
| | | #@TestResult Success if base64 returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName('base64: encode option')"> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'base64: encode option' |
| | | </message> |
| | | |
| | | <call function="'Base64WithScript'"> |
| | | { |
| | | 'subcommand' : 'encode', |
| | | 'rawData' : 'hello world' |
| | | } |
| | | </call> |
| | | |
| | | <!-- STAXResult is not always a list--> |
| | | <script> |
| | | try: |
| | | RC,Result=STAXResult[0] |
| | | except AttributeError,details: |
| | | Result='AttributeError: can not parse STAXResult %s' % details |
| | | RC='1' |
| | | </script> |
| | | |
| | | <script> |
| | | pattern=re.compile('aGVsbG8gd29ybGQ=') |
| | | </script> |
| | | |
| | | <if expr="pattern.match(Result)"> |
| | | <sequence> |
| | | |
| | | <sequence> |
| | | |
| | | <message log="1"> |
| | | 'SUCCESS: RC=%s, Results %s' % (RC,Result) |
| | | </message> |
| | | |
| | | <tcstatus result="'pass'"></tcstatus> |
| | | |
| | | </sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <else> |
| | | <message> |
| | | 'base64: encode option' |
| | | </message> |
| | | |
| | | <call function="'Base64WithScript'"> |
| | | { |
| | | 'subcommand' : 'encode', |
| | | 'rawData' : 'hello world' |
| | | } |
| | | </call> |
| | | |
| | | <!-- STAXResult is not always a list--> |
| | | <script> |
| | | try: |
| | | RC,Result=STAXResult[0] |
| | | except AttributeError,details: |
| | | Result='AttributeError: can not parse STAXResult %s' % details |
| | | RC='1' |
| | | </script> |
| | | |
| | | <script> |
| | | pattern=re.compile('aGVsbG8gd29ybGQ=') |
| | | </script> |
| | | |
| | | <if expr="pattern.match(Result)"> |
| | | |
| | | <sequence> |
| | | |
| | | <message log="1" level="'Error'"> |
| | | 'ERROR : RC=%s, Result=%s' % (RC,Result) |
| | | <message log="1"> |
| | | 'SUCCESS: RC=%s, Results %s' % (RC,Result) |
| | | </message> |
| | | |
| | | <tcstatus result="'fail'"></tcstatus> |
| | | <tcstatus result="'pass'"></tcstatus> |
| | | |
| | | </sequence> |
| | | |
| | | </else> |
| | | <else> |
| | | |
| | | <sequence> |
| | | |
| | | <message log="1" level="'Error'"> |
| | | 'ERROR : RC=%s, Result=%s' % (RC,Result) |
| | | </message> |
| | | |
| | | <tcstatus result="'fail'"></tcstatus> |
| | | |
| | | </sequence> |
| | | |
| | | </else> |
| | | |
| | | </if> |
| | | |
| | | </if> |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker base64 check behavior tests |
| | | #@TestName base64: decode |
| | | #@TestIssue none |
| | | #@TestPurpose Test base64 decode option. |
| | | #@TestPreamble none |
| | | #@TestStep Do an base64 with decode option. |
| | | #@TestPostamble none |
| | | #@TestResult Success if base64 returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName('base64: decode option')"> |
| | | |
| | | <sequence> |
| | | <!--- Test Case information |
| | | #@TestMarker base64 check behavior tests |
| | | #@TestName base64: decode |
| | | #@TestIssue none |
| | | #@TestPurpose Test base64 decode option. |
| | | #@TestPreamble none |
| | | #@TestStep Do an base64 with decode option. |
| | | #@TestPostamble none |
| | | #@TestResult Success if base64 returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName('base64: decode option')"> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'base64: decode option' |
| | | </message> |
| | | |
| | | <call function="'Base64WithScript'"> |
| | | { |
| | | 'subcommand' : 'decode', |
| | | 'encodedData' : 'aGVsbG8gd29ybGQ=' |
| | | } |
| | | </call> |
| | | |
| | | <!-- STAXResult is not always a list--> |
| | | <script> |
| | | try: |
| | | RC,Result=STAXResult[0] |
| | | except AttributeError,details: |
| | | Result='AttributeError: can not parse STAXResult %s' % details |
| | | RC='1' |
| | | </script> |
| | | |
| | | <script> |
| | | pattern=re.compile('hello world') |
| | | </script> |
| | | |
| | | <if expr="pattern.match(Result)"> |
| | | <sequence> |
| | | |
| | | <sequence> |
| | | |
| | | <message log="1"> |
| | | 'SUCCESS: RC=%s, Results %s' % (RC,Result) |
| | | </message> |
| | | |
| | | <tcstatus result="'pass'"></tcstatus> |
| | | |
| | | </sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <else> |
| | | <message> |
| | | 'base64: decode option' |
| | | </message> |
| | | |
| | | <call function="'Base64WithScript'"> |
| | | { |
| | | 'subcommand' : 'decode', |
| | | 'encodedData' : 'aGVsbG8gd29ybGQ=' |
| | | } |
| | | </call> |
| | | |
| | | <!-- STAXResult is not always a list--> |
| | | <script> |
| | | try: |
| | | RC,Result=STAXResult[0] |
| | | except AttributeError,details: |
| | | Result='AttributeError: can not parse STAXResult %s' % details |
| | | RC='1' |
| | | </script> |
| | | |
| | | <script> |
| | | pattern=re.compile('hello world') |
| | | </script> |
| | | |
| | | <if expr="pattern.match(Result)"> |
| | | |
| | | <sequence> |
| | | |
| | | <message log="1" level="'Error'"> |
| | | 'ERROR : RC=%s, Result=%s' % (RC,Result) |
| | | <message log="1"> |
| | | 'SUCCESS: RC=%s, Results %s' % (RC,Result) |
| | | </message> |
| | | |
| | | <tcstatus result="'fail'"></tcstatus> |
| | | <tcstatus result="'pass'"></tcstatus> |
| | | |
| | | </sequence> |
| | | |
| | | </else> |
| | | <else> |
| | | |
| | | <sequence> |
| | | |
| | | <message log="1" level="'Error'"> |
| | | 'ERROR : RC=%s, Result=%s' % (RC,Result) |
| | | </message> |
| | | |
| | | <tcstatus result="'fail'"></tcstatus> |
| | | |
| | | </sequence> |
| | | |
| | | </else> |
| | | |
| | | </if> |
| | | |
| | | </if> |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | </testcase> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </sequence> |
| | | |
| | | <finally> |
| | | <sequence> |
| | | <!-- Test Suite Cleanup --> |
| | | <message>'Finally: Global CLU Cleanup.'</message> |
| | | <try> |
| | | <call function="'common_cleanup'" /> |
| | | <catch exception="'STAFException'"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message> |
| | | </sequence> |
| | | </catch> |
| | | <finally> |
| | | <call function="'testSuite_Postamble'"/> |
| | | </finally> |
| | | </try> |
| | | </sequence> |
| | | </finally> |
| | | |
| | | </try> |
| | | |
| | | </block> |
| | | |
| | | </sequence> |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | <sequence> |
| | | |
| | | <block name="'clu_dbtest_checkbehavior'"> |
| | | |
| | | <try> |
| | | |
| | | <sequence> |
| | | |
| | | <!--- Test Suite information |
| | | #@TestSuiteName dbtest check behavior tests |
| | | #@TestSuitePurpose Test the results of the dbtest command. |
| | | #@TestSuiteGroup dbtest check behavior tests |
| | | #@TestScript clu_dbtest_checkbehavior.xml |
| | | --> |
| | | |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group'] = 'clu' |
| | | CurrentTestPath['suite'] = STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker dbtest check behavior tests |
| | | #@TestName dbtest: list root containers |
| | | #@TestIssue none |
| | | #@TestPurpose Test dbtest with list-root-containers option |
| | | #@TestPreamble none |
| | | #@TestStep Do an dbtest with list-root-containers option. |
| | | #@TestStep Check the output of the command. |
| | | #@TestPostamble none |
| | | #@TestResult Success if dbtest returns 0 and if the |
| | | output is correct. |
| | | --> |
| | | <testcase name="getTestCaseName('dbtest: list root containers')"> |
| | | <sequence> |
| | | |
| | | <!--- Test Suite information |
| | | #@TestSuiteName dbtest check behavior tests |
| | | #@TestSuitePurpose Test the results of the dbtest command. |
| | | #@TestSuiteGroup dbtest check behavior tests |
| | | #@TestScript clu_dbtest_checkbehavior.xml |
| | | --> |
| | | |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group'] = 'clu' |
| | | CurrentTestPath['suite'] = STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <call function="'common_setup'"> |
| | | { |
| | | 'quickStart' : False , |
| | | 'loadData' : True , |
| | | 'ldifFile' : '%s/clu/clu_start.ldif' % remote.data , |
| | | 'startServer' : True , |
| | | 'stopServer' : False , |
| | | 'allowPreEncodePassword' : True |
| | | } |
| | | </call> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker dbtest check behavior tests |
| | | #@TestName dbtest: list root containers |
| | | #@TestIssue none |
| | | #@TestPurpose Test dbtest with list-root-containers option |
| | | #@TestPreamble none |
| | | #@TestStep Do an dbtest with list-root-containers option. |
| | | #@TestStep Check the output of the command. |
| | | #@TestPostamble none |
| | | #@TestResult Success if dbtest returns 0 and if the |
| | | output is correct. |
| | | --> |
| | | <testcase name="getTestCaseName('dbtest: list root containers')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'dbtest: list root containers' |
| | | </message> |
| | | |
| | | <call function="'dbtestWithScript'"> |
| | | { |
| | | 'subcommand' : 'list-root-containers' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : '%s db' % DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'Total: 1' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker dbtest check behavior tests |
| | | #@TestName dbtest: list entry containers |
| | | #@TestIssue none |
| | | #@TestPurpose Test dbtest with list-entry-containers option |
| | | for backend userRoot |
| | | #@TestPreamble none |
| | | #@TestStep Do an dbtest with list-entry-containers option |
| | | for backend userRoot. |
| | | #@TestStep Check the output of the command. |
| | | #@TestPostamble none |
| | | #@TestResult Success if dbtest returns 0 and if the |
| | | output is correct. |
| | | --> |
| | | <testcase name="getTestCaseName('dbtest: list entry containers')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'dbtest: list entry containers for backend userRoot' |
| | | </message> |
| | | |
| | | <call function="'dbtestWithScript'"> |
| | | { |
| | | 'subcommand' : 'list-entry-containers' , |
| | | 'dsBackendID' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'dc=com dc_com 1048' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'dc=mycom dc_mycom 11' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'Total: 2' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker dbtest check behavior tests |
| | | #@TestName dbtest: list index status |
| | | #@TestIssue none |
| | | #@TestPurpose Test dbtest with list-index-status option |
| | | for backend userRoot and baseDN dc=com |
| | | #@TestPreamble none |
| | | #@TestStep Do an dbtest with list-index-status option |
| | | for backend userRoot and baseDN dc=com. |
| | | #@TestStep Check the output of the command. |
| | | #@TestPostamble none |
| | | #@TestResult Success if dbtest returns 0 and if the |
| | | output is correct. |
| | | --> |
| | | <testcase name="getTestCaseName('dbtest: list index status')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'dbtest: list index status for backend userRoot and \ |
| | | baseDN dc=com' |
| | | </message> |
| | | |
| | | <call function="'dbtestWithScript'"> |
| | | { |
| | | 'subcommand' : 'list-index-status' , |
| | | 'dsBaseDN' : 'dc=com' , |
| | | 'dsBackendID' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <script> |
| | | msg1 = 'uid.equality Index' |
| | | msg2 = 'dc_com_uid.equality true' |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : '%s %s' % (msg1, msg2) |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | msg1 = 'st.equality Index' |
| | | msg2 = 'dc_com_st.equality true' |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : '%s %s' % (msg1, msg2) |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'Total: 20' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker dbtest check behavior tests |
| | | #@TestName dbtest: list database containers |
| | | #@TestIssue none |
| | | #@TestPurpose Test dbtest with list-database-containers |
| | | option for backend userRoot and baseDN dc=com |
| | | #@TestPreamble none |
| | | #@TestStep Do an dbtest with list-root-containers option. |
| | | #@TestStep Check the output of the command. |
| | | #@TestPostamble none |
| | | #@TestResult Success if dbtest returns 0 and if the |
| | | output is correct. |
| | | --> |
| | | <testcase name="getTestCaseName('dbtest: list database containers')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'dbtest: list database containers for backend userRoot \ |
| | | and baseDN dc=com' |
| | | </message> |
| | | |
| | | <call function="'dbtestWithScript'"> |
| | | { |
| | | 'subcommand' : 'list-database-containers' , |
| | | 'dsBaseDN' : 'dc=com' , |
| | | 'dsBackendID' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <script> |
| | | msg1 = 'dn2id DN2ID' |
| | | msg2 = 'dc_com_dn2id 1048' |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : '%s %s' % (msg1, msg2) |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | msg1 = 'id2entry ID2Entry' |
| | | msg2 = 'dc_com_id2entry 1048' |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : '%s %s' % (msg1, msg2) |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'Total: 24' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker dbtest check behavior tests |
| | | #@TestName dbtest: dump database container |
| | | #@TestIssue none |
| | | #@TestPurpose Test dbtest with dump database container |
| | | option for backend userRoot, baseDN dc=com |
| | | and database st.equality |
| | | #@TestPreamble none |
| | | #@TestStep Do an dbtest with dump database container |
| | | option for backend userRoot, baseDN dc=com |
| | | and database dn2entry. |
| | | #@TestStep Check the output of the command. |
| | | #@TestStep Do an dbtest with dump database container |
| | | option for backend userRoot, baseDN dc=com, |
| | | database st.equality, minSize 176 |
| | | and maxSize 184. |
| | | #@TestStep Check the output of the command. |
| | | #@TestStep Do an dbtest with dump database container |
| | | option for backend userRoot, baseDN dc=com, |
| | | database st.equality, minKey wv |
| | | and maxKey wy. |
| | | #@TestStep Check the output of the command. |
| | | #@TestPostamble none |
| | | #@TestResult Success if dbtest returns 0 and if the |
| | | output is correct. |
| | | --> |
| | | <testcase name="getTestCaseName('dbtest: dump database container')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'dbtest: dump database container for backend userRoot, \ |
| | | baseDN dc=com and database dn2entry' |
| | | </message> |
| | | |
| | | <call function="'dbtestWithScript'"> |
| | | { |
| | | 'subcommand' : 'dump-database-container' , |
| | | 'dsBaseDN' : 'dc=com' , |
| | | 'dsBackendID' : DIRECTORY_INSTANCE_BE , |
| | | 'dsDatabaseName' : 'dn2id' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'Total Records: 1048' |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | 'dbtest: dump database container for backend userRoot, \ |
| | | baseDN dc=com, database st.equality, minSize 176, maxSize 184' |
| | | </message> |
| | | |
| | | <call function="'dbtestWithScript'"> |
| | | { |
| | | 'subcommand' : 'dump-database-container' , |
| | | 'dsBaseDN' : 'dc=com' , |
| | | 'dsBackendID' : DIRECTORY_INSTANCE_BE , |
| | | 'dsDatabaseName' : 'st.equality' , |
| | | 'dsMinDataSize' : 176 , |
| | | 'dsMaxDataSize' : 184 |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'Total Records: 6' |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | 'dbtest: dump database container for backend userRoot, \ |
| | | baseDN dc=com, database st.equality, minKey wv, maxKey wy' |
| | | </message> |
| | | |
| | | <call function="'dbtestWithScript'"> |
| | | { |
| | | 'subcommand' : 'dump-database-container' , |
| | | 'dsBaseDN' : 'dc=com' , |
| | | 'dsBackendID' : DIRECTORY_INSTANCE_BE , |
| | | 'dsDatabaseName' : 'st.equality' , |
| | | 'dsMinKeyValue' : 'wv' , |
| | | 'dsMaxKeyValue' : 'wy' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'Total Records: 2' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | </sequence> |
| | | |
| | | <finally> |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'dbtest: list root containers' |
| | | </message> |
| | | |
| | | <call function="'dbtestWithScript'"> |
| | | { |
| | | 'subcommand' : 'list-root-containers' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : '%s db' % DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'Total: 1' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | <!-- Test Suite Cleanup --> |
| | | <message>'Finally: Global CLU Cleanup.'</message> |
| | | <try> |
| | | <call function="'common_cleanup'" /> |
| | | <catch exception="'STAFException'"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message> |
| | | </sequence> |
| | | </catch> |
| | | <finally> |
| | | <call function="'testSuite_Postamble'"/> |
| | | </finally> |
| | | </try> |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker dbtest check behavior tests |
| | | #@TestName dbtest: list entry containers |
| | | #@TestIssue none |
| | | #@TestPurpose Test dbtest with list-entry-containers option |
| | | for backend userRoot |
| | | #@TestPreamble none |
| | | #@TestStep Do an dbtest with list-entry-containers option |
| | | for backend userRoot. |
| | | #@TestStep Check the output of the command. |
| | | #@TestPostamble none |
| | | #@TestResult Success if dbtest returns 0 and if the |
| | | output is correct. |
| | | --> |
| | | <testcase name="getTestCaseName('dbtest: list entry containers')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'dbtest: list entry containers for backend userRoot' |
| | | </message> |
| | | |
| | | <call function="'dbtestWithScript'"> |
| | | { |
| | | 'subcommand' : 'list-entry-containers' , |
| | | 'dsBackendID' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | </finally> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'dc=com dc_com 1208' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'dc=mycom dc_mycom 11' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'Total: 2' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker dbtest check behavior tests |
| | | #@TestName dbtest: list index status |
| | | #@TestIssue none |
| | | #@TestPurpose Test dbtest with list-index-status option |
| | | for backend userRoot and baseDN dc=com |
| | | #@TestPreamble none |
| | | #@TestStep Do an dbtest with list-index-status option |
| | | for backend userRoot and baseDN dc=com. |
| | | #@TestStep Check the output of the command. |
| | | #@TestPostamble none |
| | | #@TestResult Success if dbtest returns 0 and if the |
| | | output is correct. |
| | | --> |
| | | <testcase name="getTestCaseName('dbtest: list index status')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'dbtest: list index status for backend userRoot and \ |
| | | baseDN dc=com' |
| | | </message> |
| | | |
| | | <call function="'dbtestWithScript'"> |
| | | { |
| | | 'subcommand' : 'list-index-status' , |
| | | 'dsBaseDN' : 'dc=com' , |
| | | 'dsBackendID' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | </try> |
| | | |
| | | <script> |
| | | msg1 = 'uid.equality Index' |
| | | msg2 = 'dc_com_uid.equality true' |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : '%s %s' % (msg1, msg2) |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | msg1 = 'st.equality Index' |
| | | msg2 = 'dc_com_st.equality true' |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : '%s %s' % (msg1, msg2) |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'Total: 20' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker dbtest check behavior tests |
| | | #@TestName dbtest: list database containers |
| | | #@TestIssue none |
| | | #@TestPurpose Test dbtest with list-database-containers |
| | | option for backend userRoot and baseDN dc=com |
| | | #@TestPreamble none |
| | | #@TestStep Do an dbtest with list-root-containers option. |
| | | #@TestStep Check the output of the command. |
| | | #@TestPostamble none |
| | | #@TestResult Success if dbtest returns 0 and if the |
| | | output is correct. |
| | | --> |
| | | <testcase name="getTestCaseName('dbtest: list database containers')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'dbtest: list database containers for backend userRoot \ |
| | | and baseDN dc=com' |
| | | </message> |
| | | |
| | | <call function="'dbtestWithScript'"> |
| | | { |
| | | 'subcommand' : 'list-database-containers' , |
| | | 'dsBaseDN' : 'dc=com' , |
| | | 'dsBackendID' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <script> |
| | | msg1 = 'dn2id DN2ID' |
| | | msg2 = 'dc_com_dn2id 1208' |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : '%s %s' % (msg1, msg2) |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | msg1 = 'id2entry ID2Entry' |
| | | msg2 = 'dc_com_id2entry 1208' |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : '%s %s' % (msg1, msg2) |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'Total: 24' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker dbtest check behavior tests |
| | | #@TestName dbtest: dump database container |
| | | #@TestIssue none |
| | | #@TestPurpose Test dbtest with dump database container |
| | | option for backend userRoot, baseDN dc=com |
| | | and database st.equality |
| | | #@TestPreamble none |
| | | #@TestStep Do an dbtest with dump database container |
| | | option for backend userRoot, baseDN dc=com |
| | | and database dn2entry. |
| | | #@TestStep Check the output of the command. |
| | | #@TestStep Do an dbtest with dump database container |
| | | option for backend userRoot, baseDN dc=com, |
| | | database st.equality, minSize 176 |
| | | and maxSize 184. |
| | | #@TestStep Check the output of the command. |
| | | #@TestStep Do an dbtest with dump database container |
| | | option for backend userRoot, baseDN dc=com, |
| | | database st.equality, minKey wv |
| | | and maxKey wy. |
| | | #@TestStep Check the output of the command. |
| | | #@TestPostamble none |
| | | #@TestResult Success if dbtest returns 0 and if the |
| | | output is correct. |
| | | --> |
| | | <testcase name="getTestCaseName('dbtest: dump database container')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'dbtest: dump database container for backend userRoot, \ |
| | | baseDN dc=com and database dn2entry' |
| | | </message> |
| | | |
| | | <call function="'dbtestWithScript'"> |
| | | { |
| | | 'subcommand' : 'dump-database-container' , |
| | | 'dsBaseDN' : 'dc=com' , |
| | | 'dsBackendID' : DIRECTORY_INSTANCE_BE , |
| | | 'dsDatabaseName' : 'dn2id' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'Total Records: 1208' |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | 'dbtest: dump database container for backend userRoot, \ |
| | | baseDN dc=com, database st.equality, minSize 176, maxSize 184' |
| | | </message> |
| | | |
| | | <call function="'dbtestWithScript'"> |
| | | { |
| | | 'subcommand' : 'dump-database-container' , |
| | | 'dsBaseDN' : 'dc=com' , |
| | | 'dsBackendID' : DIRECTORY_INSTANCE_BE , |
| | | 'dsDatabaseName' : 'st.equality' , |
| | | 'dsMinDataSize' : 176 , |
| | | 'dsMaxDataSize' : 184 |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'Total Records: 6' |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | 'dbtest: dump database container for backend userRoot, \ |
| | | baseDN dc=com, database st.equality, minKey wv, maxKey wy' |
| | | </message> |
| | | |
| | | <call function="'dbtestWithScript'"> |
| | | { |
| | | 'subcommand' : 'dump-database-container' , |
| | | 'dsBaseDN' : 'dc=com' , |
| | | 'dsBackendID' : DIRECTORY_INSTANCE_BE , |
| | | 'dsDatabaseName' : 'st.equality' , |
| | | 'dsMinKeyValue' : 'wv' , |
| | | 'dsMaxKeyValue' : 'wy' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'Total Records: 2' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </block> |
| | | |
| | | </sequence> |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | <sequence> |
| | | |
| | | <block name="'clu_encode-password_checkbehavior'"> |
| | | |
| | | <sequence> |
| | | |
| | | <!--- Test Suite information |
| | | #@TestSuiteName encode-password check behavior tests |
| | | #@TestSuitePurpose Test the results of the encode-password command. |
| | | #@TestSuiteGroup encode-password check behavior tests |
| | | #@TestScript clu_encode-password_checkbehavior.xml |
| | | --> |
| | | |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group'] = 'clu' |
| | | CurrentTestPath['suite'] = STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <!--- Define default value for clearFile and encodedFile --> |
| | | <script> |
| | | clearFile = '%s/clu/clear_password.ref' % remote.data |
| | | encodedFile = '%s/clu/encoded_password.ref' % remote.data |
| | | </script> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker encode-password check behavior tests |
| | | #@TestName encode-password: list available schemes |
| | | #@TestIssue none |
| | | #@TestPurpose Test encode-password with listSchemes option. |
| | | #@TestPreamble none |
| | | #@TestStep Do an encode-password with listSchemes option. |
| | | #@TestPostamble none |
| | | #@TestResult Success if encode-password returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('encode-password: list available schemes')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'encode-password: list available schemes' |
| | | </message> |
| | | |
| | | <call function="'encodePasswordWithScript'"> |
| | | { |
| | | 'listSchemes' : 'True' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'SSHA' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'MD5' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker encode-password check behavior tests |
| | | #@TestName encode-password: list available |
| | | authPasswordSyntax schemes |
| | | #@TestIssue none |
| | | #@TestPurpose Test encode-password with listSchemes and |
| | | authPasswordSyntax options. |
| | | #@TestPreamble none |
| | | #@TestStep Do an encode-password with listSchemes and |
| | | authPasswordSyntax options. |
| | | #@TestPostamble none |
| | | #@TestResult Success if encode-password returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('encode-password: list available authPasswordSyntax schemes')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'encode-password: list available authPasswordSyntax schemes' |
| | | </message> |
| | | |
| | | <call function="'encodePasswordWithScript'"> |
| | | { |
| | | 'listSchemes' : 'True' , |
| | | 'authPwdSyntax' : 'True' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'SHA1' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'MD5' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker encode-password check behavior tests |
| | | #@TestName encode-password: encode clear-text pwd |
| | | #@TestIssue none |
| | | #@TestPurpose Test encode-password to encode clear-text pwd. |
| | | #@TestPreamble none |
| | | #@TestStep Do an encode-password to encode clear-text pwd |
| | | #@TestStep Remove schemes tag from pwd for next testcases |
| | | #@TestPostamble none |
| | | #@TestResult Success if encode-password returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('encode-password: encode clear-text pwd')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'encode-password: encode clear-text pwd' |
| | | </message> |
| | | |
| | | <call function="'encodePasswordWithScript'"> |
| | | { |
| | | 'clearPwd' : 'mypassword' , |
| | | 'storageScheme' : 'SSHA' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | cmdResult = returnString.split(':') |
| | | pwd = cmdResult[1].strip().replace('{SSHA}', '') |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'Encoded Password:' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker encode-password check behavior tests |
| | | #@TestName encode-password: encode clear-text pwd using |
| | | authPasswordSyntax |
| | | #@TestIssue none |
| | | #@TestPurpose Test encode-password to encode clear-text pwd |
| | | using authPasswordSyntax. |
| | | #@TestPreamble none |
| | | #@TestStep Do an encode-password to encode clear-text |
| | | with -a option. |
| | | #@TestPostamble none |
| | | #@TestResult Success if encode-password returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('encode-password: encode clear-text pwd using authPasswordSyntax')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'encode-password: encode clear-text pwd using \ |
| | | authPasswordSyntax' |
| | | </message> |
| | | |
| | | <call function="'encodePasswordWithScript'"> |
| | | { |
| | | 'clearPwd' : 'mypassword' , |
| | | 'storageScheme' : 'SHA1' , |
| | | 'authPwdSyntax' : 'True' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | cmdResult = returnString.split(':') |
| | | pwd2 = cmdResult[1].strip().replace('"', '') |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'Encoded Password:' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker encode-password check behavior tests |
| | | #@TestName encode-password: compare pwds |
| | | #@TestIssue none |
| | | #@TestPurpose Test encode-password to compare pwds. |
| | | #@TestPreamble none |
| | | #@TestStep Do an encode-password to compare pwds without |
| | | storageScheme option |
| | | #@TestStep Do an encode-password to compare good pwds with |
| | | storageSchema option |
| | | #@TestStep Do an encode-password to compare bad pws with |
| | | storageSchema option |
| | | #@TestPostamble none |
| | | #@TestResult Success if encode-password returns 1 for the |
| | | fisrt test and 0 otherwise, and if the outputs |
| | | are corrects. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('encode-password: compare pwd')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'encode-password: comparison error' |
| | | </message> |
| | | |
| | | <call function="'encodePasswordWithScript'"> |
| | | { |
| | | 'clearPwd' : 'mypassword' , |
| | | 'encodedPwd' : pwd , |
| | | 'expectedRC' : 1 |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'No password storage scheme was specified' |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | 'encode-password: comparison successful' |
| | | </message> |
| | | |
| | | <call function="'encodePasswordWithScript'"> |
| | | { |
| | | 'clearPwd' : 'mypassword' , |
| | | 'encodedPwd' : pwd , |
| | | 'storageScheme' : 'SSHA' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | msg = 'The provided clear-text and encoded passwords match' |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : msg |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | 'encode-password: comparison unsuccessful' |
| | | </message> |
| | | |
| | | <call function="'encodePasswordWithScript'"> |
| | | { |
| | | 'clearPwd' : 'password' , |
| | | 'encodedPwd' : pwd , |
| | | 'storageScheme' : 'SSHA' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | msg='The provided clear-text and encoded passwords do not match' |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : msg |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker encode-password check behavior tests |
| | | #@TestName encode-password: compare pwds encoded with |
| | | -a option |
| | | #@TestIssue none |
| | | #@TestPurpose Test encode-password to compare pwds encoded |
| | | with -a option. |
| | | #@TestPreamble none |
| | | #@TestStep Do an encode-password to compare pwds without |
| | | -a option and with -r option |
| | | #@TestStep Do an encode-password to compare good pwds with |
| | | -a and -r options |
| | | #@TestStep Do an encode-password to compare bad pws with |
| | | -a and -r options |
| | | #@TestPostamble none |
| | | #@TestResult Success if encode-password returns 1 for the |
| | | fisrt test, 6 when the comparison is successful, |
| | | 5 when the comparison is unsuccessful, and if the |
| | | outputs are corrects. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('encode-password: compare pwd with -r option')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'encode-password: comparison error' |
| | | </message> |
| | | |
| | | <call function="'encodePasswordWithScript'"> |
| | | { |
| | | 'clearPwd' : 'mypassword' , |
| | | 'encodedPwd' : pwd2 , |
| | | 'useCmpRC' : 'True' , |
| | | 'expectedRC' : 1 |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'No password storage scheme was specified' |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | 'encode-password: comparison successful' |
| | | </message> |
| | | |
| | | <call function="'encodePasswordWithScript'"> |
| | | { |
| | | 'clearPwd' : 'mypassword' , |
| | | 'encodedPwd' : pwd2 , |
| | | 'authPwdSyntax' : 'True' , |
| | | 'useCmpRC' : 'True' , |
| | | 'expectedRC' : 6 |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | msg = 'The provided clear-text and encoded passwords match' |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : msg |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | 'encode-password: comparison unsuccessful' |
| | | </message> |
| | | |
| | | <call function="'encodePasswordWithScript'"> |
| | | { |
| | | 'clearPwd' : 'password' , |
| | | 'encodedPwd' : pwd2 , |
| | | 'authPwdSyntax' : 'True' , |
| | | 'useCmpRC' : 'True' , |
| | | 'expectedRC' : 5 |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | msg='The provided clear-text and encoded passwords do not match' |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : msg |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker encode-password check behavior tests |
| | | #@TestName encode-password: compare pwds using files |
| | | #@TestIssue none |
| | | #@TestPurpose Test encode-password to compare password using |
| | | files. |
| | | #@TestPreamble none |
| | | #@TestStep Do an encode-password to compare good pwds |
| | | stored in files and using -r option. |
| | | #@TestPostamble none |
| | | #@TestResult Success if encode-password returns 6 and the |
| | | output is correct. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('encode-password: compare pwd using file')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'encode-password: comparison successful' |
| | | </message> |
| | | |
| | | <call function="'encodePasswordWithScript'"> |
| | | { |
| | | 'clearPwdFile' : clearFile , |
| | | 'encodedPwdFile' : encodedFile , |
| | | 'useCmpRC' : 'True' , |
| | | 'expectedRC' : 6 |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | msg = 'The provided clear-text and encoded passwords match' |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : msg |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | | </sequence> |
| | | <try> |
| | | |
| | | <sequence> |
| | | |
| | | <!--- Test Suite information |
| | | #@TestSuiteName encode-password check behavior tests |
| | | #@TestSuitePurpose Test the results of the encode-password command. |
| | | #@TestSuiteGroup encode-password check behavior tests |
| | | #@TestScript clu_encode-password_checkbehavior.xml |
| | | --> |
| | | |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group'] = 'clu' |
| | | CurrentTestPath['suite'] = STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <call function="'common_setup'"> |
| | | { |
| | | 'quickStart' : False , |
| | | 'loadData' : True , |
| | | 'ldifFile' : '%s/clu/clu_start.ldif' % remote.data , |
| | | 'startServer' : True , |
| | | 'stopServer' : False , |
| | | 'allowPreEncodePassword' : True |
| | | } |
| | | </call> |
| | | |
| | | <!--- Define default value for clearFile and encodedFile --> |
| | | <script> |
| | | clearFile = '%s/clu/clear_password.ref' % remote.data |
| | | encodedFile = '%s/clu/encoded_password.ref' % remote.data |
| | | </script> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker encode-password check behavior tests |
| | | #@TestName encode-password: list available schemes |
| | | #@TestIssue none |
| | | #@TestPurpose Test encode-password with listSchemes option. |
| | | #@TestPreamble none |
| | | #@TestStep Do an encode-password with listSchemes option. |
| | | #@TestPostamble none |
| | | #@TestResult Success if encode-password returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('encode-password: list available schemes')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'encode-password: list available schemes' |
| | | </message> |
| | | |
| | | <call function="'encodePasswordWithScript'"> |
| | | { |
| | | 'listSchemes' : 'True' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'SSHA' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'MD5' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker encode-password check behavior tests |
| | | #@TestName encode-password: list available |
| | | authPasswordSyntax schemes |
| | | #@TestIssue none |
| | | #@TestPurpose Test encode-password with listSchemes and |
| | | authPasswordSyntax options. |
| | | #@TestPreamble none |
| | | #@TestStep Do an encode-password with listSchemes and |
| | | authPasswordSyntax options. |
| | | #@TestPostamble none |
| | | #@TestResult Success if encode-password returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('encode-password: list available authPasswordSyntax schemes')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'encode-password: list available authPasswordSyntax schemes' |
| | | </message> |
| | | |
| | | <call function="'encodePasswordWithScript'"> |
| | | { |
| | | 'listSchemes' : 'True' , |
| | | 'authPwdSyntax' : 'True' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'SHA1' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'MD5' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker encode-password check behavior tests |
| | | #@TestName encode-password: encode clear-text pwd |
| | | #@TestIssue none |
| | | #@TestPurpose Test encode-password to encode clear-text pwd. |
| | | #@TestPreamble none |
| | | #@TestStep Do an encode-password to encode clear-text pwd |
| | | #@TestStep Remove schemes tag from pwd for next testcases |
| | | #@TestPostamble none |
| | | #@TestResult Success if encode-password returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('encode-password: encode clear-text pwd')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'encode-password: encode clear-text pwd' |
| | | </message> |
| | | |
| | | <call function="'encodePasswordWithScript'"> |
| | | { |
| | | 'clearPwd' : 'mypassword' , |
| | | 'storageScheme' : 'SSHA' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | cmdResult = returnString.split(':') |
| | | pwd = cmdResult[1].strip().replace('{SSHA}', '') |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'Encoded Password:' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker encode-password check behavior tests |
| | | #@TestName encode-password: encode clear-text pwd using |
| | | authPasswordSyntax |
| | | #@TestIssue none |
| | | #@TestPurpose Test encode-password to encode clear-text pwd |
| | | using authPasswordSyntax. |
| | | #@TestPreamble none |
| | | #@TestStep Do an encode-password to encode clear-text |
| | | with -a option. |
| | | #@TestPostamble none |
| | | #@TestResult Success if encode-password returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('encode-password: encode clear-text pwd using authPasswordSyntax')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'encode-password: encode clear-text pwd using \ |
| | | authPasswordSyntax' |
| | | </message> |
| | | |
| | | <call function="'encodePasswordWithScript'"> |
| | | { |
| | | 'clearPwd' : 'mypassword' , |
| | | 'storageScheme' : 'SHA1' , |
| | | 'authPwdSyntax' : 'True' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | cmdResult = returnString.split(':') |
| | | pwd2 = cmdResult[1].strip().replace('"', '') |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'Encoded Password:' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker encode-password check behavior tests |
| | | #@TestName encode-password: compare pwds |
| | | #@TestIssue none |
| | | #@TestPurpose Test encode-password to compare pwds. |
| | | #@TestPreamble none |
| | | #@TestStep Do an encode-password to compare pwds without |
| | | storageScheme option |
| | | #@TestStep Do an encode-password to compare good pwds with |
| | | storageSchema option |
| | | #@TestStep Do an encode-password to compare bad pws with |
| | | storageSchema option |
| | | #@TestPostamble none |
| | | #@TestResult Success if encode-password returns 1 for the |
| | | fisrt test and 0 otherwise, and if the outputs |
| | | are corrects. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('encode-password: compare pwd')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'encode-password: comparison error' |
| | | </message> |
| | | |
| | | <call function="'encodePasswordWithScript'"> |
| | | { |
| | | 'clearPwd' : 'mypassword' , |
| | | 'encodedPwd' : pwd , |
| | | 'expectedRC' : 1 |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'No password storage scheme was specified' |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | 'encode-password: comparison successful' |
| | | </message> |
| | | |
| | | <call function="'encodePasswordWithScript'"> |
| | | { |
| | | 'clearPwd' : 'mypassword' , |
| | | 'encodedPwd' : pwd , |
| | | 'storageScheme' : 'SSHA' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | msg = 'The provided clear-text and encoded passwords match' |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : msg |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | 'encode-password: comparison unsuccessful' |
| | | </message> |
| | | |
| | | <call function="'encodePasswordWithScript'"> |
| | | { |
| | | 'clearPwd' : 'password' , |
| | | 'encodedPwd' : pwd , |
| | | 'storageScheme' : 'SSHA' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | msg='The provided clear-text and encoded passwords do not match' |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : msg |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker encode-password check behavior tests |
| | | #@TestName encode-password: compare pwds encoded with |
| | | -a option |
| | | #@TestIssue none |
| | | #@TestPurpose Test encode-password to compare pwds encoded |
| | | with -a option. |
| | | #@TestPreamble none |
| | | #@TestStep Do an encode-password to compare pwds without |
| | | -a option and with -r option |
| | | #@TestStep Do an encode-password to compare good pwds with |
| | | -a and -r options |
| | | #@TestStep Do an encode-password to compare bad pws with |
| | | -a and -r options |
| | | #@TestPostamble none |
| | | #@TestResult Success if encode-password returns 1 for the |
| | | fisrt test, 6 when the comparison is successful, |
| | | 5 when the comparison is unsuccessful, and if the |
| | | outputs are corrects. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('encode-password: compare pwd with -r option')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'encode-password: comparison error' |
| | | </message> |
| | | |
| | | <call function="'encodePasswordWithScript'"> |
| | | { |
| | | 'clearPwd' : 'mypassword' , |
| | | 'encodedPwd' : pwd2 , |
| | | 'useCmpRC' : 'True' , |
| | | 'expectedRC' : 1 |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'No password storage scheme was specified' |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | 'encode-password: comparison successful' |
| | | </message> |
| | | |
| | | <call function="'encodePasswordWithScript'"> |
| | | { |
| | | 'clearPwd' : 'mypassword' , |
| | | 'encodedPwd' : pwd2 , |
| | | 'authPwdSyntax' : 'True' , |
| | | 'useCmpRC' : 'True' , |
| | | 'expectedRC' : 6 |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | msg = 'The provided clear-text and encoded passwords match' |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : msg |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | 'encode-password: comparison unsuccessful' |
| | | </message> |
| | | |
| | | <call function="'encodePasswordWithScript'"> |
| | | { |
| | | 'clearPwd' : 'password' , |
| | | 'encodedPwd' : pwd2 , |
| | | 'authPwdSyntax' : 'True' , |
| | | 'useCmpRC' : 'True' , |
| | | 'expectedRC' : 5 |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | msg='The provided clear-text and encoded passwords do not match' |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : msg |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker encode-password check behavior tests |
| | | #@TestName encode-password: compare pwds using files |
| | | #@TestIssue none |
| | | #@TestPurpose Test encode-password to compare password using |
| | | files. |
| | | #@TestPreamble none |
| | | #@TestStep Do an encode-password to compare good pwds |
| | | stored in files and using -r option. |
| | | #@TestPostamble none |
| | | #@TestResult Success if encode-password returns 6 and the |
| | | output is correct. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('encode-password: compare pwd using file')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'encode-password: comparison successful' |
| | | </message> |
| | | |
| | | <call function="'encodePasswordWithScript'"> |
| | | { |
| | | 'clearPwdFile' : clearFile , |
| | | 'encodedPwdFile' : encodedFile , |
| | | 'useCmpRC' : 'True' , |
| | | 'expectedRC' : 6 |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | msg = 'The provided clear-text and encoded passwords match' |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : msg |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | </sequence> |
| | | |
| | | <finally> |
| | | <sequence> |
| | | <!-- Test Suite Cleanup --> |
| | | <message>'Finally: Global CLU Cleanup.'</message> |
| | | <try> |
| | | <call function="'common_cleanup'" /> |
| | | <catch exception="'STAFException'"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message> |
| | | </sequence> |
| | | </catch> |
| | | <finally> |
| | | <call function="'testSuite_Postamble'"/> |
| | | </finally> |
| | | </try> |
| | | </sequence> |
| | | </finally> |
| | | |
| | | </try> |
| | | |
| | | </block> |
| | | |
| | | </sequence> |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | <sequence> |
| | | |
| | | <block name="'clu_ldapcompare_checkbehavior'"> |
| | | |
| | | <try> |
| | | |
| | | <sequence> |
| | | |
| | | <!--- Test Suite information |
| | | #@TestSuiteName ldapcompare check behavior tests |
| | | #@TestSuitePurpose Test the results of the ldapcompare command. |
| | | #@TestSuiteGroup ldapcompare check behavior tests |
| | | #@TestScript clu_ldapcompare_checkresults.xml |
| | | --> |
| | | |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group'] = 'clu' |
| | | CurrentTestPath['suite'] = STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <!--- Define default value for dsdn --> |
| | | <script> |
| | | dsdn = 'uid=user.0,ou=ldapcompare,o=clu tests,dc=example,dc=com' |
| | | </script> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapcompare check behavior tests |
| | | #@TestName ldapcompare: comparison successful |
| | | #@TestIssue 2761 |
| | | #@TestPurpose Verify that the operation is successful and |
| | | that the comparison is successful. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapcompare with correct options. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapcompare returns 6. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapcompare: comparison successful')"> |
| | | <sequence> |
| | | |
| | | <!--- Test Suite information |
| | | #@TestSuiteName ldapcompare check behavior tests |
| | | #@TestSuitePurpose Test the results of the ldapcompare command. |
| | | #@TestSuiteGroup ldapcompare check behavior tests |
| | | #@TestScript clu_ldapcompare_checkresults.xml |
| | | --> |
| | | |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group'] = 'clu' |
| | | CurrentTestPath['suite'] = STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <call function="'common_setup'"> |
| | | { |
| | | 'quickStart' : False , |
| | | 'loadData' : True , |
| | | 'ldifFile' : '%s/clu/clu_start.ldif' % remote.data , |
| | | 'startServer' : True , |
| | | 'stopServer' : False , |
| | | 'allowPreEncodePassword' : True |
| | | } |
| | | </call> |
| | | |
| | | <!--- Define default value for dsdn --> |
| | | <script> |
| | | dsdn = 'uid=user.0,ou=ldapcompare,o=clu tests,dc=example,dc=com' |
| | | </script> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapcompare check behavior tests |
| | | #@TestName ldapcompare: comparison successful |
| | | #@TestIssue 2761 |
| | | #@TestPurpose Verify that the operation is successful and |
| | | that the comparison is successful. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapcompare with correct options. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapcompare returns 6. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapcompare: comparison successful')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapcompare: comparison successful' |
| | | </message> |
| | | |
| | | <call function="'ldapCompareWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsDn' : ['postalCode:63792' , |
| | | '%s' % dsdn] , |
| | | 'expectedRC' : 6, |
| | | 'knownIssue' : '2761' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapcompare check behavior tests |
| | | #@TestName ldapcompare: comparison unsuccessful |
| | | #@TestIssue 2761 |
| | | #@TestPurpose Verify that the operation is successful and |
| | | that the comparison is unsuccessful. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapcompare with correct options. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapcompare returns 5. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapcompare: comparison unsuccessful')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapcompare: comparison unsuccessful' |
| | | </message> |
| | | |
| | | <call function="'ldapCompareWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsDn' : ['postalCode:00000' , |
| | | '%s' % dsdn] , |
| | | 'expectedRC' : 5, |
| | | 'knownIssue' : '2761' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | </sequence> |
| | | |
| | | <finally> |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapcompare: comparison successful' |
| | | </message> |
| | | |
| | | <call function="'ldapCompareWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsDn' : ['postalCode:63792' , |
| | | '%s' % dsdn] , |
| | | 'expectedRC' : 6, |
| | | 'knownIssue' : '2761' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | <!-- Test Suite Cleanup --> |
| | | <message>'Finally: Global CLU Cleanup.'</message> |
| | | <try> |
| | | <call function="'common_cleanup'" /> |
| | | <catch exception="'STAFException'"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message> |
| | | </sequence> |
| | | </catch> |
| | | <finally> |
| | | <call function="'testSuite_Postamble'"/> |
| | | </finally> |
| | | </try> |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | </finally> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapcompare check behavior tests |
| | | #@TestName ldapcompare: comparison unsuccessful |
| | | #@TestIssue 2761 |
| | | #@TestPurpose Verify that the operation is successful and |
| | | that the comparison is unsuccessful. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapcompare with correct options. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapcompare returns 5. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapcompare: comparison unsuccessful')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapcompare: comparison unsuccessful' |
| | | </message> |
| | | |
| | | <call function="'ldapCompareWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsDn' : ['postalCode:00000' , |
| | | '%s' % dsdn] , |
| | | 'expectedRC' : 5, |
| | | 'knownIssue' : '2761' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | | </sequence> |
| | | </try> |
| | | |
| | | </block> |
| | | |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | <sequence> |
| | | |
| | | <block name="'clu_ldapdelete_checkbehavior'"> |
| | | |
| | | <sequence> |
| | | |
| | | <!--- Test Suite information |
| | | #@TestSuiteName ldapdelete check behavior tests |
| | | #@TestSuitePurpose Test the results of the ldapdelete command. |
| | | #@TestSuiteGroup ldapdelete check behavior tests |
| | | #@TestScript clu_ldapdelete_checkresults.xml |
| | | --> |
| | | |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group'] = 'clu' |
| | | CurrentTestPath['suite'] = STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <!--- Define default value for basedn, dsfilter and dsdn --> |
| | | <script> |
| | | basedn = 'ou=ldapdelete,o=clu tests,dc=example,dc=com' |
| | | dsfilter = 'uid=user.0' |
| | | dsdn = '%s,%s' % (dsfilter , basedn) |
| | | </script> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapdelete check behavior tests |
| | | #@TestName ldapdelete: delete an entry |
| | | #@TestIssue none |
| | | #@TestPurpose Test ldapdelete with correct options. |
| | | #@TestPreamble none |
| | | #@TestStep Check using ldapsearch that "uid=user.0" |
| | | entry is present. |
| | | #@TestStep Delete this entry using ldapdelete. |
| | | #@TestStep Check using ldapsearch that this entry is no |
| | | more present. |
| | | #@TestPostamble none |
| | | #@TestResult Success if the "uid=user.0" entry is deleted. |
| | | --> |
| | | <!-- Active RC check once the TDB issue will be fixed --> |
| | | <testcase name="getTestCaseName('ldapdelete: delete an entry')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapdelete: delete an entry' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsCountEntries' : 'True' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter , |
| | | 'expectedRC' : 'noCheck' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'Total number of matching entries: 1' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'ldapDeleteWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsDn' : ['%s' % dsdn] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsCountEntries' : 'True' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter , |
| | | 'expectedRC' : 'noCheck' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'Total number of matching entries: 0' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | <try> |
| | | |
| | | <sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | | </sequence> |
| | | <!--- Test Suite information |
| | | #@TestSuiteName ldapdelete check behavior tests |
| | | #@TestSuitePurpose Test the results of the ldapdelete command. |
| | | #@TestSuiteGroup ldapdelete check behavior tests |
| | | #@TestScript clu_ldapdelete_checkresults.xml |
| | | --> |
| | | |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group'] = 'clu' |
| | | CurrentTestPath['suite'] = STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <call function="'common_setup'"> |
| | | { |
| | | 'quickStart' : False , |
| | | 'loadData' : True , |
| | | 'ldifFile' : '%s/clu/clu_start.ldif' % remote.data , |
| | | 'startServer' : True , |
| | | 'stopServer' : False , |
| | | 'allowPreEncodePassword' : True |
| | | } |
| | | </call> |
| | | |
| | | <!--- Define default value for basedn, dsfilter and dsdn --> |
| | | <script> |
| | | basedn = 'ou=ldapdelete,o=clu tests,dc=example,dc=com' |
| | | dsfilter = 'uid=user.0' |
| | | dsdn = '%s,%s' % (dsfilter , basedn) |
| | | </script> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapdelete check behavior tests |
| | | #@TestName ldapdelete: delete an entry |
| | | #@TestIssue none |
| | | #@TestPurpose Test ldapdelete with correct options. |
| | | #@TestPreamble none |
| | | #@TestStep Check using ldapsearch that "uid=user.0" |
| | | entry is present. |
| | | #@TestStep Delete this entry using ldapdelete. |
| | | #@TestStep Check using ldapsearch that this entry is no |
| | | more present. |
| | | #@TestPostamble none |
| | | #@TestResult Success if the "uid=user.0" entry is deleted. |
| | | --> |
| | | <!-- Active RC check once the TDB issue will be fixed --> |
| | | <testcase name="getTestCaseName('ldapdelete: delete an entry')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapdelete: delete an entry' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsCountEntries' : 'True' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter , |
| | | 'expectedRC' : 'noCheck' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'Total number of matching entries: 1' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'ldapDeleteWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsDn' : ['%s' % dsdn] |
| | | } |
| | | </call> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsCountEntries' : 'True' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter , |
| | | 'expectedRC' : 'noCheck' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'Total number of matching entries: 0' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | </sequence> |
| | | |
| | | <finally> |
| | | <sequence> |
| | | <!-- Test Suite Cleanup --> |
| | | <message>'Finally: Global CLU Cleanup.'</message> |
| | | <try> |
| | | <call function="'common_cleanup'" /> |
| | | <catch exception="'STAFException'"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message> |
| | | </sequence> |
| | | </catch> |
| | | <finally> |
| | | <call function="'testSuite_Postamble'"/> |
| | | </finally> |
| | | </try> |
| | | </sequence> |
| | | </finally> |
| | | |
| | | </try> |
| | | |
| | | </block> |
| | | |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | <sequence> |
| | | |
| | | <block name="'clu_ldapmodify_checkbehavior'"> |
| | | |
| | | <sequence> |
| | | |
| | | <!--- Test Suite information |
| | | #@TestSuiteName ldapmodify check behavior tests |
| | | #@TestSuitePurpose Test the results of the ldapmodify command. |
| | | #@TestSuiteGroup ldapmodify check bahavior tests |
| | | #@TestScript clu_ldapmodify_checkbehavior.xml |
| | | --> |
| | | |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group'] = 'clu' |
| | | CurrentTestPath['suite'] = STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <!--- Define default value for basedn and dsfilename --> |
| | | <script> |
| | | basedn = 'ou=ldapmodify,o=clu tests,dc=example,dc=com' |
| | | dsfilename = '%s/clu/ldapmodify_checkbehavior.ldif' \ |
| | | % remote.data |
| | | </script> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapmodify check behavior tests |
| | | #@TestName ldapmodify: change attribute value |
| | | #@TestIssue none |
| | | #@TestPurpose Verify that the operation is successful and |
| | | that the attribute value has been modified. |
| | | #@TestPreamble none |
| | | #@TestStep Check that the "postCode" value for "uid=user.1" |
| | | is 93520. |
| | | #@TestStep Modify the "postalCode" value using ldapmodify. |
| | | #@TestStep Check that the "postCode" value for "uid=user.1" |
| | | is 70000. |
| | | #@TestPostamble none |
| | | #@TestResult Success if the "postalCode" value is 70000. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapmodify: change attribute value')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapmodify: change attribute value' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.1' , |
| | | 'dsAttributes' : 'postalCode' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'postalCode: 93520' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'ldapModifyWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsFilename' : dsfilename |
| | | } |
| | | </call> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.1' , |
| | | 'dsAttributes' : 'postalCode' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'postalCode: 70000' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | <try> |
| | | |
| | | <sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | | </sequence> |
| | | <!--- Test Suite information |
| | | #@TestSuiteName ldapmodify check behavior tests |
| | | #@TestSuitePurpose Test the results of the ldapmodify command. |
| | | #@TestSuiteGroup ldapmodify check bahavior tests |
| | | #@TestScript clu_ldapmodify_checkbehavior.xml |
| | | --> |
| | | |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group'] = 'clu' |
| | | CurrentTestPath['suite'] = STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <call function="'common_setup'"> |
| | | { |
| | | 'quickStart' : False , |
| | | 'loadData' : True , |
| | | 'ldifFile' : '%s/clu/clu_start.ldif' % remote.data , |
| | | 'startServer' : True , |
| | | 'stopServer' : False , |
| | | 'allowPreEncodePassword' : True |
| | | } |
| | | </call> |
| | | |
| | | <!--- Define default value for basedn and dsfilename --> |
| | | <script> |
| | | basedn = 'ou=ldapmodify,o=clu tests,dc=example,dc=com' |
| | | dsfilename = '%s/clu/ldapmodify_checkbehavior.ldif' \ |
| | | % remote.data |
| | | </script> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapmodify check behavior tests |
| | | #@TestName ldapmodify: change attribute value |
| | | #@TestIssue none |
| | | #@TestPurpose Verify that the operation is successful and |
| | | that the attribute value has been modified. |
| | | #@TestPreamble none |
| | | #@TestStep Check that the "postCode" value for "uid=user.1" |
| | | is 93520. |
| | | #@TestStep Modify the "postalCode" value using ldapmodify. |
| | | #@TestStep Check that the "postCode" value for "uid=user.1" |
| | | is 70000. |
| | | #@TestPostamble none |
| | | #@TestResult Success if the "postalCode" value is 70000. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapmodify: change attribute value')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapmodify: change attribute value' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.1' , |
| | | 'dsAttributes' : 'postalCode' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'postalCode: 93520' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'ldapModifyWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsFilename' : dsfilename |
| | | } |
| | | </call> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.1' , |
| | | 'dsAttributes' : 'postalCode' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'postalCode: 70000' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | </sequence> |
| | | |
| | | <finally> |
| | | <sequence> |
| | | <!-- Test Suite Cleanup --> |
| | | <message>'Finally: Global CLU Cleanup.'</message> |
| | | <try> |
| | | <call function="'common_cleanup'" /> |
| | | <catch exception="'STAFException'"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message> |
| | | </sequence> |
| | | </catch> |
| | | <finally> |
| | | <call function="'testSuite_Postamble'"/> |
| | | </finally> |
| | | </try> |
| | | </sequence> |
| | | </finally> |
| | | |
| | | </try> |
| | | |
| | | </block> |
| | | |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | <sequence> |
| | | |
| | | <block name="'clu_ldapmodify_checkoptions'"> |
| | | |
| | | <try> |
| | | |
| | | <sequence> |
| | | |
| | | <!--- Test Suite information |
| | | #@TestSuiteName ldapmodify check options tests |
| | | #@TestSuitePurpose Check the ldapmodify command with |
| | | common options and input/output options. |
| | | #@TestSuiteGroup ldapmodify check options tests |
| | | #@TestScript clu_ldapmodify_checkoptions.xml |
| | | --> |
| | | |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group'] = 'clu' |
| | | CurrentTestPath['suite'] = STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <!--- Define default value for dsfilename --> |
| | | <script> |
| | | dsfilename = '%s/clu/ldapmodify_checkoptions.ldif' \ |
| | | % remote.data |
| | | </script> |
| | | |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapmodify check options tests |
| | | #@TestName ldapmodify: correct options |
| | | #@TestIssue none |
| | | #@TestPurpose Test ldapmodify with correct options. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapmodify with correct options. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapmodify returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapmodify: correct options')"> |
| | | <sequence> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapmodify: correct options' |
| | | </message> |
| | | |
| | | <call function="'ldapModifyWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsFilename' : dsfilename |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | <!--- Test Suite information |
| | | #@TestSuiteName ldapmodify check options tests |
| | | #@TestSuitePurpose Check the ldapmodify command with |
| | | common options and input/output options. |
| | | #@TestSuiteGroup ldapmodify check options tests |
| | | #@TestScript clu_ldapmodify_checkoptions.xml |
| | | --> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapmodify check options tests |
| | | #@TestName ldapmodify: empty hostname |
| | | #@TestIssue 2619 |
| | | #@TestPurpose Verify a parameter error doing an ldapmodify. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapmodify with an empty hostname. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapmodify returns 89. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapmodify: empty hostname')"> |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group'] = 'clu' |
| | | CurrentTestPath['suite'] = STAXCurrentBlock |
| | | </script> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapmodify: empty hostname' |
| | | </message> |
| | | |
| | | <call function="'ldapModifyWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : ' ', |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsFilename' : dsfilename , |
| | | 'expectedRC' : 89, |
| | | 'knownIssue' : '2619' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapmodify check options tests |
| | | #@TestName ldapmodify: invalid hostname |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a connection error doing an ldapmodify. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapmodify with an invalid hostname. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapmodify returns 91. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapmodify: invalid hostname')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapmodify: invalid hostname' |
| | | </message> |
| | | |
| | | <call function="'ldapModifyWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : 'bad_host' , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsAdd' : '' , |
| | | 'dsFilename' : dsfilename , |
| | | 'expectedRC' : 91 |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapmodify check options tests |
| | | #@TestName ldapmodify: invalid port (bad_port) |
| | | #@TestIssue 2619 |
| | | #@TestPurpose Verify a parameter error doing an ldapmodify. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapmodify with an invalid port. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapmodify returns 89. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapmodify: invalid port (bad_port)')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapmodify: invalid port (bad_port)' |
| | | </message> |
| | | |
| | | <call function="'ldapModifyWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : 'bad_port' , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsFilename' : dsfilename , |
| | | 'expectedRC' : 89 , |
| | | 'knownIssue' : '2619' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapmodify check options tests |
| | | #@TestName ldapmodify: invalid port (-1) |
| | | #@TestIssue 2762 |
| | | #@TestPurpose Verify a parameter error doing an ldapmodify. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapmodify with an invalid port. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapmodify returns 89. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapmodify: invalid port (-1)')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapmodify: invalid port (-1)' |
| | | </message> |
| | | |
| | | <call function="'ldapModifyWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : -1 , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsFilename' : dsfilename , |
| | | 'expectedRC' : 89 , |
| | | 'knownIssue' : '2762' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapmodify check options tests |
| | | #@TestName ldapmodify: no binddn |
| | | #@TestIssue none |
| | | #@TestPurpose Verify an insufficient access rights error |
| | | doing an ldapmodify. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapmodify with no binddn. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapmodify returns 50. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapmodify: no binddn')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapmodify: no binddn' |
| | | </message> |
| | | |
| | | <call function="'ldapModifyWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsFilename' : dsfilename , |
| | | 'expectedRC' : 50 |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapmodify check options tests |
| | | #@TestName ldapmodify: invalid binddn |
| | | #@TestIssue none |
| | | #@TestPurpose Verify an invalid credentials error |
| | | doing an ldapmodify. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapmodify with an invalid binddn. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapmodify returns 49. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapmodify: invalid binddn')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapmodify: invalid binddn' |
| | | </message> |
| | | |
| | | <call function="'ldapModifyWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'cn=bad dn' , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsFilename' : dsfilename , |
| | | 'expectedRC' : 49 |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapmodify check options tests |
| | | #@TestName ldapmodify: no password |
| | | #@TestIssue 2624 |
| | | #@TestPurpose Verify an inappropriate authentication error |
| | | doing an ldapmodify. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapmodify without a password. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapmodify returns 48. |
| | | --> |
| | | <!-- This test is prompting for the password --> |
| | | <!--- Comment out this testcase as it hangs on some platform --> |
| | | <!--- |
| | | <testcase name="getTestCaseName('ldapmodify: no password')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapmodify: no password' |
| | | </message> |
| | | |
| | | <call function="'ldapModifyWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsFilename' : dsfilename , |
| | | 'expectedRC' : 48 , |
| | | 'knownIssue' : '2624' |
| | | } |
| | | </call> |
| | | <call function="'common_setup'"> |
| | | { |
| | | 'quickStart' : False , |
| | | 'loadData' : True , |
| | | 'ldifFile' : '%s/clu/clu_start.ldif' % remote.data , |
| | | 'startServer' : True , |
| | | 'stopServer' : False , |
| | | 'allowPreEncodePassword' : True |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | <!--- Define default value for dsfilename --> |
| | | <script> |
| | | dsfilename = '%s/clu/ldapmodify_checkoptions.ldif' \ |
| | | % remote.data |
| | | </script> |
| | | |
| | | </testcase> |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapmodify check options tests |
| | | #@TestName ldapmodify: invalid password |
| | | #@TestIssue none |
| | | #@TestPurpose Verify an invalid credentials error |
| | | doing an ldapmodify. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapmodify with an invalid password. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapmodify returns 49. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapmodify: invalid password')"> |
| | | |
| | | <sequence> |
| | | <!--- Test Case information |
| | | #@TestMarker ldapmodify check options tests |
| | | #@TestName ldapmodify: correct options |
| | | #@TestIssue none |
| | | #@TestPurpose Test ldapmodify with correct options. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapmodify with correct options. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapmodify returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapmodify: correct options')"> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapmodify: correct options' |
| | | </message> |
| | | |
| | | <call function="'ldapModifyWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsFilename' : dsfilename |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | <message> |
| | | 'ldapmodify: invalid password' |
| | | </message> |
| | | |
| | | <call function="'ldapModifyWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : 'bad_password' , |
| | | 'dsFilename' : dsfilename , |
| | | 'expectedRC' : 49 |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapmodify check options tests |
| | | #@TestName ldapmodify: empty filename |
| | | #@TestIssue 2619 |
| | | #@TestPurpose Verify a parameter error doing an ldapmodify. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapmodify with an empty filename. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapmodify returns 89. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapmodify: empty filename')"> |
| | | <!--- Test Case information |
| | | #@TestMarker ldapmodify check options tests |
| | | #@TestName ldapmodify: empty hostname |
| | | #@TestIssue 2619 |
| | | #@TestPurpose Verify a parameter error doing an ldapmodify. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapmodify with an empty hostname. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapmodify returns 89. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapmodify: empty hostname')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapmodify: empty hostname' |
| | | </message> |
| | | |
| | | <call function="'ldapModifyWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : ' ', |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsFilename' : dsfilename , |
| | | 'expectedRC' : 89, |
| | | 'knownIssue' : '2619' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <sequence> |
| | | <!--- Test Case information |
| | | #@TestMarker ldapmodify check options tests |
| | | #@TestName ldapmodify: invalid hostname |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a connection error doing an ldapmodify. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapmodify with an invalid hostname. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapmodify returns 91. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapmodify: invalid hostname')"> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapmodify: invalid hostname' |
| | | </message> |
| | | |
| | | <call function="'ldapModifyWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : 'bad_host' , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsAdd' : '' , |
| | | 'dsFilename' : dsfilename , |
| | | 'expectedRC' : 91 |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | <message> |
| | | 'ldapmodify: empty filename' |
| | | </message> |
| | | |
| | | <call function="'ldapModifyWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsFilename' : ' ' , |
| | | 'expectedRC' : 89 , |
| | | 'knownIssue' : '2619' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapmodify check options tests |
| | | #@TestName ldapmodify: bad filename |
| | | #@TestIssue 2763 |
| | | #@TestPurpose Verify a parameter error doing an ldapmodify. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapmodify with a bad filename. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapmodify returns 89. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapmodify: bad filename')"> |
| | | <!--- Test Case information |
| | | #@TestMarker ldapmodify check options tests |
| | | #@TestName ldapmodify: invalid port (bad_port) |
| | | #@TestIssue 2619 |
| | | #@TestPurpose Verify a parameter error doing an ldapmodify. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapmodify with an invalid port. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapmodify returns 89. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapmodify: invalid port (bad_port)')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapmodify: invalid port (bad_port)' |
| | | </message> |
| | | |
| | | <call function="'ldapModifyWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : 'bad_port' , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsFilename' : dsfilename , |
| | | 'expectedRC' : 89 , |
| | | 'knownIssue' : '2619' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <sequence> |
| | | <!--- Test Case information |
| | | #@TestMarker ldapmodify check options tests |
| | | #@TestName ldapmodify: invalid port (-1) |
| | | #@TestIssue 2762 |
| | | #@TestPurpose Verify a parameter error doing an ldapmodify. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapmodify with an invalid port. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapmodify returns 89. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapmodify: invalid port (-1)')"> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapmodify: invalid port (-1)' |
| | | </message> |
| | | |
| | | <call function="'ldapModifyWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : -1 , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsFilename' : dsfilename , |
| | | 'expectedRC' : 89 , |
| | | 'knownIssue' : '2762' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | <message> |
| | | 'ldapmodify: bad filename' |
| | | </message> |
| | | |
| | | <call function="'ldapModifyWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsFilename' : 'bad' , |
| | | 'expectedRC' : 89 , |
| | | 'knownIssue' : '2763' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapmodify check options tests |
| | | #@TestName ldapmodify: add entries option |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a parameter doing an ldapmodify. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapmodify with the add entries option. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapmodify returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapmodify: add entries option')"> |
| | | <!--- Test Case information |
| | | #@TestMarker ldapmodify check options tests |
| | | #@TestName ldapmodify: no binddn |
| | | #@TestIssue none |
| | | #@TestPurpose Verify an insufficient access rights error |
| | | doing an ldapmodify. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapmodify with no binddn. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapmodify returns 50. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapmodify: no binddn')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapmodify: no binddn' |
| | | </message> |
| | | |
| | | <call function="'ldapModifyWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsFilename' : dsfilename , |
| | | 'expectedRC' : 50 |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <sequence> |
| | | <!--- Test Case information |
| | | #@TestMarker ldapmodify check options tests |
| | | #@TestName ldapmodify: invalid binddn |
| | | #@TestIssue none |
| | | #@TestPurpose Verify an invalid credentials error |
| | | doing an ldapmodify. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapmodify with an invalid binddn. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapmodify returns 49. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapmodify: invalid binddn')"> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapmodify: invalid binddn' |
| | | </message> |
| | | |
| | | <call function="'ldapModifyWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'cn=bad dn' , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsFilename' : dsfilename , |
| | | 'expectedRC' : 49 |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | <message> |
| | | 'ldapmodify: add entries option' |
| | | </message> |
| | | |
| | | <call function="'ldapModifyWithScript'"> |
| | | { |
| | | 'dsAdd' : 'True' , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsFilename' : dsfilename |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapmodify check options tests |
| | | #@TestName ldapmodify: verbose option |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a parameter doing an ldapmodify. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapmodify with the verbose option. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapmodify returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapmodify: verbose option')"> |
| | | <!--- Test Case information |
| | | #@TestMarker ldapmodify check options tests |
| | | #@TestName ldapmodify: no password |
| | | #@TestIssue 2624 |
| | | #@TestPurpose Verify an inappropriate authentication error |
| | | doing an ldapmodify. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapmodify without a password. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapmodify returns 48. |
| | | --> |
| | | <!-- This test is prompting for the password --> |
| | | <!--- Comment out this testcase as it hangs on some platform --> |
| | | <!--- |
| | | <testcase name="getTestCaseName('ldapmodify: no password')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapmodify: no password' |
| | | </message> |
| | | |
| | | <call function="'ldapModifyWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsFilename' : dsfilename , |
| | | 'expectedRC' : 48 , |
| | | 'knownIssue' : '2624' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapmodify check options tests |
| | | #@TestName ldapmodify: invalid password |
| | | #@TestIssue none |
| | | #@TestPurpose Verify an invalid credentials error |
| | | doing an ldapmodify. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapmodify with an invalid password. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapmodify returns 49. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapmodify: invalid password')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapmodify: invalid password' |
| | | </message> |
| | | |
| | | <call function="'ldapModifyWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : 'bad_password' , |
| | | 'dsFilename' : dsfilename , |
| | | 'expectedRC' : 49 |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <sequence> |
| | | <!--- Test Case information |
| | | #@TestMarker ldapmodify check options tests |
| | | #@TestName ldapmodify: empty filename |
| | | #@TestIssue 2619 |
| | | #@TestPurpose Verify a parameter error doing an ldapmodify. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapmodify with an empty filename. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapmodify returns 89. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapmodify: empty filename')"> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapmodify: empty filename' |
| | | </message> |
| | | |
| | | <call function="'ldapModifyWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsFilename' : ' ' , |
| | | 'expectedRC' : 89 , |
| | | 'knownIssue' : '2619' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | <message> |
| | | 'ldapmodify: verbose option' |
| | | </message> |
| | | |
| | | <call function="'ldapModifyWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsVerbose' : 'True', |
| | | 'dsFilename' : dsfilename |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapmodify check options tests |
| | | #@TestName ldapmodify: continueOnError option |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a parameter doing an ldapmodify. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapmodify with the continueOnError |
| | | option. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapmodify returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapmodify: continueOnError option')"> |
| | | <!--- Test Case information |
| | | #@TestMarker ldapmodify check options tests |
| | | #@TestName ldapmodify: bad filename |
| | | #@TestIssue 2763 |
| | | #@TestPurpose Verify a parameter error doing an ldapmodify. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapmodify with a bad filename. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapmodify returns 89. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapmodify: bad filename')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapmodify: bad filename' |
| | | </message> |
| | | |
| | | <call function="'ldapModifyWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsFilename' : 'bad' , |
| | | 'expectedRC' : 89 , |
| | | 'knownIssue' : '2763' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <sequence> |
| | | <!--- Test Case information |
| | | #@TestMarker ldapmodify check options tests |
| | | #@TestName ldapmodify: add entries option |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a parameter doing an ldapmodify. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapmodify with the add entries option. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapmodify returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapmodify: add entries option')"> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapmodify: add entries option' |
| | | </message> |
| | | |
| | | <call function="'ldapModifyWithScript'"> |
| | | { |
| | | 'dsAdd' : 'True' , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsFilename' : dsfilename |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | <message> |
| | | 'ldapmodify: continueOnError option' |
| | | </message> |
| | | |
| | | <call function="'ldapModifyWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsContinueOnError' : 'True', |
| | | 'dsFilename' : dsfilename |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | </testcase> |
| | | <!--- Test Case information |
| | | #@TestMarker ldapmodify check options tests |
| | | #@TestName ldapmodify: verbose option |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a parameter doing an ldapmodify. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapmodify with the verbose option. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapmodify returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapmodify: verbose option')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapmodify: verbose option' |
| | | </message> |
| | | |
| | | <call function="'ldapModifyWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsVerbose' : 'True', |
| | | 'dsFilename' : dsfilename |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapmodify check options tests |
| | | #@TestName ldapmodify: continueOnError option |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a parameter doing an ldapmodify. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapmodify with the continueOnError |
| | | option. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapmodify returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapmodify: continueOnError option')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapmodify: continueOnError option' |
| | | </message> |
| | | |
| | | <call function="'ldapModifyWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsContinueOnError' : 'True', |
| | | 'dsFilename' : dsfilename |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapmodify check options tests |
| | | #@TestName ldapmodify: help option |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a parameter doing an ldapmodify. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapmodify with the help option. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapmodify returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapmodify: help option')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapmodify: help option' |
| | | </message> |
| | | |
| | | <call function="'ldapModifyWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsHelp' : 'True', |
| | | 'dsFilename' : dsfilename |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | </sequence> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapmodify check options tests |
| | | #@TestName ldapmodify: help option |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a parameter doing an ldapmodify. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapmodify with the help option. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapmodify returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapmodify: help option')"> |
| | | |
| | | <finally> |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapmodify: help option' |
| | | </message> |
| | | |
| | | <call function="'ldapModifyWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsHelp' : 'True', |
| | | 'dsFilename' : dsfilename |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | <!-- Test Suite Cleanup --> |
| | | <message>'Finally: Global CLU Cleanup.'</message> |
| | | <try> |
| | | <call function="'common_cleanup'" /> |
| | | <catch exception="'STAFException'"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message> |
| | | </sequence> |
| | | </catch> |
| | | <finally> |
| | | <call function="'testSuite_Postamble'"/> |
| | | </finally> |
| | | </try> |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | | </sequence> |
| | | </finally> |
| | | |
| | | </try> |
| | | |
| | | </block> |
| | | |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | <sequence> |
| | | |
| | | <block name="'clu_ldappasswordmodify_checkbehavior'"> |
| | | |
| | | <sequence> |
| | | |
| | | <!--- Test Suite information |
| | | #@TestSuiteName ldappasswordmodify check behavior tests |
| | | #@TestSuitePurpose Test the results of ldappasswordmodify |
| | | command. |
| | | #@TestSuiteGroup ldappasswordmodify check behavior tests |
| | | #@TestScript clu_ldappasswordmodify_checkbehavior.xml |
| | | --> |
| | | |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group'] = 'clu' |
| | | CurrentTestPath['suite'] = STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <!--- Define default value for basedn --> |
| | | <script> |
| | | basedn = 'ou=ldappasswordmodify,o=clu tests,dc=example,dc=com' |
| | | </script> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldappasswordmodify check behavior tests |
| | | #@TestName ldappasswordmodify: user can change his |
| | | own pwd |
| | | #@TestIssue none |
| | | #@TestPurpose Verify that a user can change his own |
| | | password. |
| | | #@TestPreamble none |
| | | #@TestStep Check that user.0 can do an ldapsearch. |
| | | #@TestStep Do an ldappasswordmodify to change user |
| | | password. |
| | | #@TestStep Check that user.0 can't do an ldapsearch with |
| | | his old password. |
| | | #@TestStep Check that user.0 can do an ldapsearch with |
| | | his new password. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldappasswordmodify returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldappasswordmodify: user can change his own pwd')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldappasswordmodify: user can change his own pwd' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=user.0,%s' % basedn , |
| | | 'dsInstancePswd' : 'password' , |
| | | 'dsTypesOnly' : 'True' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.*' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'ldapPasswordModifyWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsAuthzID' : 'dn:uid=user.0,%s' % basedn , |
| | | 'dsCurrentPassword' : 'password' , |
| | | 'dsNewPassword' : 'newpassword' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=user.0,%s' % basedn , |
| | | 'dsInstancePswd' : 'password' , |
| | | 'dsTypesOnly' : 'True' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.*' , |
| | | 'expectedRC' : 49 |
| | | } |
| | | </call> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=user.0,%s' % basedn , |
| | | 'dsInstancePswd' : 'newpassword' , |
| | | 'dsTypesOnly' : 'True' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.*' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldappasswordmodify check behavior tests |
| | | #@TestName ldappasswordmodify: user cannot modify pwd for |
| | | another user |
| | | #@TestIssue none |
| | | #@TestPurpose Verify that a user cannot modify the password |
| | | for another user. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldappasswordmodify to change user |
| | | password. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldappasswordmodify returns 50. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldappasswordmodify: user cannot modify pwd for another user')"> |
| | | <try> |
| | | |
| | | <sequence> |
| | | |
| | | <!--- Test Suite information |
| | | #@TestSuiteName ldappasswordmodify check behavior tests |
| | | #@TestSuitePurpose Test the results of ldappasswordmodify |
| | | command. |
| | | #@TestSuiteGroup ldappasswordmodify check behavior tests |
| | | #@TestScript clu_ldappasswordmodify_checkbehavior.xml |
| | | --> |
| | | |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group'] = 'clu' |
| | | CurrentTestPath['suite'] = STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <call function="'common_setup'"> |
| | | { |
| | | 'quickStart' : False , |
| | | 'loadData' : True , |
| | | 'ldifFile' : '%s/clu/clu_start.ldif' % remote.data , |
| | | 'startServer' : True , |
| | | 'stopServer' : False , |
| | | 'allowPreEncodePassword' : True |
| | | } |
| | | </call> |
| | | |
| | | <!--- Define default value for basedn --> |
| | | <script> |
| | | basedn = 'ou=ldappasswordmodify,o=clu tests,dc=example,dc=com' |
| | | </script> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldappasswordmodify check behavior tests |
| | | #@TestName ldappasswordmodify: user can change his |
| | | own pwd |
| | | #@TestIssue none |
| | | #@TestPurpose Verify that a user can change his own |
| | | password. |
| | | #@TestPreamble none |
| | | #@TestStep Check that user.0 can do an ldapsearch. |
| | | #@TestStep Do an ldappasswordmodify to change user |
| | | password. |
| | | #@TestStep Check that user.0 can't do an ldapsearch with |
| | | his old password. |
| | | #@TestStep Check that user.0 can do an ldapsearch with |
| | | his new password. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldappasswordmodify returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldappasswordmodify: user can change his own pwd')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldappasswordmodify: user can change his own pwd' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=user.0,%s' % basedn , |
| | | 'dsInstancePswd' : 'password' , |
| | | 'dsTypesOnly' : 'True' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.*' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'ldapPasswordModifyWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsAuthzID' : 'dn:uid=user.0,%s' % basedn , |
| | | 'dsCurrentPassword' : 'password' , |
| | | 'dsNewPassword' : 'newpassword' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=user.0,%s' % basedn , |
| | | 'dsInstancePswd' : 'password' , |
| | | 'dsTypesOnly' : 'True' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.*' , |
| | | 'expectedRC' : 49 |
| | | } |
| | | </call> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=user.0,%s' % basedn , |
| | | 'dsInstancePswd' : 'newpassword' , |
| | | 'dsTypesOnly' : 'True' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.*' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldappasswordmodify check behavior tests |
| | | #@TestName ldappasswordmodify: user cannot modify pwd for |
| | | another user |
| | | #@TestIssue none |
| | | #@TestPurpose Verify that a user cannot modify the password |
| | | for another user. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldappasswordmodify to change user |
| | | password. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldappasswordmodify returns 50. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldappasswordmodify: user cannot modify pwd for another user')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldappasswordmodify: user cannot modify pwd for another user' |
| | | </message> |
| | | |
| | | <call function="'ldapPasswordModifyWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=user.0,%s' % basedn , |
| | | 'dsInstancePswd' : 'newpassword' , |
| | | 'dsAuthzID' : 'dn:uid=user.1,%s' % basedn , |
| | | 'dsNewPassword' : 'newpassword' , |
| | | 'expectedRC' : 50 |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldappasswordmodify check behavior tests |
| | | #@TestName ldappasswordmodify: DM can modify pwd for |
| | | another user |
| | | #@TestIssue none |
| | | #@TestPurpose Verify that Directory Manager can change the |
| | | password of a user. |
| | | #@TestPreamble none |
| | | #@TestStep Check that user.0 can do an ldapsearch. |
| | | #@TestStep Do an ldappasswordmodify to change user |
| | | password. |
| | | #@TestStep Check that user.0 can't do an ldapsearch with |
| | | his old password. |
| | | #@TestStep Check that user.0 can do an ldapsearch with |
| | | his new password. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldappasswordmodify returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldappasswordmodify: DM can modify pwd for another user')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldappasswordmodify: DM can modify pwd for another user' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=user.1,%s' % basedn , |
| | | 'dsInstancePswd' : 'password' , |
| | | 'dsTypesOnly' : 'True' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.*' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'ldapPasswordModifyWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsAuthzID' : 'dn:uid=user.1,%s' % basedn , |
| | | 'dsNewPassword' : 'newpassword' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=user.,%s' % basedn , |
| | | 'dsInstancePswd' : 'password' , |
| | | 'dsTypesOnly' : 'True' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.*' , |
| | | 'expectedRC' : 49 |
| | | } |
| | | </call> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=user.1,%s' % basedn , |
| | | 'dsInstancePswd' : 'newpassword' , |
| | | 'dsTypesOnly' : 'True' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.*' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | </sequence> |
| | | |
| | | <finally> |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldappasswordmodify: user cannot modify pwd for another user' |
| | | </message> |
| | | |
| | | <call function="'ldapPasswordModifyWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=user.0,%s' % basedn , |
| | | 'dsInstancePswd' : 'newpassword' , |
| | | 'dsAuthzID' : 'dn:uid=user.1,%s' % basedn , |
| | | 'dsNewPassword' : 'newpassword' , |
| | | 'expectedRC' : 50 |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | <!-- Test Suite Cleanup --> |
| | | <message>'Finally: Global CLU Cleanup.'</message> |
| | | <try> |
| | | <call function="'common_cleanup'" /> |
| | | <catch exception="'STAFException'"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message> |
| | | </sequence> |
| | | </catch> |
| | | <finally> |
| | | <call function="'testSuite_Postamble'"/> |
| | | </finally> |
| | | </try> |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldappasswordmodify check behavior tests |
| | | #@TestName ldappasswordmodify: DM can modify pwd for |
| | | another user |
| | | #@TestIssue none |
| | | #@TestPurpose Verify that Directory Manager can change the |
| | | password of a user. |
| | | #@TestPreamble none |
| | | #@TestStep Check that user.0 can do an ldapsearch. |
| | | #@TestStep Do an ldappasswordmodify to change user |
| | | password. |
| | | #@TestStep Check that user.0 can't do an ldapsearch with |
| | | his old password. |
| | | #@TestStep Check that user.0 can do an ldapsearch with |
| | | his new password. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldappasswordmodify returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldappasswordmodify: DM can modify pwd for another user')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldappasswordmodify: DM can modify pwd for another user' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=user.1,%s' % basedn , |
| | | 'dsInstancePswd' : 'password' , |
| | | 'dsTypesOnly' : 'True' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.*' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'ldapPasswordModifyWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsAuthzID' : 'dn:uid=user.1,%s' % basedn , |
| | | 'dsNewPassword' : 'newpassword' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=user.,%s' % basedn , |
| | | 'dsInstancePswd' : 'password' , |
| | | 'dsTypesOnly' : 'True' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.*' , |
| | | 'expectedRC' : 49 |
| | | } |
| | | </call> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=user.1,%s' % basedn , |
| | | 'dsInstancePswd' : 'newpassword' , |
| | | 'dsTypesOnly' : 'True' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.*' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | | </sequence> |
| | | </finally> |
| | | |
| | | </try> |
| | | |
| | | </block> |
| | | |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | <sequence> |
| | | |
| | | <block name="'clu_ldapsearch_checkbehavior'"> |
| | | |
| | | <try> |
| | | |
| | | <sequence> |
| | | |
| | | <!--- Test Suite information |
| | | #@TestSuiteName ldapsearch check behavior tests |
| | | #@TestSuitePurpose Test the results of ldapsearch command. |
| | | #@TestSuiteGroup ldapsearch check behavior tests |
| | | #@TestScript clu_ldapsearch_checkbehavior.xml |
| | | --> |
| | | |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group'] = 'clu' |
| | | CurrentTestPath['suite'] = STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <!--- Define default value for dsdn --> |
| | | <script> |
| | | basedn = 'ou=ldapsearch,o=clu tests,dc=example,dc=com' |
| | | ldifFile = '%s/clu/ldapsearch_checkbehavior.ldif' \ |
| | | % remote.data |
| | | filterfile = '%s/clu/filters.ldif' % remote.data |
| | | mfilterfile = '%s/clu/multiple_filters.ldif' % remote.data |
| | | </script> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check behavior tests |
| | | #@TestName ldapsearch: check number of entries |
| | | #@TestIssue 2764 |
| | | #@TestPurpose Verify that the operation is successful and |
| | | the number of returned entries is correct. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with countEntries option. |
| | | #@TestPostamble none |
| | | #@TestResult Success if the number of entries is 111. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapsearch: check number of entries')"> |
| | | <sequence> |
| | | |
| | | <!--- Test Suite information |
| | | #@TestSuiteName ldapsearch check behavior tests |
| | | #@TestSuitePurpose Test the results of ldapsearch command. |
| | | #@TestSuiteGroup ldapsearch check behavior tests |
| | | #@TestScript clu_ldapsearch_checkbehavior.xml |
| | | --> |
| | | |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group'] = 'clu' |
| | | CurrentTestPath['suite'] = STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <call function="'common_setup'"> |
| | | { |
| | | 'quickStart' : False , |
| | | 'loadData' : True , |
| | | 'ldifFile' : '%s/clu/clu_start.ldif' % remote.data , |
| | | 'startServer' : True , |
| | | 'stopServer' : False , |
| | | 'allowPreEncodePassword' : True |
| | | } |
| | | </call> |
| | | |
| | | <!--- Define default value for dsdn --> |
| | | <script> |
| | | basedn = 'ou=ldapsearch,o=clu tests,dc=example,dc=com' |
| | | ldifFile = '%s/clu/ldapsearch_checkbehavior.ldif' \ |
| | | % remote.data |
| | | filterfile = '%s/clu/filters.ldif' % remote.data |
| | | mfilterfile = '%s/clu/multiple_filters.ldif' % remote.data |
| | | </script> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check behavior tests |
| | | #@TestName ldapsearch: check number of entries |
| | | #@TestIssue 2764 |
| | | #@TestPurpose Verify that the operation is successful and |
| | | the number of returned entries is correct. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with countEntries option. |
| | | #@TestPostamble none |
| | | #@TestResult Success if the number of entries is 111. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapsearch: check number of entries')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: check number of entries' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsTypesOnly' : 'True' , |
| | | 'dsCountEntries' : 'True' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.1*' , |
| | | 'knownIssue' : '2764' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'Total number of matching entries: 111' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check behavior tests |
| | | #@TestName ldapsearch: check behavior with default basedn |
| | | #@TestIssue 2934 |
| | | #@TestPurpose Verify that the number of returned entries is |
| | | correct with a base DN of "". |
| | | #@TestPreamble none |
| | | #@TestStep Add a new basedn (dc=mycom) to userRoot |
| | | backend. |
| | | #@TestStep Import data into this new basedn. |
| | | #@TestStep Do an ldapsearch with a basedn of dc=com and |
| | | check that the number of entries is correct |
| | | #@TestStep Do an ldapsearch with a basedn of dc=mycom and |
| | | check that the number of entries is correct |
| | | #@TestStep Do an ldapsearch with a basedn of "" and check |
| | | that the number of entries is correct (equal |
| | | to: entries of dc=com + entries of dc=mycom) |
| | | #@TestStep Set value of subordinate-base-dn to dc=com |
| | | #@TestStep Do an ldapsearch with a basedn of "" and check |
| | | that the number of entries is correct (equal |
| | | to: entries of dc=com) |
| | | #@TestStep Set value of subordinate-base-dn to dc=mycom |
| | | #@TestStep Do an ldapsearch with a basedn of "" and check |
| | | that the number of entries is correct (equal |
| | | to: entries of dc=mycom) |
| | | #@TestStep Reset value of subordinate-base-dn |
| | | #@TestPostamble none |
| | | #@TestResult Success if OpenDS returns 0 for all ldap |
| | | operations, and if the number entries retuned |
| | | is correct with a basedn of "". |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapsearch: check default basedn')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: add a new base dn to userRoot backend' |
| | | </message> |
| | | |
| | | <call function="'dsconfigSet'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'objectName' : 'backend' , |
| | | 'propertyType' : 'backend' , |
| | | 'propertyName' : DIRECTORY_INSTANCE_BE , |
| | | 'attributeName' : 'base-dn' , |
| | | 'attributeValue' : 'dc=mycom' , |
| | | 'modifyType' : 'add' |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | 'ldapsearch: import data into this new base dn' |
| | | </message> |
| | | |
| | | <call function="'ldapModifyWithScript'"> |
| | | { 'dsAdd' : 'True', |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'dsFilename' : ldifFile, |
| | | 'dsContinueOnError' : 'true', |
| | | 'expectedRC' : 0 |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | 'ldapsearch: check number of entries with a basedn of dc=com' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsCountEntries' : 'True' , |
| | | 'dsBaseDN' : DIRECTORY_INSTANCE_SFX , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'dsAttributes' : 'dn' , |
| | | 'expectedRC' : 'noCheck' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'Total number of matching entries: 1048' |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | 'ldapsearch: check number of entries with a basedn of dc=mycom' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsCountEntries' : 'True' , |
| | | 'dsBaseDN' : 'dc=mycom' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'dsAttributes' : 'dn' , |
| | | 'expectedRC' : 'noCheck' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'Total number of matching entries: 11' |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | 'ldapsearch: check number of entries with a basedn of ""' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsCountEntries' : 'True' , |
| | | 'dsBaseDN' : ' ' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'dsAttributes' : 'dn' , |
| | | 'expectedRC' : 'noCheck' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'Total number of matching entries: 1059' |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | 'ldapsearch: set value of subordinate-base-dn to dc=com' |
| | | </message> |
| | | |
| | | <call function="'dsconfigSet'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'objectName' : 'root-dse-backend' , |
| | | 'attributeName' : 'subordinate-base-dn' , |
| | | 'attributeValue' : 'dc=com' |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | 'ldapsearch: check number of entries with a basedn of ""' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsCountEntries' : 'True' , |
| | | 'dsBaseDN' : ' ' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'dsAttributes' : 'dn' , |
| | | 'expectedRC' : 'noCheck' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'Total number of matching entries: 1048' |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | 'ldapsearch: set value of subordinate-base-dn to dc=mycom' |
| | | </message> |
| | | |
| | | <call function="'dsconfigSet'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'objectName' : 'root-dse-backend' , |
| | | 'attributeName' : 'subordinate-base-dn' , |
| | | 'attributeValue' : 'dc=mycom' |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | 'ldapsearch: check number of entries with a basedn of ""' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsCountEntries' : 'True' , |
| | | 'dsBaseDN' : ' ' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'dsAttributes' : 'dn' , |
| | | 'expectedRC' : 'noCheck' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'Total number of matching entries: 11', |
| | | 'issue' : '2934' |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | 'ldapsearch: reset value of subordinate-base-dn' |
| | | </message> |
| | | |
| | | <call function="'dsconfigSet'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'objectName' : 'root-dse-backend' , |
| | | 'modifyType' : 'reset' , |
| | | 'attributeName' : 'subordinate-base-dn' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check behavior tests |
| | | #@TestName ldapsearch: check behavior with a scope of |
| | | base and a basedn of '' |
| | | #@TestIssue none |
| | | #@TestPurpose Verify that the Root DSE entry is returned. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with a scope of "base" and |
| | | a basedn of "" and check that the number of |
| | | entries is correct |
| | | #@TestPostamble none |
| | | #@TestResult Success if only one entry is returned and if |
| | | this entry is the Root DSE entry. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapsearch: check with scope of base and empty basedn')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: check number of entries with scope \ |
| | | of base and basedn of ""' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsCountEntries' : 'True' , |
| | | 'dsScope' : 'base' , |
| | | 'dsBaseDN' : ' ' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'expectedRC' : 'noCheck' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'Total number of matching entries: 1' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'objectClass: ds-root-dse' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check behavior tests |
| | | #@TestName ldapsearch: check behavior with a simple |
| | | page size of 30 and 1 |
| | | #@TestIssue none |
| | | #@TestPurpose Verify the output of ldapsearch with |
| | | simplePageSize option. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with a simple page size of 30 |
| | | #@TestStep Compare the output of the previous command to |
| | | a reference file |
| | | #@TestStep Do an ldapsearch with a simple page size of 1 |
| | | #@TestStep Compare the output of the previous command to |
| | | a reference file |
| | | #@TestPostamble none |
| | | #@TestResult Success if the outputs for ldapsearch matche |
| | | the refenrence outputs. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapsearch: check output with simplePageSize of 30 and 1')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: check output with simplePageSize of 30' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsCountEntries' : 'True' , |
| | | 'dsSimplePageSize' : '30' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.1*' , |
| | | 'expectedRC' : 'noCheck' , |
| | | 'outputFile' : 'ldapsearch_simplepagesize_30.out' , |
| | | 'outputPath' : remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'LdifDiffWithScript'"> |
| | | { |
| | | 'sourceLdif' : '%s/ldapsearch_simplepagesize_30.out' \ |
| | | % remote.temp , |
| | | 'targetLdif' : '%s/clu/ldapsearch_simplepagesize_30.ref' \ |
| | | % remote.data , |
| | | 'outputLdif' : '%s/ldapsearch_simplepagesize_30.diff' \ |
| | | % remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { |
| | | 'returncode' : STAXResult , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | 'ldapsearch: check output with simplePageSize of 1' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsCountEntries' : 'True' , |
| | | 'dsSimplePageSize' : '1' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.1*' , |
| | | 'expectedRC' : 'noCheck' , |
| | | 'outputFile' : 'ldapsearch_simplepagesize_1.out' , |
| | | 'outputPath' : remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'LdifDiffWithScript'"> |
| | | { |
| | | 'sourceLdif' : '%s/ldapsearch_simplepagesize_1.out' \ |
| | | % remote.temp , |
| | | 'targetLdif' : '%s/clu/ldapsearch_simplepagesize_1.ref' \ |
| | | % remote.data , |
| | | 'outputLdif' : '%s/ldapsearch_simplepagesize_1.diff' \ |
| | | % remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { |
| | | 'returncode' : STAXResult , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check behavior tests |
| | | #@TestName ldapsearch: check behavior with a filter file |
| | | (containing one filter) and search attribute |
| | | #@TestIssue none |
| | | #@TestPurpose Verify the output of ldapsearch with |
| | | filter option. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with filter file option and |
| | | a search attribute, and check that the number |
| | | of entries is correct |
| | | #@TestStep Compare the output of the previous command to |
| | | a reference file |
| | | #@TestPostamble none |
| | | #@TestResult Success if the outputs for ldapsearch matche |
| | | the refenrence outputs. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapsearch: check output using --filename and a search attribute')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: check output using --filename and a \ |
| | | search attribute' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilename' : filterfile , |
| | | 'dsAttributes' : 'dn' , |
| | | 'outputFile' : 'ldapsearch_filterfile_and_attribute.out' , |
| | | 'outputPath' : remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'CheckMatches'"> |
| | | { |
| | | 'string2find' : 'dn: ' , |
| | | 'mainString' : returnString , |
| | | 'nbExpected' : 8 |
| | | } |
| | | </call> |
| | | |
| | | <call function="'LdifDiffWithScript'"> |
| | | { |
| | | 'sourceLdif' : '%s/ldapsearch_filterfile_and_attribute.out' \ |
| | | % remote.temp , |
| | | 'targetLdif' : '%s/clu/ldapsearch_filterfile_and_attribute.ref'\ |
| | | % remote.data , |
| | | 'outputLdif' : '%s/ldapsearch_filterfile_and_attribute.diff' \ |
| | | % remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check behavior tests |
| | | #@TestName ldapsearch: check behavior with a filter file |
| | | containing multiple filters |
| | | #@TestIssue none |
| | | #@TestPurpose Verify the output of ldapsearch with |
| | | filter option. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with filter file option and |
| | | check that the number of entries is correct |
| | | #@TestPostamble none |
| | | #@TestResult Success if the number of entries is 222. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapsearch: check with a filter file containing multiple filters')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: check with a filter file containing multiple \ |
| | | filters' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsCountEntries' : 'True' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilename' : mfilterfile , |
| | | 'expectedRC' : 'noCheck' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'Total number of matching entries: 222' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | </sequence> |
| | | |
| | | <finally> |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: check number of entries' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsTypesOnly' : 'True' , |
| | | 'dsCountEntries' : 'True' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.1*' , |
| | | 'knownIssue' : '2764' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'Total number of matching entries: 111' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | <!-- Test Suite Cleanup --> |
| | | <message>'Finally: Global CLU Cleanup.'</message> |
| | | <try> |
| | | <call function="'common_cleanup'" /> |
| | | <catch exception="'STAFException'"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message> |
| | | </sequence> |
| | | </catch> |
| | | <finally> |
| | | <call function="'testSuite_Postamble'"/> |
| | | </finally> |
| | | </try> |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check behavior tests |
| | | #@TestName ldapsearch: check behavior with default basedn |
| | | #@TestIssue 2934 |
| | | #@TestPurpose Verify that the number of returned entries is |
| | | correct with a base DN of "". |
| | | #@TestPreamble none |
| | | #@TestStep Add a new basedn (dc=mycom) to userRoot |
| | | backend. |
| | | #@TestStep Import data into this new basedn. |
| | | #@TestStep Do an ldapsearch with a basedn of dc=com and |
| | | check that the number of entries is correct |
| | | #@TestStep Do an ldapsearch with a basedn of dc=mycom and |
| | | check that the number of entries is correct |
| | | #@TestStep Do an ldapsearch with a basedn of "" and check |
| | | that the number of entries is correct (equal |
| | | to: entries of dc=com + entries of dc=mycom) |
| | | #@TestStep Set value of subordinate-base-dn to dc=com |
| | | #@TestStep Do an ldapsearch with a basedn of "" and check |
| | | that the number of entries is correct (equal |
| | | to: entries of dc=com) |
| | | #@TestStep Set value of subordinate-base-dn to dc=mycom |
| | | #@TestStep Do an ldapsearch with a basedn of "" and check |
| | | that the number of entries is correct (equal |
| | | to: entries of dc=mycom) |
| | | #@TestStep Reset value of subordinate-base-dn |
| | | #@TestPostamble none |
| | | #@TestResult Success if OpenDS returns 0 for all ldap |
| | | operations, and if the number entries retuned |
| | | is correct with a basedn of "". |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapsearch: check default basedn')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | </finally> |
| | | |
| | | <message> |
| | | 'ldapsearch: add a new base dn to userRoot backend' |
| | | </message> |
| | | |
| | | <call function="'dsconfigSet'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'objectName' : 'backend' , |
| | | 'propertyType' : 'backend' , |
| | | 'propertyName' : DIRECTORY_INSTANCE_BE , |
| | | 'attributeName' : 'base-dn' , |
| | | 'attributeValue' : 'dc=mycom' , |
| | | 'modifyType' : 'add' |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | 'ldapsearch: import data into this new base dn' |
| | | </message> |
| | | |
| | | <call function="'StopDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME } |
| | | </call> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { |
| | | 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsAppend' : 'True' , |
| | | 'dsLdifFile' : ldifFile , |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE |
| | | } |
| | | </call> |
| | | |
| | | <call function="'StartDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME } |
| | | </call> |
| | | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | 'ldapsearch: check number of entries with a basedn of dc=com' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsCountEntries' : 'True' , |
| | | 'dsBaseDN' : 'dc=com' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'dsAttributes' : 'dn' , |
| | | 'expectedRC' : 'noCheck' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'Total number of matching entries: 1048' |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | 'ldapsearch: check number of entries with a basedn of dc=mycom' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsCountEntries' : 'True' , |
| | | 'dsBaseDN' : 'dc=mycom' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'dsAttributes' : 'dn' , |
| | | 'expectedRC' : 'noCheck' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'Total number of matching entries: 11' |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | 'ldapsearch: check number of entries with a basedn of ""' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsCountEntries' : 'True' , |
| | | 'dsBaseDN' : ' ' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'dsAttributes' : 'dn' , |
| | | 'expectedRC' : 'noCheck' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'Total number of matching entries: 1059' |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | 'ldapsearch: set value of subordinate-base-dn to dc=com' |
| | | </message> |
| | | |
| | | <call function="'dsconfigSet'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'objectName' : 'root-dse-backend' , |
| | | 'attributeName' : 'subordinate-base-dn' , |
| | | 'attributeValue' : 'dc=com' |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | 'ldapsearch: check number of entries with a basedn of ""' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsCountEntries' : 'True' , |
| | | 'dsBaseDN' : ' ' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'dsAttributes' : 'dn' , |
| | | 'expectedRC' : 'noCheck' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'Total number of matching entries: 1048' |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | 'ldapsearch: set value of subordinate-base-dn to dc=mycom' |
| | | </message> |
| | | |
| | | <call function="'dsconfigSet'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'objectName' : 'root-dse-backend' , |
| | | 'attributeName' : 'subordinate-base-dn' , |
| | | 'attributeValue' : 'dc=mycom' |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | 'ldapsearch: check number of entries with a basedn of ""' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsCountEntries' : 'True' , |
| | | 'dsBaseDN' : ' ' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'dsAttributes' : 'dn' , |
| | | 'expectedRC' : 'noCheck' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'Total number of matching entries: 11', |
| | | 'issue' : '2934' |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | 'ldapsearch: reset value of subordinate-base-dn' |
| | | </message> |
| | | |
| | | <call function="'dsconfigSet'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'objectName' : 'root-dse-backend' , |
| | | 'modifyType' : 'reset' , |
| | | 'attributeName' : 'subordinate-base-dn' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check behavior tests |
| | | #@TestName ldapsearch: check behavior with a scope of |
| | | base and a basedn of '' |
| | | #@TestIssue none |
| | | #@TestPurpose Verify that the Root DSE entry is returned. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with a scope of "base" and |
| | | a basedn of "" and check that the number of |
| | | entries is correct |
| | | #@TestPostamble none |
| | | #@TestResult Success if only one entry is returned and if |
| | | this entry is the Root DSE entry. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapsearch: check with scope of base and empty basedn')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: check number of entries with scope \ |
| | | of base and basedn of ""' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsCountEntries' : 'True' , |
| | | 'dsScope' : 'base' , |
| | | 'dsBaseDN' : ' ' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'expectedRC' : 'noCheck' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'Total number of matching entries: 1' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'objectClass: ds-root-dse' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check behavior tests |
| | | #@TestName ldapsearch: check behavior with a simple |
| | | page size of 30 and 1 |
| | | #@TestIssue none |
| | | #@TestPurpose Verify the output of ldapsearch with |
| | | simplePageSize option. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with a simple page size of 30 |
| | | #@TestStep Compare the output of the previous command to |
| | | a reference file |
| | | #@TestStep Do an ldapsearch with a simple page size of 1 |
| | | #@TestStep Compare the output of the previous command to |
| | | a reference file |
| | | #@TestPostamble none |
| | | #@TestResult Success if the outputs for ldapsearch matche |
| | | the refenrence outputs. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapsearch: check output with simplePageSize of 30 and 1')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: check output with simplePageSize of 30' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsCountEntries' : 'True' , |
| | | 'dsSimplePageSize' : '30' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.1*' , |
| | | 'expectedRC' : 'noCheck' , |
| | | 'outputFile' : 'ldapsearch_simplepagesize_30.out' , |
| | | 'outputPath' : remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'LdifDiffWithScript'"> |
| | | { |
| | | 'sourceLdif' : '%s/ldapsearch_simplepagesize_30.out' \ |
| | | % remote.temp , |
| | | 'targetLdif' : '%s/clu/ldapsearch_simplepagesize_30.ref' \ |
| | | % remote.data , |
| | | 'outputLdif' : '%s/ldapsearch_simplepagesize_30.diff' \ |
| | | % remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { |
| | | 'returncode' : STAXResult , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | 'ldapsearch: check output with simplePageSize of 1' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsCountEntries' : 'True' , |
| | | 'dsSimplePageSize' : '1' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.1*' , |
| | | 'expectedRC' : 'noCheck' , |
| | | 'outputFile' : 'ldapsearch_simplepagesize_1.out' , |
| | | 'outputPath' : remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'LdifDiffWithScript'"> |
| | | { |
| | | 'sourceLdif' : '%s/ldapsearch_simplepagesize_1.out' \ |
| | | % remote.temp , |
| | | 'targetLdif' : '%s/clu/ldapsearch_simplepagesize_1.ref' \ |
| | | % remote.data , |
| | | 'outputLdif' : '%s/ldapsearch_simplepagesize_1.diff' \ |
| | | % remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { |
| | | 'returncode' : STAXResult , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check behavior tests |
| | | #@TestName ldapsearch: check behavior with a filter file |
| | | (containing one filter) and search attribute |
| | | #@TestIssue none |
| | | #@TestPurpose Verify the output of ldapsearch with |
| | | filter option. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with filter file option and |
| | | a search attribute, and check that the number |
| | | of entries is correct |
| | | #@TestStep Compare the output of the previous command to |
| | | a reference file |
| | | #@TestPostamble none |
| | | #@TestResult Success if the outputs for ldapsearch matche |
| | | the refenrence outputs. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapsearch: check output using --filename and a search attribute')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: check output using --filename and a \ |
| | | search attribute' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilename' : filterfile , |
| | | 'dsAttributes' : 'dn' , |
| | | 'outputFile' : 'ldapsearch_filterfile_and_attribute.out' , |
| | | 'outputPath' : remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'CheckMatches'"> |
| | | { |
| | | 'string2find' : 'dn: ' , |
| | | 'mainString' : returnString , |
| | | 'nbExpected' : 8 |
| | | } |
| | | </call> |
| | | |
| | | <call function="'LdifDiffWithScript'"> |
| | | { |
| | | 'sourceLdif' : '%s/ldapsearch_filterfile_and_attribute.out' \ |
| | | % remote.temp , |
| | | 'targetLdif' : '%s/clu/ldapsearch_filterfile_and_attribute.ref'\ |
| | | % remote.data , |
| | | 'outputLdif' : '%s/ldapsearch_filterfile_and_attribute.diff' \ |
| | | % remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check behavior tests |
| | | #@TestName ldapsearch: check behavior with a filter file |
| | | containing multiple filters |
| | | #@TestIssue none |
| | | #@TestPurpose Verify the output of ldapsearch with |
| | | filter option. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with filter file option and |
| | | check that the number of entries is correct |
| | | #@TestPostamble none |
| | | #@TestResult Success if the number of entries is 222. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapsearch: check with a filter file containing multiple filters')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: check with a filter file containing multiple \ |
| | | filters' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsCountEntries' : 'True' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilename' : mfilterfile , |
| | | 'expectedRC' : 'noCheck' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'Total number of matching entries: 222' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | | </sequence> |
| | | </try> |
| | | |
| | | </block> |
| | | |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | |
| | | <block name="'clu_ldapsearch_checkoptions'"> |
| | | |
| | | <sequence> |
| | | <try> |
| | | |
| | | <!--- Test Suite information |
| | | #@TestSuiteName ldapsearch check options tests |
| | | #@TestSuitePurpose Test the ldapsearch command with |
| | | common options and input/output options. |
| | | #@TestSuiteGroup ldapsearch check options tests |
| | | #@TestScript clu_ldapsearch_checkoptions.xml |
| | | --> |
| | | |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group'] = 'clu' |
| | | CurrentTestPath['suite'] = STAXCurrentBlock |
| | | </script> |
| | | <sequence> |
| | | |
| | | <!--- Test Suite information |
| | | #@TestSuiteName ldapsearch check options tests |
| | | #@TestSuitePurpose Test the ldapsearch command with |
| | | common options and input/output options. |
| | | #@TestSuiteGroup ldapsearch check options tests |
| | | #@TestScript clu_ldapsearch_checkoptions.xml |
| | | --> |
| | | |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group'] = 'clu' |
| | | CurrentTestPath['suite'] = STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | <call function="'common_setup'"> |
| | | { |
| | | 'quickStart' : False , |
| | | 'loadData' : True , |
| | | 'ldifFile' : '%s/clu/clu_start.ldif' % remote.data , |
| | | 'startServer' : True , |
| | | 'stopServer' : False , |
| | | 'allowPreEncodePassword' : True |
| | | } |
| | | </call> |
| | | |
| | | <!--- Define default value for basedn and dsfilter --> |
| | | <script> |
| | | basedn = 'ou=ldapsearch,o=clu tests,dc=example,dc=com' |
| | | dsfilter = 'uid=user.10*' |
| | | </script> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: correct options |
| | | #@TestIssue none |
| | | #@TestPurpose Test ldapsearch with correct options. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with correct options. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapsearch: correct options')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: correct options' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: empty hostname |
| | | #@TestIssue 2619 |
| | | #@TestPurpose Verify a parameter error doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with an empty hostname. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 89. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapsearch: empty hostname')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: empty hostname' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : ' ' , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter , |
| | | 'expectedRC' : 89 , |
| | | 'knownIssue' : '2619' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: invalid hostname |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a connection error doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with an invalid hostname. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 91. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapsearch: invalid hostname')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: invalid hostname' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : 'bad_host' , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter , |
| | | 'expectedRC' : 91 |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: no port and no basedn |
| | | #@TestIssue 2619 |
| | | #@TestPurpose Verify a parameter error doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with no port and no basedn. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 89. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapsearch: no port and no basedn')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: no port and no basedn' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsFilter' : dsfilter , |
| | | 'expectedRC' : 89 , |
| | | 'knownIssue' : '2619' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: invalid port number and no basedn |
| | | #@TestIssue 2619 |
| | | #@TestPurpose Verify a parameter error doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with invalid port number |
| | | and no basedn used. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 89. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapsearch: invalid port number and no basedn')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: invalid port number and no basedn' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : '-1' , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsFilter' : dsfilter , |
| | | 'expectedRC' : 89 , |
| | | 'knownIssue' : '2619' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: invalid binddn |
| | | #@TestIssue none |
| | | #@TestPurpose Verify an invalid credentials error |
| | | doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with an invalid binddn. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 49. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapsearch: invalid binddn')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: invalid binddn' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'cn=bad dn' , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter , |
| | | 'expectedRC' : 49 |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: no password provided |
| | | #@TestIssue 2624 |
| | | #@TestPurpose Verify an inappropriate authentication error |
| | | doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch without a password. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 48. |
| | | --> |
| | | <!-- This test is prompting for the password --> |
| | | <!--- Comment out this testcase as it hangs on some platform --> |
| | | <!--- |
| | | <testcase name="getTestCaseName('ldapsearch: no password provided')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: no password provided' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter , |
| | | 'expectedRC' : 48 , |
| | | 'knownIssue' : '2624' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: invalid password |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a parameter error doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with an invalid password. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 49. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapsearch: invalid password')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: invalid password' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : 'bad_password' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter , |
| | | 'expectedRC' : 49 |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: scope with no option-argument |
| | | #@TestIssue 2619 |
| | | #@TestPurpose Verify an invalid credentials error |
| | | doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with a scope and no value. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 89. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapsearch: scope with no option-argument')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: scope with no option-argument' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsScope' : ' ' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter , |
| | | 'expectedRC' : 89 , |
| | | 'knownIssue' : '2619' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: invalid scope |
| | | #@TestIssue 2619 |
| | | #@TestPurpose Verify a parameter error doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with an invalid scope. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 89. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapsearch: invalid scope')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: invalid scope' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsScope' : 'bad_scope' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter , |
| | | 'expectedRC' : 89 , |
| | | 'knownIssue' : '2619' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: empty basedn |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a parameter error doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with an empty basedn. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 89. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapsearch: empty basedn')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: empty basedn' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : ' ' , |
| | | 'dsFilter' : dsfilter |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: invalid basedn |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a no such object error |
| | | doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with an invalid basedn. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 32. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapsearch: invalid basedn')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: invalid basedn' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : 'o=bad dn' , |
| | | 'dsFilter' : dsfilter , |
| | | 'expectedRC' : 32 |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: no filter |
| | | #@TestIssue 2619 |
| | | #@TestPurpose Verify a parameter error doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch without a filter. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 89. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapsearch: no filter')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: no filter' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : basedn , |
| | | 'expectedRC' : 89 , |
| | | 'knownIssue' : '2619' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: dry run option |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a parameter doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with dry run option. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapsearch: dry run option')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: dry run option' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsDryRun' : 'True' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: verbose option |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a parameter doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with the verbose option. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapsearch: verbose option')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: verbose option' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsVerbose' : 'True' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: timelimit of 20 seconds |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a parameter doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with timelimit of 20 |
| | | seconds option. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapsearch: timelimit of 20 seconds')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: timelimit of 20 seconds' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsTimeLimit' : '20' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : '(&(uid=*)(mobile=*))' , |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: timelimit of 1 second |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a time limit error doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with timelimit of 1 second. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 3. |
| | | --> |
| | | <!--- |
| | | <testcase name="getTestCaseName |
| | | ('ldapsearch: timelimit of 1 second')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: timelimit of 1 second' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsTimeLimit' : '1' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : '(&(uid=*)(mobile=*))' , |
| | | 'expectedRC' : 3 |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: sizelimit of 100 entries |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a parameter doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with sizelimit option. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapsearch: sizelimit of 100 entries')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: sizelimit of 100 entries' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsSizeLimit' : '100' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: sizelimit of 1 entries |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a size limit error doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with the sizelimit option. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 4. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapsearch: sizelimit of 1 entries')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: sizelimit of 1 entries' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsSizeLimit' : '1' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter , |
| | | 'expectedRC' : 4 |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: help option |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a parameter doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with the help option. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapsearch: help option')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: help option' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsHelp' : 'True' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: don't wrap option |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a parameter doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with the do do not wrap |
| | | long lines option. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName( |
| | | 'ldapsearch: do not wrap long lines option')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: do not wrap long lines option' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsDontWrap' : 'True' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: attribute value only option |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a parameter doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with the attribute value |
| | | only option. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapsearch: attribute value only option')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: attribute value only option' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsTypesOnly' : 'True' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: sort order option of uid |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a parameter doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with the a sort order of uid. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapsearch: sort order option of uid')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: sort order option of uid' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsSortOrder' : 'uid' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: sort order option of bad |
| | | #@TestIssue 2623 |
| | | #@TestPurpose Verify a parameter doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with the a sort order of bad. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapsearch: sort order option of bad')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: sort order option of bad ' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsSortOrder' : 'bad_sort' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter , |
| | | 'knownIssue' : '2623' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: dereference policy of always |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a parameter doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with the a dereference |
| | | policy of always. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapsearch: dereference policy of always')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: dereference policy of always' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsDereferencePolicy' : 'always' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: dereference policy of bad |
| | | #@TestIssue 2619 |
| | | #@TestPurpose Verify a parameter doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with the a dereference |
| | | policy of bad. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 89. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapsearch: dereference policy of bad')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: dereference policy of bad' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsDereferencePolicy' : 'bad_ref' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter , |
| | | 'expectedRC' : 89 , |
| | | 'knownIssue' : '2619' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: invalid basedn |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a no such object error |
| | | doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with the a bad base dn. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 32. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapsearch: invalid basedn')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: invalid basedn' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : 'cn=bad,cn=config' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'expectedRC' : 32 |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: simple page size of 0 |
| | | #@TestIssue 2619 |
| | | #@TestPurpose Verify a parameter doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with the a simple page size |
| | | of 0 |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 89. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapsearch: simple page size of 0')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: simple page size of 0' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsSimplePageSize' : '0' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'expectedRC' : 89 , |
| | | 'knownIssue' : '2619' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | </sequence> |
| | | |
| | | <!--- Define default value for basedn and dsfilter --> |
| | | <script> |
| | | basedn = 'ou=ldapsearch,o=clu tests,dc=example,dc=com' |
| | | dsfilter = 'uid=user.10*' |
| | | </script> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: correct options |
| | | #@TestIssue none |
| | | #@TestPurpose Test ldapsearch with correct options. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with correct options. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapsearch: correct options')"> |
| | | |
| | | <finally> |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: correct options' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | <!-- Test Suite Cleanup --> |
| | | <message>'Finally: Global CLU Cleanup.'</message> |
| | | <try> |
| | | <call function="'common_cleanup'" /> |
| | | <catch exception="'STAFException'"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message> |
| | | </sequence> |
| | | </catch> |
| | | <finally> |
| | | <call function="'testSuite_Postamble'"/> |
| | | </finally> |
| | | </try> |
| | | </sequence> |
| | | </finally> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: empty hostname |
| | | #@TestIssue 2619 |
| | | #@TestPurpose Verify a parameter error doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with an empty hostname. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 89. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapsearch: empty hostname')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: empty hostname' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : ' ' , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter , |
| | | 'expectedRC' : 89 , |
| | | 'knownIssue' : '2619' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: invalid hostname |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a connection error doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with an invalid hostname. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 91. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapsearch: invalid hostname')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: invalid hostname' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : 'bad_host' , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter , |
| | | 'expectedRC' : 91 |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: no port and no basedn |
| | | #@TestIssue 2619 |
| | | #@TestPurpose Verify a parameter error doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with no port and no basedn. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 89. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapsearch: no port and no basedn')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: no port and no basedn' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsFilter' : dsfilter , |
| | | 'expectedRC' : 89 , |
| | | 'knownIssue' : '2619' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: invalid port number and no basedn |
| | | #@TestIssue 2619 |
| | | #@TestPurpose Verify a parameter error doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with invalid port number |
| | | and no basedn used. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 89. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapsearch: invalid port number and no basedn')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: invalid port number and no basedn' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : '-1' , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsFilter' : dsfilter , |
| | | 'expectedRC' : 89 , |
| | | 'knownIssue' : '2619' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: invalid binddn |
| | | #@TestIssue none |
| | | #@TestPurpose Verify an invalid credentials error |
| | | doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with an invalid binddn. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 49. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapsearch: invalid binddn')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: invalid binddn' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'cn=bad dn' , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter , |
| | | 'expectedRC' : 49 |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: no password provided |
| | | #@TestIssue 2624 |
| | | #@TestPurpose Verify an inappropriate authentication error |
| | | doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch without a password. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 48. |
| | | --> |
| | | <!-- This test is prompting for the password --> |
| | | <!--- Comment out this testcase as it hangs on some platform --> |
| | | <!--- |
| | | <testcase name="getTestCaseName('ldapsearch: no password provided')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: no password provided' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter , |
| | | 'expectedRC' : 48 , |
| | | 'knownIssue' : '2624' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: invalid password |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a parameter error doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with an invalid password. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 49. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapsearch: invalid password')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: invalid password' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : 'bad_password' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter , |
| | | 'expectedRC' : 49 |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: scope with no option-argument |
| | | #@TestIssue 2619 |
| | | #@TestPurpose Verify an invalid credentials error |
| | | doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with a scope and no value. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 89. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapsearch: scope with no option-argument')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: scope with no option-argument' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsScope' : ' ' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter , |
| | | 'expectedRC' : 89 , |
| | | 'knownIssue' : '2619' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: invalid scope |
| | | #@TestIssue 2619 |
| | | #@TestPurpose Verify a parameter error doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with an invalid scope. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 89. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapsearch: invalid scope')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: invalid scope' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsScope' : 'bad_scope' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter , |
| | | 'expectedRC' : 89 , |
| | | 'knownIssue' : '2619' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: empty basedn |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a parameter error doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with an empty basedn. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 89. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapsearch: empty basedn')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: empty basedn' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : ' ' , |
| | | 'dsFilter' : dsfilter |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: invalid basedn |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a no such object error |
| | | doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with an invalid basedn. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 32. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapsearch: invalid basedn')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: invalid basedn' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : 'o=bad dn' , |
| | | 'dsFilter' : dsfilter , |
| | | 'expectedRC' : 32 |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: no filter |
| | | #@TestIssue 2619 |
| | | #@TestPurpose Verify a parameter error doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch without a filter. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 89. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapsearch: no filter')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: no filter' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : basedn , |
| | | 'expectedRC' : 89 , |
| | | 'knownIssue' : '2619' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: dry run option |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a parameter doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with dry run option. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapsearch: dry run option')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: dry run option' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsDryRun' : 'True' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: verbose option |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a parameter doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with the verbose option. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapsearch: verbose option')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: verbose option' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsVerbose' : 'True' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: timelimit of 20 seconds |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a parameter doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with timelimit of 20 |
| | | seconds option. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapsearch: timelimit of 20 seconds')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: timelimit of 20 seconds' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsTimeLimit' : '20' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : '(&(uid=*)(mobile=*))' , |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: timelimit of 1 second |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a time limit error doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with timelimit of 1 second. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 3. |
| | | --> |
| | | <!--- |
| | | <testcase name="getTestCaseName |
| | | ('ldapsearch: timelimit of 1 second')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: timelimit of 1 second' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsTimeLimit' : '1' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : '(&(uid=*)(mobile=*))' , |
| | | 'expectedRC' : 3 |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | --> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: sizelimit of 100 entries |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a parameter doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with sizelimit option. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapsearch: sizelimit of 100 entries')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: sizelimit of 100 entries' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsSizeLimit' : '100' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: sizelimit of 1 entries |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a size limit error doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with the sizelimit option. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 4. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapsearch: sizelimit of 1 entries')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: sizelimit of 1 entries' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsSizeLimit' : '1' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter , |
| | | 'expectedRC' : 4 |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: help option |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a parameter doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with the help option. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapsearch: help option')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: help option' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsHelp' : 'True' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: don't wrap option |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a parameter doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with the do do not wrap |
| | | long lines option. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName( |
| | | 'ldapsearch: do not wrap long lines option')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: do not wrap long lines option' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsDontWrap' : 'True' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: attribute value only option |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a parameter doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with the attribute value |
| | | only option. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapsearch: attribute value only option')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: attribute value only option' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsTypesOnly' : 'True' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: sort order option of uid |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a parameter doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with the a sort order of uid. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapsearch: sort order option of uid')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: sort order option of uid' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsSortOrder' : 'uid' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: sort order option of bad |
| | | #@TestIssue 2623 |
| | | #@TestPurpose Verify a parameter doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with the a sort order of bad. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapsearch: sort order option of bad')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: sort order option of bad ' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsSortOrder' : 'bad_sort' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter , |
| | | 'knownIssue' : '2623' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: dereference policy of always |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a parameter doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with the a dereference |
| | | policy of always. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapsearch: dereference policy of always')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: dereference policy of always' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsDereferencePolicy' : 'always' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: dereference policy of bad |
| | | #@TestIssue 2619 |
| | | #@TestPurpose Verify a parameter doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with the a dereference |
| | | policy of bad. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 89. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapsearch: dereference policy of bad')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: dereference policy of bad' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsDereferencePolicy' : 'bad_ref' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter , |
| | | 'expectedRC' : 89 , |
| | | 'knownIssue' : '2619' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: invalid basedn |
| | | #@TestIssue none |
| | | #@TestPurpose Verify a no such object error |
| | | doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with the a bad base dn. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 32. |
| | | --> |
| | | <testcase name="getTestCaseName('ldapsearch: invalid basedn')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: invalid basedn' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : 'cn=bad,cn=config' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'expectedRC' : 32 |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldapsearch check options tests |
| | | #@TestName ldapsearch: simple page size of 0 |
| | | #@TestIssue 2619 |
| | | #@TestPurpose Verify a parameter doing an ldapsearch. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with the a simple page size |
| | | of 0 |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldapsearch returns 89. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldapsearch: simple page size of 0')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldapsearch: simple page size of 0' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsSimplePageSize' : '0' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'expectedRC' : 89 , |
| | | 'knownIssue' : '2619' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </try> |
| | | |
| | | </block> |
| | | |
| | | </sequence> |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | <sequence> |
| | | |
| | | <block name="'clu_ldif-diff_checkbehavior'"> |
| | | |
| | | <try> |
| | | |
| | | <sequence> |
| | | |
| | | <!--- Test Suite information |
| | | #@TestSuiteName ldif-diff check behavior tests |
| | | #@TestSuitePurpose Test the results of the ldif-diff command. |
| | | #@TestSuiteGroup ldif-diff check behavior tests |
| | | #@TestScript clu_ldif-diff_checkbehavior.xml |
| | | --> |
| | | |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group'] = 'clu' |
| | | CurrentTestPath['suite'] = STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <!--- Define default value for sourceldif --> |
| | | <script> |
| | | sourceldif = '%s/clu/clu_start.ldif' % remote.data |
| | | targetldif = '%s/clu/ldif-diff_checkbehavior.ldif' \ |
| | | % remote.data |
| | | </script> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldif-diff check behavior tests |
| | | #@TestName ldif-diff: compare ldif files with no diffs |
| | | #@TestIssue 3111 |
| | | #@TestPurpose Test ldif-diff to compare ldif files with |
| | | no diffs |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldif-diff to compare ldif files with |
| | | no diffs |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldif-diff returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldif-diff: compare ldif files with no diffs')"> |
| | | <sequence> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldif-diff: compare ldif files with no diffs' |
| | | </message> |
| | | |
| | | <call function="'LdifDiffWithScript-new'"> |
| | | { |
| | | 'sourceLdif' : sourceldif , |
| | | 'targetLdif' : sourceldif , |
| | | 'outputLdif' : '%s/ldif-diff_nodiffs.out' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | <!--- Test Suite information |
| | | #@TestSuiteName ldif-diff check behavior tests |
| | | #@TestSuitePurpose Test the results of the ldif-diff command. |
| | | #@TestSuiteGroup ldif-diff check behavior tests |
| | | #@TestScript clu_ldif-diff_checkbehavior.xml |
| | | --> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldif-diff check behavior tests |
| | | #@TestName ldif-diff: compare ldif files with diffs |
| | | #@TestIssue 2641 |
| | | #@TestPurpose Test ldif-diff to compare ldif files with |
| | | diffs |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldif-diff to compare ldif files with |
| | | diffs |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldif-diff returns 1. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldif-diff: compare ldif files with diffs')"> |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group'] = 'clu' |
| | | CurrentTestPath['suite'] = STAXCurrentBlock |
| | | </script> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldif-diff: compare ldif files with diffs' |
| | | </message> |
| | | |
| | | <call function="'LdifDiffWithScript-new'"> |
| | | { |
| | | 'sourceLdif' : sourceldif , |
| | | 'targetLdif' : targetldif , |
| | | 'outputLdif' : '%s/ldif-diff_withdiffs.out' % remote.temp , |
| | | 'expectedRC' : 1 , |
| | | 'knownIssue' : '2641' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldif-diff check behavior tests |
| | | #@TestName ldif-diff: check diff file |
| | | #@TestIssue 3111 |
| | | #@TestPurpose Check ldif file generated by ldif-diff |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldif-diff to compare ldif files with |
| | | diffs |
| | | #@TestStep Check this ldif file using compareFile |
| | | #@TestPostamble none |
| | | #@TestResult Success if compareFile returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName('ldif-diff: check diff file')"> |
| | | <call function="'common_setup'"> |
| | | { |
| | | 'quickStart' : False , |
| | | 'loadData' : True , |
| | | 'ldifFile' : '%s/clu/clu_start.ldif' % remote.data , |
| | | 'startServer' : True , |
| | | 'stopServer' : False , |
| | | 'allowPreEncodePassword' : True |
| | | } |
| | | </call> |
| | | |
| | | <sequence> |
| | | <!--- Define default value for sourceldif --> |
| | | <script> |
| | | sourceldif = '%s/clu/clu_start.ldif' % remote.data |
| | | targetldif = '%s/clu/ldif-diff_checkbehavior.ldif' \ |
| | | % remote.data |
| | | </script> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldif-diff check behavior tests |
| | | #@TestName ldif-diff: compare ldif files with no diffs |
| | | #@TestIssue 3111 |
| | | #@TestPurpose Test ldif-diff to compare ldif files with |
| | | no diffs |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldif-diff to compare ldif files with |
| | | no diffs |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldif-diff returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldif-diff: compare ldif files with no diffs')"> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldif-diff: compare ldif files with no diffs' |
| | | </message> |
| | | |
| | | <call function="'LdifDiffWithScript-new'"> |
| | | { |
| | | 'sourceLdif' : sourceldif , |
| | | 'targetLdif' : sourceldif , |
| | | 'outputLdif' : '%s/ldif-diff_nodiffs.out' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | <message> |
| | | 'ldif-diff: check diff file' |
| | | </message> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldif-diff check behavior tests |
| | | #@TestName ldif-diff: compare ldif files with diffs |
| | | #@TestIssue 2641 |
| | | #@TestPurpose Test ldif-diff to compare ldif files with |
| | | diffs |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldif-diff to compare ldif files with |
| | | diffs |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldif-diff returns 1. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldif-diff: compare ldif files with diffs')"> |
| | | |
| | | <call function="'LdifDiffWithScript-new'"> |
| | | { |
| | | 'sourceLdif' : sourceldif , |
| | | 'targetLdif' : targetldif , |
| | | 'outputLdif' : '%s/ldif-diff.out' % remote.temp , |
| | | 'expectedRC' : 'noCheck' |
| | | } |
| | | </call> |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldif-diff: compare ldif files with diffs' |
| | | </message> |
| | | |
| | | <call function="'LdifDiffWithScript-new'"> |
| | | { |
| | | 'sourceLdif' : sourceldif , |
| | | 'targetLdif' : targetldif , |
| | | 'outputLdif' : '%s/ldif-diff_withdiffs.out' % remote.temp , |
| | | 'expectedRC' : 1 , |
| | | 'knownIssue' : '2641' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | <call function="'compareFile'"> |
| | | { |
| | | 'outputFile' : 'ldif-diff.out' , |
| | | 'outputPath' : remote.temp , |
| | | 'refFile' : 'ldif-diff.ref', |
| | | 'knownIssue' : '3111' |
| | | } |
| | | </call> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldif-diff check behavior tests |
| | | #@TestName ldif-diff: check diff file |
| | | #@TestIssue 3111 |
| | | #@TestPurpose Check ldif file generated by ldif-diff |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldif-diff to compare ldif files with |
| | | diffs |
| | | #@TestStep Check this ldif file using compareFile |
| | | #@TestPostamble none |
| | | #@TestResult Success if compareFile returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName('ldif-diff: check diff file')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldif-diff: check diff file' |
| | | </message> |
| | | |
| | | <call function="'LdifDiffWithScript-new'"> |
| | | { |
| | | 'sourceLdif' : sourceldif , |
| | | 'targetLdif' : targetldif , |
| | | 'outputLdif' : '%s/ldif-diff.out' % remote.temp , |
| | | 'expectedRC' : 'noCheck' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'compareFile'"> |
| | | { |
| | | 'outputFile' : 'ldif-diff.out' , |
| | | 'outputPath' : remote.temp , |
| | | 'refFile' : 'ldif-diff.ref', |
| | | 'knownIssue' : '3111' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldif-diff check behavior tests |
| | | #@TestName ldif-diff: check diff file |
| | | #@TestIssue 3111 |
| | | #@TestPurpose Check ldif file generated by ldif-diff |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldif-diff to compare ldif files with |
| | | diffs |
| | | #@TestStep Check this ldif file using compareFile |
| | | #@TestPostamble none |
| | | #@TestResult Success if compareFile returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldif-diff: check diff files with single value changes')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldif-diff: check diff file with single value changes' |
| | | </message> |
| | | |
| | | <call function="'LdifDiffWithScript-new'"> |
| | | { |
| | | 'sourceLdif' : sourceldif , |
| | | 'targetLdif' : targetldif , |
| | | 'outputLdif' : '%s/ldif-diff_singlevalue.out' \ |
| | | % remote.temp , |
| | | 'singleValueChanges' : 'True' , |
| | | 'expectedRC' : 'noCheck' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'compareFile'"> |
| | | { |
| | | 'outputFile' : 'ldif-diff_singlevalue.out' , |
| | | 'outputPath' : remote.temp , |
| | | 'refFile' : 'ldif-diff_singlevalue.ref' , |
| | | 'knownIssue' : '3111' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | </sequence> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldif-diff check behavior tests |
| | | #@TestName ldif-diff: check diff file |
| | | #@TestIssue 3111 |
| | | #@TestPurpose Check ldif file generated by ldif-diff |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldif-diff to compare ldif files with |
| | | diffs |
| | | #@TestStep Check this ldif file using compareFile |
| | | #@TestPostamble none |
| | | #@TestResult Success if compareFile returns 0. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldif-diff: check diff files with single value changes')"> |
| | | |
| | | <finally> |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldif-diff: check diff file with single value changes' |
| | | </message> |
| | | |
| | | <call function="'LdifDiffWithScript-new'"> |
| | | { |
| | | 'sourceLdif' : sourceldif , |
| | | 'targetLdif' : targetldif , |
| | | 'outputLdif' : '%s/ldif-diff_singlevalue.out' \ |
| | | % remote.temp , |
| | | 'singleValueChanges' : 'True' , |
| | | 'expectedRC' : 'noCheck' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'compareFile'"> |
| | | { |
| | | 'outputFile' : 'ldif-diff_singlevalue.out' , |
| | | 'outputPath' : remote.temp , |
| | | 'refFile' : 'ldif-diff_singlevalue.ref' , |
| | | 'knownIssue' : '3111' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | <!-- Test Suite Cleanup --> |
| | | <message>'Finally: Global CLU Cleanup.'</message> |
| | | <try> |
| | | <call function="'common_cleanup'" /> |
| | | <catch exception="'STAFException'"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message> |
| | | </sequence> |
| | | </catch> |
| | | <finally> |
| | | <call function="'testSuite_Postamble'"/> |
| | | </finally> |
| | | </try> |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | | </sequence> |
| | | </finally> |
| | | |
| | | </try> |
| | | |
| | | </block> |
| | | |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | <sequence> |
| | | |
| | | <block name="'clu_ldifmodify_checkbehavior'"> |
| | | |
| | | <try> |
| | | |
| | | <sequence> |
| | | |
| | | <!--- Test Suite information |
| | | #@TestSuiteName ldifmodify check behavior tests |
| | | #@TestSuitePurpose Test the results of the ldifmodify command. |
| | | #@TestSuiteGroup ldifmodify check behavior tests |
| | | #@TestScript clu_ldifmodify_checkbehavior.xml |
| | | --> |
| | | |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group'] = 'clu' |
| | | CurrentTestPath['suite'] = STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <!--- Define default value for sourceldif --> |
| | | <script> |
| | | sourceldif = '%s/clu/clu_start.ldif' % remote.data |
| | | </script> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldifmodify check behavior tests |
| | | #@TestName ldifmodify: add, delete and modify operations |
| | | #@TestIssue none |
| | | #@TestPurpose Test ldifmodify with add, delete and modify |
| | | operations |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldifmodify with add, delete and modify |
| | | operations. |
| | | #@TestStep Do an ldif-diff to check that generated ldif |
| | | is correct. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldifmodify and ldif-diff return 0. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldifmodify: add, delete and modify operations')"> |
| | | <sequence> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldifmodify: add, delete and modify operations' |
| | | </message> |
| | | |
| | | <call function="'LdifModifyWithScript'"> |
| | | { |
| | | 'sourceLdif' : sourceldif , |
| | | 'changesLdif' : '%s/clu/ldifmodify_checkbehavior.ldif' \ |
| | | % remote.data , |
| | | 'targetLdif' : '%s/ldifmodify.out' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'LdifDiffWithScript'"> |
| | | { |
| | | 'sourceLdif' : '%s/ldifmodify.out' % remote.temp , |
| | | 'targetLdif' : '%s/clu/ldifmodify.ref' % remote.data , |
| | | 'outputLdif' : '%s/ldifmodify.diff' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { |
| | | 'returncode' : STAXResult , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | <!--- Test Suite information |
| | | #@TestSuiteName ldifmodify check behavior tests |
| | | #@TestSuitePurpose Test the results of the ldifmodify command. |
| | | #@TestSuiteGroup ldifmodify check behavior tests |
| | | #@TestScript clu_ldifmodify_checkbehavior.xml |
| | | --> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldifmodify check behavior tests |
| | | #@TestName ldifmodify: moddn operation |
| | | #@TestIssue none |
| | | #@TestPurpose Test ldifmodify with moddn operation |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldifmodify with moddn operation. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldifmodify returns 1 and if the |
| | | output is correct. |
| | | --> |
| | | <testcase name="getTestCaseName('ldifmodify: moddn operation')"> |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group'] = 'clu' |
| | | CurrentTestPath['suite'] = STAXCurrentBlock |
| | | </script> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldifmodify: moddn operation' |
| | | </message> |
| | | |
| | | <call function="'LdifModifyWithScript'"> |
| | | { |
| | | 'sourceLdif' : sourceldif , |
| | | 'changesLdif' : '%s/clu/ldifmodify_moddn.ldif' % remote.data , |
| | | 'targetLdif' : '%s/ldifmodify_moddn.out' % remote.temp , |
| | | 'expectedRC' : 1 |
| | | } |
| | | </call> |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | msg1 = 'The modify DN operation targeted at entry uid=user.0,' |
| | | msg2 = 'ou=ldapsearch,o=clu tests,dc=example,dc=com cannot be' |
| | | msg3 = 'processed because modify DN operations are not' |
| | | msg4 = 'supported by the LDIF modify tool' |
| | | msg = '%s%s %s %s' % (msg1, msg2, msg3, msg4) |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : msg |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldifmodify check behavior tests |
| | | #@TestName ldifmodify: concurrente modify/delete operations |
| | | #@TestIssue none |
| | | #@TestPurpose Test ldifmodify with concurrente modify/delete |
| | | operations |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldifmodify with concurrente modify/delete |
| | | operations. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldifmodify returns 1 and if the |
| | | output is correct. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldifmodify: concurrente modify/delete operations')"> |
| | | <call function="'common_setup'"> |
| | | { |
| | | 'quickStart' : False , |
| | | 'loadData' : True , |
| | | 'ldifFile' : '%s/clu/clu_start.ldif' % remote.data , |
| | | 'startServer' : True , |
| | | 'stopServer' : False , |
| | | 'allowPreEncodePassword' : True |
| | | } |
| | | </call> |
| | | |
| | | <sequence> |
| | | <!--- Define default value for sourceldif --> |
| | | <script> |
| | | sourceldif = '%s/clu/clu_start.ldif' % remote.data |
| | | </script> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldifmodify check behavior tests |
| | | #@TestName ldifmodify: add, delete and modify operations |
| | | #@TestIssue none |
| | | #@TestPurpose Test ldifmodify with add, delete and modify |
| | | operations |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldifmodify with add, delete and modify |
| | | operations. |
| | | #@TestStep Do an ldif-diff to check that generated ldif |
| | | is correct. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldifmodify and ldif-diff return 0. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldifmodify: add, delete and modify operations')"> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldifmodify: add, delete and modify operations' |
| | | </message> |
| | | |
| | | <call function="'LdifModifyWithScript'"> |
| | | { |
| | | 'sourceLdif' : sourceldif , |
| | | 'changesLdif' : '%s/clu/ldifmodify_checkbehavior.ldif' \ |
| | | % remote.data , |
| | | 'targetLdif' : '%s/ldifmodify.out' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'LdifDiffWithScript'"> |
| | | { |
| | | 'sourceLdif' : '%s/ldifmodify.out' % remote.temp , |
| | | 'targetLdif' : '%s/clu/ldifmodify.ref' % remote.data , |
| | | 'outputLdif' : '%s/ldifmodify.diff' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { |
| | | 'returncode' : STAXResult , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | <message> |
| | | 'ldifmodify: concurrente modify/delete operations' |
| | | </message> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldifmodify check behavior tests |
| | | #@TestName ldifmodify: moddn operation |
| | | #@TestIssue none |
| | | #@TestPurpose Test ldifmodify with moddn operation |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldifmodify with moddn operation. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldifmodify returns 1 and if the |
| | | output is correct. |
| | | --> |
| | | <testcase name="getTestCaseName('ldifmodify: moddn operation')"> |
| | | |
| | | <call function="'LdifModifyWithScript'"> |
| | | { |
| | | 'sourceLdif' : sourceldif , |
| | | 'changesLdif' : '%s/clu/ldifmodify_concurrente.ldif' \ |
| | | % remote.data , |
| | | 'targetLdif' : '%s/ldifmodify_concurrente.out' % remote.temp , |
| | | 'expectedRC' : 1 |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <script> |
| | | msg1 = 'Entry uid=user.2000,ou=ldapsearch,o=clu tests,' |
| | | msg2 = 'dc=example,dc=com cannot be deleted because it' |
| | | msg3 = 'was previously added in the set of changes.' |
| | | msg4 = 'This is not supported by the LDIF modify tool' |
| | | msg = '%s%s %s %s' % (msg1, msg2, msg3, msg4) |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : msg |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | msg1 = 'Cannot modify entry uid=user.2000,ou=ldapsearch,' |
| | | msg2 = 'o=clu tests,dc=example,dc=com because it was' |
| | | msg3 = 'previously added or deleted in the set of changes.' |
| | | msg4 = 'This is not supported by the LDIF modify tool' |
| | | msg = '%s%s %s %s' % (msg1, msg2, msg3, msg4) |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : msg |
| | | } |
| | | </call> |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldifmodify: moddn operation' |
| | | </message> |
| | | |
| | | <call function="'LdifModifyWithScript'"> |
| | | { |
| | | 'sourceLdif' : sourceldif , |
| | | 'changesLdif' : '%s/clu/ldifmodify_moddn.ldif' % remote.data , |
| | | 'targetLdif' : '%s/ldifmodify_moddn.out' % remote.temp , |
| | | 'expectedRC' : 1 |
| | | } |
| | | </call> |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | msg1 = 'The modify DN operation targeted at entry uid=user.0,' |
| | | msg2 = 'ou=ldapsearch,o=clu tests,dc=example,dc=com cannot be' |
| | | msg3 = 'processed because modify DN operations are not' |
| | | msg4 = 'supported by the LDIF modify tool' |
| | | msg = '%s%s %s %s' % (msg1, msg2, msg3, msg4) |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : msg |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldifmodify check behavior tests |
| | | #@TestName ldifmodify: concurrente modify/delete operations |
| | | #@TestIssue none |
| | | #@TestPurpose Test ldifmodify with concurrente modify/delete |
| | | operations |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldifmodify with concurrente modify/delete |
| | | operations. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldifmodify returns 1 and if the |
| | | output is correct. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldifmodify: concurrente modify/delete operations')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldifmodify: concurrente modify/delete operations' |
| | | </message> |
| | | |
| | | <call function="'LdifModifyWithScript'"> |
| | | { |
| | | 'sourceLdif' : sourceldif , |
| | | 'changesLdif' : '%s/clu/ldifmodify_concurrente.ldif' \ |
| | | % remote.data , |
| | | 'targetLdif' : '%s/ldifmodify_concurrente.out' % remote.temp , |
| | | 'expectedRC' : 1 |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <script> |
| | | msg1 = 'Entry uid=user.2000,ou=ldapsearch,o=clu tests,' |
| | | msg2 = 'dc=example,dc=com cannot be deleted because it' |
| | | msg3 = 'was previously added in the set of changes.' |
| | | msg4 = 'This is not supported by the LDIF modify tool' |
| | | msg = '%s%s %s %s' % (msg1, msg2, msg3, msg4) |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : msg |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | msg1 = 'Cannot modify entry uid=user.2000,ou=ldapsearch,' |
| | | msg2 = 'o=clu tests,dc=example,dc=com because it was' |
| | | msg3 = 'previously added or deleted in the set of changes.' |
| | | msg4 = 'This is not supported by the LDIF modify tool' |
| | | msg = '%s%s %s %s' % (msg1, msg2, msg3, msg4) |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : msg |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | </testcase> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | | </sequence> |
| | | </sequence> |
| | | |
| | | <finally> |
| | | <sequence> |
| | | <!-- Test Suite Cleanup --> |
| | | <message>'Finally: Global CLU Cleanup.'</message> |
| | | <try> |
| | | <call function="'common_cleanup'" /> |
| | | <catch exception="'STAFException'"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message> |
| | | </sequence> |
| | | </catch> |
| | | <finally> |
| | | <call function="'testSuite_Postamble'"/> |
| | | </finally> |
| | | </try> |
| | | </sequence> |
| | | </finally> |
| | | |
| | | </try> |
| | | |
| | | </block> |
| | | |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Portions Copyright 2008 Sun Microsystems, Inc. |
| | | ! Portions Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | <sequence> |
| | | |
| | | <block name="'clu_ldifsearch_checkbehavior'"> |
| | | |
| | | <try> |
| | | |
| | | <sequence> |
| | | |
| | | <!--- Test Suite information |
| | | #@TestSuiteName ldifsearch check behavior tests |
| | | #@TestSuitePurpose Test the results of ldifsearch command. |
| | | #@TestSuiteGroup ldifsearch check behavior tests |
| | | #@TestScript clu_ldifsearch_checkbehavior.xml |
| | | --> |
| | | |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group'] = 'clu' |
| | | CurrentTestPath['suite'] = STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <!--- Define default value for basedn, dsfilename, filter files --> |
| | | <script> |
| | | basedn = 'ou=ldapsearch,o=clu tests,dc=example,dc=com' |
| | | dsfilename = '%s/clu/clu_start.ldif' % remote.data |
| | | filterfile = '%s/clu/filters.ldif' % remote.data |
| | | mfilterfile = '%s/clu/multiple_filters.ldif' % remote.data |
| | | </script> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldifsearch check behavior tests |
| | | #@TestName ldifsearch: check with standard options |
| | | #@TestIssue none |
| | | #@TestPurpose Verify that the entries returned by ldifseach |
| | | are the same than the entries returned by |
| | | ldapsearch |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with standard options. |
| | | #@TestStep Do an ldifsearch with the same options. |
| | | #@TestStep Do an ldif-dif to check the differences. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldifdiff returns no differences. |
| | | --> |
| | | <testcase name="getTestCaseName('ldifsearch: standard options')"> |
| | | <sequence> |
| | | |
| | | <!--- Test Suite information |
| | | #@TestSuiteName ldifsearch check behavior tests |
| | | #@TestSuitePurpose Test the results of ldifsearch command. |
| | | #@TestSuiteGroup ldifsearch check behavior tests |
| | | #@TestScript clu_ldifsearch_checkbehavior.xml |
| | | --> |
| | | |
| | | <script> |
| | | if not CurrentTestPath.has_key('group'): |
| | | CurrentTestPath['group'] = 'clu' |
| | | CurrentTestPath['suite'] = STAXCurrentBlock |
| | | </script> |
| | | |
| | | <call function="'testSuite_Preamble'"/> |
| | | |
| | | <call function="'common_setup'"> |
| | | { |
| | | 'quickStart' : False , |
| | | 'loadData' : True , |
| | | 'ldifFile' : '%s/clu/clu_start.ldif' % remote.data , |
| | | 'startServer' : True , |
| | | 'stopServer' : False , |
| | | 'allowPreEncodePassword' : True |
| | | } |
| | | </call> |
| | | |
| | | <!--- Define default value for basedn, dsfilename, filter files --> |
| | | <script> |
| | | basedn = 'ou=ldapsearch,o=clu tests,dc=example,dc=com' |
| | | dsfilename = '%s/clu/clu_start.ldif' % remote.data |
| | | filterfile = '%s/clu/filters.ldif' % remote.data |
| | | mfilterfile = '%s/clu/multiple_filters.ldif' % remote.data |
| | | </script> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldifsearch check behavior tests |
| | | #@TestName ldifsearch: check with standard options |
| | | #@TestIssue none |
| | | #@TestPurpose Verify that the entries returned by ldifseach |
| | | are the same than the entries returned by |
| | | ldapsearch |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with standard options. |
| | | #@TestStep Do an ldifsearch with the same options. |
| | | #@TestStep Do an ldif-dif to check the differences. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldifdiff returns no differences. |
| | | --> |
| | | <testcase name="getTestCaseName('ldifsearch: standard options')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldifsearch: standard options' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.1*' , |
| | | 'outputFile' : 'ldapsearch.out' , |
| | | 'outputPath' : remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'ldifSearchWithScript'"> |
| | | { |
| | | 'dsLdifFile' : dsfilename , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.1*' , |
| | | 'dsOutputFile' : '%s/ldifsearch.out' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'LdifDiffWithScript'"> |
| | | { |
| | | 'sourceLdif' : '%s/ldifsearch.out' % remote.temp , |
| | | 'targetLdif' : '%s/ldapsearch.out' % remote.temp , |
| | | 'outputLdif' : '%s/ldifsearch.diff' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { |
| | | 'returncode' : STAXResult , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldifsearch check behavior tests |
| | | #@TestName ldifsearch: check with scope option |
| | | #@TestIssue none |
| | | #@TestPurpose Verify that the entries returned by ldifseach |
| | | are the same than the entries returned by |
| | | ldapsearch |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with scope option. |
| | | #@TestStep Do an ldifsearch with the same option. |
| | | #@TestStep Do an ldif-dif to check the differences. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldifdiff returns no differences. |
| | | --> |
| | | <testcase name="getTestCaseName('ldifsearch: scope option')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldifsearch: scope option' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsScope' : 'base' , |
| | | 'dsBaseDN' : 'dc=com' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'outputFile' : 'scope_ldapsearch.out' , |
| | | 'outputPath' : remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'ldifSearchWithScript'"> |
| | | { |
| | | 'dsLdifFile' : dsfilename , |
| | | 'dsSearchScope' : 'base' , |
| | | 'dsBaseDN' : 'dc=com' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'dsOutputFile' : '%s/scope_ldifsearch.out' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'LdifDiffWithScript'"> |
| | | { |
| | | 'sourceLdif' : '%s/scope_ldifsearch.out' % remote.temp , |
| | | 'targetLdif' : '%s/scope_ldapsearch.out' % remote.temp , |
| | | 'outputLdif' : '%s/scope_ldifsearch.diff' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { |
| | | 'returncode' : STAXResult , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldifsearch check behavior tests |
| | | #@TestName ldifsearch: check with sizeLimit option |
| | | #@TestIssue none |
| | | #@TestPurpose Verify that the entries returned by ldifseach |
| | | are the same than the entries returned by |
| | | ldapsearch |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with sizeLimit option. |
| | | #@TestStep Do an ldifsearch with the same option. |
| | | #@TestStep Do an ldif-dif to check the differences. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldifdiff returns no differences. |
| | | --> |
| | | <testcase name="getTestCaseName('ldifsearch: sizeLimit option')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldifsearch: sizeLimit option' |
| | | </message> |
| | | |
| | | <call function="'ldifSearchWithScript'"> |
| | | { |
| | | 'dsLdifFile' : dsfilename , |
| | | 'dsSizeLimit' : '50' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.1*' , |
| | | 'expectedRC' : 4 |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'CheckMatches'"> |
| | | { |
| | | 'string2find' : 'dn: ' , |
| | | 'mainString' : returnString , |
| | | 'nbExpected' : 50 |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldifsearch check behavior tests |
| | | #@TestName ldifsearch: check behavior with a filter file |
| | | (containing one filter) and search attribute |
| | | #@TestIssue none |
| | | #@TestPurpose Verify the output of ldifsearch with |
| | | filter option. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldifsearch with filter file option and |
| | | a search attribute, and check that the number |
| | | of entries is correct |
| | | #@TestStep Compare the output of the previous command to |
| | | a reference file |
| | | #@TestPostamble none |
| | | #@TestResult Success if the outputs for ldifsearch matche |
| | | the refenrence outputs. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldifsearch: check output using --filename and a search attribute')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldifsearch: check output using --filename and a \ |
| | | search attribute' |
| | | </message> |
| | | |
| | | <call function="'ldifSearchWithScript'"> |
| | | { |
| | | 'dsLdifFile' : dsfilename , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilterFile' : filterfile , |
| | | 'dsAttributes' : 'dn' , |
| | | 'dsOutputFile' : '%s/ldifsearch_filterfile_and_attribute.out' \ |
| | | % remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'LdifDiffWithScript'"> |
| | | { |
| | | 'sourceLdif' : '%s/ldifsearch_filterfile_and_attribute.out' \ |
| | | % remote.temp , |
| | | 'targetLdif' : '%s/clu/ldapsearch_filterfile_and_attribute.ref'\ |
| | | % remote.data , |
| | | 'outputLdif' : '%s/ldifmodify.diff' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { |
| | | 'returncode' : STAXResult , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldifsearch check behavior tests |
| | | #@TestName ldifsearch: check behavior with a filter file |
| | | containing multiple filters |
| | | #@TestIssue none |
| | | #@TestPurpose Verify the output of ldifsearch with |
| | | filter option. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldifsearch with filter file option and |
| | | check that the number of entries is correct |
| | | #@TestPostamble none |
| | | #@TestResult Success if the number of entries is 222. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldifsearch: check with a filter file containing multiple filters')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldifsearch: check with a filter file containing multiple\ |
| | | filters' |
| | | </message> |
| | | |
| | | <call function="'ldifSearchWithScript'"> |
| | | { |
| | | 'dsLdifFile' : dsfilename , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilterFile' : mfilterfile |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'CheckMatches'"> |
| | | { |
| | | 'string2find' : 'dn: ' , |
| | | 'mainString' : returnString , |
| | | 'nbExpected' : 222 |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldifsearch check behavior tests |
| | | #@TestName ldifsearch: check behavior with @ocname as |
| | | attribute |
| | | #@TestIssue none |
| | | #@TestPurpose Verify the output of ldifsearch with @ocname |
| | | in the list of requested attributes. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch using @person as attribute |
| | | #@TestStep Do an ldifsearch with the same option. |
| | | #@TestStep Do an ldif-dif to check the differences. |
| | | #@TestStep Do an ldapsearch using @inetorgperson as |
| | | attribute |
| | | #@TestStep Do an ldifsearch with the same option. |
| | | #@TestStep Do an ldif-dif to check the differences. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldifdiff returns no differences. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldifsearch: check with @ocname as attribute')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldifsearch: @person as attribute' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.1*' , |
| | | 'dsAttributes' : '@person' , |
| | | 'outputFile' : 'ocname1_ldapsearch.out' , |
| | | 'outputPath' : remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'ldifSearchWithScript'"> |
| | | { |
| | | 'dsLdifFile' : dsfilename , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.1*' , |
| | | 'dsAttributes' : '@person' , |
| | | 'dsOutputFile' : '%s/ocname1_ldifsearch.out' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'LdifDiffWithScript'"> |
| | | { |
| | | 'sourceLdif' : '%s/ocname1_ldifsearch.out' % remote.temp , |
| | | 'targetLdif' : '%s/ocname1_ldapsearch.out' % remote.temp , |
| | | 'outputLdif' : '%s/ocname1_ldifsearch.diff' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { |
| | | 'returncode' : STAXResult , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | 'ldifsearch: @inetorgperson as attribute' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.1*' , |
| | | 'dsAttributes' : '@inetorgperson' , |
| | | 'outputFile' : 'ocname2_ldapsearch.out' , |
| | | 'outputPath' : remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'ldifSearchWithScript'"> |
| | | { |
| | | 'dsLdifFile' : dsfilename , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.1*' , |
| | | 'dsAttributes' : '@inetorgperson' , |
| | | 'dsOutputFile' : '%s/ocname2_ldifsearch.out' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'LdifDiffWithScript'"> |
| | | { |
| | | 'sourceLdif' : '%s/ocname2_ldifsearch.out' % remote.temp , |
| | | 'targetLdif' : '%s/ocname2_ldapsearch.out' % remote.temp , |
| | | 'outputLdif' : '%s/ocname2_ldifsearch.diff' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { |
| | | 'returncode' : STAXResult , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | </sequence> |
| | | |
| | | <finally> |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldifsearch: standard options' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.1*' , |
| | | 'outputFile' : 'ldapsearch.out' , |
| | | 'outputPath' : remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'ldifSearchWithScript'"> |
| | | { |
| | | 'dsLdifFile' : dsfilename , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.1*' , |
| | | 'dsOutputFile' : '%s/ldifsearch.out' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'LdifDiffWithScript'"> |
| | | { |
| | | 'sourceLdif' : '%s/ldifsearch.out' % remote.temp , |
| | | 'targetLdif' : '%s/ldapsearch.out' % remote.temp , |
| | | 'outputLdif' : '%s/ldifsearch.diff' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { |
| | | 'returncode' : STAXResult , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | <!-- Test Suite Cleanup --> |
| | | <message>'Finally: Global CLU Cleanup.'</message> |
| | | <try> |
| | | <call function="'common_cleanup'" /> |
| | | <catch exception="'STAFException'"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message> |
| | | </sequence> |
| | | </catch> |
| | | <finally> |
| | | <call function="'testSuite_Postamble'"/> |
| | | </finally> |
| | | </try> |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldifsearch check behavior tests |
| | | #@TestName ldifsearch: check with scope option |
| | | #@TestIssue none |
| | | #@TestPurpose Verify that the entries returned by ldifseach |
| | | are the same than the entries returned by |
| | | ldapsearch |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with scope option. |
| | | #@TestStep Do an ldifsearch with the same option. |
| | | #@TestStep Do an ldif-dif to check the differences. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldifdiff returns no differences. |
| | | --> |
| | | <testcase name="getTestCaseName('ldifsearch: scope option')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldifsearch: scope option' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsScope' : 'base' , |
| | | 'dsBaseDN' : 'dc=com' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'outputFile' : 'scope_ldapsearch.out' , |
| | | 'outputPath' : remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'ldifSearchWithScript'"> |
| | | { |
| | | 'dsLdifFile' : dsfilename , |
| | | 'dsSearchScope' : 'base' , |
| | | 'dsBaseDN' : 'dc=com' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'dsOutputFile' : '%s/scope_ldifsearch.out' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'LdifDiffWithScript'"> |
| | | { |
| | | 'sourceLdif' : '%s/scope_ldifsearch.out' % remote.temp , |
| | | 'targetLdif' : '%s/scope_ldapsearch.out' % remote.temp , |
| | | 'outputLdif' : '%s/scope_ldifsearch.diff' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { |
| | | 'returncode' : STAXResult , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldifsearch check behavior tests |
| | | #@TestName ldifsearch: check with sizeLimit option |
| | | #@TestIssue none |
| | | #@TestPurpose Verify that the entries returned by ldifseach |
| | | are the same than the entries returned by |
| | | ldapsearch |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch with sizeLimit option. |
| | | #@TestStep Do an ldifsearch with the same option. |
| | | #@TestStep Do an ldif-dif to check the differences. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldifdiff returns no differences. |
| | | --> |
| | | <testcase name="getTestCaseName('ldifsearch: sizeLimit option')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldifsearch: sizeLimit option' |
| | | </message> |
| | | |
| | | <call function="'ldifSearchWithScript'"> |
| | | { |
| | | 'dsLdifFile' : dsfilename , |
| | | 'dsSizeLimit' : '50' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.1*' , |
| | | 'expectedRC' : 4 |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'CheckMatches'"> |
| | | { |
| | | 'string2find' : 'dn: ' , |
| | | 'mainString' : returnString , |
| | | 'nbExpected' : 50 |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldifsearch check behavior tests |
| | | #@TestName ldifsearch: check behavior with a filter file |
| | | (containing one filter) and search attribute |
| | | #@TestIssue none |
| | | #@TestPurpose Verify the output of ldifsearch with |
| | | filter option. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldifsearch with filter file option and |
| | | a search attribute, and check that the number |
| | | of entries is correct |
| | | #@TestStep Compare the output of the previous command to |
| | | a reference file |
| | | #@TestPostamble none |
| | | #@TestResult Success if the outputs for ldifsearch matche |
| | | the refenrence outputs. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldifsearch: check output using --filename and a search attribute')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldifsearch: check output using --filename and a \ |
| | | search attribute' |
| | | </message> |
| | | |
| | | <call function="'ldifSearchWithScript'"> |
| | | { |
| | | 'dsLdifFile' : dsfilename , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilterFile' : filterfile , |
| | | 'dsAttributes' : 'dn' , |
| | | 'dsOutputFile' : '%s/ldifsearch_filterfile_and_attribute.out' \ |
| | | % remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'LdifDiffWithScript'"> |
| | | { |
| | | 'sourceLdif' : '%s/ldifsearch_filterfile_and_attribute.out' \ |
| | | % remote.temp , |
| | | 'targetLdif' : '%s/clu/ldapsearch_filterfile_and_attribute.ref'\ |
| | | % remote.data , |
| | | 'outputLdif' : '%s/ldifmodify.diff' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { |
| | | 'returncode' : STAXResult , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldifsearch check behavior tests |
| | | #@TestName ldifsearch: check behavior with a filter file |
| | | containing multiple filters |
| | | #@TestIssue none |
| | | #@TestPurpose Verify the output of ldifsearch with |
| | | filter option. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldifsearch with filter file option and |
| | | check that the number of entries is correct |
| | | #@TestPostamble none |
| | | #@TestResult Success if the number of entries is 222. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldifsearch: check with a filter file containing multiple filters')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldifsearch: check with a filter file containing multiple\ |
| | | filters' |
| | | </message> |
| | | |
| | | <call function="'ldifSearchWithScript'"> |
| | | { |
| | | 'dsLdifFile' : dsfilename , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilterFile' : mfilterfile |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'CheckMatches'"> |
| | | { |
| | | 'string2find' : 'dn: ' , |
| | | 'mainString' : returnString , |
| | | 'nbExpected' : 222 |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker ldifsearch check behavior tests |
| | | #@TestName ldifsearch: check behavior with @ocname as |
| | | attribute |
| | | #@TestIssue none |
| | | #@TestPurpose Verify the output of ldifsearch with @ocname |
| | | in the list of requested attributes. |
| | | #@TestPreamble none |
| | | #@TestStep Do an ldapsearch using @person as attribute |
| | | #@TestStep Do an ldifsearch with the same option. |
| | | #@TestStep Do an ldif-dif to check the differences. |
| | | #@TestStep Do an ldapsearch using @inetorgperson as |
| | | attribute |
| | | #@TestStep Do an ldifsearch with the same option. |
| | | #@TestStep Do an ldif-dif to check the differences. |
| | | #@TestPostamble none |
| | | #@TestResult Success if ldifdiff returns no differences. |
| | | --> |
| | | <testcase name="getTestCaseName |
| | | ('ldifsearch: check with @ocname as attribute')"> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'ldifsearch: @person as attribute' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.1*' , |
| | | 'dsAttributes' : '@person' , |
| | | 'outputFile' : 'ocname1_ldapsearch.out' , |
| | | 'outputPath' : remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'ldifSearchWithScript'"> |
| | | { |
| | | 'dsLdifFile' : dsfilename , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.1*' , |
| | | 'dsAttributes' : '@person' , |
| | | 'dsOutputFile' : '%s/ocname1_ldifsearch.out' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'LdifDiffWithScript'"> |
| | | { |
| | | 'sourceLdif' : '%s/ocname1_ldifsearch.out' % remote.temp , |
| | | 'targetLdif' : '%s/ocname1_ldapsearch.out' % remote.temp , |
| | | 'outputLdif' : '%s/ocname1_ldifsearch.diff' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { |
| | | 'returncode' : STAXResult , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | 'ldifsearch: @inetorgperson as attribute' |
| | | </message> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.1*' , |
| | | 'dsAttributes' : '@inetorgperson' , |
| | | 'outputFile' : 'ocname2_ldapsearch.out' , |
| | | 'outputPath' : remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'ldifSearchWithScript'"> |
| | | { |
| | | 'dsLdifFile' : dsfilename , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.1*' , |
| | | 'dsAttributes' : '@inetorgperson' , |
| | | 'dsOutputFile' : '%s/ocname2_ldifsearch.out' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'LdifDiffWithScript'"> |
| | | { |
| | | 'sourceLdif' : '%s/ocname2_ldifsearch.out' % remote.temp , |
| | | 'targetLdif' : '%s/ocname2_ldapsearch.out' % remote.temp , |
| | | 'outputLdif' : '%s/ocname2_ldifsearch.diff' % remote.temp |
| | | } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { |
| | | 'returncode' : STAXResult , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | | </sequence> |
| | | </finally> |
| | | |
| | | </try> |
| | | |
| | | </block> |
| | | |
| opends/tests/staf-tests/functional-tests/testcases/clu/clu_list-backends_checkbehavior.xml
opends/tests/staf-tests/functional-tests/testcases/clu/clu_make-ldif_checkbehavior.xml
opends/tests/staf-tests/functional-tests/testcases/clu/clu_manage-tasks_checkbehavior.xml
opends/tests/staf-tests/functional-tests/testcases/clu/clu_rebuild-index_checkbehavior.xml
opends/tests/staf-tests/functional-tests/testcases/clu/clu_setup.xml
opends/tests/staf-tests/functional-tests/testcases/clu/clu_status_checkbehavior.xml
opends/tests/staf-tests/functional-tests/testcases/clu/clu_verify-index_checkbehavior.xml
opends/tests/staf-tests/functional-tests/testcases/core/core.xml
opends/tests/staf-tests/functional-tests/testcases/dsconfig/dsconfig.xml
opends/tests/staf-tests/functional-tests/testcases/dsconfig/dsconfig_get.xml
opends/tests/staf-tests/functional-tests/testcases/dsconfig/dsconfig_list.xml
opends/tests/staf-tests/functional-tests/testcases/groups/group_cleanup.xml
opends/tests/staf-tests/functional-tests/testcases/groups/group_dynamic.xml
opends/tests/staf-tests/functional-tests/testcases/groups/group_setup.xml
opends/tests/staf-tests/functional-tests/testcases/groups/group_static_member.xml
opends/tests/staf-tests/functional-tests/testcases/groups/group_static_uniquemember.xml
opends/tests/staf-tests/functional-tests/testcases/groups/group_virtual_static.xml
opends/tests/staf-tests/functional-tests/testcases/groups/groups.xml
opends/tests/staf-tests/functional-tests/testcases/i18n/i18n_8bit_LDAPcmds.xml
opends/tests/staf-tests/functional-tests/testcases/i18n/i18n_8bit_authentication.xml
opends/tests/staf-tests/functional-tests/testcases/i18n/i18n_8bit_createbackend.xml
opends/tests/staf-tests/functional-tests/testcases/i18n/i18n_8bit_dataComparison.xml
opends/tests/staf-tests/functional-tests/testcases/i18n/i18n_8bit_schemaExtension.xml
opends/tests/staf-tests/functional-tests/testcases/logging/logging.xml
opends/tests/staf-tests/functional-tests/testcases/logging/logging_cleanup.xml
opends/tests/staf-tests/functional-tests/testcases/logging/logging_properties.xml
opends/tests/staf-tests/functional-tests/testcases/logging/logging_retention.xml
opends/tests/staf-tests/functional-tests/testcases/logging/logging_retention_properties.xml
opends/tests/staf-tests/functional-tests/testcases/logging/logging_rotation.xml
opends/tests/staf-tests/functional-tests/testcases/logging/logging_rotation_properties.xml
opends/tests/staf-tests/functional-tests/testcases/logging/logging_setup.xml
opends/tests/staf-tests/functional-tests/testcases/logging/logging_writer.xml
opends/tests/staf-tests/functional-tests/testcases/monitoring/monitoring.xml
opends/tests/staf-tests/functional-tests/testcases/monitoring/monitoring_componant.xml
opends/tests/staf-tests/functional-tests/testcases/monitoring/monitoring_provider.xml
opends/tests/staf-tests/functional-tests/testcases/plugins/plugins.xml
opends/tests/staf-tests/functional-tests/testcases/plugins/plugins_7bit.xml
opends/tests/staf-tests/functional-tests/testcases/plugins/plugins_entryUUID.xml
opends/tests/staf-tests/functional-tests/testcases/plugins/plugins_lastmod.xml
opends/tests/staf-tests/functional-tests/testcases/plugins/plugins_refint.xml
opends/tests/staf-tests/functional-tests/testcases/plugins/plugins_uniqueness.xml
opends/tests/staf-tests/functional-tests/testcases/privileges/privileges.xml
opends/tests/staf-tests/functional-tests/testcases/privileges/privileges_acis.xml
opends/tests/staf-tests/functional-tests/testcases/privileges/privileges_backup_task.xml
opends/tests/staf-tests/functional-tests/testcases/privileges/privileges_directory_manager.xml
opends/tests/staf-tests/functional-tests/testcases/privileges/privileges_export_task.xml
opends/tests/staf-tests/functional-tests/testcases/privileges/privileges_import_task.xml
opends/tests/staf-tests/functional-tests/testcases/privileges/privileges_new_root_user.xml
opends/tests/staf-tests/functional-tests/testcases/privileges/privileges_restore_task.xml
opends/tests/staf-tests/functional-tests/testcases/privileges/privileges_unindexed_searches.xml
opends/tests/staf-tests/functional-tests/testcases/privileges/privileges_users.xml
opends/tests/staf-tests/functional-tests/testcases/quickstart/quickstart.xml
opends/tests/staf-tests/functional-tests/testcases/schema/dynamic/schema_dynamic.xml
opends/tests/staf-tests/functional-tests/testcases/schema/rfc/schema_rfc.xml
opends/tests/staf-tests/functional-tests/testcases/schema/schema.xml
opends/tests/staf-tests/functional-tests/testcases/schema/schema_cleanup.xml
opends/tests/staf-tests/functional-tests/testcases/schema/solaris/schema_solaris.xml
opends/tests/staf-tests/functional-tests/testcases/security/account_activation/security_account_activation.xml
opends/tests/staf-tests/functional-tests/testcases/security/auth_pwd_syntax/security_auth_pwd_syntax.xml
opends/tests/staf-tests/functional-tests/testcases/security/bind_no_pwd/security_bind_no_pwd.xml
opends/tests/staf-tests/functional-tests/testcases/security/client_auth/client_auth.xml
opends/tests/staf-tests/functional-tests/testcases/security/client_auth/client_auth_setup.xml
opends/tests/staf-tests/functional-tests/testcases/security/jks/security_bob_custom_jks.xml
opends/tests/staf-tests/functional-tests/testcases/security/jks/security_bob_jks.xml
opends/tests/staf-tests/functional-tests/testcases/security/jks/security_jks.xml
opends/tests/staf-tests/functional-tests/testcases/security/pkcs12/security_bob_pkcs12.xml
opends/tests/staf-tests/functional-tests/testcases/security/pkcs12/security_pkcs12.xml
opends/tests/staf-tests/functional-tests/testcases/security/pkcs12/security_setup_pkcs12.xml
opends/tests/staf-tests/functional-tests/testcases/security/pkcs12/security_teardown_pkcs12.xml
opends/tests/staf-tests/functional-tests/testcases/security/pwd_policy/security_pwd_policy.xml
opends/tests/staf-tests/functional-tests/testcases/security/pwd_policy_root/security_pwd_policy_root.xml
opends/tests/staf-tests/functional-tests/testcases/security/pwd_policy_root/security_root_auth.xml
opends/tests/staf-tests/functional-tests/testcases/security/pwd_policy_root/security_root_user_tests.xml
opends/tests/staf-tests/functional-tests/testcases/security/pwd_storage/security_pwd_storage.xml
opends/tests/staf-tests/functional-tests/testcases/security/pwd_validator/security_pwd_validator.xml
opends/tests/staf-tests/functional-tests/testcases/security/sasl/security_sasl.xml
opends/tests/staf-tests/functional-tests/testcases/security/security.xml
opends/tests/staf-tests/functional-tests/testcases/security/startTLS/security_bob_startTLS.xml
opends/tests/staf-tests/functional-tests/testcases/security/startTLS/security_force_pwd_change_startTLS.xml
opends/tests/staf-tests/functional-tests/testcases/security/startTLS/security_setup_startTLS.xml
opends/tests/staf-tests/functional-tests/testcases/security/startTLS/security_startTLS.xml
opends/tests/staf-tests/functional-tests/testcases/security/startTLS/security_teardown_startTLS.xml
opends/tests/staf-tests/functional-tests/testcases/snmp/snmp_setup.xml
opends/tests/staf-tests/functional-tests/testcases/tasks/allowed-tasks.xml
opends/tests/staf-tests/functional-tests/testcases/tasks/backup_db.xml
opends/tests/staf-tests/functional-tests/testcases/tasks/export-ldif.xml
opends/tests/staf-tests/functional-tests/testcases/tasks/import-ldif.xml
opends/tests/staf-tests/functional-tests/testcases/tasks/restart_db.xml
opends/tests/staf-tests/functional-tests/testcases/tasks/restore_db.xml
opends/tests/staf-tests/functional-tests/testcases/tasks/tasks.xml
opends/tests/staf-tests/shared/functions/dsadm.xml
opends/tests/staf-tests/shared/functions/environment.xml
opends/tests/staf-tests/shared/functions/tools.xml
opends/tests/staf-tests/shared/python/common.py |