{"action":"created","comment":{"url":"https://api.github.com/repos/codice/ddf/pulls/comments/71519732","id":71519732,"diff_hunk":"@@ -1543,6 +1543,196 @@ public void testFederatedDownloadProductToCacheOnlyCacheDisabled() throws Except\n                 .resolve(CSW_SOURCE_ID + \"-\" + metacardId + \".ser\")), is(false));\n     }\n \n+    @Test\n+    public void testTwoUsersSameProductRetrySuccess() throws Exception {\n+\n+        CometDClient cometDClient1 = setupCometDClient(Arrays.asList(NOTIFICATIONS_CHANNEL,\n+                ACTIVITIES_CHANNEL));\n+        CometDClient cometDClient2 = setupCometDClient(Arrays.asList(NOTIFICATIONS_CHANNEL,\n+                ACTIVITIES_CHANNEL));\n+\n+        String filename = \"product1.txt\";\n+        String metacardId = generateUniqueMetacardId();\n+        String resourceData = getResourceData(metacardId);\n+\n+        setupCswServer(metacardId, filename, resourceData);\n+        setupCswServer(metacardId, filename, resourceData);\n+\n+        String restUrl = REST_PATH.getUrl() + \"sources/\" + CSW_STUB_SOURCE_ID + \"/\" + metacardId\n+                + \"?transform=resource\" + \"&session=\" + cometDClient1.getClientId();\n+\n+        // Verify that the testData from the csw stub server is returned.\n+        // @formatter:off\n+        when().get(restUrl).then().log().all().assertThat().contentType(\"text/plain\")\n+                .body(is(resourceData));\n+        // @formatter:on\n+\n+        checkExpectations(cometDClient1, 1, 2);\n+        checkExpectations(cometDClient2, 1, 2);\n+\n+        assertThat(cometDClient1.getAllMessages()\n+                .size(), is(3));\n+        assertThat(cometDClient2.getAllMessages()\n+                .size(), is(3));\n+\n+        validateNotificationsSuccess(cometDClient1, filename, resourceData);\n+        validateNotificationsSuccess(cometDClient2, filename, resourceData);\n+\n+        validateActivitiesSuccess(cometDClient1, filename, resourceData);\n+        validateActivitiesSuccess(cometDClient2, filename, resourceData);\n+\n+    }\n+\n+    @Test\n+    public void testTwoUsersSameProductRetryFailure() throws Exception {\n+\n+        CometDClient cometDClient1 = setupCometDClient(Arrays.asList(NOTIFICATIONS_CHANNEL,\n+                ACTIVITIES_CHANNEL));\n+        CometDClient cometDClient2 = setupCometDClient(Arrays.asList(NOTIFICATIONS_CHANNEL,\n+                ACTIVITIES_CHANNEL));\n+\n+        String filename = \"product3.txt\";\n+        String metacardId = generateUniqueMetacardId();\n+        String resourceData = getResourceData(metacardId);\n+\n+        setupCswServer(metacardId, filename, resourceData);","path":"distribution/test/itests/test-itests-ddf/src/test/java/ddf/test/itests/catalog/TestFederation.java","position":91,"original_position":91,"commit_id":"fd028a567efa6f83c6df63be6df97af87c03a140","original_commit_id":"fd028a567efa6f83c6df63be6df97af87c03a140","user":{"login":"bantillo","id":15441928,"avatar_url":"https://avatars.githubusercontent.com/u/15441928?v=3","gravatar_id":"","url":"https://api.github.com/users/bantillo","html_url":"https://github.com/bantillo","followers_url":"https://api.github.com/users/bantillo/followers","following_url":"https://api.github.com/users/bantillo/following{/other_user}","gists_url":"https://api.github.com/users/bantillo/gists{/gist_id}","starred_url":"https://api.github.com/users/bantillo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bantillo/subscriptions","organizations_url":"https://api.github.com/users/bantillo/orgs","repos_url":"https://api.github.com/users/bantillo/repos","events_url":"https://api.github.com/users/bantillo/events{/privacy}","received_events_url":"https://api.github.com/users/bantillo/received_events","type":"User","site_admin":false},"body":"will remove","created_at":"2016-07-20T13:04:23Z","updated_at":"2016-07-20T13:04:23Z","html_url":"https://github.com/codice/ddf/pull/1014#discussion_r71519732","pull_request_url":"https://api.github.com/repos/codice/ddf/pulls/1014","_links":{"self":{"href":"https://api.github.com/repos/codice/ddf/pulls/comments/71519732"},"html":{"href":"https://github.com/codice/ddf/pull/1014#discussion_r71519732"},"pull_request":{"href":"https://api.github.com/repos/codice/ddf/pulls/1014"}}},"pull_request":{"url":"https://api.github.com/repos/codice/ddf/pulls/1014","id":77900805,"html_url":"https://github.com/codice/ddf/pull/1014","diff_url":"https://github.com/codice/ddf/pull/1014.diff","patch_url":"https://github.com/codice/ddf/pull/1014.patch","issue_url":"https://api.github.com/repos/codice/ddf/issues/1014","number":1014,"state":"open","locked":false,"title":"DDF-2305 added integration tests for download with multiple users","user":{"login":"bantillo","id":15441928,"avatar_url":"https://avatars.githubusercontent.com/u/15441928?v=3","gravatar_id":"","url":"https://api.github.com/users/bantillo","html_url":"https://github.com/bantillo","followers_url":"https://api.github.com/users/bantillo/followers","following_url":"https://api.github.com/users/bantillo/following{/other_user}","gists_url":"https://api.github.com/users/bantillo/gists{/gist_id}","starred_url":"https://api.github.com/users/bantillo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bantillo/subscriptions","organizations_url":"https://api.github.com/users/bantillo/orgs","repos_url":"https://api.github.com/users/bantillo/repos","events_url":"https://api.github.com/users/bantillo/events{/privacy}","received_events_url":"https://api.github.com/users/bantillo/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\nTest the download retry situations\r\n#### Who is reviewing it (please choose AT LEAST two reviewers that need to approve the PR before it can get merged; if a component team is listed, at least one of its members needs to approve)?\r\n@Lambeaux \r\n@garrettfreibott \r\n@oconnormi \r\n@cmthom10\r\n@figliold \r\n@lessarderic \r\n#### Choose 2 committers to review/merge the PR (please choose ONLY two committers from below, delete the rest).\r\n@coyotesqrl\r\n@shaundmorris  \r\n#### How should this be tested?\r\nRun TestFederation tests.\r\n#### Any background context you want to provide?\r\nAdded integrations tests for multiple users with retry scenarios.\r\n#### What are the relevant tickets?\r\n#### Screenshots (if appropriate)\r\n#### Checklist:\r\n- [ ] Documentation Updated\r\n- [ *] Update / Add Unit Tests\r\n- [ ] Update / Add Integration Tests\r\n\r\n","created_at":"2016-07-19T00:23:04Z","updated_at":"2016-07-20T13:04:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2245c956aea64017845c0228e404b4ec010f5a40","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/codice/ddf/pulls/1014/commits","review_comments_url":"https://api.github.com/repos/codice/ddf/pulls/1014/comments","review_comment_url":"https://api.github.com/repos/codice/ddf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codice/ddf/issues/1014/comments","statuses_url":"https://api.github.com/repos/codice/ddf/statuses/fd028a567efa6f83c6df63be6df97af87c03a140","head":{"label":"bantillo:DDF-2305","ref":"DDF-2305","sha":"fd028a567efa6f83c6df63be6df97af87c03a140","user":{"login":"bantillo","id":15441928,"avatar_url":"https://avatars.githubusercontent.com/u/15441928?v=3","gravatar_id":"","url":"https://api.github.com/users/bantillo","html_url":"https://github.com/bantillo","followers_url":"https://api.github.com/users/bantillo/followers","following_url":"https://api.github.com/users/bantillo/following{/other_user}","gists_url":"https://api.github.com/users/bantillo/gists{/gist_id}","starred_url":"https://api.github.com/users/bantillo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bantillo/subscriptions","organizations_url":"https://api.github.com/users/bantillo/orgs","repos_url":"https://api.github.com/users/bantillo/repos","events_url":"https://api.github.com/users/bantillo/events{/privacy}","received_events_url":"https://api.github.com/users/bantillo/received_events","type":"User","site_admin":false},"repo":{"id":45493720,"name":"ddf","full_name":"bantillo/ddf","owner":{"login":"bantillo","id":15441928,"avatar_url":"https://avatars.githubusercontent.com/u/15441928?v=3","gravatar_id":"","url":"https://api.github.com/users/bantillo","html_url":"https://github.com/bantillo","followers_url":"https://api.github.com/users/bantillo/followers","following_url":"https://api.github.com/users/bantillo/following{/other_user}","gists_url":"https://api.github.com/users/bantillo/gists{/gist_id}","starred_url":"https://api.github.com/users/bantillo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bantillo/subscriptions","organizations_url":"https://api.github.com/users/bantillo/orgs","repos_url":"https://api.github.com/users/bantillo/repos","events_url":"https://api.github.com/users/bantillo/events{/privacy}","received_events_url":"https://api.github.com/users/bantillo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bantillo/ddf","description":"The Distributed Data Framework - Distribution, SDK, and Test","fork":true,"url":"https://api.github.com/repos/bantillo/ddf","forks_url":"https://api.github.com/repos/bantillo/ddf/forks","keys_url":"https://api.github.com/repos/bantillo/ddf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bantillo/ddf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bantillo/ddf/teams","hooks_url":"https://api.github.com/repos/bantillo/ddf/hooks","issue_events_url":"https://api.github.com/repos/bantillo/ddf/issues/events{/number}","events_url":"https://api.github.com/repos/bantillo/ddf/events","assignees_url":"https://api.github.com/repos/bantillo/ddf/assignees{/user}","branches_url":"https://api.github.com/repos/bantillo/ddf/branches{/branch}","tags_url":"https://api.github.com/repos/bantillo/ddf/tags","blobs_url":"https://api.github.com/repos/bantillo/ddf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bantillo/ddf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bantillo/ddf/git/refs{/sha}","trees_url":"https://api.github.com/repos/bantillo/ddf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bantillo/ddf/statuses/{sha}","languages_url":"https://api.github.com/repos/bantillo/ddf/languages","stargazers_url":"https://api.github.com/repos/bantillo/ddf/stargazers","contributors_url":"https://api.github.com/repos/bantillo/ddf/contributors","subscribers_url":"https://api.github.com/repos/bantillo/ddf/subscribers","subscription_url":"https://api.github.com/repos/bantillo/ddf/subscription","commits_url":"https://api.github.com/repos/bantillo/ddf/commits{/sha}","git_commits_url":"https://api.github.com/repos/bantillo/ddf/git/commits{/sha}","comments_url":"https://api.github.com/repos/bantillo/ddf/comments{/number}","issue_comment_url":"https://api.github.com/repos/bantillo/ddf/issues/comments{/number}","contents_url":"https://api.github.com/repos/bantillo/ddf/contents/{+path}","compare_url":"https://api.github.com/repos/bantillo/ddf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bantillo/ddf/merges","archive_url":"https://api.github.com/repos/bantillo/ddf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bantillo/ddf/downloads","issues_url":"https://api.github.com/repos/bantillo/ddf/issues{/number}","pulls_url":"https://api.github.com/repos/bantillo/ddf/pulls{/number}","milestones_url":"https://api.github.com/repos/bantillo/ddf/milestones{/number}","notifications_url":"https://api.github.com/repos/bantillo/ddf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bantillo/ddf/labels{/name}","releases_url":"https://api.github.com/repos/bantillo/ddf/releases{/id}","deployments_url":"https://api.github.com/repos/bantillo/ddf/deployments","created_at":"2015-11-03T20:32:27Z","updated_at":"2016-01-21T16:09:50Z","pushed_at":"2016-07-19T00:18:47Z","git_url":"git://github.com/bantillo/ddf.git","ssh_url":"git@github.com:bantillo/ddf.git","clone_url":"https://github.com/bantillo/ddf.git","svn_url":"https://github.com/bantillo/ddf","homepage":"","size":145560,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"codice:master","ref":"master","sha":"39d1ec2ab6a0330ced50099a2a6170c520d2bd88","user":{"login":"codice","id":2386734,"avatar_url":"https://avatars.githubusercontent.com/u/2386734?v=3","gravatar_id":"","url":"https://api.github.com/users/codice","html_url":"https://github.com/codice","followers_url":"https://api.github.com/users/codice/followers","following_url":"https://api.github.com/users/codice/following{/other_user}","gists_url":"https://api.github.com/users/codice/gists{/gist_id}","starred_url":"https://api.github.com/users/codice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codice/subscriptions","organizations_url":"https://api.github.com/users/codice/orgs","repos_url":"https://api.github.com/users/codice/repos","events_url":"https://api.github.com/users/codice/events{/privacy}","received_events_url":"https://api.github.com/users/codice/received_events","type":"Organization","site_admin":false},"repo":{"id":15173563,"name":"ddf","full_name":"codice/ddf","owner":{"login":"codice","id":2386734,"avatar_url":"https://avatars.githubusercontent.com/u/2386734?v=3","gravatar_id":"","url":"https://api.github.com/users/codice","html_url":"https://github.com/codice","followers_url":"https://api.github.com/users/codice/followers","following_url":"https://api.github.com/users/codice/following{/other_user}","gists_url":"https://api.github.com/users/codice/gists{/gist_id}","starred_url":"https://api.github.com/users/codice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codice/subscriptions","organizations_url":"https://api.github.com/users/codice/orgs","repos_url":"https://api.github.com/users/codice/repos","events_url":"https://api.github.com/users/codice/events{/privacy}","received_events_url":"https://api.github.com/users/codice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codice/ddf","description":"Distributed Data Framework - an open source, modular integration framework.","fork":false,"url":"https://api.github.com/repos/codice/ddf","forks_url":"https://api.github.com/repos/codice/ddf/forks","keys_url":"https://api.github.com/repos/codice/ddf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codice/ddf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codice/ddf/teams","hooks_url":"https://api.github.com/repos/codice/ddf/hooks","issue_events_url":"https://api.github.com/repos/codice/ddf/issues/events{/number}","events_url":"https://api.github.com/repos/codice/ddf/events","assignees_url":"https://api.github.com/repos/codice/ddf/assignees{/user}","branches_url":"https://api.github.com/repos/codice/ddf/branches{/branch}","tags_url":"https://api.github.com/repos/codice/ddf/tags","blobs_url":"https://api.github.com/repos/codice/ddf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codice/ddf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codice/ddf/git/refs{/sha}","trees_url":"https://api.github.com/repos/codice/ddf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codice/ddf/statuses/{sha}","languages_url":"https://api.github.com/repos/codice/ddf/languages","stargazers_url":"https://api.github.com/repos/codice/ddf/stargazers","contributors_url":"https://api.github.com/repos/codice/ddf/contributors","subscribers_url":"https://api.github.com/repos/codice/ddf/subscribers","subscription_url":"https://api.github.com/repos/codice/ddf/subscription","commits_url":"https://api.github.com/repos/codice/ddf/commits{/sha}","git_commits_url":"https://api.github.com/repos/codice/ddf/git/commits{/sha}","comments_url":"https://api.github.com/repos/codice/ddf/comments{/number}","issue_comment_url":"https://api.github.com/repos/codice/ddf/issues/comments{/number}","contents_url":"https://api.github.com/repos/codice/ddf/contents/{+path}","compare_url":"https://api.github.com/repos/codice/ddf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codice/ddf/merges","archive_url":"https://api.github.com/repos/codice/ddf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codice/ddf/downloads","issues_url":"https://api.github.com/repos/codice/ddf/issues{/number}","pulls_url":"https://api.github.com/repos/codice/ddf/pulls{/number}","milestones_url":"https://api.github.com/repos/codice/ddf/milestones{/number}","notifications_url":"https://api.github.com/repos/codice/ddf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codice/ddf/labels{/name}","releases_url":"https://api.github.com/repos/codice/ddf/releases{/id}","deployments_url":"https://api.github.com/repos/codice/ddf/deployments","created_at":"2013-12-13T20:38:28Z","updated_at":"2016-07-15T01:01:23Z","pushed_at":"2016-07-20T01:17:15Z","git_url":"git://github.com/codice/ddf.git","ssh_url":"git@github.com:codice/ddf.git","clone_url":"https://github.com/codice/ddf.git","svn_url":"https://github.com/codice/ddf","homepage":"http://ddf.codice.org","size":279411,"stargazers_count":39,"watchers_count":39,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":81,"mirror_url":null,"open_issues_count":37,"forks":81,"open_issues":37,"watchers":39,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codice/ddf/pulls/1014"},"html":{"href":"https://github.com/codice/ddf/pull/1014"},"issue":{"href":"https://api.github.com/repos/codice/ddf/issues/1014"},"comments":{"href":"https://api.github.com/repos/codice/ddf/issues/1014/comments"},"review_comments":{"href":"https://api.github.com/repos/codice/ddf/pulls/1014/comments"},"review_comment":{"href":"https://api.github.com/repos/codice/ddf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codice/ddf/pulls/1014/commits"},"statuses":{"href":"https://api.github.com/repos/codice/ddf/statuses/fd028a567efa6f83c6df63be6df97af87c03a140"}}}}
{"actor":{"display_login":"bantillo"}}