Add PRODUCTNAME variable in config.py
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | <call function="'grep'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'filename' : grepFile, |
| | | 'testString': 'OpenDS Directory Server' |
| | | 'testString': PRODUCTNAME |
| | | } |
| | | </call> |
| | | |
| | |
| | | <call function="'grep'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'filename' : grepFile, |
| | | 'testString': 'OpenDS Directory Server' |
| | | 'testString': PRODUCTNAME |
| | | } |
| | | </call> |
| | | |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | if PRODUCTNAME.startswith('OpenDS'): |
| | | expectedNb = 1 |
| | | else: |
| | | expectedNb = 2 |
| | | </script> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : nb, |
| | | 'result' : a, |
| | | 'expected' : 1 |
| | | 'expected' : expectedNb |
| | | } |
| | | </call> |
| | | |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | dsVersion='unknown' |
| | | dsBuild='unknown' |
| | | |
| | | dsServer = 'OpenDS Directory Server %s - %s' \ |
| | | % (dsVersion.rstrip(), dsBuild) |
| | | dsServer = '%s %s - %s' \ |
| | | % (PRODUCTNAME, dsVersion.rstrip(), dsBuild) |
| | | |
| | | dsServerType = DEFAULT_VALUES['dsServerType.1'] |
| | | </script> |
| | |
| | | test.plan.functional.default=aci,backends,clu,clu_secure,core,dsconfig,dsml,groups,i18n,indexes,logging,monitoring,plugins,privileges,replication,schema,security,setup,snmp,tasks,virtualAttributes |
| | | test.plan.stress.default=ldap_operation,import_ldif |
| | | verbose.mode=false |
| | | |
| | | product.name=OpenDS Directory Server |
| | | logs.uri=file:// |
| | | tests.os.string=${os.name} |
| | | tests.jvm.string=${java.version}(${sun.arch.data.model} bits) |
| | |
| | | </sequential> |
| | | </for> |
| | | |
| | | <!-- Add DSML service extension --> |
| | | <mkdir dir="${staf.install.dir}/DSML"/> |
| | | <copy todir="${staf.install.dir}/DSML"> |
| | | <fileset dir="${basedir}/../staf-tests/shared/dsml" |
| | | includes="dsmlService.jar"/> |
| | | </copy> |
| | | |
| | | <delete includeemptydirs="true"> |
| | | <fileset dir="${tmp.dir}" includes="**/*"/> |
| | | </delete> |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2007-2008 Sun Microsystems, Inc. |
| | | ! Copyright 2007-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | <function name="GetDirectoryServerVars"> |
| | |
| | | <script> |
| | | DSInfo.SystemList=STAXResult[0][1].split('\n') |
| | | DSInfo.ServerDict['server version']= \ |
| | | DSInfo.getServerVersion(DSInfo.SystemList[0]) |
| | | DSInfo.getServerVersion(DSInfo.SystemList[0],PRODUCTNAME) |
| | | |
| | | for DSInfo.line in DSInfo.SystemList: |
| | | DSInfo.key=DSInfo.line[0:DSInfo.line.find(':')].strip() |
| | |
| | | self.ServerDict={} |
| | | self.SystemDict={} |
| | | |
| | | def getServerVersion(self,string): |
| | | return string.replace("OpenDS Directory Server ","") |
| | | def getServerVersion(self,string,productname): |
| | | return string.replace("%s " % productname,"") |
| | | |
| | | def getServerBuildId(self,string): |
| | | return string.replace("Build ","") |
| | |
| | | STAF_REMOTE_HOSTNAME = '${remote.hostname}' |
| | | STAF_CLIENT_HOSTNAME = '${client.hostname}' |
| | | TMPDIR = '${temp.dir}' |
| | | PRODUCTNAME = '${product.name}' |
| | | OPENDSNAME = '${opends.name}' |
| | | ZIPNAME = '${opends.name}.zip' |
| | | ZIPPATH = '${opends.dir}' |
| | |
| | | if ServersInfoDict.has_key(ServerPath): |
| | | ServerInfoDict=ServersInfoDict[ServerPath] |
| | | |
| | | ServerName=OPENDSNAME |
| | | ServerName=PRODUCTNAME |
| | | |
| | | ServerInfoKey='server version' |
| | | if ServerInfoDict.has_key(ServerInfoKey): |
| | |
| | | <!--- Test Report Header Variables --> |
| | | <xsl:variable name="id" select="identification"/> |
| | | <xsl:variable name="sut" select="$id/sut"/> |
| | | <xsl:variable name="productname" select="normalize-space($id/productname)"/> |
| | | <xsl:variable name="url" select="normalize-space($id/tests-url)"/> |
| | | <xsl:variable name="tests-dir" select="normalize-space($id/tests-dir)"/> |
| | | <xsl:variable name="version" select="$sut/version"/> |
| | |
| | | <link rel="stylesheet" href="./opends.css" type="text/css" /> |
| | | |
| | | <xsl:element name="title"> |
| | | <xsl:value-of select="concat('Test Report for OpenDS ',$version)"/> |
| | | <xsl:value-of select="concat('Test Report for ',$productname,' ',$version)"/> |
| | | </xsl:element> |
| | | |
| | | </xsl:element> |
| | |
| | | <table class="tertmasttable" width="100%" cellspacing="0"> |
| | | <tbody> |
| | | <tr> |
| | | <td><div class="collectionheader"><xsl:value-of select="concat('Test Report for OpenDS ',$version)"/></div></td> |
| | | <td><div class="collectionheader"><xsl:value-of select="concat('Test Report for ',$productname,' ',$version)"/></div></td> |
| | | <td width="10%"><a href="https://opends.dev.java.net/"><img src="./opends_logo_sm.png" alt="OpenDS Logo" width="104" height="33" border="0" align="middle" /></a> </td> |
| | | </tr> |
| | | </tbody> |
| | |
| | | <xsl:variable name="id" select="identification"/> |
| | | <xsl:variable name="sut" select="$id/sut"/> |
| | | <xsl:variable name="testware" select="$id/testware"/> |
| | | <xsl:variable name="productname" select="normalize-space($id/productname)"/> |
| | | <xsl:variable name="mailto" select="normalize-space($id/mailto)"/> |
| | | <xsl:variable name="tests-dir" select="normalize-space($id/tests-dir)"/> |
| | | <xsl:variable name="url" select="normalize-space($id/tests-url)"/> |
| | |
| | | <link rel="stylesheet" href="./opends.css" type="text/css" /> |
| | | |
| | | <xsl:element name="title"> |
| | | <xsl:value-of select="concat('Test Groups Report for OpenDS ',$version)"/> |
| | | <xsl:value-of select="concat('Test Groups Report for ',$productname,' ',$version)"/> |
| | | </xsl:element> |
| | | |
| | | </xsl:element> |
| | |
| | | <table class="tertmasttable" width="100%" cellspacing="0"> |
| | | <tbody> |
| | | <tr> |
| | | <td><div class="collectionheader"><xsl:value-of select="concat('Test Groups Report for OpenDS ',$version)"/></div></td> |
| | | <td><div class="collectionheader"><xsl:value-of select="concat('Test Groups Report for ',$productname,' ',$version)"/></div></td> |
| | | <td width="10%"><a href="https://opends.dev.java.net/"><img src="./opends_logo_sm.png" alt="OpenDS Logo" width="104" height="33" border="0" align="middle" /></a> </td> |
| | | </tr> |
| | | </tbody> |
| | |
| | | <!--- Test Suites Report Header Variables --> |
| | | <xsl:variable name="id" select="identification"/> |
| | | <xsl:variable name="sut" select="$id/sut"/> |
| | | <xsl:variable name="productname" select="normalize-space($id/productname)"/> |
| | | <xsl:variable name="mailto" select="normalize-space($id/mailto)"/> |
| | | <xsl:variable name="tests-dir" select="normalize-space($id/tests-dir)"/> |
| | | <xsl:variable name="url" select="normalize-space($id/tests-url)"/> |
| | |
| | | <link rel="stylesheet" href="../../reports/opends.css" type="text/css" /> |
| | | |
| | | <xsl:element name="title"> |
| | | <xsl:value-of select="concat('Test Suites Report for OpenDS ',$version)"/> |
| | | <xsl:value-of select="concat('Test Suites Report for ',$productname,' ',$version)"/> |
| | | </xsl:element> |
| | | |
| | | </xsl:element> |
| | |
| | | <table class="tertmasttable" width="100%" cellspacing="0"> |
| | | <tbody> |
| | | <tr> |
| | | <td><div class="collectionheader"><xsl:value-of select="concat('Test Suites Report for OpenDS ',$version)"/></div></td> |
| | | <td><div class="collectionheader"><xsl:value-of select="concat('Test Suites Report for ',$productname,' ',$version)"/></div></td> |
| | | <td width="10%"><a href="https://opends.dev.java.net/"><img src="../../reports/opends_logo_sm.png" alt="OpenDS Logo" width="104" height="33" border="0" align="middle" /></a> </td> |
| | | </tr> |
| | | </tbody> |
| | |
| | | <!--- Test Report Header Variables --> |
| | | <xsl:variable name="id" select="identification"/> |
| | | <xsl:variable name="sut" select="$id/sut"/> |
| | | <xsl:variable name="productname" select="normalize-space($id/productname)"/> |
| | | <xsl:variable name="mailto" select="normalize-space($id/mailto)"/> |
| | | <xsl:variable name="tests-dir" select="normalize-space($id/tests-dir)"/> |
| | | <xsl:variable name="url" select="normalize-space($id/tests-url)"/> |
| | |
| | | <link rel="stylesheet" href="../../reports/opends.css" type="text/css" /> |
| | | |
| | | <xsl:element name="title"> |
| | | <xsl:value-of select="concat('Test Case Report for OpenDS ',$version)"/> |
| | | <xsl:value-of select="concat('Test Cases Report for ',$productname,' ',$version)"/> |
| | | </xsl:element> |
| | | |
| | | </xsl:element> |
| | |
| | | <table class="tertmasttable" width="100%" cellspacing="0"> |
| | | <tbody> |
| | | <tr> |
| | | <td><div class="collectionheader"><xsl:value-of select="concat('Test Case Report for OpenDS ',$version)"/></div></td> |
| | | <td><div class="collectionheader"><xsl:value-of select="concat('Test Cases Report for ',$productname,' ',$version)"/></div></td> |
| | | <td width="10%"><a href="https://opends.dev.java.net/"><img src="../../reports/opends_logo_sm.png" alt="OpenDS Logo" width="104" height="33" border="0" align="middle" /></a> </td> |
| | | </tr> |
| | | </tbody> |
| | |
| | | <xsl:variable name="url" select="normalize-space($id/tests-url)"/> |
| | | <xsl:variable name="tests-dir" select="normalize-space($id/tests-dir)"/> |
| | | <xsl:variable name="mailto" select="normalize-space($id/mailto)"/> |
| | | <xsl:variable name="productname" select="normalize-space($id/productname)"/> |
| | | <xsl:variable name="version" select="normalize-space($sut[@product='opends']/version)"/> |
| | | |
| | | <xsl:element name="html"> |
| | |
| | | <link rel="stylesheet" href="./opends.css" type="text/css" /> |
| | | |
| | | <xsl:element name="title"> |
| | | <xsl:value-of select="concat('Identification for OpenDS ',$version)"/> |
| | | <xsl:value-of select="concat('Identification for ',$productname,' ',$version)"/> |
| | | </xsl:element> |
| | | |
| | | </xsl:element> |
| | |
| | | <table class="tertmasttable" width="100%" cellspacing="0"> |
| | | <tbody> |
| | | <tr> |
| | | <td><div class="collectionheader"><xsl:value-of select="concat('Identification for OpenDS ',$version)"/></div></td> |
| | | <td><div class="collectionheader"><xsl:value-of select="concat('Identification for ',$productname,' ',$version)"/></div></td> |
| | | <td width="10%"><a href="https://opends.dev.java.net/"><img src="./opends_logo_sm.png" alt="OpenDS Logo" width="104" height="33" border="0" align="middle" /></a> </td> |
| | | </tr> |
| | | </tbody> |