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

Christophe Sovant
25.09.2013 7d59da27ea7ef3fde60601c3a27ffcc7b4be2ff0
CR-1908 Added basic stress on replicated topology and added add/del operation
=> fixed cleanup for operations testsuite
=> removed traces for sdk tools

2 files modified
153 ■■■■ changed files
opends/tests/staf-tests/shared/functions/sdk.xml 150 ●●●● patch | view | raw | blame | history
opends/tests/staf-tests/stress-tests/testcases/operations/basic/operations_basic.xml 3 ●●●● patch | view | raw | blame | history
opends/tests/staf-tests/shared/functions/sdk.xml
@@ -304,23 +304,25 @@
          }
        </call>
      <else>
        <call function="'runCommand'">
          { 'command'     : STAFCmd,
            'arguments'   : STAFCmdParams,
            'location'    : mylocation,
            'name'        : 'authrate',
            'expectedRC'  : expectedRC,
            'knownIssue'  : knownIssue
          }
        </call>
        <sequence>
          <call function="'runCommand'">
            { 'command'     : STAFCmd,
              'arguments'   : STAFCmdParams,
              'location'    : mylocation,
              'name'        : 'authrate',
              'expectedRC'  : expectedRC,
              'knownIssue'  : knownIssue
            }
          </call>
          <script>
            for line in STAXResult[0][1].split('\n'):
              print line
          </script>
        </sequence>
      </else>
      </if>
      
      <script>
        for line in STAXResult[0][1].split('\n'):
          print line
      </script>
      <return>
        STAXResult
      </return>
@@ -458,23 +460,25 @@
          }
        </call>
      <else>
        <call function="'runCommand'">
          { 'command'     : STAFCmd,
            'arguments'   : STAFCmdParams,
            'location'    : mylocation,
            'name'        : 'searchrate',
            'expectedRC'  : expectedRC,
            'knownIssue'  : knownIssue
          }
        </call>
        <sequence>
          <call function="'runCommand'">
            { 'command'     : STAFCmd,
              'arguments'   : STAFCmdParams,
              'location'    : mylocation,
              'name'        : 'searchrate',
              'expectedRC'  : expectedRC,
              'knownIssue'  : knownIssue
            }
          </call>
          <script>
            for line in STAXResult[0][1].split('\n'):
              print line
          </script>
        </sequence>
      </else>
      </if>
      
      <script>
        for line in STAXResult[0][1].split('\n'):
          print line
      </script>
      <return>
        STAXResult
      </return>
@@ -630,22 +634,24 @@
          }
        </call>
      <else>
        <call function="'runCommand'">
          { 'command'     : STAFCmd,
            'arguments'   : STAFCmdParams,
            'location'    : mylocation,
            'name'        : 'modrate',
            'expectedRC'  : expectedRC,
            'knownIssue'  : knownIssue
          }
        </call>
        <sequence>
          <call function="'runCommand'">
            { 'command'     : STAFCmd,
              'arguments'   : STAFCmdParams,
              'location'    : mylocation,
              'name'        : 'modrate',
              'expectedRC'  : expectedRC,
              'knownIssue'  : knownIssue
            }
          </call>
          <script>
            for line in STAXResult[0][1].split('\n'):
              print line
          </script>
        </sequence>
      </else>
      </if>
      <script>
        for line in STAXResult[0][1].split('\n'):
          print line
      </script>
      <return>
        STAXResult
@@ -784,22 +790,24 @@
          }
        </call>
      <else>
        <call function="'runCommand'">
          { 'command'     : STAFCmd,
            'arguments'   : STAFCmdParams,
            'location'    : mylocation,
            'name'        : 'addrate',
            'expectedRC'  : expectedRC,
            'knownIssue'  : knownIssue
          }
        </call>
        <sequence>
          <call function="'runCommand'">
            { 'command'     : STAFCmd,
              'arguments'   : STAFCmdParams,
              'location'    : mylocation,
              'name'        : 'addrate',
              'expectedRC'  : expectedRC,
              'knownIssue'  : knownIssue
            }
          </call>
          <script>
            for line in STAXResult[0][1].split('\n'):
              print line
          </script>
        </sequence>
      </else>
      </if>
      <script>
        for line in STAXResult[0][1].split('\n'):
          print line
      </script>
      <return>
        STAXResult
@@ -938,22 +946,24 @@
          }
        </call>
      <else>
        <call function="'runCommand'">
          { 'command'     : STAFCmd,
            'arguments'   : STAFCmdParams,
            'location'    : mylocation,
            'name'        : 'delrate',
            'expectedRC'  : expectedRC,
            'knownIssue'  : knownIssue
          }
        </call>
        <sequence>
          <call function="'runCommand'">
            { 'command'     : STAFCmd,
              'arguments'   : STAFCmdParams,
              'location'    : mylocation,
              'name'        : 'delrate',
              'expectedRC'  : expectedRC,
              'knownIssue'  : knownIssue
            }
          </call>
          <script>
            for line in STAXResult[0][1].split('\n'):
              print line
          </script>
        </sequence>
      </else>
      </if>
      <script>
        for line in STAXResult[0][1].split('\n'):
          print line
      </script>
      <return>
        STAXResult
opends/tests/staf-tests/stress-tests/testcases/operations/basic/operations_basic.xml
@@ -121,8 +121,7 @@
              <!-- Test Suite Cleanup -->
              <message>'Finally: Global Cleanup.'</message>
              <try>
                <!--<call function="'common_cleanup'" />-->
                <message>'gfgd'</message>
                <call function="'common_cleanup'" />
              <catch exception="'STAFException'">
                <sequence>
                  <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message>