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

Christophe Sovant
09.26.2013 96a37235985f92b8c88a09f86fad5567feb867e5
Updated privileges tests after fix for issue OPENDJ-1107 and fixed problem with jstack on Windows
3 files modified
81 ■■■■ changed files
opendj-sdk/opends/tests/staf-tests/functional-tests/testcases/privileges/privileges_export_task.xml 40 ●●●● patch | view | raw | blame | history
opendj-sdk/opends/tests/staf-tests/functional-tests/testcases/privileges/privileges_import_task.xml 37 ●●●● patch | view | raw | blame | history
opendj-sdk/opends/tests/staf-tests/shared/functions/utils.xml 4 ●●●● patch | view | raw | blame | history
opendj-sdk/opends/tests/staf-tests/functional-tests/testcases/privileges/privileges_export_task.xml
@@ -115,12 +115,19 @@
                <script>
                 resultString = STAXResult[0][1]
                 msg1 = 'The server rejected the task for the following reason:'
                 msg2 = 'cannot be added due%sto insufficient access rights' % newLine
                </script>
                <call function="'searchString'">
                { 'expectedString' : 'Tasks cannot be%sadded due to insufficient access rights' % newLine,
                  'returnString'   : resultString,
                  'knownIssue'     : 'OPENDJ-1107'
                { 'expectedString' : msg1 ,
                  'returnString'   : resultString
                  }
                </call>
                <call function="'searchString'">
                { 'expectedString' : msg2 ,
                  'returnString'   : resultString
                }
                </call>
                  
@@ -155,12 +162,19 @@
                <script>
                 resultString = STAXResult[0][1]
                 msg1 = 'The server rejected the task for the following reason:'
                 msg2 = 'cannot be added due%sto insufficient access rights' % newLine
                </script>
                 <call function="'searchString'">
                { 'expectedString' : 'Tasks cannot be%sadded due to insufficient access rights' % newLine,
                  'returnString'   : resultString,
                  'knownIssue'     : 'OPENDJ-1107'
                { 'expectedString' : msg1 ,
                  'returnString'   : resultString
                  }
                </call>
                <call function="'searchString'">
                { 'expectedString' : msg2 ,
                  'returnString'   : resultString
                }
                </call>
                  
@@ -242,10 +256,18 @@
                <script>
                 resultString = STAXResult[0][1]
                 msg1 = 'The server rejected the task for the following reason:'
                 msg2 = 'cannot be added due%sto insufficient access rights' % newLine
                </script>
                 <call function="'searchString'">
                { 'expectedString' : 'Tasks cannot be%sadded due to insufficient access rights' % newLine,
                { 'expectedString' : msg1 ,
                  'returnString'   : resultString
                  }
                </call>
                <call function="'searchString'">
                { 'expectedString' : msg2 ,
                  'returnString'     : resultString
                }
                </call>
@@ -326,7 +348,7 @@
                </script>
                 <call function="'searchString'">
                { 'expectedString' : 'You do not have sufficient privileges to initiate an LDIF export',
                { 'expectedString' : 'You do not have%ssufficient privileges to initiate an LDIF export' % newLine,
                  'returnString'     : resultString
                }
                </call>
@@ -447,7 +469,7 @@
                </script>
                 <call function="'searchString'">
                { 'expectedString' : 'You do not have sufficient privileges to initiate an LDIF export',
                { 'expectedString' : 'You do not have%ssufficient privileges to initiate an LDIF export' % newLine,
                  'returnString'     : resultString
                }
                </call>
opendj-sdk/opends/tests/staf-tests/functional-tests/testcases/privileges/privileges_import_task.xml
@@ -115,12 +115,19 @@
                  <script>
                   resultString = STAXResult[0][1]
                   msg1 = 'The server rejected the task for the following reason:'
                   msg2 = 'cannot be added due%sto insufficient access rights' % newLine
                  </script>
                  <call function="'searchString'">
                  { 'expectedString' : 'Tasks cannot be%sadded due to insufficient access rights' % newLine,
                    'returnString'   : resultString ,
                    'knownIssue'     : 'OPENDJ-1107'
                  { 'expectedString' : msg1 ,
                    'returnString'   : resultString
                    }
                  </call>
                  <call function="'searchString'">
                  { 'expectedString' : msg2 ,
                    'returnString'   : resultString
                    }
                  </call>
                  
@@ -287,11 +294,19 @@
                  <script>
                   resultString = STAXResult[0][1]
                   msg1 = 'The server rejected the task for the following reason:'
                   msg2 = 'You do not have%ssufficient privileges to initiate an LDIF import' % newLine
                  </script>
                  <call function="'searchString'">
                   { 'returnString'       : resultString ,
                       'expectedString'   : 'You do not have sufficient privileges to initiate an LDIF import'
                  { 'expectedString' : msg1 ,
                    'returnString'   : resultString
                    }
                  </call>
                  <call function="'searchString'">
                  { 'expectedString' : msg2 ,
                    'returnString'   : resultString
                   }
                  </call>
                  
@@ -422,11 +437,19 @@
                  <script>
                   resultString = STAXResult[0][1]
                   msg1 = 'The server rejected the task for the following reason:'
                   msg2 = 'You do not have%ssufficient privileges to initiate an LDIF import' % newLine
                  </script>
                  <call function="'searchString'">
                    { 'returnString'       : resultString ,
                       'expectedString'   : 'You do not have sufficient privileges to initiate an LDIF import'
                  { 'expectedString' : msg1 ,
                    'returnString'   : resultString
                    }
                  </call>
                  <call function="'searchString'">
                  { 'expectedString' : msg2 ,
                    'returnString'   : resultString
                    }
                  </call>
                  
opendj-sdk/opends/tests/staf-tests/shared/functions/utils.xml
@@ -2203,6 +2203,10 @@
      
          cmd = '%s/bin/jstack' % JAVA_HOME
          env = ['JAVA_HOME=%s' % JAVA_HOME]
          if is_windows_platform(location):
            cmdOptions = '-l %s' % pidSTAXResult
          else:
          cmdOptions = '-l %s' % pid
          
          outputPath = '%s/..' % (dsPath)