camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject [3/4] camel git commit: CAMEL-8464 Remove likeCompanyUpdate endpoint from camel-linkedin
Date Tue, 10 Mar 2015 01:58:24 GMT
CAMEL-8464 Remove likeCompanyUpdate endpoint from camel-linkedin


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/aad7ddb3
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/aad7ddb3
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/aad7ddb3

Branch: refs/heads/camel-2.14.x
Commit: aad7ddb341661ac4f3e2f73c46b6d1d4be9c2be3
Parents: 98f5e9b
Author: Tomas Rohovsky <trohovsk@redhat.com>
Authored: Mon Mar 9 19:13:17 2015 +0100
Committer: Willem Jiang <willem.jiang@gmail.com>
Committed: Tue Mar 10 09:57:45 2015 +0800

----------------------------------------------------------------------
 .../src/main/resources/linkedin-api-wadl.xml    | 36 +++++++-------------
 .../CompaniesResourceIntegrationTest.java       | 18 ----------
 2 files changed, 13 insertions(+), 41 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/aad7ddb3/components/camel-linkedin/camel-linkedin-api/src/main/resources/linkedin-api-wadl.xml
----------------------------------------------------------------------
diff --git a/components/camel-linkedin/camel-linkedin-api/src/main/resources/linkedin-api-wadl.xml
b/components/camel-linkedin/camel-linkedin-api/src/main/resources/linkedin-api-wadl.xml
index 1766040..cd7d837 100644
--- a/components/camel-linkedin/camel-linkedin-api/src/main/resources/linkedin-api-wadl.xml
+++ b/components/camel-linkedin/camel-linkedin-api/src/main/resources/linkedin-api-wadl.xml
@@ -32,7 +32,7 @@
     <wadl:resource path="people" id="People">
 
       <wadl:resource path="~{fields}">
