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

Christophe Sovant
11.01.2013 8cf6925f6b5db6499c1086d16a1236d0260ca603
CR-1273 Fix for snmp basic testsuite
2 files modified
46 ■■■■ changed files
opends/tests/staf-tests/functional-tests/testcases/snmp/basic/snmp_basic_tests.xml 37 ●●●● patch | view | raw | blame | history
opends/tests/staf-tests/shared/functions/snmp.xml 9 ●●●● patch | view | raw | blame | history
opends/tests/staf-tests/functional-tests/testcases/snmp/basic/snmp_basic_tests.xml
@@ -24,7 +24,7 @@
 ! CDDL HEADER END
 !
 !      Copyright 2008 Sun Microsystems, Inc.
 !      Portions Copyright 2012 ForgeRock AS
 !      Portions Copyright 2012-2013 ForgeRock AS
 ! -->
<stax>
@@ -88,7 +88,7 @@
  <!--- Test Case information
    #@TestMarker          SNMP MIB values
    #@TestName            snmp_mibvalues: TODO
    #@TestIssue           none
    #@TestIssue           OPENDJ-750
    #@TestPurpose         TODO.
    #@TestPreamble        none
    #@TestStep            TODO.
@@ -115,7 +115,8 @@
              'snmpCommunity' : community ,
              'snmpOIDs'      : '' ,
              'snmpStatus'    : 'noError' ,
              'snmpWalk'      : 'True'
              'snmpWalk'      : 'True' ,
              'knownIssue'    : 'OPENDJ-750'
              }
            </call>
@@ -372,7 +373,7 @@
  <!--- Test Case information
    #@TestMarker          SNMP MIB values
    #@TestName            snmp_mibvalues: TODO
    #@TestIssue           3862
    #@TestIssue           3862 OPENDJ-750
    #@TestPurpose         TODO.
    #@TestPreamble        none
    #@TestStep            TODO.
@@ -434,6 +435,9 @@
                str(int(DEFAULT_VALUES[key]) + nbLoop)
              
            </script>
            <call function="'setKnownIssue'">
              { 'issueId' : 'OPENDJ-750' }
            </call>
            <call function="'testStep'">
              { 'stepMessage' : 'Check value of dsApplIfSearchOps entry' }
@@ -492,7 +496,7 @@
  <!--- Test Case information
    #@TestMarker          SNMP MIB values
    #@TestName            snmp_mibvalues: TODO
    #@TestIssue           3862
    #@TestIssue           3862 OPENDJ-750
    #@TestPurpose         TODO.
    #@TestPreamble        none
    #@TestStep            TODO.
@@ -564,6 +568,9 @@
              DEFAULT_VALUES['dsMasterEntries.1'] = \
                str(int(DEFAULT_VALUES['dsMasterEntries.1']) + nbLoop)
            </script>
            <call function="'setKnownIssue'">
              { 'issueId' : 'OPENDJ-750' }
            </call>
            <call function="'testStep'">
              { 'stepMessage' : 'Check value of dsApplIfAddEntryOps entry' }
@@ -622,7 +629,7 @@
   <!--- Test Case information
    #@TestMarker          SNMP MIB values
    #@TestName            snmp_mibvalues: TODO
    #@TestIssue           3862
    #@TestIssue           3862 OPENDJ-750
    #@TestPurpose         TODO.
    #@TestPreamble        none
    #@TestStep            TODO.
@@ -683,6 +690,9 @@
              DEFAULT_VALUES['dsMasterEntries.1'] = \
                str(int(DEFAULT_VALUES['dsMasterEntries.1']) - nbLoop)
            </script>
            <call function="'setKnownIssue'">
              { 'issueId' : 'OPENDJ-750' }
            </call>
            <call function="'testStep'">
              { 'stepMessage' : 'Check value of dsApplIfRemoveEntryOps entry' }
@@ -741,7 +751,7 @@
  <!--- Test Case information
    #@TestMarker          SNMP MIB values
    #@TestName            snmp_mibvalues: TODO
    #@TestIssue           3862
    #@TestIssue           3862 OPENDJ-750
    #@TestPurpose         TODO.
    #@TestPreamble        none
    #@TestStep            TODO.
@@ -801,6 +811,9 @@
              DEFAULT_VALUES[key] = \
                str(int(DEFAULT_VALUES[key]) + nbLoop)
            </script>
            <call function="'setKnownIssue'">
              { 'issueId' : 'OPENDJ-750' }
            </call>
            <call function="'testStep'">
              { 'stepMessage' : 'Check value of dsApplIfCompareOps entry' }
@@ -859,7 +872,7 @@
  <!--- Test Case information
    #@TestMarker          SNMP MIB values
    #@TestName            snmp_mibvalues: TODO
    #@TestIssue           3862
    #@TestIssue           3862 OPENDJ-750
    #@TestPurpose         TODO.
    #@TestPreamble        none
    #@TestStep            TODO.
@@ -921,6 +934,9 @@
              DEFAULT_VALUES[key] = \
                str(int(DEFAULT_VALUES[key]) + nbLoop)
            </script>
            <call function="'setKnownIssue'">
              { 'issueId' : 'OPENDJ-750' }
            </call>
            <call function="'testStep'">
              { 'stepMessage' : 'Check value of dsApplIfModifyEntryOps entry' }
@@ -979,7 +995,7 @@
  <!--- Test Case information
    #@TestMarker          SNMP MIB values
    #@TestName            snmp_mibvalues: TODO
    #@TestIssue           3862
    #@TestIssue           3862 OPENDJ-750
    #@TestPurpose         TODO.
    #@TestPreamble        none
    #@TestStep            TODO.
@@ -1089,6 +1105,9 @@
              DEFAULT_VALUES[key] = \
                str(int(DEFAULT_VALUES[key]) + nbLoop)
            </script>
            <call function="'setKnownIssue'">
              { 'issueId' : 'OPENDJ-750' }
            </call>
            <call function="'testStep'">
              { 'stepMessage' : 'Check value of dsApplIfModifyRDNOps entry' }
opends/tests/staf-tests/shared/functions/snmp.xml
@@ -24,6 +24,7 @@
 ! CDDL HEADER END
 !
 !      Copyright 2008-2010 Sun Microsystems, Inc.
 !      Portions Copyright 2013 ForgeRock AS
! -->
<stax>
  <!-- SNMP Get -->
@@ -115,6 +116,11 @@
        </function-arg-description>
        <function-arg-property name="type" value="integer"/>
      </function-arg-def>
      <function-arg-def name="knownIssue" type="optional" default="None">
        <function-arg-description>
          Known issue. Corresponds to an issue number.
        </function-arg-description>
      </function-arg-def>
    </function-map-args>
    <sequence>
@@ -211,7 +217,8 @@
        'location'   : location ,
        'path'       : '%s/snmp' % remote.java ,
        'envCmd'     : env ,
        'expectedRC' : expectedRC
        'expectedRC' : expectedRC ,
        'knownIssue' : knownIssue
        }
      </call>