{"action":"created","comment":{"url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/pulls/comments/237823974","pull_request_review_id":180217970,"id":237823974,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNzgyMzk3NA==","diff_hunk":"@@ -0,0 +1,109 @@\n+package ru.lessons;\n+\n+import io.restassured.filter.log.RequestLoggingFilter;\n+import io.restassured.filter.log.ResponseLoggingFilter;\n+import org.junit.jupiter.api.Test;\n+import org.junit.jupiter.params.ParameterizedTest;\n+import org.junit.jupiter.params.provider.MethodSource;\n+import ru.lessons.request.RequestModel;\n+\n+import java.util.List;\n+import java.util.stream.Stream;\n+\n+import static io.restassured.RestAssured.given;\n+\n+public class DeleteSubscriptionTest {\n+\n+    @ParameterizedTest\n+    @MethodSource(\"getIdSubscription\")\n+    public void deleteSubscriptionTest(String subscriptionId){\n+        given().spec(RequestModel.getRequestSpecification())\n+                .pathParam(\"siebel_id\", \"a.turaev\")\n+                .pathParam(\"subscription_id\", subscriptionId)\n+                .queryParam(\"request_id\", \"6f994192-e701-11e8-9f32-f2801f1b9fd1\")\n+                .queryParam(\"system_code\", \"T-API\")\n+                .filter(new RequestLoggingFilter())\n+                .filter(new ResponseLoggingFilter())\n+                .when()\n+                .delete(\"/contacts/{siebel_id}/subscriptions/{subscription_id}\")\n+                .then()\n+                .assertThat()\n+                .statusCode(200);\n+    }\n+\n+    static Stream<String> getIdSubscription(){\n+        String idSubscription = given().spec(RequestModel.getRequestSpecification())\n+                .pathParam(\"siebel_id\", \"a.turaev\")\n+                .queryParam(\"request_id\", \"6f994192-e701-11e8-9f32-f2801f1b9fd1\")\n+                .queryParam(\"system_code\", \"T-API\")\n+                .filter(new RequestLoggingFilter())\n+                .filter(new ResponseLoggingFilter())\n+                .body(InputData.createJSONObjectGetId())\n+                .when()\n+                .post(\"/contacts/{siebel_id}/subscriptions\")\n+                .then()\n+                .specification(RequestModel.getResponseSpecification())\n+                .assertThat()\n+                .statusCode(200)\n+                .extract()\n+                .path(\"id\");\n+        return Stream.of(idSubscription);\n+    }\n+\n+    @Test\n+    public void deleteFailSubscriptionTest(){\n+        given().spec(RequestModel.getRequestSpecification())\n+                .pathParam(\"siebel_id\", \"a.turaev\")\n+                .queryParam(\"request_id\", \"6f994192-e701-11e8-9f32-f2801f1b9fd1\")\n+                .queryParam(\"system_code\", \"T-API\")\n+                .filter(new RequestLoggingFilter())\n+                .filter(new ResponseLoggingFilter())\n+                .when()\n+                .delete(\"/contacts/{siebel_id}/subscriptions/{subscription_id}\")","path":"src/test/java/ru/lessons/DeleteSubscriptionTest.java","position":62,"original_position":62,"commit_id":"c4e8cd7a8197fe6b8285b6eca38443a09c1425de","original_commit_id":"c4e8cd7a8197fe6b8285b6eca38443a09c1425de","user":{"login":"FintechSchoolNsk","id":27963752,"node_id":"MDQ6VXNlcjI3OTYzNzUy","avatar_url":"https://avatars2.githubusercontent.com/u/27963752?v=4","gravatar_id":"","url":"https://api.github.com/users/FintechSchoolNsk","html_url":"https://github.com/FintechSchoolNsk","followers_url":"https://api.github.com/users/FintechSchoolNsk/followers","following_url":"https://api.github.com/users/FintechSchoolNsk/following{/other_user}","gists_url":"https://api.github.com/users/FintechSchoolNsk/gists{/gist_id}","starred_url":"https://api.github.com/users/FintechSchoolNsk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FintechSchoolNsk/subscriptions","organizations_url":"https://api.github.com/users/FintechSchoolNsk/orgs","repos_url":"https://api.github.com/users/FintechSchoolNsk/repos","events_url":"https://api.github.com/users/FintechSchoolNsk/events{/privacy}","received_events_url":"https://api.github.com/users/FintechSchoolNsk/received_events","type":"User","site_admin":false},"body":"не передан subscription_id","created_at":"2018-11-30T11:05:22Z","updated_at":"2018-11-30T11:09:57Z","html_url":"https://github.com/TuraevArtyom/fintech_Java_lessons/pull/3#discussion_r237823974","pull_request_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/pulls/3","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/pulls/comments/237823974"},"html":{"href":"https://github.com/TuraevArtyom/fintech_Java_lessons/pull/3#discussion_r237823974"},"pull_request":{"href":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/pulls/3","id":231800016,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMxODAwMDE2","html_url":"https://github.com/TuraevArtyom/fintech_Java_lessons/pull/3","diff_url":"https://github.com/TuraevArtyom/fintech_Java_lessons/pull/3.diff","patch_url":"https://github.com/TuraevArtyom/fintech_Java_lessons/pull/3.patch","issue_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/issues/3","number":3,"state":"open","locked":false,"title":"Lesson7","user":{"login":"TuraevArtyom","id":44138442,"node_id":"MDQ6VXNlcjQ0MTM4NDQy","avatar_url":"https://avatars2.githubusercontent.com/u/44138442?v=4","gravatar_id":"","url":"https://api.github.com/users/TuraevArtyom","html_url":"https://github.com/TuraevArtyom","followers_url":"https://api.github.com/users/TuraevArtyom/followers","following_url":"https://api.github.com/users/TuraevArtyom/following{/other_user}","gists_url":"https://api.github.com/users/TuraevArtyom/gists{/gist_id}","starred_url":"https://api.github.com/users/TuraevArtyom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TuraevArtyom/subscriptions","organizations_url":"https://api.github.com/users/TuraevArtyom/orgs","repos_url":"https://api.github.com/users/TuraevArtyom/repos","events_url":"https://api.github.com/users/TuraevArtyom/events{/privacy}","received_events_url":"https://api.github.com/users/TuraevArtyom/received_events","type":"User","site_admin":false},"body":"sub","created_at":"2018-11-18T16:57:48Z","updated_at":"2018-11-30T11:09:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5cf9f0130e2041ab37917df2c8a163c6b6749c1a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/pulls/3/commits","review_comments_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/pulls/3/comments","review_comment_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/issues/3/comments","statuses_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/statuses/c4e8cd7a8197fe6b8285b6eca38443a09c1425de","head":{"label":"TuraevArtyom:lesson7","ref":"lesson7","sha":"c4e8cd7a8197fe6b8285b6eca38443a09c1425de","user":{"login":"TuraevArtyom","id":44138442,"node_id":"MDQ6VXNlcjQ0MTM4NDQy","avatar_url":"https://avatars2.githubusercontent.com/u/44138442?v=4","gravatar_id":"","url":"https://api.github.com/users/TuraevArtyom","html_url":"https://github.com/TuraevArtyom","followers_url":"https://api.github.com/users/TuraevArtyom/followers","following_url":"https://api.github.com/users/TuraevArtyom/following{/other_user}","gists_url":"https://api.github.com/users/TuraevArtyom/gists{/gist_id}","starred_url":"https://api.github.com/users/TuraevArtyom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TuraevArtyom/subscriptions","organizations_url":"https://api.github.com/users/TuraevArtyom/orgs","repos_url":"https://api.github.com/users/TuraevArtyom/repos","events_url":"https://api.github.com/users/TuraevArtyom/events{/privacy}","received_events_url":"https://api.github.com/users/TuraevArtyom/received_events","type":"User","site_admin":false},"repo":{"id":155979150,"node_id":"MDEwOlJlcG9zaXRvcnkxNTU5NzkxNTA=","name":"fintech_Java_lessons","full_name":"TuraevArtyom/fintech_Java_lessons","private":false,"owner":{"login":"TuraevArtyom","id":44138442,"node_id":"MDQ6VXNlcjQ0MTM4NDQy","avatar_url":"https://avatars2.githubusercontent.com/u/44138442?v=4","gravatar_id":"","url":"https://api.github.com/users/TuraevArtyom","html_url":"https://github.com/TuraevArtyom","followers_url":"https://api.github.com/users/TuraevArtyom/followers","following_url":"https://api.github.com/users/TuraevArtyom/following{/other_user}","gists_url":"https://api.github.com/users/TuraevArtyom/gists{/gist_id}","starred_url":"https://api.github.com/users/TuraevArtyom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TuraevArtyom/subscriptions","organizations_url":"https://api.github.com/users/TuraevArtyom/orgs","repos_url":"https://api.github.com/users/TuraevArtyom/repos","events_url":"https://api.github.com/users/TuraevArtyom/events{/privacy}","received_events_url":"https://api.github.com/users/TuraevArtyom/received_events","type":"User","site_admin":false},"html_url":"https://github.com/TuraevArtyom/fintech_Java_lessons","description":null,"fork":false,"url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons","forks_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/forks","keys_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/teams","hooks_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/hooks","issue_events_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/issues/events{/number}","events_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/events","assignees_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/assignees{/user}","branches_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/branches{/branch}","tags_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/tags","blobs_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/git/refs{/sha}","trees_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/statuses/{sha}","languages_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/languages","stargazers_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/stargazers","contributors_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/contributors","subscribers_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/subscribers","subscription_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/subscription","commits_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/commits{/sha}","git_commits_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/git/commits{/sha}","comments_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/comments{/number}","issue_comment_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/issues/comments{/number}","contents_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/contents/{+path}","compare_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/merges","archive_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/downloads","issues_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/issues{/number}","pulls_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/pulls{/number}","milestones_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/milestones{/number}","notifications_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/labels{/name}","releases_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/releases{/id}","deployments_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/deployments","created_at":"2018-11-03T12:03:18Z","updated_at":"2018-11-11T19:14:34Z","pushed_at":"2018-11-30T11:09:04Z","git_url":"git://github.com/TuraevArtyom/fintech_Java_lessons.git","ssh_url":"git@github.com:TuraevArtyom/fintech_Java_lessons.git","clone_url":"https://github.com/TuraevArtyom/fintech_Java_lessons.git","svn_url":"https://github.com/TuraevArtyom/fintech_Java_lessons","homepage":null,"size":33,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"lesson5"}},"base":{"label":"TuraevArtyom:master","ref":"master","sha":"3ceb07caa2f4fbe38824df7bfa1619b075d4d5ca","user":{"login":"TuraevArtyom","id":44138442,"node_id":"MDQ6VXNlcjQ0MTM4NDQy","avatar_url":"https://avatars2.githubusercontent.com/u/44138442?v=4","gravatar_id":"","url":"https://api.github.com/users/TuraevArtyom","html_url":"https://github.com/TuraevArtyom","followers_url":"https://api.github.com/users/TuraevArtyom/followers","following_url":"https://api.github.com/users/TuraevArtyom/following{/other_user}","gists_url":"https://api.github.com/users/TuraevArtyom/gists{/gist_id}","starred_url":"https://api.github.com/users/TuraevArtyom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TuraevArtyom/subscriptions","organizations_url":"https://api.github.com/users/TuraevArtyom/orgs","repos_url":"https://api.github.com/users/TuraevArtyom/repos","events_url":"https://api.github.com/users/TuraevArtyom/events{/privacy}","received_events_url":"https://api.github.com/users/TuraevArtyom/received_events","type":"User","site_admin":false},"repo":{"id":155979150,"node_id":"MDEwOlJlcG9zaXRvcnkxNTU5NzkxNTA=","name":"fintech_Java_lessons","full_name":"TuraevArtyom/fintech_Java_lessons","private":false,"owner":{"login":"TuraevArtyom","id":44138442,"node_id":"MDQ6VXNlcjQ0MTM4NDQy","avatar_url":"https://avatars2.githubusercontent.com/u/44138442?v=4","gravatar_id":"","url":"https://api.github.com/users/TuraevArtyom","html_url":"https://github.com/TuraevArtyom","followers_url":"https://api.github.com/users/TuraevArtyom/followers","following_url":"https://api.github.com/users/TuraevArtyom/following{/other_user}","gists_url":"https://api.github.com/users/TuraevArtyom/gists{/gist_id}","starred_url":"https://api.github.com/users/TuraevArtyom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TuraevArtyom/subscriptions","organizations_url":"https://api.github.com/users/TuraevArtyom/orgs","repos_url":"https://api.github.com/users/TuraevArtyom/repos","events_url":"https://api.github.com/users/TuraevArtyom/events{/privacy}","received_events_url":"https://api.github.com/users/TuraevArtyom/received_events","type":"User","site_admin":false},"html_url":"https://github.com/TuraevArtyom/fintech_Java_lessons","description":null,"fork":false,"url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons","forks_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/forks","keys_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/teams","hooks_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/hooks","issue_events_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/issues/events{/number}","events_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/events","assignees_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/assignees{/user}","branches_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/branches{/branch}","tags_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/tags","blobs_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/git/refs{/sha}","trees_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/statuses/{sha}","languages_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/languages","stargazers_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/stargazers","contributors_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/contributors","subscribers_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/subscribers","subscription_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/subscription","commits_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/commits{/sha}","git_commits_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/git/commits{/sha}","comments_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/comments{/number}","issue_comment_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/issues/comments{/number}","contents_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/contents/{+path}","compare_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/merges","archive_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/downloads","issues_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/issues{/number}","pulls_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/pulls{/number}","milestones_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/milestones{/number}","notifications_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/labels{/name}","releases_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/releases{/id}","deployments_url":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/deployments","created_at":"2018-11-03T12:03:18Z","updated_at":"2018-11-11T19:14:34Z","pushed_at":"2018-11-30T11:09:04Z","git_url":"git://github.com/TuraevArtyom/fintech_Java_lessons.git","ssh_url":"git@github.com:TuraevArtyom/fintech_Java_lessons.git","clone_url":"https://github.com/TuraevArtyom/fintech_Java_lessons.git","svn_url":"https://github.com/TuraevArtyom/fintech_Java_lessons","homepage":null,"size":33,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"lesson5"}},"_links":{"self":{"href":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/pulls/3"},"html":{"href":"https://github.com/TuraevArtyom/fintech_Java_lessons/pull/3"},"issue":{"href":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/issues/3"},"comments":{"href":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/TuraevArtyom/fintech_Java_lessons/statuses/c4e8cd7a8197fe6b8285b6eca38443a09c1425de"}},"author_association":"OWNER"}}
{"actor":{"display_login":"FintechSchoolNsk"}}