-        <wadl:doc><![CDATA[https://developer.linkedin.com/documents/profile-api]]></wadl:doc>
+        <wadl:doc><![CDATA[https://developer-programs.linkedin.com/documents/profile-api]]></wadl:doc>
         <wadl:method name="GET" id="getPerson">
           <wadl:request>
             <wadl:param href="#fields-selector"/>
@@ -46,7 +46,7 @@
       </wadl:resource>
 
       <wadl:resource path="~/connections{fields}">
-        <wadl:doc><![CDATA[https://developer.linkedin.com/documents/connections-api]]></wadl:doc>
+        <wadl:doc><![CDATA[https://developer-programs.linkedin.com/documents/connections-api]]></wadl:doc>
         <wadl:method name="GET" id="getConnections">
           <wadl:request>
             <wadl:param href="#fields-selector"/>
@@ -70,7 +70,7 @@
       </wadl:resource>
 
       <wadl:resource path="~/network">
-        <wadl:doc><![CDATA[https://developer.linkedin.com/documents/get-network-updates-and-statistics-api]]></wadl:doc>
+        <wadl:doc><![CDATA[https://developer-programs.linkedin.com/documents/get-network-updates-and-statistics-api]]></wadl:doc>
 
         <wadl:resource path="updates{fields}">
           <wadl:param href="#scope"/>
@@ -158,7 +158,7 @@
       </wadl:resource>
 
       <wadl:resource path="~/mailbox">
-        <wadl:doc><![CDATA[https://developer.linkedin.com/documents/invitation-api]]></wadl:doc>
+        <wadl:doc><![CDATA[https://developer-programs.linkedin.com/documents/invitation-api]]></wadl:doc>
         <wadl:method name="POST" id="addInvite">
           <wadl:request>
             <wadl:representation mediaType="application/xml" element="tns:mailboxitem"/>
@@ -427,7 +427,7 @@
 
     <!-- Groups Resource -->
     <wadl:resource path="groups" id="Groups">
-      <wadl:doc><![CDATA[https://developer.linkedin.com/documents/groups-api]]></wadl:doc>
+      <wadl:doc><![CDATA[https://developer-programs.linkedin.com/documents/groups-api]]></wadl:doc>
 
       <wadl:resource path="{group-id}{fields}">
         <wadl:method name="GET" id="getGroup">
@@ -458,7 +458,7 @@
 
     <!-- Posts Resource -->
     <wadl:resource path="posts" id="Posts">
-      <wadl:doc><![CDATA[https://developer.linkedin.com/documents/commenting-reading-comments-and-likes-network-updates]]></wadl:doc>
+      <wadl:doc><![CDATA[https://developer-programs.linkedin.com/documents/commenting-reading-comments-and-likes-network-updates]]></wadl:doc>
 
       <wadl:resource path="{post-id}{fields}">
         <wadl:method name="GET" id="getPost">
@@ -536,7 +536,7 @@
 
     <!-- Comments Resource -->
     <wadl:resource path="comments" id="Comments">
-      <wadl:doc><![CDATA[https://developer.linkedin.com/documents/commenting-reading-comments-and-likes-network-updates]]></wadl:doc>
+      <wadl:doc><![CDATA[https://developer-programs.linkedin.com/documents/commenting-reading-comments-and-likes-network-updates]]></wadl:doc>
 
       <wadl:resource path="{comment-id}{fields}">
         <wadl:method name="GET" id="getComment">
@@ -562,7 +562,7 @@
 
     <!--Companies Resource -->
     <wadl:resource id="Companies">
-      <wadl:doc><![CDATA[https://developer.linkedin.com/documents/companies]]></wadl:doc>
+      <wadl:doc><![CDATA[https://developer-programs.linkedin.com/documents/companies]]></wadl:doc>
 
       <wadl:resource path="companies{fields}">
         <wadl:method name="GET" id="getCompanies">
@@ -660,21 +660,11 @@
               </wadl:method>
             </wadl:resource>
 
-            <wadl:resource path="is-liked">
-              <wadl:method name="PUT" id="likeCompanyUpdate">
-                <wadl:request>
-                  <wadl:param href="#company-id"/>
-                  <wadl:param href="#update-key"/>
-                  <wadl:representation href="#is-liked"/>
-                </wadl:request>
-              </wadl:method>
-            </wadl:resource>
-
           </wadl:resource>
 
           <!-- Company shares -->
           <wadl:resource path="shares">
-            <wadl:doc><![CDATA[https://developer.linkedin.com/documents/share-api]]></wadl:doc>
+            <wadl:doc><![CDATA[https://developer-programs.linkedin.com/documents/share-api]]></wadl:doc>
             <wadl:method name="POST" id="addShare">
               <wadl:request>
                 <wadl:param href="#company-id"/>
@@ -770,7 +760,7 @@
 
     <!-- Jobs -->
     <wadl:resource path="jobs" id="Jobs">
-      <wadl:doc><![CDATA[https://developer.linkedin.com/documents/jobs]]></wadl:doc>
+      <wadl:doc><![CDATA[https://developer-programs.linkedin.com/documents/jobs]]></wadl:doc>
 
       <wadl:method name="POST" id="addJob">
         <wadl:request>
@@ -814,7 +804,7 @@
 
       <!-- People Search -->
       <wadl:resource path="people-search{fields}">
-        <wadl:doc><![CDATA[https://developer.linkedin.com/documents/people-search-api]]></wadl:doc>
+        <wadl:doc><![CDATA[https://developer-programs.linkedin.com/documents/people-search-api]]></wadl:doc>
         <wadl:method name="GET" id="searchPeople">
           <wadl:request>
             <wadl:param href="#fields-selector"/>
@@ -845,7 +835,7 @@
 
       <!-- Company Search -->
       <wadl:resource path="company-search{fields}">
-        <wadl:doc><![CDATA[https://developer.linkedin.com/documents/company-search]]></wadl:doc>
+        <wadl:doc><![CDATA[https://developer-programs.linkedin.com/documents/company-search]]></wadl:doc>
         <wadl:method name="GET" id="searchCompanies">
           <wadl:request>
             <wadl:param href="#fields-selector"/>
@@ -865,7 +855,7 @@
 
       <!-- Job Search -->
       <wadl:resource path="job-search{fields}">
-        <wadl:doc><![CDATA[https://developer.linkedin.com/documents/job-search-api]]></wadl:doc>
+        <wadl:doc><![CDATA[https://developer-programs.linkedin.com/documents/job-search-api]]></wadl:doc>
         <wadl:method name="GET" id="searchJobs">
           <wadl:request>
             <wadl:param href="#fields-selector"/>

http://git-wip-us.apache.org/repos/asf/camel/blob/aad7ddb3/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/CompaniesResourceIntegrationTest.java
----------------------------------------------------------------------
diff --git a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/CompaniesResourceIntegrationTest.java
b/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/CompaniesResourceIntegrationTest.java
index acfcec6..785f563 100644
--- a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/CompaniesResourceIntegrationTest.java
+++ b/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/CompaniesResourceIntegrationTest.java
@@ -268,20 +268,6 @@ public class CompaniesResourceIntegrationTest extends AbstractLinkedInTestSuppor
         LOG.debug("isViewerShareEnabled: " + result);
     }
 
-    // TODO provide parameter values for likeCompanyUpdate
-    @Ignore
-    @Test
-    public void testLikeCompanyUpdate() throws Exception {
-        final Map<String, Object> headers = new HashMap<String, Object>();
-        headers.put("CamelLinkedIn.company_id", 0L);
-        // parameter type is String
-        headers.put("CamelLinkedIn.update_key", null);
-        // parameter type is org.apache.camel.component.linkedin.api.model.IsLiked
-        headers.put("CamelLinkedIn.isliked", null);
-
-        requestBodyAndHeaders("direct://LIKECOMPANYUPDATE", null, headers);
-    }
-
     @Override
     protected RouteBuilder createRouteBuilder() throws Exception {
         return new RouteBuilder() {
@@ -342,10 +328,6 @@ public class CompaniesResourceIntegrationTest extends AbstractLinkedInTestSuppor
                 from("direct://ISVIEWERSHAREENABLED")
                     .to("linkedin://" + PATH_PREFIX + "/isViewerShareEnabled?inBody=company_id");
 
-                // test route for likeCompanyUpdate
-                from("direct://LIKECOMPANYUPDATE")
-                    .to("linkedin://" + PATH_PREFIX + "/likeCompanyUpdate");
-
             }
         };
     }


Mime
View raw message