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

Gary Williams
30.32.2012 b0f516bc241939247dd773089d012e4029965d8c
Fix NameError caused by undefined variable in export-ldif tasks functional tests
1 files modified
19 ■■■■■ changed files
opends/tests/staf-tests/functional-tests/testcases/tasks/export-ldif.xml 19 ●●●●● patch | view | raw | blame | history
opends/tests/staf-tests/functional-tests/testcases/tasks/export-ldif.xml
@@ -239,8 +239,11 @@
          <testcase name="getTestCaseName('schedule export-ldif task for scheduled execution in asynchronous mode')">
            <sequence>
              <call function="'testCase_Preamble'"/>
              <script>
                startTask = '20061212000000'
              </script>
              <call function="'exportLdifWithScript'">
                { 'location'          : STAF_REMOTE_HOSTNAME ,
                'dsInstanceHost'      : DIRECTORY_INSTANCE_HOST,
@@ -248,14 +251,18 @@
                'dsInstanceDn'        : DIRECTORY_INSTANCE_DN,
                'dsInstancePswd'      : DIRECTORY_INSTANCE_PSWD,
                'ldifFile'            : '%s/tasks/export_schedule_asynchronous' % remote.temp,
                'startTask'           : '20061212000000',
                'expectedRC' : 1,
                'startTask'           : startTask,
                'expectedRC'          : 1,
                'backEnd'             : DIRECTORY_INSTANCE_BE}
              </call>
              
              <script>
                returnString = STAXResult[0][1]
              </script>
              <call function="'searchString'">
                { 'expectedString' : 'The specified start time \'%s\' has already passed'%startTask,
                  'returnString'     : resultString ,
                { 'expectedString' : 'The specified start time \'%s\' has already passed' % startTask ,
                  'returnString' : returnString,
                }
              </call>