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

Gary Williams
01.57.2012 18375a8900803a3b064e2722d355b631f6af77a9
Allow knownIssue issueid to be a string in functional tests
2 files modified
22 ■■■■■ changed files
opends/tests/staf-tests/shared/functions/utils.xml 13 ●●●● patch | view | raw | blame | history
opends/tests/staf-tests/shared/xsl/gen-tests-report.xsl 9 ●●●● patch | view | raw | blame | history
opends/tests/staf-tests/shared/functions/utils.xml
@@ -189,14 +189,13 @@
        </script>
        <script>
          try:
            if issueId.__class__ is PyList:
            if issueId.__class__ is org.python.core.PyList:
                for issue in issueId:
                  if int(issue) not in issuesList:
                    issuesList.append(int(issue))
                  if issue not in issuesList:
                    issuesList.append(issue)
            else:
              if int(issueId) not in issuesList:
                issuesList.append(int(issueId))
              if issueId not in issuesList:
                issuesList.append(issueId)
          except:
            print 'Issues list undefined. Unable to add issue %s' % issueId
        </script>
@@ -1018,7 +1017,7 @@
            done.setTextContent('%s' % nbDone)
            for issueID in issuesList:
              if issueID not in allbugs:
                allbugs.append(int(issueID))
                allbugs.append(issueID)
            bugs.setTextContent('%s' % allbugs)
      </script>
opends/tests/staf-tests/shared/xsl/gen-tests-report.xsl
@@ -483,7 +483,14 @@
              <xsl:value-of select="' '"/>
              <xsl:element name="a">
                <xsl:attribute name="href">
                  <xsl:value-of select="concat('http://java.net/jira/browse/OPENDS-',@id)"/>
                  <xsl:choose>
                    <xsl:when test="starts-with(@id,'OPENDJ')">
                      <xsl:value-of select="concat('https://bugster.forgerock.org/jira/browse/',@id)"/>
                    </xsl:when>
                    <xsl:otherwise>
                      <xsl:value-of select="concat('https://opends.dev.java.net/issues/show_bug.cgi?id=',@id)"/>
                    </xsl:otherwise>
                  </xsl:choose>
                </xsl:attribute>
                <xsl:value-of select="concat('OPENDS-',@id)"/>
              </xsl:element>