[Fusionforge-commits] r12208 - in branches/Branch_5_1/src/plugins/oslc: . tests

Olivier Berger olberger at libremir.placard.fr.eu.org
Thu Feb 10 13:55:20 CET 2011


Author: olberger
Date: 2011-02-10 13:55:15 +0100 (Thu, 10 Feb 2011)
New Revision: 12208

Added:
   branches/Branch_5_1/src/plugins/oslc/tests/
   branches/Branch_5_1/src/plugins/oslc/tests/run-provider-tests.sh
   branches/Branch_5_1/src/plugins/oslc/tests/setup-provider-test.sh
Log:
Adding the files needed to install and run the OSLC provider tests suite for use in the SandBox VM

Added: branches/Branch_5_1/src/plugins/oslc/tests/run-provider-tests.sh
===================================================================
--- branches/Branch_5_1/src/plugins/oslc/tests/run-provider-tests.sh	                        (rev 0)
+++ branches/Branch_5_1/src/plugins/oslc/tests/run-provider-tests.sh	2011-02-10 12:55:15 UTC (rev 12208)
@@ -0,0 +1,11 @@
+#! /bin/sh
+
+cd provider-test
+
+baseUri=`grep baseUri config/fusionforge/ffsandbox.properties | sed 's/^.*=//g'`
+
+echo
+echo "Starting the OSLC provider test suite on $baseUri."
+echo
+
+mvn -Dtest=DynamicSuiteBuilder -DargLine="-Dprops=config/fusionforge/ffsandbox.properties" test


Property changes on: branches/Branch_5_1/src/plugins/oslc/tests/run-provider-tests.sh
___________________________________________________________________
Added: svn:executable
   + *

Added: branches/Branch_5_1/src/plugins/oslc/tests/setup-provider-test.sh
===================================================================
--- branches/Branch_5_1/src/plugins/oslc/tests/setup-provider-test.sh	                        (rev 0)
+++ branches/Branch_5_1/src/plugins/oslc/tests/setup-provider-test.sh	2011-02-10 12:55:15 UTC (rev 12208)
@@ -0,0 +1,77 @@
+#! /bin/sh
+
+# This should setup an OSLC Provider test suite environment
+
+# Fist, make sure the plugin is installed
+aptitude install fusionforge-plugin-oslc
+
+# Dependencies : installed Maven 2 and JDK (aptitude install maven2 default-jdk)
+
+# We don't embedd a copy of the test suite and instead refer to the latest version on SF.net
+if [ ! -d provider-test ] ; then
+    svn checkout https://oslc-tools.svn.sourceforge.net/svnroot/oslc-tools/provider-test
+fi
+
+cd provider-test
+svn update
+
+# The tests config is in the properties file
+if [ ! -f config/fusionforge/ffsandbox.properties ]; then
+    cat <<EOF >config/fusionforge/ffsandbox.properties
+##GENERAL PROPERTIES##
+#The location of the top level ServiceProviderCatalog or Service Description Document
+baseUri=https://forge.local/plugins/oslc/cm/oslc-services/
+#Implementation name (for identification purposes)
+implName=FusionForge
+#The authentication style (currently supports only BASIC, not FORM)
+authMethod=BASIC
+#formUri=https://quagmire.rtp.raleigh.ibm.com:9443/ccm/authenticated/j_security_check
+#The authentication credentials
+userId=oslctest
+pw=oslctest
+
+# Values: http://open-services.net/xmlns/cm/1.0/ | http://open-services.net/ns/cm# | both
+testVersions=http://open-services.net/xmlns/cm/1.0/
+
+##QUERY PROPERTIES##
+#The query parameter that should be used to test equality
+queryEqualityProperty=dc:title
+#The parameter value used with the parameter to test equality (record with this value should exist in the system)
+queryEqualityValue=another ticket
+#The query parameter that should be used to test equality
+queryComparisonProperty=dc:modified
+#The parameter value used with the parameter to test comparisons (should split the results into two non-empty sets)
+queryComparisonValue=2010-08-16T20:16:03.578Z
+#Additional non-OSLC parameters that need to be included to run queries
+queryAdditionalParameters=
+#A value to test full text search against (should return a non-empty record list)
+fullTextSearchTerm=templatedDefect
+
+##CREATION AND UPDATION PROPERTIES##
+#Location of properly formatted xml which will be used to create a record.
+createTemplateXmlFile=config/rtc/rtc-template.xml
+#Location of properly formatted json which will be used to create a record.
+createTemplateJsonFile=config/rtc/rtc-json-template.json
+#Location of properly formatted xml which will be used to update a record.
+updateTemplateXmlFile=config/rtc/rtc-update.xml
+#Location of properly formatted json which will be used to update a record.
+updateTemplateJsonFile=config/rtc/rtc-json-update.json
+
+##OAUTH PROPERTIES##
+#The URL corresponding to issuing request tokens
+#OAuthRequestTokenUrl=https://localhost:9443/jazz/oauth-request-token
+#The URL corresponding to OAuth user authorization
+#OAuthAuthorizationUrl=https://localhost:9443/jazz/oauth-authorize
+#Parameters to be POSTed to the authorization URL along with the acquired request token
+#OAuthAuthorizationParameters=oauth_callback=&authorize=true
+#The URL corresponding to issuing access tokens
+#OAuthAccessTokenUrl=https://localhost:9443/jazz/oauth-access-token
+#The consumer token and secret used to make the OAuth accesses
+#OAuthConsumerToken=7bcf944e7f224096b448a17fdd1da57e
+#OAuthConsumerSecret=secret
+EOF
+
+fi
+
+mvn clean
+


Property changes on: branches/Branch_5_1/src/plugins/oslc/tests/setup-provider-test.sh
___________________________________________________________________
Added: svn:executable
   + *




More information about the Fusionforge-commits mailing list