summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Padgett2012-01-10 11:42:05 (EST)
committer Michael Fiedler2012-01-10 16:01:31 (EST)
commitca490a0fa2642f9ab7148c61bb9069e43f424795 (patch)
tree48388d5edc97bfb9f4afd5ab2f71d4800b741021
parent74aa0b215c784df1817bf075980705b291862fc8 (diff)
downloadorg.eclipse.lyo.testsuite-ca490a0fa2642f9ab7148c61bb9069e43f424795.zip
org.eclipse.lyo.testsuite-ca490a0fa2642f9ab7148c61bb9069e43f424795.tar.gz
org.eclipse.lyo.testsuite-ca490a0fa2642f9ab7148c61bb9069e43f424795.tar.bz2
Bug 368277 - Add JIRA configuration to OSLC test suite
-rw-r--r--org.eclipse.lyo.testsuite.server/config/jira/OSLC V2 JIRA.launch19
-rw-r--r--org.eclipse.lyo.testsuite.server/config/jira/jira-post.json4
-rw-r--r--org.eclipse.lyo.testsuite.server/config/jira/jira-post.xml8
-rw-r--r--org.eclipse.lyo.testsuite.server/config/jira/jira-put.json6
-rw-r--r--org.eclipse.lyo.testsuite.server/config/jira/jira-put.xml15
-rw-r--r--org.eclipse.lyo.testsuite.server/config/jira/jira.properties75
6 files changed, 127 insertions, 0 deletions
diff --git a/org.eclipse.lyo.testsuite.server/config/jira/OSLC V2 JIRA.launch b/org.eclipse.lyo.testsuite.server/config/jira/OSLC V2 JIRA.launch
new file mode 100644
index 0000000..b2a9c6b
--- /dev/null
+++ b/org.eclipse.lyo.testsuite.server/config/jira/OSLC V2 JIRA.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/jira/jira.properties"/>
+</launchConfiguration>
diff --git a/org.eclipse.lyo.testsuite.server/config/jira/jira-post.json b/org.eclipse.lyo.testsuite.server/config/jira/jira-post.json
new file mode 100644
index 0000000..ae9264b
--- /dev/null
+++ b/org.eclipse.lyo.testsuite.server/config/jira/jira-post.json
@@ -0,0 +1,4 @@
+{
+ "dcterms:title": "OSLC JUnit Change Request",
+ "jira:issueType": { "rdf:resource": "http://jira.ibm.com:8080/rest/oslc/latest/issueTypes/1" }
+}
diff --git a/org.eclipse.lyo.testsuite.server/config/jira/jira-post.xml b/org.eclipse.lyo.testsuite.server/config/jira/jira-post.xml
new file mode 100644
index 0000000..a9dafd9
--- /dev/null
+++ b/org.eclipse.lyo.testsuite.server/config/jira/jira-post.xml
@@ -0,0 +1,8 @@
+<?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:oslc_cmx="http://open-services.net/ns/cm-x#" xmlns:jira="http://com.ibm/cm/adaptor/jira#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:oslc_cm_1="http://open-services.net/xmlns/cm/1.0/" xmlns:jfs="http://jazz.net/xmlns/prod/jazz/jfs/1.0/" xmlns:calm="http://jazz.net/xmlns/prod/jazz/calm/1.0/" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:ns12="http://jazz.net/xmlns/prod/jazz/discovery/1.0/">
+ <oslc_cm:ChangeRequest>
+ <dcterms:title>OSLC JUnit Change Request</dcterms:title>
+ <jira:issueType rdf:resource="http://jira.ibm.com:8080/rest/oslc/latest/issueTypes/1" />
+ <jira:priority rdf:resource="http://jira.ibm.com:8080/rest/oslc/latest/priorities/3" />
+ </oslc_cm:ChangeRequest>
+</rdf:RDF>
diff --git a/org.eclipse.lyo.testsuite.server/config/jira/jira-put.json b/org.eclipse.lyo.testsuite.server/config/jira/jira-put.json
new file mode 100644
index 0000000..3fed0d8
--- /dev/null
+++ b/org.eclipse.lyo.testsuite.server/config/jira/jira-put.json
@@ -0,0 +1,6 @@
+{
+ "oslc_cm:relatedChangeRequest": [{
+ "rdf:resource": "http://example.com/bugs/123",
+ "dcterms:title": "Defect 123: Problems during install"
+ }]
+}
diff --git a/org.eclipse.lyo.testsuite.server/config/jira/jira-put.xml b/org.eclipse.lyo.testsuite.server/config/jira/jira-put.xml
new file mode 100644
index 0000000..3aa4065
--- /dev/null
+++ b/org.eclipse.lyo.testsuite.server/config/jira/jira-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/jira/jira.properties b/org.eclipse.lyo.testsuite.server/config/jira/jira.properties
new file mode 100644
index 0000000..e687576
--- /dev/null
+++ b/org.eclipse.lyo.testsuite.server/config/jira/jira.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://jira.ibm.com:8080/rest/oslc/latest/catalog
+#Implementation name (for identification purposes)
+implName=JIRA
+#The authentication style (currently supports only BASIC, not FORM)
+authMethod=BASIC
+#The authentication credentials
+userId=deb
+pw=deb
+# 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=Open
+#The query parameter that should be used to test comparisons
+queryComparisonProperty=dcterms:created
+#The parameter value used with the parameter to test comparisons (should split the results into two non-empty sets)
+queryComparisonValue=2012-01-10T11:30:22-0500
+#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/jira/jira-post.xml
+createTemplateRdfXmlFile=config/jira/jira-post.xml
+#Location of properly formatted json which will be used to create a record.
+createTemplateJsonFile=config/jira/jira-post.json
+#Location of properly formatted xml which will be used to update a record.
+updateTemplateXmlFile=config/jira/jira-put.xml
+updateTemplateRdfXmlFile=config/jira/jira-put.xml
+#Location of properly formatted json which will be used to update a record.
+updateTemplateJsonFile=config/jira/jira-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:2990/jira/rest/oslc/latest/oauth/request_token
+#The URL corresponding to OAuth user authorization
+OAuthAuthorizationUrl=http://localhost:2990/jira/rest/oslc/latest/oauth/authorize
+#The URL corresponding to issuing access tokens
+OAuthAccessTokenUrl=http://localhost:2990/jira/rest/oslc/latest/oauth/access_token
+#The consumer token and secret used to make the OAuth accesses
+OAuthConsumerToken=jira_clm
+OAuthConsumerSecret=jirademo \ No newline at end of file