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

Christophe Sovant
28.32.2013 eeb5b0e4faafefa30be9a66a44b34d0ee4533643
CR-1750 Updated expected result for dsml/searchfilter_substringsnosubfilter test and fixed jython exception in SNMP tests
3 files modified
32 ■■■■ changed files
opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/03dsmlerrsuite/data/searchfilter_substringsnosubfilter.res 2 ●●● patch | view | raw | blame | history
opends/tests/staf-tests/functional-tests/testcases/snmp/basic/snmp_basic_tests.xml 24 ●●●● patch | view | raw | blame | history
opends/tests/staf-tests/shared/functions/utils.xml 6 ●●●●● patch | view | raw | blame | history
opends/tests/staf-tests/functional-tests/shared/data/dsml/suites/03dsmlerrsuite/data/searchfilter_substringsnosubfilter.res
@@ -7,7 +7,7 @@
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<batchResponse xmlns="urn:oasis:names:tc:DSML:2:0:core" requestID="[substrings] element has no subfilter [initial], [any], [final]">
<errorResponse type="Unknown error">
<errorResponse type="malformedRequest">
<message>org.opends.server.types.LDAPException: Cannot decode the provided ASN.1 element as an LDAP search filter because the element was null</message>
</errorResponse>
</batchResponse>
opends/tests/staf-tests/functional-tests/testcases/snmp/basic/snmp_basic_tests.xml
@@ -1702,15 +1702,27 @@
              opendmkJarFile = '%s/%s/wrong_file' \
                               % (DIRECTORY_INSTANCE_DIR, OPENDSNAME)
              if is_windows_platform(DIRECTORY_INSTANCE_HOST):
                opendmkJarFile = opendmkJarFile.replace('/', '\')
                opendmkJarFile = opendmkJarFile.replace('/', '\\')
              msg1 = 'The specified OpenDMK jar file'
              msg2 = '\'%s\' could not be found.' % opendmkJarFile
              msg3 = 'Verify that the value set in the opendmk-jarfile'
              msg4 = 'configuration parameter of the SNMP connection handler'
              msg5 = 'is the valid path to the jdmkrt.jar file and that the'
              msg6 = 'file is accessible'
              msg = '%s %s  %s %s %s %s' % (msg1, msg2, msg3, msg4, msg5, msg6)
              msg = '%s %s' % (msg1, msg2)
            </script>
            <call function="'grep'">
              {
              'location'  : STAF_REMOTE_HOSTNAME ,
              'filename'  : serverLogFile ,
              'testString': msg
              }
            </call>
            <script>
              msg1 = 'Verify that the value set in the opendmk-jarfile'
              msg2 = 'configuration parameter of the SNMP connection handler'
              msg3 = 'is the valid path to the jdmkrt.jar file and that the'
              msg4 = 'file is accessible'
              msg = '%s %s %s %s' % (msg1, msg2, msg3, msg4)
            </script>
            <call function="'grep'">
opends/tests/staf-tests/shared/functions/utils.xml
@@ -2327,6 +2327,12 @@
          # expect testString not to be present in filecontent
          myExpectedResult = '0'                 
      </script>        
      <if expr="VERBOSE_MODE == 'true'">
        <message>
          'File content %s' % filecontent
        </message>
      </if>
      <call function="'searchStringForSubstring'">
        {