{"action":"created","comment":{"url":"https://api.github.com/repos/kaazing/gateway/pulls/comments/56203744","id":56203744,"diff_hunk":"@@ -0,0 +1,92 @@\n+/**\n+ * Copyright 2007-2015, 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.transport.wsn.specification.ws.acceptor;\n+\n+import static org.kaazing.test.util.ITUtil.createRuleChain;\n+\n+import java.net.URI;\n+import java.util.concurrent.TimeUnit;\n+\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.k3po.junit.annotation.Specification;\n+import org.kaazing.k3po.junit.rules.K3poRule;\n+import static org.junit.Assert.*;\n+\n+public class LimitsSessionTimeoutIT {\n+    public static final long TEST_LIFETIME = TimeUnit.SECONDS.toSeconds(3);\n+\n+    private final K3poRule k3po = new K3poRule().setScriptRoot(\"org/kaazing/specification/ws/limits\");\n+\n+    private GatewayRule gateway = new GatewayRule() {\n+        {\n+            // @formatter:off\n+            GatewayConfiguration configuration =\n+                    new GatewayConfigurationBuilder()\n+                        .service()\n+                            .accept(\"ws://localhost:8080/echoAuth\")\n+                            .type(\"echo\")\n+                            .realmName(\"demo\")\n+                                .authorization()\n+                                .requireRole(\"USER\")\n+                            .done()\n+                        .done()\n+                        .security()\n+                            .realm()\n+                                .name(\"demo\")\n+                                .description(\"Kaazing WebSocket Gateway Demo\")\n+                                .httpChallengeScheme(\"Basic\")\n+                                .sessionTimeout(String.valueOf(TEST_LIFETIME))\n+                                .loginModule()\n+                                    .type(\"class:org.kaazing.gateway.transport.wsn.auth.AsyncBasicLoginModule\")\n+                                    .success(\"requisite\")\n+                                    .option(\"roles\", \"USER\")\n+                                .done()\n+                            .done()\n+                        .done()\n+                    .done();\n+            // @formatter:on\n+            init(configuration);\n+        }\n+    };\n+\n+    @Rule\n+    public TestRule chain = createRuleChain(gateway, k3po);\n+\n+    @Test\n+    @Specification({\n+        \"should.fail.max.lifetime.exceeded/handshake.request.and.frame\"\n+        })\n+    public void shouldFailSendingMessageAfterSessionLifetimeIsUp() throws Exception {","path":"transport/wsn/src/test/java/org/kaazing/gateway/transport/wsn/specification/ws/acceptor/LimitsSessionTimeoutIT.java","position":78,"original_position":78,"commit_id":"d455ba58dcfe8e5e4fdfa0fc0f689891d4fe3cde","original_commit_id":"d455ba58dcfe8e5e4fdfa0fc0f689891d4fe3cde","user":{"login":"cmebarrow","id":3606936,"avatar_url":"https://avatars.githubusercontent.com/u/3606936?v=3","gravatar_id":"","url":"https://api.github.com/users/cmebarrow","html_url":"https://github.com/cmebarrow","followers_url":"https://api.github.com/users/cmebarrow/followers","following_url":"https://api.github.com/users/cmebarrow/following{/other_user}","gists_url":"https://api.github.com/users/cmebarrow/gists{/gist_id}","starred_url":"https://api.github.com/users/cmebarrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmebarrow/subscriptions","organizations_url":"https://api.github.com/users/cmebarrow/orgs","repos_url":"https://api.github.com/users/cmebarrow/repos","events_url":"https://api.github.com/users/cmebarrow/events{/privacy}","received_events_url":"https://api.github.com/users/cmebarrow/received_events","type":"User","site_admin":false},"body":"A more accurate name would be shouldCloseWebSocketConnectionAfterSessionLifetimeIsUp","created_at":"2016-03-15T17:21:23Z","updated_at":"2016-03-15T17:21:23Z","html_url":"https://github.com/kaazing/gateway/pull/447#discussion_r56203744","pull_request_url":"https://api.github.com/repos/kaazing/gateway/pulls/447","_links":{"self":{"href":"https://api.github.com/repos/kaazing/gateway/pulls/comments/56203744"},"html":{"href":"https://github.com/kaazing/gateway/pull/447#discussion_r56203744"},"pull_request":{"href":"https://api.github.com/repos/kaazing/gateway/pulls/447"}}},"pull_request":{"url":"https://api.github.com/repos/kaazing/gateway/pulls/447","id":62398253,"html_url":"https://github.com/kaazing/gateway/pull/447","diff_url":"https://github.com/kaazing/gateway/pull/447.diff","patch_url":"https://github.com/kaazing/gateway/pull/447.patch","issue_url":"https://api.github.com/repos/kaazing/gateway/issues/447","number":447,"state":"open","locked":false,"title":"Added test for web socket compliance (maximum message size and maxmimum lifetime).","user":{"login":"NicoletaOita","id":15339094,"avatar_url":"https://avatars.githubusercontent.com/u/15339094?v=3","gravatar_id":"","url":"https://api.github.com/users/NicoletaOita","html_url":"https://github.com/NicoletaOita","followers_url":"https://api.github.com/users/NicoletaOita/followers","following_url":"https://api.github.com/users/NicoletaOita/following{/other_user}","gists_url":"https://api.github.com/users/NicoletaOita/gists{/gist_id}","starred_url":"https://api.github.com/users/NicoletaOita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicoletaOita/subscriptions","organizations_url":"https://api.github.com/users/NicoletaOita/orgs","repos_url":"https://api.github.com/users/NicoletaOita/repos","events_url":"https://api.github.com/users/NicoletaOita/events{/privacy}","received_events_url":"https://api.github.com/users/NicoletaOita/received_events","type":"User","site_admin":false},"body":"Added test for web socket compliance (maximum message size and maxmimum lifetime).","created_at":"2016-03-10T14:36:29Z","updated_at":"2016-03-15T17:21:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b9f4098e4f2c7c79ce13e670c9fe96da515a425e","assignee":{"login":"cmebarrow","id":3606936,"avatar_url":"https://avatars.githubusercontent.com/u/3606936?v=3","gravatar_id":"","url":"https://api.github.com/users/cmebarrow","html_url":"https://github.com/cmebarrow","followers_url":"https://api.github.com/users/cmebarrow/followers","following_url":"https://api.github.com/users/cmebarrow/following{/other_user}","gists_url":"https://api.github.com/users/cmebarrow/gists{/gist_id}","starred_url":"https://api.github.com/users/cmebarrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmebarrow/subscriptions","organizations_url":"https://api.github.com/users/cmebarrow/orgs","repos_url":"https://api.github.com/users/cmebarrow/repos","events_url":"https://api.github.com/users/cmebarrow/events{/privacy}","received_events_url":"https://api.github.com/users/cmebarrow/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/kaazing/gateway/pulls/447/commits","review_comments_url":"https://api.github.com/repos/kaazing/gateway/pulls/447/comments","review_comment_url":"https://api.github.com/repos/kaazing/gateway/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kaazing/gateway/issues/447/comments","statuses_url":"https://api.github.com/repos/kaazing/gateway/statuses/d455ba58dcfe8e5e4fdfa0fc0f689891d4fe3cde","head":{"label":"NicoletaOita:ws_spec_compliance_tests","ref":"ws_spec_compliance_tests","sha":"d455ba58dcfe8e5e4fdfa0fc0f689891d4fe3cde","user":{"login":"NicoletaOita","id":15339094,"avatar_url":"https://avatars.githubusercontent.com/u/15339094?v=3","gravatar_id":"","url":"https://api.github.com/users/NicoletaOita","html_url":"https://github.com/NicoletaOita","followers_url":"https://api.github.com/users/NicoletaOita/followers","following_url":"https://api.github.com/users/NicoletaOita/following{/other_user}","gists_url":"https://api.github.com/users/NicoletaOita/gists{/gist_id}","starred_url":"https://api.github.com/users/NicoletaOita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicoletaOita/subscriptions","organizations_url":"https://api.github.com/users/NicoletaOita/orgs","repos_url":"https://api.github.com/users/NicoletaOita/repos","events_url":"https://api.github.com/users/NicoletaOita/events{/privacy}","received_events_url":"https://api.github.com/users/NicoletaOita/received_events","type":"User","site_admin":false},"repo":{"id":46127220,"name":"gateway","full_name":"NicoletaOita/gateway","owner":{"login":"NicoletaOita","id":15339094,"avatar_url":"https://avatars.githubusercontent.com/u/15339094?v=3","gravatar_id":"","url":"https://api.github.com/users/NicoletaOita","html_url":"https://github.com/NicoletaOita","followers_url":"https://api.github.com/users/NicoletaOita/followers","following_url":"https://api.github.com/users/NicoletaOita/following{/other_user}","gists_url":"https://api.github.com/users/NicoletaOita/gists{/gist_id}","starred_url":"https://api.github.com/users/NicoletaOita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicoletaOita/subscriptions","organizations_url":"https://api.github.com/users/NicoletaOita/orgs","repos_url":"https://api.github.com/users/NicoletaOita/repos","events_url":"https://api.github.com/users/NicoletaOita/events{/privacy}","received_events_url":"https://api.github.com/users/NicoletaOita/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NicoletaOita/gateway","description":"Kaazing Gateway","fork":true,"url":"https://api.github.com/repos/NicoletaOita/gateway","forks_url":"https://api.github.com/repos/NicoletaOita/gateway/forks","keys_url":"https://api.github.com/repos/NicoletaOita/gateway/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NicoletaOita/gateway/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NicoletaOita/gateway/teams","hooks_url":"https://api.github.com/repos/NicoletaOita/gateway/hooks","issue_events_url":"https://api.github.com/repos/NicoletaOita/gateway/issues/events{/number}","events_url":"https://api.github.com/repos/NicoletaOita/gateway/events","assignees_url":"https://api.github.com/repos/NicoletaOita/gateway/assignees{/user}","branches_url":"https://api.github.com/repos/NicoletaOita/gateway/branches{/branch}","tags_url":"https://api.github.com/repos/NicoletaOita/gateway/tags","blobs_url":"https://api.github.com/repos/NicoletaOita/gateway/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NicoletaOita/gateway/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NicoletaOita/gateway/git/refs{/sha}","trees_url":"https://api.github.com/repos/NicoletaOita/gateway/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NicoletaOita/gateway/statuses/{sha}","languages_url":"https://api.github.com/repos/NicoletaOita/gateway/languages","stargazers_url":"https://api.github.com/repos/NicoletaOita/gateway/stargazers","contributors_url":"https://api.github.com/repos/NicoletaOita/gateway/contributors","subscribers_url":"https://api.github.com/repos/NicoletaOita/gateway/subscribers","subscription_url":"https://api.github.com/repos/NicoletaOita/gateway/subscription","commits_url":"https://api.github.com/repos/NicoletaOita/gateway/commits{/sha}","git_commits_url":"https://api.github.com/repos/NicoletaOita/gateway/git/commits{/sha}","comments_url":"https://api.github.com/repos/NicoletaOita/gateway/comments{/number}","issue_comment_url":"https://api.github.com/repos/NicoletaOita/gateway/issues/comments{/number}","contents_url":"https://api.github.com/repos/NicoletaOita/gateway/contents/{+path}","compare_url":"https://api.github.com/repos/NicoletaOita/gateway/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NicoletaOita/gateway/merges","archive_url":"https://api.github.com/repos/NicoletaOita/gateway/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NicoletaOita/gateway/downloads","issues_url":"https://api.github.com/repos/NicoletaOita/gateway/issues{/number}","pulls_url":"https://api.github.com/repos/NicoletaOita/gateway/pulls{/number}","milestones_url":"https://api.github.com/repos/NicoletaOita/gateway/milestones{/number}","notifications_url":"https://api.github.com/repos/NicoletaOita/gateway/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NicoletaOita/gateway/labels{/name}","releases_url":"https://api.github.com/repos/NicoletaOita/gateway/releases{/id}","deployments_url":"https://api.github.com/repos/NicoletaOita/gateway/deployments","created_at":"2015-11-13T14:41:17Z","updated_at":"2015-11-13T14:41:26Z","pushed_at":"2016-03-14T09:58:23Z","git_url":"git://github.com/NicoletaOita/gateway.git","ssh_url":"git@github.com:NicoletaOita/gateway.git","clone_url":"https://github.com/NicoletaOita/gateway.git","svn_url":"https://github.com/NicoletaOita/gateway","homepage":"","size":13957,"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":"d965b4bf1eb9e7256cfb4c96c8a4f9d4fc6df98e","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-02-23T19:54:51Z","pushed_at":"2016-03-15T16:41:54Z","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":16068,"stargazers_count":42,"watchers_count":42,"language":"Java","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":44,"mirror_url":null,"open_issues_count":71,"forks":44,"open_issues":71,"watchers":42,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/kaazing/gateway/pulls/447"},"html":{"href":"https://github.com/kaazing/gateway/pull/447"},"issue":{"href":"https://api.github.com/repos/kaazing/gateway/issues/447"},"comments":{"href":"https://api.github.com/repos/kaazing/gateway/issues/447/comments"},"review_comments":{"href":"https://api.github.com/repos/kaazing/gateway/pulls/447/comments"},"review_comment":{"href":"https://api.github.com/repos/kaazing/gateway/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kaazing/gateway/pulls/447/commits"},"statuses":{"href":"https://api.github.com/repos/kaazing/gateway/statuses/d455ba58dcfe8e5e4fdfa0fc0f689891d4fe3cde"}}}}