aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Padgett2011-11-10 10:09:00 (EST)
committerMichael Fiedler2011-11-11 12:51:47 (EST)
commitea725f29dcf4a2a9a66423421c97b09a6ee2470b (patch)
tree310b972d6e795d6c5ca8367f0fb62036c0a50fa9
parent0bb7a3d208f3933769d1fdce78484e6580ff6a59 (diff)
downloadorg.eclipse.lyo.testsuite-ea725f29dcf4a2a9a66423421c97b09a6ee2470b.zip
org.eclipse.lyo.testsuite-ea725f29dcf4a2a9a66423421c97b09a6ee2470b.tar.gz
org.eclipse.lyo.testsuite-ea725f29dcf4a2a9a66423421c97b09a6ee2470b.tar.bz2
Bug 363478 - Add test suite configuration for Bugzilla adapter
-rw-r--r--org.eclipse.lyo.testsuite.server/config/bugzilla/OSLC V2 Bugzilla.launch19
-rw-r--r--org.eclipse.lyo.testsuite.server/config/bugzilla/bugzilla-post.xml11
-rw-r--r--org.eclipse.lyo.testsuite.server/config/bugzilla/bugzilla-put.xml15
-rw-r--r--org.eclipse.lyo.testsuite.server/config/bugzilla/bugzilla.properties75
4 files changed, 120 insertions, 0 deletions
diff --git a/org.eclipse.lyo.testsuite.server/config/bugzilla/OSLC V2 Bugzilla.launch b/org.eclipse.lyo.testsuite.server/config/bugzilla/OSLC V2 Bugzilla.launch
new file mode 100644
index 0000000..b1099e0
--- /dev/null
+++ b/org.eclipse.lyo.testsuite.server/config/bugzilla/OSLC V2 Bugzilla.launch
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.jdt.junit.launchconfig">
+<stringAttribute key="bad_container_name" value="\org.eclipse.lyo.testsuite.server\launches"/>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry value="/org.eclipse.lyo.testsuite.server/src/main/java/org/eclipse/lyo/testsuite/server/DynamicSuiteBuilder.java"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="1"/>
+</listAttribute>
+<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/>
+<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
+<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
+<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
+<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.m2e.launchconfig.classpathProvider"/>
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.lyo.testsuite.server.DynamicSuiteBuilder"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.eclipse.lyo.testsuite.server"/>
+<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.m2e.launchconfig.sourcepathProvider"/>
+<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dprops=config/bugzilla/bugzilla.properties"/>
+</launchConfiguration>
diff --git a/org.eclipse.lyo.testsuite.server/config/bugzilla/bugzilla-post.xml b/org.eclipse.lyo.testsuite.server/config/bugzilla/bugzilla-post.xml
new file mode 100644
index 0000000..68bc3fb
--- /dev/null
+++ b/org.eclipse.lyo.testsuite.server/config/bugzilla/bugzilla-post.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:oslc="http://open-services.net/ns/core#" xmlns:oslc_cm="http://open-services.net/ns/cm#" xmlns:bugz="http://www.bugzilla.org/rdf#">
+ <oslc_cm:ChangeRequest>
+ <dcterms:title>OSLC JUnit Change Request</dcterms:title>
+ <bugz:product>TestProduct</bugz:product>
+ <bugz:component>Component2</bugz:component>
+ <bugz:version>unspecified</bugz:version>
+ <bugz:platform>ALL</bugz:platform>
+ <bugz:opsys>ALL</bugz:opsys>
+ </oslc_cm:ChangeRequest>
+</rdf:RDF>
diff --git a/org.eclipse.lyo.testsuite.server/config/bugzilla/bugzilla-put.xml b/org.eclipse.lyo.testsuite.server/config/bugzilla/bugzilla-put.xml
new file mode 100644
index 0000000..3aa4065
--- /dev/null
+++ b/org.eclipse.lyo.testsuite.server/config/bugzilla/bugzilla-put.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<rdf:RDF
+ xmlns:dcterms="http://purl.org/dc/terms/"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:oslc_cm="http://open-services.net/ns/cm#">
+
+ <oslc_cm:ChangeRequest rdf:about="">
+ <oslc_cm:relatedChangeRequest rdf:ID="link1"
+ rdf:resource="http://example.com/bugs/123" />
+ </oslc_cm:ChangeRequest>
+
+ <rdf:Description rdf:about="#link1">
+ <dcterms:title>Defect 123: Problems during install</dcterms:title>
+ </rdf:Description>
+</rdf:RDF>
diff --git a/org.eclipse.lyo.testsuite.server/config/bugzilla/bugzilla.properties b/org.eclipse.lyo.testsuite.server/config/bugzilla/bugzilla.properties
new file mode 100644
index 0000000..a258d53
--- /dev/null
+++ b/org.eclipse.lyo.testsuite.server/config/bugzilla/bugzilla.properties
@@ -0,0 +1,75 @@
+###############################################################################
+# Copyright (c) 2011 IBM Corporation.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# and Eclipse Distribution License v. 1.0 which accompanies this distribution.
+#
+# The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
+# and the Eclipse Distribution License is available at
+# http://www.eclipse.org/org/documents/edl-v10.php.
+#
+# Contributors:
+#
+# IBM Corporation - initial API and implementation
+###############################################################################
+##GENERAL PROPERTIES##
+# The location of the top level ServiceProviderCatalog or Service Description Document
+#
+baseUri=http://localhost:8282/bugz/catalog
+#Implementation name (for identification purposes)
+implName=Bugzilla
+#The authentication style (currently supports only BASIC, not FORM)
+authMethod=BASIC
+#The authentication credentials
+userId=nina@oslc1.rtp.raleigh.ibm.com
+pw=ninanina
+# Values: http://open-services.net/xmlns/cm/1.0/ | http://open-services.net/ns/cm# | both
+testVersions=http://open-services.net/ns/cm#
+
+# Determine if tests should follow all possible links: Service Catalogs, Service Providers, Query Capabilities, etc.
+# Default is runOnlyOnce=true, which will either use the 1st entry it encounters or use the services labeled as the defaults.
+runOnlyOnce=true
+
+##CHANGE REQUEST TEST PROPERTIES##
+#Where clause used to find records in the change request tests (optional)
+#changeRequestsWhere=oslc_cm:status="Open"
+
+##QUERY PROPERTIES##
+#The query parameter that should be used to test equality
+queryEqualityProperty=oslc_cm:status
+#The parameter value used with the parameter to test equality (record with this value should exist in the system)
+queryEqualityValue=NEW
+#The query parameter that should be used to test comparisons
+queryComparisonProperty=dcterms:identifier
+#The parameter value used with the parameter to test comparisons (should split the results into two non-empty sets)
+queryComparisonValue=2
+#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=bug
+
+##CREATION AND UPDATION PROPERTIES##
+#Location of properly formatted xml which will be used to create a record.
+createTemplateXmlFile=config/bugzilla/bugzilla-post.xml
+createTemplateRdfXmlFile=config/bugzilla/bugzilla-post.xml
+#Location of properly formatted json which will be used to create a record.
+#createTemplateJsonFile=config/bugzilla/bugzilla-post.json
+#Location of properly formatted xml which will be used to update a record.
+updateTemplateXmlFile=config/bugzilla/bugzilla-put.xml
+updateTemplateRdfXmlFile=config/bugzilla/bugzilla-put.xml
+#Location of properly formatted json which will be used to update a record.
+#updateTemplateJsonFile=config/bugzilla/bugzilla-put.json
+#Update additional parameters (for supporting partial update)
+updateParams=?oslc.properties=oslc_cm%3ArelatedChangeRequest
+
+##OAUTH PROPERTIES - Only need for version 1 OSLC providers, version 2 can find these programatically##
+#The URL corresponding to issuing request tokens
+#OAuthRequestTokenUrl=http://localhost:8282/bugz/oauth/request_token
+#The URL corresponding to OAuth user authorization
+#OAuthAuthorizationUrl=http://localhost:8282/bugz/oauth/authorize
+#The URL corresponding to issuing access tokens
+#OAuthAccessTokenUrl=http://localhost:8282/bugz/oauth/access_token
+#The consumer token and secret used to make the OAuth accesses
+#OAuthConsumerToken=consumerKey
+#OAuthConsumerSecret=secret \ No newline at end of file