mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

andrug
18.19.2008 fd8daefd703cf621859984d01a639c07a6e4de8a
add testcase for issue 423 Static Group Nesting Support
2 files modified
61 ■■■■■ changed files
opends/tests/functional-tests/shared/data/groups/groups.ldif 7 ●●●●● patch | view | raw | blame | history
opends/tests/functional-tests/testcases/groups/group_static_member.xml 54 ●●●●● patch | view | raw | blame | history
opends/tests/functional-tests/shared/data/groups/groups.ldif
@@ -70,6 +70,13 @@
member: uid=user_09,ou=static,dc=groups,dc=com
member: uid=user_10,ou=static,dc=groups,dc=com
dn: cn=my_staticgroup3,dc=groups,dc=com
cn: my_staticgroup3
objectclass: top
objectClass: groupOfNames
description: this is the description of my_staticgroup3
member: cn=my_staticgroup2,dc=groups,dc=com
dn: cn=my_dynamicgroup1,dc=groups,dc=com
cn: my_dynamicgroup1
objectclass: top
opends/tests/functional-tests/testcases/groups/group_static_member.xml
@@ -42,6 +42,7 @@
            applicationDn='uid=my_application,dc=groups,dc=com'
            applicationPswd='pw_my_application'
            staticGroup2Dn='cn=my_staticgroup2,dc=groups,dc=com'
            staticGroup3Dn='cn=my_staticgroup3,dc=groups,dc=com'
            newStaticGroup='my_newStaticGroup'
            newStaticGroupDn='cn=%s,dc=groups,dc=com' % (newStaticGroup)
            newStaticGroupPswd='pw_%s' % (newStaticGroup)
@@ -725,7 +726,7 @@
          </testcase>
          
          
          
          <!--- Test Case information
          #@TestMarker          Group StaticGroup Tests
@@ -751,6 +752,57 @@
          
          
          
          <!--- Test Case information
          #@TestMarker          Group StaticGroup Tests
          #@TestName            Group: Static: member: nesting group
          #@TestID
          #@TestPurpose
          #@TestPreamble
          #@TestSteps
          #@TestPostamble
          #@TestResult
          -->
          <testcase name="getTestCaseName
                          ('member: application search in nesting group')">
            <sequence>
              <call function="'testCase_Preamble'"/>
              <message>
                '++++ Application do a search on static nesting group'
              </message>
              <call function="'ldapSearchWithScript'">
                { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
                'dsInstancePort'   : DIRECTORY_INSTANCE_PORT ,
                'dsInstanceDn'     : applicationDn ,
                'dsInstancePswd'   : applicationPswd ,
                'dsBaseDN'         : staticGroup3Dn ,
                'dsFilter'         : 'objectclass=*' ,
                'dsAttributes'     : 'member' }
              </call>
              <script>
                STAXReason = STAXResult[0][1]
              </script>
              <!-- ******************** -->
              <message>
                '++++ Check ldapsearch result return 1 entry'
              </message>
              <call function="'CheckMatches'">
                { 'string2find' : 'member' ,
                'mainString'    : STAXReason ,
                'nbExpected'    : 1
                }
              </call>
              <!-- ******************** -->
              <call function="'CheckIsMemberOf'">
                { 'baseDn'      : user1Dn ,
                  'string2find' : staticGroup3Dn ,
                  'nbExpected'  : 1
                }
              </call>
              <call function="'testCase_Postamble'"/>
            </sequence>
          </testcase>
          
          
          <!-- *********************************************** -->