{"action":"created","comment":{"url":"https://api.github.com/repos/kaazing/gateway/pulls/comments/74908162","id":74908162,"diff_hunk":"@@ -0,0 +1,71 @@\n+/**\n+ * Copyright 2007-2016, Kaazing Corporation. All rights reserved.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ * http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+package org.kaazing.gateway.service.http.proxy;\n+\n+import static org.kaazing.test.util.ITUtil.createRuleChain;\n+\n+import org.junit.Ignore;\n+import org.junit.Rule;\n+import org.junit.Test;\n+import org.junit.rules.TestRule;\n+import org.kaazing.gateway.server.test.GatewayRule;\n+import org.kaazing.gateway.server.test.config.GatewayConfiguration;\n+import org.kaazing.gateway.server.test.config.builder.GatewayConfigurationBuilder;\n+import org.kaazing.gateway.util.feature.EarlyAccessFeatures;\n+import org.kaazing.k3po.junit.annotation.Specification;\n+import org.kaazing.k3po.junit.rules.K3poRule;\n+\n+public class HttpProxyConnectionDifferentPortIT {\n+\n+    private final K3poRule k3po = new K3poRule();\n+    private final GatewayRule gateway = new GatewayRule() {\n+        {\n+            // @formatter:off\n+            GatewayConfiguration configuration =\n+                    new GatewayConfigurationBuilder()\n+                            .property(EarlyAccessFeatures.HTTP_PROXY_SERVICE.getPropertyName(), \"true\")\n+                            .service()\n+                            .accept(\"http://localhost:8110\")\n+                            .connect(\"http://localhost:8080\")\n+                            .name(\"Proxy Service 1\")\n+                            .type(\"http.proxy\")\n+                            .connectOption(\"http.keepalive\", \"disabled\")\n+                            .done()\n+\n+                            .service()\n+                            .accept(\"http://localhost:8111\")\n+                            .connect(\"http://localhost:8081\")\n+                            .name(\"Proxy Service 2\")\n+                            .type(\"http.proxy\")\n+                            .done()\n+                            .done();\n+            // @formatter:on\n+            init(configuration);\n+        }\n+    };\n+\n+    @Rule\n+    public TestRule chain = createRuleChain(gateway, k3po);\n+\n+\n+    @Test\n+\t@Specification(\"http.proxy.multiple.services.different.port\")\n+    public void httppath() throws Exception {","path":"service/http.proxy/src/test/java/org/kaazing/gateway/service/http/proxy/HttpProxyConnectionDifferentPortIT.java","position":67,"original_position":67,"commit_id":"cdf1a21c04780d942f60dba6832d678e09a3bc28","original_commit_id":"cdf1a21c04780d942f60dba6832d678e09a3bc28","user":{"login":"msalavastru","id":14290463,"avatar_url":"https://avatars.githubusercontent.com/u/14290463?v=3","gravatar_id":"","url":"https://api.github.com/users/msalavastru","html_url":"https://github.com/msalavastru","followers_url":"https://api.github.com/users/msalavastru/followers","following_url":"https://api.github.com/users/msalavastru/following{/other_user}","gists_url":"https://api.github.com/users/msalavastru/gists{/gist_id}","starred_url":"https://api.github.com/users/msalavastru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msalavastru/subscriptions","organizations_url":"https://api.github.com/users/msalavastru/orgs","repos_url":"https://api.github.com/users/msalavastru/repos","events_url":"https://api.github.com/users/msalavastru/events{/privacy}","received_events_url":"https://api.github.com/users/msalavastru/received_events","type":"User","site_admin":false},"body":"Please rename the test method to something more meaningful, similar to the k3po script.","created_at":"2016-08-16T10:09:11Z","updated_at":"2016-08-16T10:09:11Z","html_url":"https://github.com/kaazing/gateway/pull/624#discussion_r74908162","pull_request_url":"https://api.github.com/repos/kaazing/gateway/pulls/624","_links":{"self":{"href":"https://api.github.com/repos/kaazing/gateway/pulls/comments/74908162"},"html":{"href":"https://github.com/kaazing/gateway/pull/624#discussion_r74908162"},"pull_request":{"href":"https://api.github.com/repos/kaazing/gateway/pulls/624"}}},"pull_request":{"url":"https://api.github.com/repos/kaazing/gateway/pulls/624","id":76607265,"html_url":"https://github.com/kaazing/gateway/pull/624","diff_url":"https://github.com/kaazing/gateway/pull/624.diff","patch_url":"https://github.com/kaazing/gateway/pull/624.patch","issue_url":"https://api.github.com/repos/kaazing/gateway/issues/624","number":624,"state":"open","locked":false,"title":"(not for merge)Added k3po tests for http proxy","user":{"login":"claudiaop","id":15870412,"avatar_url":"https://avatars.githubusercontent.com/u/15870412?v=3","gravatar_id":"","url":"https://api.github.com/users/claudiaop","html_url":"https://github.com/claudiaop","followers_url":"https://api.github.com/users/claudiaop/followers","following_url":"https://api.github.com/users/claudiaop/following{/other_user}","gists_url":"https://api.github.com/users/claudiaop/gists{/gist_id}","starred_url":"https://api.github.com/users/claudiaop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claudiaop/subscriptions","organizations_url":"https://api.github.com/users/claudiaop/orgs","repos_url":"https://api.github.com/users/claudiaop/repos","events_url":"https://api.github.com/users/claudiaop/events{/privacy}","received_events_url":"https://api.github.com/users/claudiaop/received_events","type":"User","site_admin":false},"body":"Some of the tests are ignored and we'll address the questions to David","created_at":"2016-07-07T14:41:57Z","updated_at":"2016-08-16T10:09:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fc1518e85eb1499b5ba0a272dd75eeab417102e7","assignee":{"login":"jitsni","id":5131125,"avatar_url":"https://avatars.githubusercontent.com/u/5131125?v=3","gravatar_id":"","url":"https://api.github.com/users/jitsni","html_url":"https://github.com/jitsni","followers_url":"https://api.github.com/users/jitsni/followers","following_url":"https://api.github.com/users/jitsni/following{/other_user}","gists_url":"https://api.github.com/users/jitsni/gists{/gist_id}","starred_url":"https://api.github.com/users/jitsni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jitsni/subscriptions","organizations_url":"https://api.github.com/users/jitsni/orgs","repos_url":"https://api.github.com/users/jitsni/repos","events_url":"https://api.github.com/users/jitsni/events{/privacy}","received_events_url":"https://api.github.com/users/jitsni/received_events","type":"User","site_admin":false},"assignees":[{"login":"jitsni","id":5131125,"avatar_url":"https://avatars.githubusercontent.com/u/5131125?v=3","gravatar_id":"","url":"https://api.github.com/users/jitsni","html_url":"https://github.com/jitsni","followers_url":"https://api.github.com/users/jitsni/followers","following_url":"https://api.github.com/users/jitsni/following{/other_user}","gists_url":"https://api.github.com/users/jitsni/gists{/gist_id}","starred_url":"https://api.github.com/users/jitsni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jitsni/subscriptions","organizations_url":"https://api.github.com/users/jitsni/orgs","repos_url":"https://api.github.com/users/jitsni/repos","events_url":"https://api.github.com/users/jitsni/events{/privacy}","received_events_url":"https://api.github.com/users/jitsni/received_events","type":"User","site_admin":false},{"login":"msalavastru","id":14290463,"avatar_url":"https://avatars.githubusercontent.com/u/14290463?v=3","gravatar_id":"","url":"https://api.github.com/users/msalavastru","html_url":"https://github.com/msalavastru","followers_url":"https://api.github.com/users/msalavastru/followers","following_url":"https://api.github.com/users/msalavastru/following{/other_user}","gists_url":"https://api.github.com/users/msalavastru/gists{/gist_id}","starred_url":"https://api.github.com/users/msalavastru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msalavastru/subscriptions","organizations_url":"https://api.github.com/users/msalavastru/orgs","repos_url":"https://api.github.com/users/msalavastru/repos","events_url":"https://api.github.com/users/msalavastru/events{/privacy}","received_events_url":"https://api.github.com/users/msalavastru/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/kaazing/gateway/pulls/624/commits","review_comments_url":"https://api.github.com/repos/kaazing/gateway/pulls/624/comments","review_comment_url":"https://api.github.com/repos/kaazing/gateway/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kaazing/gateway/issues/624/comments","statuses_url":"https://api.github.com/repos/kaazing/gateway/statuses/cdf1a21c04780d942f60dba6832d678e09a3bc28","head":{"label":"claudiaop:develop","ref":"develop","sha":"cdf1a21c04780d942f60dba6832d678e09a3bc28","user":{"login":"claudiaop","id":15870412,"avatar_url":"https://avatars.githubusercontent.com/u/15870412?v=3","gravatar_id":"","url":"https://api.github.com/users/claudiaop","html_url":"https://github.com/claudiaop","followers_url":"https://api.github.com/users/claudiaop/followers","following_url":"https://api.github.com/users/claudiaop/following{/other_user}","gists_url":"https://api.github.com/users/claudiaop/gists{/gist_id}","starred_url":"https://api.github.com/users/claudiaop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claudiaop/subscriptions","organizations_url":"https://api.github.com/users/claudiaop/orgs","repos_url":"https://api.github.com/users/claudiaop/repos","events_url":"https://api.github.com/users/claudiaop/events{/privacy}","received_events_url":"https://api.github.com/users/claudiaop/received_events","type":"User","site_admin":false},"repo":{"id":53329466,"name":"gateway","full_name":"claudiaop/gateway","owner":{"login":"claudiaop","id":15870412,"avatar_url":"https://avatars.githubusercontent.com/u/15870412?v=3","gravatar_id":"","url":"https://api.github.com/users/claudiaop","html_url":"https://github.com/claudiaop","followers_url":"https://api.github.com/users/claudiaop/followers","following_url":"https://api.github.com/users/claudiaop/following{/other_user}","gists_url":"https://api.github.com/users/claudiaop/gists{/gist_id}","starred_url":"https://api.github.com/users/claudiaop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claudiaop/subscriptions","organizations_url":"https://api.github.com/users/claudiaop/orgs","repos_url":"https://api.github.com/users/claudiaop/repos","events_url":"https://api.github.com/users/claudiaop/events{/privacy}","received_events_url":"https://api.github.com/users/claudiaop/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/claudiaop/gateway","description":"Kaazing Gateway","fork":true,"url":"https://api.github.com/repos/claudiaop/gateway","forks_url":"https://api.github.com/repos/claudiaop/gateway/forks","keys_url":"https://api.github.com/repos/claudiaop/gateway/keys{/key_id}","collaborators_url":"https://api.github.com/repos/claudiaop/gateway/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/claudiaop/gateway/teams","hooks_url":"https://api.github.com/repos/claudiaop/gateway/hooks","issue_events_url":"https://api.github.com/repos/claudiaop/gateway/issues/events{/number}","events_url":"https://api.github.com/repos/claudiaop/gateway/events","assignees_url":"https://api.github.com/repos/claudiaop/gateway/assignees{/user}","branches_url":"https://api.github.com/repos/claudiaop/gateway/branches{/branch}","tags_url":"https://api.github.com/repos/claudiaop/gateway/tags","blobs_url":"https://api.github.com/repos/claudiaop/gateway/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/claudiaop/gateway/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/claudiaop/gateway/git/refs{/sha}","trees_url":"https://api.github.com/repos/claudiaop/gateway/git/trees{/sha}","statuses_url":"https://api.github.com/repos/claudiaop/gateway/statuses/{sha}","languages_url":"https://api.github.com/repos/claudiaop/gateway/languages","stargazers_url":"https://api.github.com/repos/claudiaop/gateway/stargazers","contributors_url":"https://api.github.com/repos/claudiaop/gateway/contributors","subscribers_url":"https://api.github.com/repos/claudiaop/gateway/subscribers","subscription_url":"https://api.github.com/repos/claudiaop/gateway/subscription","commits_url":"https://api.github.com/repos/claudiaop/gateway/commits{/sha}","git_commits_url":"https://api.github.com/repos/claudiaop/gateway/git/commits{/sha}","comments_url":"https://api.github.com/repos/claudiaop/gateway/comments{/number}","issue_comment_url":"https://api.github.com/repos/claudiaop/gateway/issues/comments{/number}","contents_url":"https://api.github.com/repos/claudiaop/gateway/contents/{+path}","compare_url":"https://api.github.com/repos/claudiaop/gateway/compare/{base}...{head}","merges_url":"https://api.github.com/repos/claudiaop/gateway/merges","archive_url":"https://api.github.com/repos/claudiaop/gateway/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/claudiaop/gateway/downloads","issues_url":"https://api.github.com/repos/claudiaop/gateway/issues{/number}","pulls_url":"https://api.github.com/repos/claudiaop/gateway/pulls{/number}","milestones_url":"https://api.github.com/repos/claudiaop/gateway/milestones{/number}","notifications_url":"https://api.github.com/repos/claudiaop/gateway/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/claudiaop/gateway/labels{/name}","releases_url":"https://api.github.com/repos/claudiaop/gateway/releases{/id}","deployments_url":"https://api.github.com/repos/claudiaop/gateway/deployments","created_at":"2016-03-07T13:56:56Z","updated_at":"2016-03-07T13:57:06Z","pushed_at":"2016-08-10T09:37:35Z","git_url":"git://github.com/claudiaop/gateway.git","ssh_url":"git@github.com:claudiaop/gateway.git","clone_url":"https://github.com/claudiaop/gateway.git","svn_url":"https://github.com/claudiaop/gateway","homepage":"","size":17918,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"kaazing:develop","ref":"develop","sha":"d5f66c052120bd42d20c5b2e5255a912f11451b6","user":{"login":"kaazing","id":1056680,"avatar_url":"https://avatars.githubusercontent.com/u/1056680?v=3","gravatar_id":"","url":"https://api.github.com/users/kaazing","html_url":"https://github.com/kaazing","followers_url":"https://api.github.com/users/kaazing/followers","following_url":"https://api.github.com/users/kaazing/following{/other_user}","gists_url":"https://api.github.com/users/kaazing/gists{/gist_id}","starred_url":"https://api.github.com/users/kaazing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaazing/subscriptions","organizations_url":"https://api.github.com/users/kaazing/orgs","repos_url":"https://api.github.com/users/kaazing/repos","events_url":"https://api.github.com/users/kaazing/events{/privacy}","received_events_url":"https://api.github.com/users/kaazing/received_events","type":"Organization","site_admin":false},"repo":{"id":26745548,"name":"gateway","full_name":"kaazing/gateway","owner":{"login":"kaazing","id":1056680,"avatar_url":"https://avatars.githubusercontent.com/u/1056680?v=3","gravatar_id":"","url":"https://api.github.com/users/kaazing","html_url":"https://github.com/kaazing","followers_url":"https://api.github.com/users/kaazing/followers","following_url":"https://api.github.com/users/kaazing/following{/other_user}","gists_url":"https://api.github.com/users/kaazing/gists{/gist_id}","starred_url":"https://api.github.com/users/kaazing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaazing/subscriptions","organizations_url":"https://api.github.com/users/kaazing/orgs","repos_url":"https://api.github.com/users/kaazing/repos","events_url":"https://api.github.com/users/kaazing/events{/privacy}","received_events_url":"https://api.github.com/users/kaazing/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kaazing/gateway","description":"Kaazing Gateway","fork":false,"url":"https://api.github.com/repos/kaazing/gateway","forks_url":"https://api.github.com/repos/kaazing/gateway/forks","keys_url":"https://api.github.com/repos/kaazing/gateway/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kaazing/gateway/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kaazing/gateway/teams","hooks_url":"https://api.github.com/repos/kaazing/gateway/hooks","issue_events_url":"https://api.github.com/repos/kaazing/gateway/issues/events{/number}","events_url":"https://api.github.com/repos/kaazing/gateway/events","assignees_url":"https://api.github.com/repos/kaazing/gateway/assignees{/user}","branches_url":"https://api.github.com/repos/kaazing/gateway/branches{/branch}","tags_url":"https://api.github.com/repos/kaazing/gateway/tags","blobs_url":"https://api.github.com/repos/kaazing/gateway/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kaazing/gateway/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kaazing/gateway/git/refs{/sha}","trees_url":"https://api.github.com/repos/kaazing/gateway/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kaazing/gateway/statuses/{sha}","languages_url":"https://api.github.com/repos/kaazing/gateway/languages","stargazers_url":"https://api.github.com/repos/kaazing/gateway/stargazers","contributors_url":"https://api.github.com/repos/kaazing/gateway/contributors","subscribers_url":"https://api.github.com/repos/kaazing/gateway/subscribers","subscription_url":"https://api.github.com/repos/kaazing/gateway/subscription","commits_url":"https://api.github.com/repos/kaazing/gateway/commits{/sha}","git_commits_url":"https://api.github.com/repos/kaazing/gateway/git/commits{/sha}","comments_url":"https://api.github.com/repos/kaazing/gateway/comments{/number}","issue_comment_url":"https://api.github.com/repos/kaazing/gateway/issues/comments{/number}","contents_url":"https://api.github.com/repos/kaazing/gateway/contents/{+path}","compare_url":"https://api.github.com/repos/kaazing/gateway/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kaazing/gateway/merges","archive_url":"https://api.github.com/repos/kaazing/gateway/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kaazing/gateway/downloads","issues_url":"https://api.github.com/repos/kaazing/gateway/issues{/number}","pulls_url":"https://api.github.com/repos/kaazing/gateway/pulls{/number}","milestones_url":"https://api.github.com/repos/kaazing/gateway/milestones{/number}","notifications_url":"https://api.github.com/repos/kaazing/gateway/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kaazing/gateway/labels{/name}","releases_url":"https://api.github.com/repos/kaazing/gateway/releases{/id}","deployments_url":"https://api.github.com/repos/kaazing/gateway/deployments","created_at":"2014-11-17T07:40:57Z","updated_at":"2016-08-05T03:39:37Z","pushed_at":"2016-08-12T22:52:35Z","git_url":"git://github.com/kaazing/gateway.git","ssh_url":"git@github.com:kaazing/gateway.git","clone_url":"https://github.com/kaazing/gateway.git","svn_url":"https://github.com/kaazing/gateway","homepage":"","size":21043,"stargazers_count":57,"watchers_count":57,"language":"Java","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":55,"mirror_url":null,"open_issues_count":66,"forks":55,"open_issues":66,"watchers":57,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/kaazing/gateway/pulls/624"},"html":{"href":"https://github.com/kaazing/gateway/pull/624"},"issue":{"href":"https://api.github.com/repos/kaazing/gateway/issues/624"},"comments":{"href":"https://api.github.com/repos/kaazing/gateway/issues/624/comments"},"review_comments":{"href":"https://api.github.com/repos/kaazing/gateway/pulls/624/comments"},"review_comment":{"href":"https://api.github.com/repos/kaazing/gateway/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kaazing/gateway/pulls/624/commits"},"statuses":{"href":"https://api.github.com/repos/kaazing/gateway/statuses/cdf1a21c04780d942f60dba6832d678e09a3bc28"}}}}
{"actor":{"display_login":"msalavastru"}}