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

el_kaboing
16.56.2006 10dcb9636fb05be7bc257c35269929b709fdcb4a
Adding a function to ldap.xml where a search can be conducted with a password required parameter.

Adding the ability to copy files into the data zip file that have a 'pwd' extension that will be used for password files in the functional tests.
2 files modified
56 ■■■■■ changed files
opendj-sdk/opends/tests/functional-tests/shared/functions/ldap.xml 48 ●●●●● patch | view | raw | blame | history
opendj-sdk/opends/tests/functional-tests/testcases/setup/setup.xml 8 ●●●●● patch | view | raw | blame | history
opendj-sdk/opends/tests/functional-tests/shared/functions/ldap.xml
@@ -185,6 +185,54 @@
    </function>
    <function name="SearchObjectNoPwd">
    <function-prolog>
        This function searches the Directory Server with optional arguments possible
    </function-prolog>
    <function-map-args>
        <function-required-arg name="dsInstanceHost">
            Directory Server Host Name
        </function-required-arg>
        <function-required-arg name="dsInstancePort">
            Directory Server Port Number
        </function-required-arg>
        <function-required-arg name="dsInstanceDn">
            Directory Server Manager DN
        </function-required-arg>
        <function-required-arg name="dsBaseDN">
            The baseDN for the search operation
        </function-required-arg>
        <function-required-arg name="dsFilter">
            The filter for the search operation
        </function-required-arg>
        <function-optional-arg name="extraParams" default="' '">
            Optional extra parameters for specific test cases
        </function-optional-arg>
    </function-map-args>
      <sequence>
        <message>
            'ldapsearch%s -h %s -p %s -D "%s" %s -b "%s" "%s"' % (fileExt,dsInstanceHost,dsInstancePort,dsInstanceDn,extraParams,dsBaseDN,dsFilter)
        </message>
        <process name="'Search Base Object'">
            <location>'%s' % (STAF_REMOTE_HOSTNAME) </location>
            <command>'%s/ldapsearch%s' % (OPENDS_BINPATH,fileExt)</command>
            <parms>'-h %s -p %s -D "%s" %s -b "%s" "%s"' % (dsInstanceHost,dsInstancePort,dsInstanceDn,extraParams,dsBaseDN,dsFilter)</parms>
            <workdir>'%s' % (OPENDS_BINPATH)</workdir>
            <envs>
                ['PATH=/bin:/usr/bin:%s' % (OPENDS_BINPATH), 'JAVA_HOME=%s' % (JAVA_HOME)]
            </envs>
            <stderr mode="'stdout'"/>
            <returnstdout/>
        </process>
      </sequence>
    </function>
    <function name="AnonSearchObject">
    <function-prolog>
opendj-sdk/opends/tests/functional-tests/testcases/setup/setup.xml
@@ -58,6 +58,14 @@
          }
      </call>
      <call function="'CopyFolderByExtension'">
          { 'srcfolder'  : TESTS_DIR,
            'destfolder' : TMP_DATA_DIR,
            'extension'  : 'pwd',
            'hostname'   : STAF_LOCAL_HOSTNAME
          }
      </call>
      <!-- Archive (gz) files -->
      <message>'Copy gz data files'</message>
      <call function="'CopyFolderByExtension'">