| | |
| | | |
| | | <xsl:output method="html" version="4.0" encoding="iso-8859-1" indent="yes"/> |
| | | |
| | | <xsl:param name="tests-log">''</xsl:param> |
| | | |
| | | <xsl:template match="/"> |
| | | |
| | | <!-- Tests log XML document --> |
| | | <xsl:variable name="tests-log-doc" select="document($tests-log)"/> |
| | | |
| | | <!-- Test Groups Report Header Variables --> |
| | | <xsl:variable name="ft" select="qa/functional-tests"/> |
| | |
| | | <xsl:variable name="testcase" select="$testsuite/testcase"/> |
| | | <xsl:variable name="total-tests" select="count($testcase)"/> |
| | | <xsl:variable name="pass-tests" select="count($testcase[@result='pass'])"/> |
| | | <xsl:variable name="kfail-tests" select="count($tests-log-doc/qa/functional-tests/results/test[result='known'])"/> |
| | | <xsl:variable name="kfail-tests" select="count($testcase/issues)"/> |
| | | <xsl:variable name="fail-tests" select="count($testcase[@result='fail'])"/> |
| | | <xsl:variable name="inconc-tests" select="count($testcase[@result='unknown'])"/> |
| | | |
| | |
| | | <xsl:variable name="test-pass" select="count($all-tests[@result = 'pass'])"/> |
| | | <xsl:variable name="test-fail" select="count($all-tests[@result = 'fail'])"/> |
| | | <xsl:variable name="test-inc" select="count($all-tests[@result = 'unknown'])"/> |
| | | <xsl:variable name="test-kfail" select="count($tests-log-doc/qa/functional-tests/results/test[group=$group and result='known'])"/> |
| | | <xsl:variable name="test-kfail" select="count($all-tests[@group=$group]/issues)"/> |
| | | <xsl:variable name="test-percent" select="round((($test-pass div $test-num) * 100) - 0.5)"/> |
| | | |
| | | <xsl:variable name="end-time"> |
| | |
| | | <xsl:output method="html" version="4.0" encoding="iso-8859-1" indent="yes"/> |
| | | |
| | | <xsl:param name="group">''</xsl:param> |
| | | <xsl:param name="tests-log">''</xsl:param> |
| | | |
| | | <xsl:variable name="groupdir" select="translate($group, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')"/> |
| | | |
| | | <xsl:template match="/"> |
| | | |
| | | <!-- Tests log XML document --> |
| | | <xsl:variable name="tests-log-doc" select="document($tests-log)"/> |
| | | |
| | | <!--- Test Suites Report Header Variables --> |
| | | <xsl:variable name="ft" select="qa/functional-tests"/> |
| | |
| | | <xsl:variable name="pass-tests" select="count($testcase[@result='pass'])"/> |
| | | <xsl:variable name="fail-tests" select="count($testcase[@result='fail'])"/> |
| | | <xsl:variable name="inconc-tests" select="count($testcase[@result='unknown'])"/> |
| | | <xsl:variable name="kfail-tests" select="count($tests-log-doc/qa/functional-tests/results/test[result='known'])"/> |
| | | <xsl:variable name="kfail-tests" select="count($testcase/issues)"/> |
| | | |
| | | <xsl:element name="html"> |
| | | |
| | |
| | | <xsl:variable name="test-pass" select="count($all-tests[@result = 'pass'])"/> |
| | | <xsl:variable name="test-fail" select="count($all-tests[@result = 'fail'])"/> |
| | | <xsl:variable name="test-inc" select="count($all-tests[@result = 'unknown'])"/> |
| | | <xsl:variable name="test-kfail" select="count($tests-log-doc/qa/functional-tests/results/test[suite=$suite and result='known'])"/> |
| | | <xsl:variable name="test-kfail" select="count($all-tests[@suite=$suite]/issues)"/> |
| | | <xsl:variable name="test-percent" select="round((($test-pass div $test-num) * 100) - 0.5)"/> |
| | | <xsl:variable name="suitename" select="translate(@name, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')"/> |
| | | |
| | |
| | | |
| | | <xsl:param name="group">''</xsl:param> |
| | | <xsl:param name="suite">''</xsl:param> |
| | | <xsl:param name="tests-log">''</xsl:param> |
| | | |
| | | <xsl:variable name="groupdir" select="translate($group, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')"/> |
| | | |
| | | <xsl:template match="/"> |
| | | |
| | | <!-- Tests log XML document --> |
| | | <xsl:variable name="tests-log-doc" select="document($tests-log)"/> |
| | | |
| | | <!--- Test Report Header Variables --> |
| | | <xsl:variable name="ft" select="qa/functional-tests"/> |
| | |
| | | <xsl:variable name="pass-tests" select="count($testcase[@result='pass' and @suite=$suite])"/> |
| | | <xsl:variable name="fail-tests" select="count($testcase[@result='fail' and @suite=$suite])"/> |
| | | <xsl:variable name="inconc-tests" select="count($testcase[@result='unknown' and @suite=$suite])"/> |
| | | <xsl:variable name="kfail-tests" select="count($tests-log-doc/qa/functional-tests/results/test[result='known' and suite=$suite])"/> |
| | | <xsl:variable name="kfail-tests" select="count($testcase[@suite=$suite]/issues)"/> |
| | | |
| | | <xsl:element name="html"> |
| | | |
| | |
| | | <xsl:value-of select="'Result'"/> |
| | | </xsl:element> |
| | | <xsl:element name="th"> |
| | | <xsl:value-of select="'Issue'"/> |
| | | <xsl:value-of select="'Issues'"/> |
| | | </xsl:element> |
| | | </xsl:element> |
| | | |
| | |
| | | <xsl:when test="@result = 'pass'"> |
| | | <xsl:value-of select="'lightgreen'" /> |
| | | </xsl:when> |
| | | <xsl:when test="$tests-log-doc/qa/functional-tests/results/test[result='known' and translate(normalize-space(name),'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')=translate(normalize-space($tcname), 'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')]"> |
| | | <xsl:when test="issues"> |
| | | <xsl:value-of select="'yellow'" /> |
| | | </xsl:when> |
| | | <xsl:otherwise> |
| | |
| | | </xsl:element> |
| | | |
| | | <!-- Issue --> |
| | | <xsl:variable name="issue" select="$tests-log-doc/qa/functional-tests/results/test/issues/issue"/> |
| | | <xsl:element name="td"> |
| | | <xsl:attribute name="align"> |
| | | <xsl:value-of select="'center'"/> |
| | | </xsl:attribute> |
| | | <xsl:value-of select="''"/> |
| | | <xsl:for-each select="issues/issue"> |
| | | <xsl:value-of select="' '"/> |
| | | <xsl:element name="a"> |
| | | <xsl:attribute name="href"> |
| | | <xsl:value-of select="concat('https://opends.dev.java.net/issues/show_bug.cgi?id=',@id)"/> |
| | | </xsl:attribute> |
| | | <xsl:value-of select="@id"/> |
| | | </xsl:element> |
| | | </xsl:for-each> |
| | | </xsl:element> |
| | | |
| | | </xsl:element> |
| | |
| | | <call function="'importLdif'"> |
| | | { 'ldifFile' : '%s/backends/Export_schema.ldif' % remote.data, |
| | | 'backEnd' : 'schema', |
| | | 'dsPath' : '%s/server2/%s' % (DIRECTORY_INSTANCE_DIR, OPENDSNAME) |
| | | 'dsPath' : '%s/server2/%s' % (DIRECTORY_INSTANCE_DIR, OPENDSNAME), |
| | | 'knownIssue' : '2173' |
| | | } |
| | | </call> |
| | | <script> |
| | | knownIssue(2173) |
| | | </script> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | |
| | | 'startDS' : 'no' |
| | | } |
| | | </call> |
| | | <!-- This test should fail. --> |
| | | <tcstatus result="'fail'"/> |
| | | <message log="1" level="'Error'"> |
| | | 'Error: Known bug. Issue 839: Encrypted LDIF export is not implemented' |
| | | </message> |
| | | <script> |
| | | knownIssue(839) |
| | | </script> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult |
| | | { 'returncode' : 1 , |
| | | 'expected' : 0 , |
| | | 'result' : 'Encrypted LDIF export is not implemented', |
| | | 'issue' : '839' |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | |
| | | } |
| | | </call> |
| | | |
| | | <!-- This test should fail. --> |
| | | <tcstatus result="'fail'"/> |
| | | <message log="1" level="'Error'"> |
| | | 'Error: Known bug. Issue 839: Encrypted LDIF export is not implemented' |
| | | </message> |
| | | <script> |
| | | knownIssue(839) |
| | | </script> |
| | | |
| | | <!-- Known issue --> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : 1 , |
| | | 'expected' : 0 , |
| | | 'result' : 'Encrypted LDIF export is not implemented', |
| | | 'issue' : '839' |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsDn' : ['postalCode:63792' , |
| | | '%s' % dsdn] , |
| | | 'expectedRC' : 6 |
| | | 'expectedRC' : 6, |
| | | 'knownIssue' : '2761' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(2761) |
| | | </script> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsDn' : ['postalCode:00000' , |
| | | '%s' % dsdn] , |
| | | 'expectedRC' : 5 |
| | | 'expectedRC' : 5, |
| | | 'knownIssue' : '2761' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(2761) |
| | | </script> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsFilename' : dsfilename , |
| | | 'expectedRC' : 89 |
| | | 'expectedRC' : 89, |
| | | 'knownIssue' : '2619' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(2619) |
| | | </script> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsFilename' : dsfilename , |
| | | 'expectedRC' : 89 |
| | | 'expectedRC' : 89 , |
| | | 'knownIssue' : '2619' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(2619) |
| | | </script> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsFilename' : dsfilename , |
| | | 'expectedRC' : 89 |
| | | 'expectedRC' : 89 , |
| | | 'knownIssue' : '2762' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(2762) |
| | | </script> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsFilename' : dsfilename , |
| | | 'expectedRC' : 48 |
| | | 'expectedRC' : 48 , |
| | | 'knownIssue' : '2624' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(2624) |
| | | </script> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsFilename' : ' ' , |
| | | 'expectedRC' : 89 |
| | | 'expectedRC' : 89 , |
| | | 'knownIssue' : '2619' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(2619) |
| | | </script> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsFilename' : 'bad' , |
| | | 'expectedRC' : 89 |
| | | 'expectedRC' : 89 , |
| | | 'knownIssue' : '2763' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(2763) |
| | | </script> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | 'dsTypesOnly' : 'True' , |
| | | 'dsCountEntries' : 'True' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'uid=user.1*' |
| | | 'dsFilter' : 'uid=user.1*' , |
| | | 'knownIssue' : '2764' |
| | | } |
| | | </call> |
| | | |
| | |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(2764) |
| | | </script> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : 'Total number of matching entries: 11' |
| | | 'expectedString' : 'Total number of matching entries: 11', |
| | | 'issue' : '2934' |
| | | } |
| | | </call> |
| | | |
| | |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(2934) |
| | | </script> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter , |
| | | 'expectedRC' : 89 |
| | | 'expectedRC' : 89 , |
| | | 'knownIssue' : '2619' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(2619) |
| | | </script> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsFilter' : dsfilter , |
| | | 'expectedRC' : 89 |
| | | 'expectedRC' : 89 , |
| | | 'knownIssue' : '2619' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(2619) |
| | | </script> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsFilter' : dsfilter , |
| | | 'expectedRC' : 89 |
| | | 'expectedRC' : 89 , |
| | | 'knownIssue' : '2619' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(2619) |
| | | </script> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter , |
| | | 'expectedRC' : 48 |
| | | 'expectedRC' : 48 , |
| | | 'knownIssue' : '2624' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(2624) |
| | | </script> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | 'dsScope' : ' ' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter , |
| | | 'expectedRC' : 89 |
| | | 'expectedRC' : 89 , |
| | | 'knownIssue' : '2619' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(2619) |
| | | </script> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | 'dsScope' : 'bad_scope' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter , |
| | | 'expectedRC' : 89 |
| | | 'expectedRC' : 89 , |
| | | 'knownIssue' : '2619' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(2619) |
| | | </script> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : basedn , |
| | | 'expectedRC' : 89 |
| | | 'expectedRC' : 89 , |
| | | 'knownIssue' : '2619' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(2619) |
| | | </script> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsSortOrder' : 'bad_sort' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter |
| | | 'dsFilter' : dsfilter , |
| | | 'knownIssue' : '2623' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(2623) |
| | | </script> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | 'dsDereferencePolicy' : 'bad_ref' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : dsfilter , |
| | | 'expectedRC' : 89 |
| | | 'expectedRC' : 89 , |
| | | 'knownIssue' : '2619' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(2619) |
| | | </script> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | 'dsSimplePageSize' : '0' , |
| | | 'dsBaseDN' : basedn , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'expectedRC' : 89 |
| | | 'expectedRC' : 89 , |
| | | 'knownIssue' : '2619' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(2619) |
| | | </script> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(3111) |
| | | </script> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | 'targetLdif' : targetldif , |
| | | 'outputLdif' : '%s/ldif-diff_withdiffs.out' \ |
| | | % DIRECTORY_INSTANCE_DIR , |
| | | 'expectedRC' : 1 |
| | | 'expectedRC' : 1 , |
| | | 'knownIssue' : '2641' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(2641) |
| | | </script> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | <call function="'compareFile'"> |
| | | { |
| | | 'outputFile' : 'ldif-diff.out' , |
| | | 'refFile' : 'ldif-diff.ref' |
| | | 'refFile' : 'ldif-diff.ref', |
| | | 'knownIssue' : '3111' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(3111) |
| | | </script> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | <call function="'compareFile'"> |
| | | { |
| | | 'outputFile' : 'ldif-diff_singlevalue.out' , |
| | | 'refFile' : 'ldif-diff_singlevalue.ref' |
| | | 'refFile' : 'ldif-diff_singlevalue.ref' , |
| | | 'knownIssue' : '3111' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(3111) |
| | | </script> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'CheckMatches'"> |
| | | { |
| | | 'string2find' : 'dn: ' , |
| | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : '%s %s %s' % (msg1, msg2, msg3) |
| | | 'expectedString' : '%s %s %s' % (msg1, msg2, msg3) , |
| | | 'issue' : '3102' |
| | | } |
| | | </call> |
| | | |
| | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : '%s %s %s' % (msg1, msg2, msg3) |
| | | 'expectedString' : '%s %s %s' % (msg1, msg2, msg3) , |
| | | 'issue' : '3102' |
| | | } |
| | | </call> |
| | | |
| | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : msg |
| | | 'expectedString' : msg |
| | | } |
| | | </call> |
| | | |
| | |
| | | 'noOfMilliSeconds' : 2000 |
| | | } |
| | | </call> |
| | | |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : msg |
| | | 'expectedString' : msg , |
| | | 'issue' : '3102' |
| | | } |
| | | </call> |
| | | |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | <!-- Check the entry on cn=System Info,cn=monitor is available --> |
| | | <message>'###### Monitor the System Info ###### '</message> |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : 'cn=System Info,cn=monitor', |
| | | 'dsFilter' : 'objectclass=*', |
| | | 'expectedRC' : 0 } |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : 'cn=System Info,cn=monitor', |
| | | 'dsFilter' : 'objectclass=*', |
| | | 'expectedRC' : 0 , |
| | | 'knownIssue' : '2619' } |
| | | </call> |
| | | |
| | | <message>'-- Disable the System Info monitor provider --'</message> |
| | |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : 'cn=System Info,cn=monitor', |
| | | 'dsFilter' : 'objectclass=*', |
| | | 'expectedRC' : 32 } |
| | | 'expectedRC' : 32 } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(2873) |
| | | </script> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | |
| | | [ clientHost, clientPath, master, consumerList, synchroSuffix ] |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(3006) |
| | | </script> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(3392) |
| | | </script> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(3394) |
| | | </script> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(3397) |
| | | </script> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | |
| | | } |
| | | </call> |
| | | |
| | | <!-- Issue visible in the error log, so not detectable so far. |
| | | <script> |
| | | knownIssue(3399) |
| | | </script> |
| | | --> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(3397) |
| | | </script> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | |
| | | 'dsInstancePort' : server.getPort(), |
| | | 'dsInstanceDn' : server.getRootDn(), |
| | | 'dsInstancePswd' : server.getRootPwd(), |
| | | 'dsDn' : [entryToDelete] |
| | | 'dsDn' : [entryToDelete] |
| | | } |
| | | </call> |
| | | </paralleliterate> |
| | |
| | | |
| | | <!-- Issue visible in the conflict counters, so not automatically |
| | | ! detectable so far. |
| | | <script> |
| | | knownIssue(3400) |
| | | </script> |
| | | <call function="'setKnownIssue'"> |
| | | { 'issueId' : '3400' } |
| | | </call> |
| | | --> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | |
| | | |
| | | <!-- Issue visible in the conflict counters, so not automatically |
| | | ! detectable so far. |
| | | <script> |
| | | knownIssue(3400) |
| | | </script> |
| | | <call function="'setKnownIssue'"> |
| | | { 'issueId' : '3400' } |
| | | </call> |
| | | --> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | |
| | | 'dsInstancePort' : server.getPort(), |
| | | 'dsInstanceDn' : server.getRootDn(), |
| | | 'dsInstancePswd' : server.getRootPwd(), |
| | | 'dsDn' : [entryToDelete] |
| | | 'dsDn' : [entryToDelete], |
| | | 'knownIssue' : '3401' |
| | | } |
| | | </call> |
| | | </paralleliterate> |
| | | </if> |
| | | </paralleliterate> |
| | | |
| | | <script> |
| | | knownIssue(3401) |
| | | </script> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | |
| | | 'dsInstancePort' : server.getPort(), |
| | | 'dsInstanceDn' : server.getRootDn(), |
| | | 'dsInstancePswd' : server.getRootPwd(), |
| | | 'dsDn' : [entryToDelete] |
| | | 'dsDn' : [entryToDelete], |
| | | 'knownIssue' : '3401' |
| | | } |
| | | </call> |
| | | </paralleliterate> |
| | | </if> |
| | | </paralleliterate> |
| | | |
| | | <script> |
| | | knownIssue(3401) |
| | | </script> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | |
| | | |
| | | <!-- #3315: dsreplication initialize-all returns before peer has |
| | | completed initialisation --> |
| | | <script> |
| | | knownIssue(3315) |
| | | </script> |
| | | <call function="'setKnownIssue'"> |
| | | { 'issueId' : '3315' } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | |
| | | |
| | | <!-- #3315: dsreplication initialize-all returns before peer has |
| | | completed initialisation --> |
| | | <script> |
| | | knownIssue(3315) |
| | | </script> |
| | | <call function="'setKnownIssue'"> |
| | | { 'issueId' : '3315' } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | |
| | | |
| | | <!-- #3315: dsreplication initialize-all returns before peer has |
| | | completed initialisation --> |
| | | <script> |
| | | knownIssue(3315) |
| | | </script> |
| | | <call function="'setKnownIssue'"> |
| | | { 'issueId' : '3315' } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | |
| | | [ clientHost, clientPath, master, consumerList, synchroSuffix ] |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(3122) |
| | | </script> |
| | | <call function="'setKnownIssue'"> |
| | | { 'issueId' : '3122' } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | |
| | | [ clientHost, clientPath, master, consumerList, synchroSuffix ] |
| | | </call> |
| | | |
| | | <call function="'setKnownIssue'"> |
| | | { 'issueId' : '2355' } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(2355) |
| | | </script> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | |
| | | [ clientHost, clientPath, master, consumerList, synchroSuffix ] |
| | | </call> |
| | | |
| | | <call function="'setKnownIssue'"> |
| | | { 'issueId' : '2355' } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(2355) |
| | | </script> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | |
| | | [ clientHost, clientPath, master, consumerList, 'o=example' ] |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(2599) |
| | | </script> |
| | | |
| | | <call function="'setKnownIssue'"> |
| | | { 'issueId' : '2599' } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : DIRECTORY_INSTANCE_SFX , |
| | | 'dsFilter' : 'wrongfilter' } |
| | | 'dsFilter' : 'wrongfilter' , |
| | | 'knownIssue' : '2619' } |
| | | </call> |
| | | <script> |
| | | knownIssue(828) |
| | | </script> |
| | | <call function="'testCase_Postamble'" /> |
| | | </sequence> |
| | | </testcase> |
| | |
| | | |
| | | <call function="'testGroup_Preamble'"/> |
| | | |
| | | |
| | | <script> |
| | | suiteList=[] |
| | | suiteList.append('schema_rfc_tests') |
| | | suiteList.append('schema_dynamic') |
| | | </script> |
| | | |
| | | <!-- Call the test suites --> |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/schema/schema_rfc_tests.xml' % TESTS_DIR" /> |
| | | <call function="'schema_rfc_tests'" /> |
| | | |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/schema/schema_dynamic.xml' % TESTS_DIR" /> |
| | | <call function="'schema-dynamic'" /> |
| | | |
| | | |
| | | |
| | | <!-- Run the test suites --> |
| | | <iterate var="__test" in="suiteList"> |
| | | <sequence> |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/schema/%s.xml' % (TESTS_DIR,__test)" /> |
| | | <call function="'%s' % __test" /> |
| | | </sequence> |
| | | </iterate> |
| | | |
| | | <call function="'testGroup_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | |
| | | <stax> |
| | | |
| | | <defaultcall function="schema-dynamic"/> |
| | | <defaultcall function="schema_dynamic"/> |
| | | |
| | | <function name="schema-dynamic"> |
| | | <function name="schema_dynamic"> |
| | | |
| | | <sequence> |
| | | |
| | |
| | | 'subcommand' : 'set-attribute-syntax-prop' , |
| | | 'objectType' : 'syntax-name' , |
| | | 'objectName' : 'Generalized Time', |
| | | 'optionsString' : '--set enabled:false' |
| | | 'optionsString' : '--set enabled:false', |
| | | 'knownIssue' : '2046' |
| | | } |
| | | </call> |
| | | <script> |
| | | knownIssue(2046) |
| | | </script> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | |
| | | |
| | | <call function="'checktestString'"> |
| | | { 'returnString' : returnString , |
| | | 'expectedString' : 'Remaining Grace Login Count: 2' } |
| | | 'expectedString' : 'Remaining Grace Login Count: 2' , |
| | | 'issue' : '3430' } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(3430) |
| | | </script> |
| | | |
| | | <message> |
| | | '%s Verify grace login use times with manage-account ' % msg |
| | | </message> |
| | |
| | | |
| | | <call function="'checktestString'"> |
| | | { 'returnString' : returnString , |
| | | 'expectedString' : 'Remaining Grace Login Count: 1' } |
| | | 'expectedString' : 'Remaining Grace Login Count: 1', |
| | | 'issue' : '3430' } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(3430) |
| | | </script> |
| | | |
| | | <message> |
| | | 'Security: Grace Login: Search Bind 3' |
| | | </message> |
| | |
| | | 'dsInstanceDn' : 'uid=kwinters,%s' % basedn , |
| | | 'dsInstancePswd' : 'forsook' , |
| | | 'dsAuthzID' : 'dn:uid=kwinters,%s' % basedn , |
| | | 'dsNewPassword' : 'newforsook' } |
| | | 'dsNewPassword' : 'newforsook' , |
| | | 'knownIssue' : '3249' } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(3249) |
| | | </script> |
| | | |
| | | <message> |
| | | 'Security: Grace Login: Reset Pwd, Admin reset max password age' |
| | | </message> |
| | |
| | | 'propertyName' : 'Dictionary' , |
| | | 'attributeName' : 'test-reversed-password' , |
| | | 'attributeValue' : 'false' , |
| | | 'modifyType' : 'set' } |
| | | 'modifyType' : 'set' , |
| | | 'knownIssue' : '2361' } |
| | | </call> |
| | | <script> |
| | | knownIssue(2361) |
| | | </script> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | 'dsInstancePswd' : 'tcilfni' , |
| | | 'dsBaseDN' : 'dc=example,dc=com' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'extraParams' : '-s base' } |
| | | 'extraParams' : '-s base' , |
| | | 'knownIssue' : '2361' } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(2361) |
| | | </script> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | 'dsInstancePswd' : 'zymochemistry' , |
| | | 'dsBaseDN' : 'dc=example,dc=com' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'extraParams' : '-s base' } |
| | | 'extraParams' : '-s base' , |
| | | 'knownIssue' : '2361' } |
| | | </call> |
| | | |
| | | <!-- |
| | | On Windows platforms: |
| | | "Dictionary: Using Using Reverse Password 2" testcase failed due |
| | | to issue 2361 and the password for user "uid=abergin" is not |
| | | changed => so this testcase failed for this reason |
| | | --> |
| | | <script> |
| | | knownIssue(2361) |
| | | </script> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | 'dsInstancePswd' : 'sprainone' , |
| | | 'dsAuthzID' : 'dn:uid=scarter, %s' % basedn, |
| | | 'dsNewPassword' : 'sprain' , |
| | | 'expectedRC' : 53 } |
| | | 'expectedRC' : 53 , |
| | | 'knownIssue' : '3270' } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(3270) |
| | | </script> |
| | | <message> |
| | | '%s user binding with password 1' % msg |
| | | </message> |
| | |
| | | 'dsInstancePswd' : 'sprainone' , |
| | | 'dsBaseDN' : 'dc=example,dc=com' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'extraParams' : '-s base' } |
| | | 'extraParams' : '-s base' , |
| | | 'knownIssue' : '3270' } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(3270) |
| | | </script> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | 'dsInstanceDn' : 'uid=scarter,%s' % basedn, |
| | | 'dsInstancePswd' : 'sprainone' , |
| | | 'dsAuthzID' : 'dn:uid=scarter, %s' % basedn, |
| | | 'dsNewPassword' : 'spraintwo' } |
| | | 'dsNewPassword' : 'spraintwo' , |
| | | 'knownIssue' : '3270' } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(3270) |
| | | </script> |
| | | |
| | | <message> |
| | | '%s user modifying password back to old passwords' % msg |
| | | </message> |
| | |
| | | 'dsInstancePswd' : 'spraintwo' , |
| | | 'dsAuthzID' : 'dn:uid=scarter, %s' % basedn, |
| | | 'dsNewPassword' : '%s' % pwds , |
| | | 'expectedRC' : 53 } |
| | | 'expectedRC' : 53 , |
| | | 'knownIssue' : '3270' } |
| | | </call> |
| | | </iterate> |
| | | |
| | | <script> |
| | | knownIssue(3270) |
| | | </script> |
| | | |
| | | <message> |
| | | '%s user binding with password 2' % msg |
| | | </message> |
| | |
| | | 'dsInstancePswd' : 'spraintwo' , |
| | | 'dsBaseDN' : 'dc=example,dc=com' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'extraParams' : '-s base' } |
| | | 'extraParams' : '-s base' , |
| | | 'knownIssue' : '3270' } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(3270) |
| | | </script> |
| | | |
| | | <message> |
| | | '%s Check manage-account get-password-history ' % msg |
| | | <message> |
| | | '%s Check manage-account get-password-history ' % msg |
| | | </message> |
| | | |
| | | <call function="'manageAccountWithScript'"> |
| | |
| | | 'dsInstanceDn' : 'uid=scarter,%s' % basedn, |
| | | 'dsInstancePswd' : 'spraintwo' , |
| | | 'dsAuthzID' : 'dn:uid=scarter, %s' % basedn, |
| | | 'dsNewPassword' : 'sprainthree' } |
| | | 'dsNewPassword' : 'sprainthree' , |
| | | 'knownIssue' : '3270' } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(3270) |
| | | </script> |
| | | |
| | | <message> |
| | | '%s user modifying password back to old passwords' % msg |
| | | </message> |
| | |
| | | 'dsInstancePswd' : 'sprainthree' , |
| | | 'dsAuthzID' : 'dn:uid=scarter, %s' % basedn, |
| | | 'dsNewPassword' : '%s' % pwds , |
| | | 'expectedRC' : 53 } |
| | | 'expectedRC' : 53 , |
| | | 'knownIssue' : '3270' } |
| | | </call> |
| | | </iterate> |
| | | |
| | | <script> |
| | | knownIssue(3270) |
| | | </script> |
| | | |
| | | |
| | | <message> |
| | | '%s user binding with password 3' % msg |
| | | </message> |
| | |
| | | 'dsInstancePswd' : 'sprainthree' , |
| | | 'dsBaseDN' : 'dc=example,dc=com' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'extraParams' : '-s base' } |
| | | 'extraParams' : '-s base' , |
| | | 'knownIssue' : '3270' } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(3270) |
| | | </script> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | 'dsInstanceDn' : 'uid=scarter,%s' % basedn, |
| | | 'dsInstancePswd' : 'sprainthree' , |
| | | 'dsAuthzID' : 'dn:uid=scarter, %s' % basedn , |
| | | 'dsNewPassword' : 'sprainfour' } |
| | | 'dsNewPassword' : 'sprainfour' , |
| | | 'knownIssue' : '3270' } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(3270) |
| | | </script> |
| | | |
| | | <message> |
| | | '%s user modifying password back to old passwords' % msg |
| | | </message> |
| | |
| | | 'dsInstancePswd' : 'sprainfour' , |
| | | 'dsAuthzID' : 'dn:uid=scarter, %s' % basedn, |
| | | 'dsNewPassword' : '%s' % pwds , |
| | | 'expectedRC' : 53 } |
| | | 'expectedRC' : 53 , |
| | | 'knownIssue' : '3270' } |
| | | </call> |
| | | </iterate> |
| | | |
| | | <script> |
| | | knownIssue(3270) |
| | | </script> |
| | | |
| | | <message> |
| | | '%s user modifying password to original one' % msg |
| | | </message> |
| | |
| | | 'dsInstanceDn' : 'uid=scarter,%s' % basedn , |
| | | 'dsInstancePswd' : 'sprainfour' , |
| | | 'dsAuthzID' : 'dn:uid=scarter, %s' % basedn, |
| | | 'dsNewPassword' : 'sprain' } |
| | | 'dsNewPassword' : 'sprain' , |
| | | 'knownIssue' : '3270' } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(3270) |
| | | </script> |
| | | |
| | | <message> |
| | | '%s user binding with original password' % msg |
| | | </message> |
| | |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'knownIssue' : '3435' |
| | | } |
| | | </call> |
| | | |
| | | <if expr="is_windows_platform(DIRECTORY_INSTANCE_HOST)"> |
| | | <script> |
| | | knownIssue(3435) |
| | | </script> |
| | | </if> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'knownIssue' : '3435' |
| | | } |
| | | </call> |
| | | |
| | | <if expr="is_windows_platform(DIRECTORY_INSTANCE_HOST)"> |
| | | <script> |
| | | knownIssue(3435) |
| | | </script> |
| | | </if> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | { |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'knownIssue' : '3435' |
| | | } |
| | | </call> |
| | | |
| | | <if expr="is_windows_platform(DIRECTORY_INSTANCE_HOST)"> |
| | | <script> |
| | | knownIssue(3435) |
| | | </script> |
| | | </if> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'outputFile' : outputFile , |
| | | 'timerDuration' : timerDuration , |
| | | 'timerRC' : timerRC |
| | | 'timerRC' : timerRC , |
| | | 'issue' : '3435' |
| | | } |
| | | </call> |
| | | |
| | | <if expr="is_windows_platform(STAF_REMOTE_HOSTNAME)"> |
| | | <script> |
| | | knownIssue(3435) |
| | | </script> |
| | | </if> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'outputFile' : outputFile , |
| | | 'timerDuration' : timerDuration , |
| | | 'timerRC' : timerRC |
| | | 'timerRC' : timerRC , |
| | | 'issue' : '3435' |
| | | } |
| | | </call> |
| | | |
| | | <if expr="is_windows_platform(STAF_REMOTE_HOSTNAME)"> |
| | | <script> |
| | | knownIssue(3435) |
| | | </script> |
| | | </if> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="help" value="option"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | |
| | | <sequence> |
| | |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'path' : dsPath, |
| | | 'expectedRC': 'noCheck' |
| | | 'expectedRC': 'noCheck', |
| | | 'knownIssue': knownIssue |
| | | } |
| | | </call> |
| | | </sequence> |
| | |
| | | Wildcard 'noCheck' to not check the RC |
| | | </function-arg-description> |
| | | </function-arg-def> |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | |
| | | <sequence> |
| | |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'location' : location, |
| | | 'expectedRC': expectedRC |
| | | 'expectedRC': expectedRC, |
| | | 'knownIssue': knownIssue |
| | | } |
| | | </call> |
| | | <return>STAXResult</return> |
| | |
| | | Wildcard 'noCheck' to not check the RC |
| | | </function-arg-description> |
| | | </function-arg-def> |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | |
| | | <sequence> |
| | |
| | | 'name' : 'Stop DS Script', |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'expectedRC': expectedRC |
| | | 'expectedRC': expectedRC, |
| | | 'knownIssue': knownIssue |
| | | } |
| | | </call> |
| | | <call function="'Sleep'"> |
| | |
| | | Wildcard 'noCheck' to not check the RC |
| | | </function-arg-description> |
| | | </function-arg-def> |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | |
| | | <sequence> |
| | |
| | | 'name' : 'Offline Import', |
| | | 'command' : '%s/import-ldif%s' % (dsBinPath,fileExt), |
| | | 'arguments' : '-l %s -n %s %s' % (ldifFile,backEnd,extraParams), |
| | | 'expectedRC': expectedRC |
| | | 'expectedRC': expectedRC, |
| | | 'knownIssue': knownIssue |
| | | } |
| | | </call> |
| | | <return>RC</return> |
| | |
| | | Wildcard 'noCheck' to not check the RC |
| | | </function-arg-description> |
| | | </function-arg-def> |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | |
| | | <sequence> |
| | |
| | | 'name' : 'Offline Import Script', |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'expectedRC': expectedRC |
| | | 'expectedRC': expectedRC, |
| | | 'knownIssue': knownIssue |
| | | } |
| | | </call> |
| | | |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="integer"/> |
| | | </function-arg-def> |
| | | |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | <sequence> |
| | | |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="integer"/> |
| | | </function-arg-def> |
| | | |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | |
| | | <sequence> |
| | |
| | | 'name' : 'Export Script', |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'expectedRC': expectedRC |
| | | 'expectedRC': expectedRC, |
| | | 'knownIssue': knownIssue |
| | | } |
| | | </call> |
| | | <return> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="integer"/> |
| | | </function-arg-def> |
| | | |
| | | </function-map-args> |
| | | |
| | | <sequence> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="integer"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | |
| | | <sequence> |
| | |
| | | 'name' : 'Backup Script', |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'expectedRC': expectedRC |
| | | 'expectedRC': expectedRC, |
| | | 'knownIssue': knownIssue |
| | | } |
| | | </call> |
| | | |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="integer"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | <sequence> |
| | | |
| | |
| | | 'name' : 'Restore Script', |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'expectedRC': expectedRC |
| | | 'expectedRC': expectedRC, |
| | | 'knownIssue': knownIssue |
| | | } |
| | | </call> |
| | | |
| | |
| | | Wildcard 'noCheck' to not check the RC |
| | | </function-arg-description> |
| | | </function-arg-def> |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | |
| | | <sequence> |
| | |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'path' : dsPath, |
| | | 'expectedRC': expectedRC |
| | | 'expectedRC': expectedRC, |
| | | 'knownIssue': knownIssue |
| | | } |
| | | </call> |
| | | |
| | |
| | | Wildcard 'noCheck' to not check the RC |
| | | </function-arg-description> |
| | | </function-arg-def> |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | |
| | | <sequence> |
| | |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'path' : dsPath, |
| | | 'expectedRC': expectedRC |
| | | 'expectedRC': expectedRC, |
| | | 'knownIssue': knownIssue |
| | | } |
| | | </call> |
| | | |
| | |
| | | Wildcard 'noCheck' to not check the RC |
| | | </function-arg-description> |
| | | </function-arg-def> |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | |
| | | <sequence> |
| | |
| | | 'name' : 'manage-tasks Script', |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'expectedRC' : expectedRC |
| | | 'expectedRC' : expectedRC, |
| | | 'knownIssue' : knownIssue |
| | | } |
| | | </call> |
| | | <return> |
| | |
| | | Wildcard 'noCheck' to not check the RC |
| | | </function-arg-description> |
| | | </function-arg-def> |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | |
| | | <sequence> |
| | |
| | | 'location' : location, |
| | | 'command' : _cmd, |
| | | 'arguments' : _args, |
| | | 'expectedRC': expectedRC |
| | | 'expectedRC': expectedRC, |
| | | 'knownIssue': knownIssue |
| | | } |
| | | </call> |
| | | <return>STAXResult</return> |
| | |
| | | Wildcard 'noCheck' to not check the RC |
| | | </function-arg-description> |
| | | </function-arg-def> |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | |
| | | <sequence> |
| | |
| | | 'location' : location, |
| | | 'command' : _cmd, |
| | | 'arguments' : _args, |
| | | 'expectedRC': expectedRC |
| | | 'expectedRC': expectedRC, |
| | | 'knownIssue': knownIssue |
| | | } |
| | | </call> |
| | | <return>STAXResult</return> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="integer"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | <sequence> |
| | | <!-- Build the Command --> |
| | |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'location' : location, |
| | | 'expectedRC' : expectedRC |
| | | 'expectedRC' : expectedRC, |
| | | 'knownIssue': knownIssue |
| | | } |
| | | </call> |
| | | |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="integer"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | <sequence> |
| | | <!-- Build the Command --> |
| | |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'location' : location, |
| | | 'expectedRC' : expectedRC |
| | | 'expectedRC' : expectedRC, |
| | | 'knownIssue' : knownIssue |
| | | } |
| | | </call> |
| | | |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="integer"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | <sequence> |
| | | <!-- Build the Command --> |
| | |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'location' : location, |
| | | 'expectedRC' : expectedRC |
| | | 'expectedRC' : expectedRC, |
| | | 'knownIssue': knownIssue |
| | | } |
| | | </call> |
| | | |
| | |
| | | |
| | | |
| | | <!-- Set property value using dsconfig --> |
| | | <function name="dsconfigSet"> |
| | | <function name="dsconfigSet" scope="local"> |
| | | <function-prolog> |
| | | This function modifies a property value using dsconfig |
| | | </function-prolog> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | <sequence> |
| | | |
| | |
| | | 'location' : location, |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'expectedRC': expectedRC |
| | | 'expectedRC': expectedRC, |
| | | 'knownIssue': knownIssue |
| | | } |
| | | </call> |
| | | |
| | |
| | | |
| | | |
| | | <!-- Get property value using dsconfig --> |
| | | <function name="dsconfigGet"> |
| | | <function name="dsconfigGet" scope="local"> |
| | | <function-prolog> |
| | | This function get a property value using dsconfig |
| | | </function-prolog> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | </function-map-args> |
| | | <sequence> |
| | | <!-- Local variables --> |
| | |
| | | 'location' : location, |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'expectedRC': expectedRC |
| | | 'expectedRC': expectedRC, |
| | | 'knownIssue': knownIssue |
| | | } |
| | | </call> |
| | | <script> |
| | |
| | | <!-- generic wrapper on dsconfig --> |
| | | <!-- can be used to list, get or set a list of attribues --> |
| | | |
| | | <function name="dsconfig"> |
| | | <function name="dsconfig" scope="local"> |
| | | <function-prolog> |
| | | This function lists, get or set a list of attributes using dsconfig |
| | | </function-prolog> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | <sequence> |
| | | <!-- Local variables --> |
| | |
| | | 'location' : location, |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'expectedRC': expectedRC |
| | | 'expectedRC': expectedRC, |
| | | 'knownIssue': knownIssue |
| | | } |
| | | </call> |
| | | <return> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | </function-map-args> |
| | | <sequence> |
| | | <call function="'dsconfigSet'"> |
| | |
| | | 'attributeName' : attributeName, |
| | | 'attributeValue' : attributeValue, |
| | | 'modifyType' : modifyType, |
| | | 'expectedRC' : expectedRC |
| | | 'expectedRC' : expectedRC, |
| | | 'knownIssue' : knownIssue |
| | | } |
| | | </call> |
| | | <return> |
| | |
| | | def getTestCaseName(name): |
| | | return '%s: %s: %s' % (CurrentTestPath['group'],CurrentTestPath['suite'],name) |
| | | |
| | | # this functions adds a known issue to a testcase's known issues list |
| | | issuesList=[] |
| | | def knownIssue(issue): |
| | | issuesList.append(issue) |
| | | |
| | | DSCONFIG = 'dsconfig' |
| | | DSREPLICATION = 'dsreplication' |
| | | |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="integer"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | <sequence> |
| | | <!-- Local variables --> |
| | |
| | | 'arguments' : STAFCmdParams, |
| | | 'location' : mylocation, |
| | | 'name' : 'Add Entry From LDIF', |
| | | 'expectedRC' : expectedRC |
| | | 'expectedRC' : expectedRC, |
| | | 'knownIssue' : knownIssue |
| | | } |
| | | </call> |
| | | <return> |
| | |
| | | Wildcard 'noCheck' to not check the RC |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="integer"/> |
| | | </function-arg-def> |
| | | </function-arg-def> |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | |
| | | <sequence> |
| | |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'location' : location, |
| | | 'expectedRC': expectedRC |
| | | 'expectedRC': expectedRC, |
| | | 'knownIssue': knownIssue |
| | | } |
| | | </call> |
| | | |
| | |
| | | Wildcard 'noCheck' to not check the RC |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="integer"/> |
| | | </function-arg-def> |
| | | </function-arg-def> |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | <sequence> |
| | | |
| | |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'name' : 'Modify Entry from ldif file', |
| | | 'expectedRC': expectedRC |
| | | 'expectedRC': expectedRC, |
| | | 'knownIssue': knownIssue |
| | | } |
| | | </call> |
| | | |
| | |
| | | <function-arg-property-data type="choice" value="False"/> |
| | | </function-arg-property> |
| | | </function-arg-def> |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | |
| | | <sequence> |
| | |
| | | 'location' : location, |
| | | 'outputFile': '%s/%s' % (outputPath, outputFile) , |
| | | 'expectedRC': expectedRC , |
| | | 'logStderr' : logStderr |
| | | 'logStderr' : logStderr, |
| | | 'knownIssue': knownIssue |
| | | } |
| | | </call> |
| | | <return> |
| | |
| | | Wildcard 'noCheck' to not check the RC |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="integer"/> |
| | | </function-arg-def> |
| | | </function-arg-def> |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | <sequence> |
| | | |
| | |
| | | 'arguments' : STAFCmdParams, |
| | | 'location' : location, |
| | | 'name' : 'ldapsearch', |
| | | 'expectedRC': expectedRC |
| | | 'expectedRC': expectedRC, |
| | | 'knownIssue': knownIssue |
| | | } |
| | | </call> |
| | | <return> |
| | |
| | | Wildcard 'noCheck' to not check the RC |
| | | </function-arg-description> |
| | | </function-arg-def> |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | <sequence> |
| | | <call function="'runCommand'" > |
| | |
| | | 'command' : '%s/ldapsearch%s' % (dsBinPath,fileExt), |
| | | 'arguments' : '-h %s -p %s -D "%s" %s -b "%s" "%s"' % (dsInstanceHost,dsInstancePort,dsInstanceDn,extraParams,dsBaseDN,dsFilter), |
| | | 'location' : location, |
| | | 'expectedRC': expectedRC |
| | | 'expectedRC': expectedRC, |
| | | 'knownIssue': knownIssue |
| | | } |
| | | </call> |
| | | <return> |
| | |
| | | Wildcard 'noCheck' to not check the RC |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="integer"/> |
| | | </function-arg-def> |
| | | </function-arg-def> |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | <sequence> |
| | | <call function="'runCommand'" > |
| | |
| | | 'location' : location, |
| | | 'command' : '%s/ldapsearch%s' % (dsBinPath,fileExt), |
| | | 'arguments' : '-h %s -p %s %s -b "%s" "%s"' % (dsInstanceHost,dsInstancePort,extraParams,dsBaseDN,dsFilter), |
| | | 'expectedRC': expectedRC |
| | | 'expectedRC': expectedRC, |
| | | 'knownIssue': knownIssue |
| | | } |
| | | </call> |
| | | <return> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="integer"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | |
| | | <sequence> |
| | |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'location' : location, |
| | | 'expectedRC': expectedRC |
| | | 'expectedRC': expectedRC, |
| | | 'knownIssue': knownIssue |
| | | } |
| | | </call> |
| | | <return> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="integer"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | |
| | | <sequence> |
| | |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'location' : location, |
| | | 'expectedRC': expectedRC |
| | | 'expectedRC': expectedRC, |
| | | 'knownIssue': knownIssue |
| | | } |
| | | </call> |
| | | <return> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="integer"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | |
| | | <sequence> |
| | |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'location' : location, |
| | | 'expectedRC': expectedRC |
| | | 'expectedRC': expectedRC, |
| | | 'knownIssue': knownIssue |
| | | } |
| | | </call> |
| | | <return> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="integer"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | <sequence> |
| | | |
| | |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'location' : location, |
| | | 'expectedRC': expectedRC |
| | | 'expectedRC': expectedRC, |
| | | 'knownIssue': knownIssue |
| | | } |
| | | </call> |
| | | <return> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="integer"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | |
| | | <sequence> |
| | |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'location' : location, |
| | | 'expectedRC': expectedRC |
| | | 'expectedRC': expectedRC, |
| | | 'knownIssue': knownIssue |
| | | } |
| | | </call> |
| | | <return> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string"/> |
| | | </function-arg-def> |
| | | |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | </function-map-args> |
| | | <sequence> |
| | |
| | | 'location' : location, |
| | | 'envCmd' : ['CLASSPATH=%s/../%s/ldap' % (dsPath,remote.reljavadir)], |
| | | 'path' : '%s/../%s/ldap' % (dsPath,remote.reljavadir), |
| | | 'expectedRC': expectedRC |
| | | 'expectedRC': expectedRC, |
| | | 'knownIssue': knownIssue |
| | | } |
| | | </call> |
| | | |
| | |
| | | Wildcard 'noCheck' to not check the RC |
| | | </function-arg-description> |
| | | </function-arg-def> |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | <sequence> |
| | | <!-- Local variables --> |
| | |
| | | 'location' : location, |
| | | 'envCmd' : ['CLASSPATH=%s/../%s/ldap' % (dsPath,remote.reljavadir)], |
| | | 'path' : '%s/../%s/ldap' % (dsPath,remote.reljavadir), |
| | | 'expectedRC': expectedRC |
| | | 'expectedRC': expectedRC, |
| | | 'knownIssue': knownIssue |
| | | } |
| | | </call> |
| | | <return> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="integer"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | <sequence> |
| | | |
| | |
| | | 'location' : location, |
| | | 'envCmd' : ['CLASSPATH=%s/../%s/ldap' % (dsPath,remote.reljavadir)], |
| | | 'path' : '%s/../%s/ldap' % (dsPath,remote.reljavadir), |
| | | 'expectedRC': expectedRC |
| | | 'expectedRC': expectedRC, |
| | | 'knownIssue': knownIssue |
| | | } |
| | | </call> |
| | | <return> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | |
| | | <sequence> |
| | |
| | | 'location' : location , |
| | | 'command' : STAFCmd , |
| | | 'arguments' : '%s --set enabled:true' % STAFCmdParams , |
| | | 'expectedRC': expectedRC |
| | | 'expectedRC': expectedRC , |
| | | 'knownIssue': knownIssue |
| | | } |
| | | </call> |
| | | |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="integer"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="issue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Issue id. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string"/> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | |
| | | <sequence> |
| | |
| | | </if> |
| | | </sequence> |
| | | <else> |
| | | <tcstatus result="'fail'">'Timer failed to begin.'</tcstatus> |
| | | <if expr="issue == None"> |
| | | <tcstatus result="'fail'"/> |
| | | <else> |
| | | <sequence> |
| | | <call function="'setKnownIssue'"> |
| | | { 'issueId' : issue } |
| | | </call> |
| | | </sequence> |
| | | </else> |
| | | </if> |
| | | </else> |
| | | </if> |
| | | |
| | |
| | | Wildcard 'noCheck' to not check the RC |
| | | </function-arg-description> |
| | | </function-arg-def> |
| | | |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | </function-map-args> |
| | | <sequence> |
| | | <!-- Build the Command --> |
| | |
| | | 'location' : location, |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'expectedRC': expectedRC |
| | | 'expectedRC': expectedRC, |
| | | 'knownIssue': knownIssue |
| | | } |
| | | </call> |
| | | <return>STAXResult</return> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="help" value="option"/> |
| | | </function-arg-def> |
| | | |
| | | </function-map-args> |
| | | <sequence> |
| | | <!-- Build the Command --> |
| | |
| | | 'Running command:\n %s %s\nlocation: %s\nworkdir: %s' \ |
| | | % (STAFCmd,STAFCmdParams,location,dsBinPath) |
| | | </message> |
| | | |
| | | |
| | | <process name="'LDIF Diff Script'"> |
| | | <location>location</location> |
| | | <command>STAFCmd</command> |
| | |
| | | <returnstdout/> |
| | | <returnfile>outputLdif</returnfile> |
| | | </process> |
| | | |
| | | |
| | | <script> |
| | | STAXCode=RC |
| | | STAXReason=STAXResult |
| | |
| | | Wildcard 'noCheck' to not check the RC |
| | | </function-arg-description> |
| | | </function-arg-def> |
| | | |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | </function-map-args> |
| | | <sequence> |
| | | <!-- Build the Command --> |
| | |
| | | 'location' : location, |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'expectedRC': expectedRC |
| | | 'expectedRC': expectedRC, |
| | | 'knownIssue': knownIssue |
| | | } |
| | | </call> |
| | | <return>STAXResult</return> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="DN"/> |
| | | </function-arg-def> |
| | | |
| | | </function-list-args> |
| | | <sequence> |
| | | <script> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="filename"/> |
| | | </function-arg-def> |
| | | |
| | | </function-list-args> |
| | | <sequence> |
| | | <script> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="integer"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | <sequence> |
| | | <!-- Build the Command --> |
| | |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'location' : location, |
| | | 'expectedRC' : expectedRC |
| | | 'expectedRC' : expectedRC , |
| | | 'knownIssue' : knownIssue |
| | | } |
| | | </call> |
| | | |
| | |
| | | the expected return code |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="integer"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="issue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Issue id. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string"/> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | </function-map-args> |
| | | <sequence> |
| | | <if expr="expected == 'noCheck'"> |
| | | <return/> |
| | |
| | | <sequence> |
| | | <if expr="STAXCurrentTestcase != None"> |
| | | <sequence> |
| | | <tcstatus result="'pass'"/> |
| | | <tcstatus result="'pass'"/> |
| | | </sequence> |
| | | </if> |
| | | <if expr="VERBOSE_MODE == 'True'"> |
| | |
| | | <sequence> |
| | | <if expr="STAXCurrentTestcase != None"> |
| | | <sequence> |
| | | <tcstatus result="'fail'"/> |
| | | <if expr="issue == None"> |
| | | <tcstatus result="'fail'"/> |
| | | <else> |
| | | <sequence> |
| | | <call function="'setKnownIssue'"> |
| | | { 'issueId' : issue } |
| | | </call> |
| | | </sequence> |
| | | </else> |
| | | </if> |
| | | |
| | | </sequence> |
| | | </if> |
| | | <message log="1" level="'Error'"> |
| | |
| | | </sequence> |
| | | </function> |
| | | |
| | | |
| | | <!-- Set Known Issue --> |
| | | <function name="setKnownIssue"> |
| | | <function-prolog> |
| | | This function set the known issue flag and maintains list of known issues |
| | | </function-prolog> |
| | | |
| | | <function-map-args> |
| | | <function-arg-def name="issueId" type="required"> |
| | | <function-arg-description> |
| | | Issue ID |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string"/> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | <sequence> |
| | | <script> |
| | | try: |
| | | issuesList.append(issueId) |
| | | except: |
| | | print 'Issues list undefined. Unable to add issue %s' % issueId |
| | | </script> |
| | | <message log="1" level="'Error'"> |
| | | 'ERROR: HIT **** Known Issue (%s) ****' % issueId |
| | | </message> |
| | | <tcstatus result="'fail'"> |
| | | 'KnownIssue: %s' % issuesList |
| | | </tcstatus> |
| | | </sequence> |
| | | </function> |
| | | |
| | | <!-- testPassed --> |
| | | <!-- Set the test status to PASS --> |
| | | |
| | |
| | | the return string received from command |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string"/> |
| | | </function-arg-def> |
| | | </function-arg-def> |
| | | <function-arg-def name="issue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | |
| | | <sequence> |
| | |
| | | </sequence> |
| | | <else> |
| | | <sequence> |
| | | <tcstatus result="'fail'"/> |
| | | <if expr="issue == None"> |
| | | <tcstatus result="'fail'"/> |
| | | <else> |
| | | <sequence> |
| | | <call function="'setKnownIssue'"> |
| | | { 'issueId' : issue } |
| | | </call> |
| | | </sequence> |
| | | </else> |
| | | </if> |
| | | <message log="1" level="'Error'"> |
| | | 'ERROR : Did not find substring, %s, in the return string, %s' % (expectedString, returnString) |
| | | </message> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="issue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | |
| | | <sequence> |
| | |
| | | </sequence> |
| | | <else> |
| | | <sequence> |
| | | <tcstatus result="'fail'"/> |
| | | <if expr="issue == None"> |
| | | <tcstatus result="'fail'"/> |
| | | <else> |
| | | <sequence> |
| | | <call function="'setKnownIssue'"> |
| | | { 'issueId' : issue } |
| | | </call> |
| | | </sequence> |
| | | </else> |
| | | </if> |
| | | <message log="1" level="'Error'"> |
| | | 'Found substring, %s, in the return string, %s' % (testString, returnString) |
| | | </message> |
| | |
| | | Wildcard 'noCheck' to not check the RC |
| | | </function-arg-description> |
| | | </function-arg-def> |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | </function-arg-def> |
| | | <function-arg-def name="logStderr" type="optional" default="True"> |
| | | <function-arg-description> |
| | | If true, stderr for the command is redirect to stdout. |
| | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : cmdRC, |
| | | 'result' : cmdOutput, |
| | | 'expected' : expectedRC |
| | | 'expected' : expectedRC, |
| | | 'issue' : knownIssue |
| | | } |
| | | </call> |
| | | </if> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="filepath"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | |
| | | <sequence> |
| | |
| | | </sequence> |
| | | <else> |
| | | <sequence> |
| | | <tcstatus result="'fail'"/> |
| | | <if expr="knownIssue == None"> |
| | | <tcstatus result="'fail'"/> |
| | | <else> |
| | | <call function="'setKnownIssue'"> |
| | | { 'issueId' : knownIssue } |
| | | </call> |
| | | </else> |
| | | </if> |
| | | <message log="1"> |
| | | 'ERROR : Differences were found between %s and %s\n%s' % \ |
| | | (outputFile, refFile, diff) |
| | |
| | | |
| | | startValueDict={} |
| | | stopValueDict={} |
| | | failValueDict={} |
| | | statusValueDict={} |
| | | |
| | | if level == 'Start': |
| | |
| | | else: |
| | | errorfh.write('Warning: No match Stop element %s.\n' % element) |
| | | |
| | | elif level == 'Fail': |
| | | |
| | | tcpattern=re.compile("(Testcase): (.*),.*,.*, Last Status: fail, Message: KnownIssue: (.*)") |
| | | tcmatch = tcpattern.search(message) |
| | | |
| | | if tcmatch: |
| | | tctype=tcmatch.group(1) |
| | | tcname=tcmatch.group(2) |
| | | tcissues=tcmatch.group(3) |
| | | if testDict.has_key(tcname): |
| | | for key in testDict[tcname].keys(): |
| | | value=testDict[tcname][key] |
| | | failValueDict[key]=value |
| | | |
| | | failValueDict['issue']=tcissues |
| | | testDict[tcname]=failValueDict |
| | | |
| | | else: |
| | | errorfh.write('Warning: No match Fail element %s.\n' % element) |
| | | |
| | | elif level == 'Status': |
| | | |
| | | tcpattern=re.compile("(Testcase): (.*), Pass: (.*), Fail: (.*), ElapsedTime: (.*), NumStarts: (.*)") |
| | |
| | | if testDict[tcname].has_key('duration'): |
| | | tcduration=testDict[tcname]['duration'] |
| | | else: |
| | | duration='unknown' |
| | | tcduration='unknown' |
| | | |
| | | if testDict[tcname].has_key('issue'): |
| | | tcissues=testDict[tcname]['issue'] |
| | | else: |
| | | tcissues='unknown' |
| | | |
| | | else: |
| | | errorfh.write('No key for testcase %s.\n' % tcname) |
| | |
| | | case.setAttribute("start", "%s" % tcstart) |
| | | case.setAttribute("stop", "%s" % tcstop) |
| | | case.setAttribute("duration", "%s" % tcdurationsecs) |
| | | if tcissues != 'unknown': |
| | | issues = doc.createElement("issues") |
| | | tcissuesList=eval(tcissues) |
| | | for attr in tcissuesList: |
| | | issue = doc.createElement("issue") |
| | | issue.setAttribute("id", attr) |
| | | issues.appendChild(issue) |
| | | case.appendChild(issues) |
| | | suite.appendChild(case) |
| | | |
| | | # Write out the results |
| | |
| | | htmlfile= '%s/groups.html' % logsReportDir |
| | | testslog= '%s/tests-log.xml' % logsTestsDir |
| | | groupsReport=report_generation() |
| | | stringParamsDict={ 'tests-log' : testslog } |
| | | stringParamsDict={} |
| | | |
| | | try: |
| | | groupsReport.transformReport(xslfile,xmlfile,htmlfile,stringParamsDict) |
| | |
| | | xslfile= '%s/xsl/gen-suites-report.xsl' % TESTS_SHARED_DIR |
| | | |
| | | suitesReport=report_generation() |
| | | stringParamsDict={ 'group' : testGroupName, 'tests-log' : testslog } |
| | | stringParamsDict={ 'group' : testGroupName } |
| | | |
| | | try: |
| | | suitesReport.transformReport(xslfile,xmlfile,htmlfile,stringParamsDict) |