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

madiot
30.34.2009 fe572bf501ea876e555b498780f68019240c5e35
fixing DSML issue tracking and tomcat logs backup
3 files modified
27 ■■■■ changed files
opendj-sdk/opends/tests/staf-tests/functional-tests/testcases/dsml/dsml_cleanup.xml 2 ●●● patch | view | raw | blame | history
opendj-sdk/opends/tests/staf-tests/functional-tests/testcases/dsml/dsml_test.xml 21 ●●●● patch | view | raw | blame | history
opendj-sdk/opends/tests/staf-tests/shared/dsml/src/com/ibm/staf/service/opends/DSMLService.java 4 ●●● patch | view | raw | blame | history
opendj-sdk/opends/tests/staf-tests/functional-tests/testcases/dsml/dsml_cleanup.xml
@@ -120,7 +120,7 @@
                'location'  :  STAF_REMOTE_HOSTNAME,
                'service'   :  'FS',
                'request'   :  'COPY ',
                'arguments' :  'DIRECTORY %s/%s-%s/logs TODIRECTORY %s/tomcatLogBackup TOMACHINE %s RECURSE' % (WC_DIRECTORY, WC_TYPE, WC_VERSION, STAXServiceMachine, local.temp)
                'arguments' :  'DIRECTORY %s/%s-%s/logs TODIRECTORY %s/tomcatLogBackup TOMACHINE %s RECURSE' % (WC_DIRECTORY, WC_TYPE, WC_VERSION, local.temp, STAXServiceMachine)
              }
            </call>
opendj-sdk/opends/tests/staf-tests/functional-tests/testcases/dsml/dsml_test.xml
@@ -280,10 +280,10 @@
                                }
                              </call>
                              <if expr="RC != 0">
                                <!-- list the known issue for the TC -->
                              <sequence>
                                <script>
                                  foundKnownIssue = False
                                </script>
                                <message>"check against test's known issues"</message>
                                <call function="'runSTAFCommand'">
@@ -332,13 +332,16 @@
                                                  <call function="'setKnownIssue'">
                                                    { 'issueId' : issue }
                                                  </call>
                                                  <script>
                                                    foundKnownIssue = True
                                                  </script>
                                                  <break/>
                                                </sequence>
                                              </if>
                                            </sequence>
                                          </iterate>
                                        </if>
                                        <if expr="len(genericIssues) > 0">
                                        <if expr="not foundKnownIssue and len(genericIssues) > 0">
                                          <iterate var="issueFile" in="genericIssues">
                                            <sequence>
                                              <script>
@@ -361,12 +364,17 @@
                                                  <call function="'setKnownIssue'">
                                                    { 'issueId' : issue }
                                                  </call>
                                                  <script>
                                                    foundKnownIssue = True
                                                  </script>
                                                  <break/>
                                                </sequence>
                                              </if>
                                            </sequence>
                                          </iterate>
                                        </if>
                                        <if expr="not foundKnownIssue">
                                          <sequence>
                                        <message>'checking string marker issues in result'</message>
                                        <call function="'runSTAFCommand'">
                                          { 'name'      :  'check if known issue %s' % issue,
@@ -387,9 +395,14 @@
                                            <call function="'setKnownIssue'">
                                              { 'issueId' : issue }
                                            </call>
                                                <script>
                                                  foundKnownIssue=True
                                                </script>
                                            <break/>
                                          </sequence>
                                        </if>
                                          </sequence>
                                        </if>
                                      </sequence>
                                      <catch exception="'...'" typevar="eType" var="eInfo">
opendj-sdk/opends/tests/staf-tests/shared/dsml/src/com/ibm/staf/service/opends/DSMLService.java
@@ -156,7 +156,9 @@
  }
  private STAFResult handleCheckErrorStrings(STAFServiceInterfaceLevel30.RequestInfo info) {
    STAFResult sr = new STAFResult(0);
    // default return will be kDSMLInvalidSomething + 14 marking that
    // no known error string match the erroneous expected file content.
    STAFResult sr = new STAFResult(kDSMLInvalidSomething + 14);
    STAFCommandParseResult parsedRequest = fParser.parse(info.request);
    if (parsedRequest.rc != STAFResult.Ok) {
      return new STAFResult(STAFResult.InvalidRequestString,