{"action":"created","comment":{"url":"https://api.github.com/repos/linagora/james-project/pulls/comments/273310142","pull_request_review_id":224174400,"id":273310142,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI3MzMxMDE0Mg==","diff_hunk":"@@ -1849,6 +1918,188 @@ void exportShouldSaveDeletedMessagesDataToBlobStore() throws Exception {\n         }\n     }\n \n+    @Nested\n+    class PurgeTest {\n+\n+        @Test\n+        void purgeShouldReturnATaskCreated() {\n+            given()\n+                .queryParam(\"action\", \"purge\")\n+            .when()\n+                .post()\n+            .then()\n+                .statusCode(HttpStatus.CREATED_201)\n+                .body(\"taskId\", notNullValue());\n+        }\n+\n+        @Test\n+        void purgeShouldProduceASuccessfulTaskWithAdditionalInformation() {\n+            vault.append(USER, DELETED_MESSAGE, new ByteArrayInputStream(CONTENT)).block();\n+            vault.append(USER, DELETED_MESSAGE_2, new ByteArrayInputStream(CONTENT)).block();\n+\n+            String taskId =\n+                with()\n+                    .queryParam(\"action\", \"purge\")\n+                .when()","path":"server/protocols/webadmin/webadmin-mailbox-deleted-message-vault/src/test/java/org/apache/james/webadmin/vault/routes/DeletedMessagesVaultRoutesTest.java","position":680,"original_position":680,"commit_id":"1a0f21223962a79fb9c2b48735b84918f2fe778a","original_commit_id":"1a0f21223962a79fb9c2b48735b84918f2fe778a","user":{"login":"Arsnael","id":9005025,"node_id":"MDQ6VXNlcjkwMDUwMjU=","avatar_url":"https://avatars1.githubusercontent.com/u/9005025?v=4","gravatar_id":"","url":"https://api.github.com/users/Arsnael","html_url":"https://github.com/Arsnael","followers_url":"https://api.github.com/users/Arsnael/followers","following_url":"https://api.github.com/users/Arsnael/following{/other_user}","gists_url":"https://api.github.com/users/Arsnael/gists{/gist_id}","starred_url":"https://api.github.com/users/Arsnael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arsnael/subscriptions","organizations_url":"https://api.github.com/users/Arsnael/orgs","repos_url":"https://api.github.com/users/Arsnael/repos","events_url":"https://api.github.com/users/Arsnael/events{/privacy}","received_events_url":"https://api.github.com/users/Arsnael/received_events","type":"User","site_admin":false},"body":"No need of `when()` when you use `with()`","created_at":"2019-04-09T03:06:21Z","updated_at":"2019-04-09T03:09:16Z","html_url":"https://github.com/linagora/james-project/pull/2296#discussion_r273310142","pull_request_url":"https://api.github.com/repos/linagora/james-project/pulls/2296","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/linagora/james-project/pulls/comments/273310142"},"html":{"href":"https://github.com/linagora/james-project/pull/2296#discussion_r273310142"},"pull_request":{"href":"https://api.github.com/repos/linagora/james-project/pulls/2296"}}},"pull_request":{"url":"https://api.github.com/repos/linagora/james-project/pulls/2296","id":267690235,"node_id":"MDExOlB1bGxSZXF1ZXN0MjY3NjkwMjM1","html_url":"https://github.com/linagora/james-project/pull/2296","diff_url":"https://github.com/linagora/james-project/pull/2296.diff","patch_url":"https://github.com/linagora/james-project/pull/2296.patch","issue_url":"https://api.github.com/repos/linagora/james-project/issues/2296","number":2296,"state":"open","locked":false,"title":"JAMES-2710 DMVRoutes purge api","user":{"login":"hoangdat","id":6462404,"node_id":"MDQ6VXNlcjY0NjI0MDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/6462404?v=4","gravatar_id":"","url":"https://api.github.com/users/hoangdat","html_url":"https://github.com/hoangdat","followers_url":"https://api.github.com/users/hoangdat/followers","following_url":"https://api.github.com/users/hoangdat/following{/other_user}","gists_url":"https://api.github.com/users/hoangdat/gists{/gist_id}","starred_url":"https://api.github.com/users/hoangdat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoangdat/subscriptions","organizations_url":"https://api.github.com/users/hoangdat/orgs","repos_url":"https://api.github.com/users/hoangdat/repos","events_url":"https://api.github.com/users/hoangdat/events{/privacy}","received_events_url":"https://api.github.com/users/hoangdat/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-04-05T04:56:27Z","updated_at":"2019-04-09T03:09:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f871be3e6ca1241fffe4e565e9fe059120fcd855","assignee":{"login":"hoangdat","id":6462404,"node_id":"MDQ6VXNlcjY0NjI0MDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/6462404?v=4","gravatar_id":"","url":"https://api.github.com/users/hoangdat","html_url":"https://github.com/hoangdat","followers_url":"https://api.github.com/users/hoangdat/followers","following_url":"https://api.github.com/users/hoangdat/following{/other_user}","gists_url":"https://api.github.com/users/hoangdat/gists{/gist_id}","starred_url":"https://api.github.com/users/hoangdat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoangdat/subscriptions","organizations_url":"https://api.github.com/users/hoangdat/orgs","repos_url":"https://api.github.com/users/hoangdat/repos","events_url":"https://api.github.com/users/hoangdat/events{/privacy}","received_events_url":"https://api.github.com/users/hoangdat/received_events","type":"User","site_admin":false},"assignees":[{"login":"hoangdat","id":6462404,"node_id":"MDQ6VXNlcjY0NjI0MDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/6462404?v=4","gravatar_id":"","url":"https://api.github.com/users/hoangdat","html_url":"https://github.com/hoangdat","followers_url":"https://api.github.com/users/hoangdat/followers","following_url":"https://api.github.com/users/hoangdat/following{/other_user}","gists_url":"https://api.github.com/users/hoangdat/gists{/gist_id}","starred_url":"https://api.github.com/users/hoangdat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoangdat/subscriptions","organizations_url":"https://api.github.com/users/hoangdat/orgs","repos_url":"https://api.github.com/users/hoangdat/repos","events_url":"https://api.github.com/users/hoangdat/events{/privacy}","received_events_url":"https://api.github.com/users/hoangdat/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":{"url":"https://api.github.com/repos/linagora/james-project/milestones/17","html_url":"https://github.com/linagora/james-project/milestone/17","labels_url":"https://api.github.com/repos/linagora/james-project/milestones/17/labels","id":4187757,"node_id":"MDk6TWlsZXN0b25lNDE4Nzc1Nw==","number":17,"title":"Sprint 6 - Robusta Bean","description":"","creator":{"login":"trantienduchn","id":39297818,"node_id":"MDQ6VXNlcjM5Mjk3ODE4","avatar_url":"https://avatars1.githubusercontent.com/u/39297818?v=4","gravatar_id":"","url":"https://api.github.com/users/trantienduchn","html_url":"https://github.com/trantienduchn","followers_url":"https://api.github.com/users/trantienduchn/followers","following_url":"https://api.github.com/users/trantienduchn/following{/other_user}","gists_url":"https://api.github.com/users/trantienduchn/gists{/gist_id}","starred_url":"https://api.github.com/users/trantienduchn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trantienduchn/subscriptions","organizations_url":"https://api.github.com/users/trantienduchn/orgs","repos_url":"https://api.github.com/users/trantienduchn/repos","events_url":"https://api.github.com/users/trantienduchn/events{/privacy}","received_events_url":"https://api.github.com/users/trantienduchn/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":11,"state":"open","created_at":"2019-04-01T04:33:25Z","updated_at":"2019-04-09T02:38:57Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/linagora/james-project/pulls/2296/commits","review_comments_url":"https://api.github.com/repos/linagora/james-project/pulls/2296/comments","review_comment_url":"https://api.github.com/repos/linagora/james-project/pulls/comments{/number}","comments_url":"https://api.github.com/repos/linagora/james-project/issues/2296/comments","statuses_url":"https://api.github.com/repos/linagora/james-project/statuses/1a0f21223962a79fb9c2b48735b84918f2fe778a","head":{"label":"hoangdat:purge-api","ref":"purge-api","sha":"1a0f21223962a79fb9c2b48735b84918f2fe778a","user":{"login":"hoangdat","id":6462404,"node_id":"MDQ6VXNlcjY0NjI0MDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/6462404?v=4","gravatar_id":"","url":"https://api.github.com/users/hoangdat","html_url":"https://github.com/hoangdat","followers_url":"https://api.github.com/users/hoangdat/followers","following_url":"https://api.github.com/users/hoangdat/following{/other_user}","gists_url":"https://api.github.com/users/hoangdat/gists{/gist_id}","starred_url":"https://api.github.com/users/hoangdat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoangdat/subscriptions","organizations_url":"https://api.github.com/users/hoangdat/orgs","repos_url":"https://api.github.com/users/hoangdat/repos","events_url":"https://api.github.com/users/hoangdat/events{/privacy}","received_events_url":"https://api.github.com/users/hoangdat/received_events","type":"User","site_admin":false},"repo":{"id":155144672,"node_id":"MDEwOlJlcG9zaXRvcnkxNTUxNDQ2NzI=","name":"james-project","full_name":"hoangdat/james-project","private":false,"owner":{"login":"hoangdat","id":6462404,"node_id":"MDQ6VXNlcjY0NjI0MDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/6462404?v=4","gravatar_id":"","url":"https://api.github.com/users/hoangdat","html_url":"https://github.com/hoangdat","followers_url":"https://api.github.com/users/hoangdat/followers","following_url":"https://api.github.com/users/hoangdat/following{/other_user}","gists_url":"https://api.github.com/users/hoangdat/gists{/gist_id}","starred_url":"https://api.github.com/users/hoangdat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoangdat/subscriptions","organizations_url":"https://api.github.com/users/hoangdat/orgs","repos_url":"https://api.github.com/users/hoangdat/repos","events_url":"https://api.github.com/users/hoangdat/events{/privacy}","received_events_url":"https://api.github.com/users/hoangdat/received_events","type":"User","site_admin":false},"html_url":"https://github.com/hoangdat/james-project","description":"Mirror of Apache James Project","fork":true,"url":"https://api.github.com/repos/hoangdat/james-project","forks_url":"https://api.github.com/repos/hoangdat/james-project/forks","keys_url":"https://api.github.com/repos/hoangdat/james-project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hoangdat/james-project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hoangdat/james-project/teams","hooks_url":"https://api.github.com/repos/hoangdat/james-project/hooks","issue_events_url":"https://api.github.com/repos/hoangdat/james-project/issues/events{/number}","events_url":"https://api.github.com/repos/hoangdat/james-project/events","assignees_url":"https://api.github.com/repos/hoangdat/james-project/assignees{/user}","branches_url":"https://api.github.com/repos/hoangdat/james-project/branches{/branch}","tags_url":"https://api.github.com/repos/hoangdat/james-project/tags","blobs_url":"https://api.github.com/repos/hoangdat/james-project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hoangdat/james-project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hoangdat/james-project/git/refs{/sha}","trees_url":"https://api.github.com/repos/hoangdat/james-project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hoangdat/james-project/statuses/{sha}","languages_url":"https://api.github.com/repos/hoangdat/james-project/languages","stargazers_url":"https://api.github.com/repos/hoangdat/james-project/stargazers","contributors_url":"https://api.github.com/repos/hoangdat/james-project/contributors","subscribers_url":"https://api.github.com/repos/hoangdat/james-project/subscribers","subscription_url":"https://api.github.com/repos/hoangdat/james-project/subscription","commits_url":"https://api.github.com/repos/hoangdat/james-project/commits{/sha}","git_commits_url":"https://api.github.com/repos/hoangdat/james-project/git/commits{/sha}","comments_url":"https://api.github.com/repos/hoangdat/james-project/comments{/number}","issue_comment_url":"https://api.github.com/repos/hoangdat/james-project/issues/comments{/number}","contents_url":"https://api.github.com/repos/hoangdat/james-project/contents/{+path}","compare_url":"https://api.github.com/repos/hoangdat/james-project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hoangdat/james-project/merges","archive_url":"https://api.github.com/repos/hoangdat/james-project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hoangdat/james-project/downloads","issues_url":"https://api.github.com/repos/hoangdat/james-project/issues{/number}","pulls_url":"https://api.github.com/repos/hoangdat/james-project/pulls{/number}","milestones_url":"https://api.github.com/repos/hoangdat/james-project/milestones{/number}","notifications_url":"https://api.github.com/repos/hoangdat/james-project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hoangdat/james-project/labels{/name}","releases_url":"https://api.github.com/repos/hoangdat/james-project/releases{/id}","deployments_url":"https://api.github.com/repos/hoangdat/james-project/deployments","created_at":"2018-10-29T03:11:30Z","updated_at":"2018-11-27T05:16:32Z","pushed_at":"2019-04-09T02:29:53Z","git_url":"git://github.com/hoangdat/james-project.git","ssh_url":"git@github.com:hoangdat/james-project.git","clone_url":"https://github.com/hoangdat/james-project.git","svn_url":"https://github.com/hoangdat/james-project","homepage":null,"size":41936,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"linagora:master","ref":"master","sha":"e35214d4371b209a003964c898dc4ad658409cc0","user":{"login":"linagora","id":1230365,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyMzAzNjU=","avatar_url":"https://avatars3.githubusercontent.com/u/1230365?v=4","gravatar_id":"","url":"https://api.github.com/users/linagora","html_url":"https://github.com/linagora","followers_url":"https://api.github.com/users/linagora/followers","following_url":"https://api.github.com/users/linagora/following{/other_user}","gists_url":"https://api.github.com/users/linagora/gists{/gist_id}","starred_url":"https://api.github.com/users/linagora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linagora/subscriptions","organizations_url":"https://api.github.com/users/linagora/orgs","repos_url":"https://api.github.com/users/linagora/repos","events_url":"https://api.github.com/users/linagora/events{/privacy}","received_events_url":"https://api.github.com/users/linagora/received_events","type":"Organization","site_admin":false},"repo":{"id":39182136,"node_id":"MDEwOlJlcG9zaXRvcnkzOTE4MjEzNg==","name":"james-project","full_name":"linagora/james-project","private":false,"owner":{"login":"linagora","id":1230365,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyMzAzNjU=","avatar_url":"https://avatars3.githubusercontent.com/u/1230365?v=4","gravatar_id":"","url":"https://api.github.com/users/linagora","html_url":"https://github.com/linagora","followers_url":"https://api.github.com/users/linagora/followers","following_url":"https://api.github.com/users/linagora/following{/other_user}","gists_url":"https://api.github.com/users/linagora/gists{/gist_id}","starred_url":"https://api.github.com/users/linagora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linagora/subscriptions","organizations_url":"https://api.github.com/users/linagora/orgs","repos_url":"https://api.github.com/users/linagora/repos","events_url":"https://api.github.com/users/linagora/events{/privacy}","received_events_url":"https://api.github.com/users/linagora/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/linagora/james-project","description":"Mirror of Apache James Project","fork":true,"url":"https://api.github.com/repos/linagora/james-project","forks_url":"https://api.github.com/repos/linagora/james-project/forks","keys_url":"https://api.github.com/repos/linagora/james-project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/linagora/james-project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/linagora/james-project/teams","hooks_url":"https://api.github.com/repos/linagora/james-project/hooks","issue_events_url":"https://api.github.com/repos/linagora/james-project/issues/events{/number}","events_url":"https://api.github.com/repos/linagora/james-project/events","assignees_url":"https://api.github.com/repos/linagora/james-project/assignees{/user}","branches_url":"https://api.github.com/repos/linagora/james-project/branches{/branch}","tags_url":"https://api.github.com/repos/linagora/james-project/tags","blobs_url":"https://api.github.com/repos/linagora/james-project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/linagora/james-project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/linagora/james-project/git/refs{/sha}","trees_url":"https://api.github.com/repos/linagora/james-project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/linagora/james-project/statuses/{sha}","languages_url":"https://api.github.com/repos/linagora/james-project/languages","stargazers_url":"https://api.github.com/repos/linagora/james-project/stargazers","contributors_url":"https://api.github.com/repos/linagora/james-project/contributors","subscribers_url":"https://api.github.com/repos/linagora/james-project/subscribers","subscription_url":"https://api.github.com/repos/linagora/james-project/subscription","commits_url":"https://api.github.com/repos/linagora/james-project/commits{/sha}","git_commits_url":"https://api.github.com/repos/linagora/james-project/git/commits{/sha}","comments_url":"https://api.github.com/repos/linagora/james-project/comments{/number}","issue_comment_url":"https://api.github.com/repos/linagora/james-project/issues/comments{/number}","contents_url":"https://api.github.com/repos/linagora/james-project/contents/{+path}","compare_url":"https://api.github.com/repos/linagora/james-project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/linagora/james-project/merges","archive_url":"https://api.github.com/repos/linagora/james-project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/linagora/james-project/downloads","issues_url":"https://api.github.com/repos/linagora/james-project/issues{/number}","pulls_url":"https://api.github.com/repos/linagora/james-project/pulls{/number}","milestones_url":"https://api.github.com/repos/linagora/james-project/milestones{/number}","notifications_url":"https://api.github.com/repos/linagora/james-project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/linagora/james-project/labels{/name}","releases_url":"https://api.github.com/repos/linagora/james-project/releases{/id}","deployments_url":"https://api.github.com/repos/linagora/james-project/deployments","created_at":"2015-07-16T07:04:59Z","updated_at":"2019-04-08T12:14:03Z","pushed_at":"2019-04-09T02:30:35Z","git_url":"git://github.com/linagora/james-project.git","ssh_url":"git@github.com:linagora/james-project.git","clone_url":"https://github.com/linagora/james-project.git","svn_url":"https://github.com/linagora/james-project","homepage":null,"size":42025,"stargazers_count":27,"watchers_count":27,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":35,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":93,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":35,"open_issues":93,"watchers":27,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/linagora/james-project/pulls/2296"},"html":{"href":"https://github.com/linagora/james-project/pull/2296"},"issue":{"href":"https://api.github.com/repos/linagora/james-project/issues/2296"},"comments":{"href":"https://api.github.com/repos/linagora/james-project/issues/2296/comments"},"review_comments":{"href":"https://api.github.com/repos/linagora/james-project/pulls/2296/comments"},"review_comment":{"href":"https://api.github.com/repos/linagora/james-project/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/linagora/james-project/pulls/2296/commits"},"statuses":{"href":"https://api.github.com/repos/linagora/james-project/statuses/1a0f21223962a79fb9c2b48735b84918f2fe778a"}},"author_association":"NONE"}}
{"actor":{"display_login":"Arsnael"}}