From 6fc9dd4b30628e58cf64ad606535bbf49ac89287 Mon Sep 17 00:00:00 2001 From: Roel van Dijk Date: Fri, 21 Feb 2020 10:59:17 +0100 Subject: [PATCH 1/2] Add support for rocket and eyes reactions. --- src/main/java/org/kohsuke/github/ReactionContent.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/kohsuke/github/ReactionContent.java b/src/main/java/org/kohsuke/github/ReactionContent.java index d1f1a01ed5..f3bd43282c 100644 --- a/src/main/java/org/kohsuke/github/ReactionContent.java +++ b/src/main/java/org/kohsuke/github/ReactionContent.java @@ -11,7 +11,14 @@ * @see GHReaction */ public enum ReactionContent { - PLUS_ONE("+1"), MINUS_ONE("-1"), LAUGH("laugh"), CONFUSED("confused"), HEART("heart"), HOORAY("hooray"); + PLUS_ONE("+1"), + MINUS_ONE("-1"), + LAUGH("laugh"), + CONFUSED("confused"), + HEART("heart"), + HOORAY("hooray"), + ROCKET("rocket"), + EYES("eyes"); private final String content; From fa2601386cbf4e5d2a5d7ec986a470f0f27acd29 Mon Sep 17 00:00:00 2001 From: Liam Newman Date: Sat, 22 Feb 2020 19:16:33 -0800 Subject: [PATCH 2/2] Add tests for new reactions --- src/test/java/org/kohsuke/github/AppTest.java | 53 ++++++- ...66f6b3ba-129b-441c-9f2f-c9e18c941eea.json} | 28 ++-- ...1e8e21ad-edaf-4647-b812-4046b8f71a3a.json} | 0 ...-1a36428c-ce04-4580-b160-ffc42b4629ff.json | 26 ++++ ...39f59d4e-7875-4b75-a093-97a0b4e7239b.json} | 0 ...-41bca581-4ce9-4d1a-94ee-407bb996afc8.json | 26 ++++ ...-9904f18c-def2-4249-b64c-956a2d12f2bd.json | 26 ++++ ...-a94639e7-cb76-4ea2-a6a2-8d9a5642f3ec.json | 28 ++++ ...-d9de8255-dcbc-409d-b311-b7824a3ddeb6.json | 26 ++++ ...dfcc4bc3-3276-408a-a945-e132d4fbf2e5.json} | 6 +- ...-e6be4fe8-bb46-418f-bd08-dba996ef250c.json | 28 ++++ ...-ec5b4512-28c1-46fe-95d2-710c6da55cb3.json | 132 ++++++++++++++++++ ...d9a254e0-d5e1-4fd9-b995-51e933b769f3.json} | 10 +- ....json => reactions_63220302-6-b59615.json} | 18 +-- .../reactions_63220303-13-cf170d.json | 40 ++++++ .../reactions_63220305-14-dcbdbe.json | 40 ++++++ .../reactions_63220306-15-08b50a.json | 40 ++++++ .../reactions_63220307-16-12cbca.json | 40 ++++++ ...repos_github-api_github-api-2-66f6b3.json} | 20 +-- ...b-api_github-api_issues_311-3-1e8e21.json} | 20 +-- ...ub-api_issues_311_reactions-10-1a3642.json | 54 +++++++ ...ub-api_issues_311_reactions-11-41bca5.json | 54 +++++++ ...ub-api_issues_311_reactions-12-ec5b45.json | 50 +++++++ ...b-api_issues_311_reactions-17-e6be4f.json} | 22 +-- ...hub-api_issues_311_reactions-4-a94639.json | 50 +++++++ ...ub-api_issues_311_reactions-5-dfcc4b.json} | 30 ++-- ...hub-api_issues_311_reactions-7-39f59d.json | 50 +++++++ ...hub-api_issues_311_reactions-8-d9de82.json | 54 +++++++ ...hub-api_issues_311_reactions-9-9904f1.json | 54 +++++++ ...{user-1-b7deb8.json => user-1-d9a254.json} | 20 +-- 30 files changed, 956 insertions(+), 89 deletions(-) rename src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/{repos_github-api_github-api-802b5ffb-1b82-43ae-bd10-62f1cf8adfa3.json => repos_github-api_github-api-66f6b3ba-129b-441c-9f2f-c9e18c941eea.json} (94%) rename src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/{repos_github-api_github-api_issues_311-27fe2304-4e19-4da7-8db3-0adf9281f71b.json => repos_github-api_github-api_issues_311-1e8e21ad-edaf-4647-b812-4046b8f71a3a.json} (100%) create mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311_reactions-1a36428c-ce04-4580-b160-ffc42b4629ff.json rename src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/{repos_github-api_github-api_issues_311_reactions-4abb0b9d-6883-4156-9111-86ec994328df.json => repos_github-api_github-api_issues_311_reactions-39f59d4e-7875-4b75-a093-97a0b4e7239b.json} (100%) create mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311_reactions-41bca581-4ce9-4d1a-94ee-407bb996afc8.json create mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311_reactions-9904f18c-def2-4249-b64c-956a2d12f2bd.json create mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311_reactions-a94639e7-cb76-4ea2-a6a2-8d9a5642f3ec.json create mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311_reactions-d9de8255-dcbc-409d-b311-b7824a3ddeb6.json rename src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/{repos_github-api_github-api_issues_311_reactions-03125293-7da8-4da4-8d53-38060ef25daa.json => repos_github-api_github-api_issues_311_reactions-dfcc4bc3-3276-408a-a945-e132d4fbf2e5.json} (91%) create mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311_reactions-e6be4fe8-bb46-418f-bd08-dba996ef250c.json create mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311_reactions-ec5b4512-28c1-46fe-95d2-710c6da55cb3.json rename src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/{user-b7deb8d4-d53a-4dd5-8ab8-f0bf4f7bfb9e.json => user-d9a254e0-d5e1-4fd9-b995-51e933b769f3.json} (91%) rename src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/{reactions_54107401-6-613187.json => reactions_63220302-6-b59615.json} (75%) create mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/reactions_63220303-13-cf170d.json create mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/reactions_63220305-14-dcbdbe.json create mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/reactions_63220306-15-08b50a.json create mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/reactions_63220307-16-12cbca.json rename src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/{repos_github-api_github-api-2-802b5f.json => repos_github-api_github-api-2-66f6b3.json} (73%) rename src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/{repos_github-api_github-api_issues_311-3-27fe23.json => repos_github-api_github-api_issues_311-3-1e8e21.json} (73%) create mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311_reactions-10-1a3642.json create mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311_reactions-11-41bca5.json create mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311_reactions-12-ec5b45.json rename src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/{repos_github-api_github-api_issues_311_reactions-4-4abb0b.json => repos_github-api_github-api_issues_311_reactions-17-e6be4f.json} (71%) create mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311_reactions-4-a94639.json rename src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/{repos_github-api_github-api_issues_311_reactions-5-031252.json => repos_github-api_github-api_issues_311_reactions-5-dfcc4b.json} (79%) create mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311_reactions-7-39f59d.json create mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311_reactions-8-d9de82.json create mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311_reactions-9-9904f1.json rename src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/{user-1-b7deb8.json => user-1-d9a254.json} (73%) diff --git a/src/test/java/org/kohsuke/github/AppTest.java b/src/test/java/org/kohsuke/github/AppTest.java index cb41c73ba5..882aa70d4e 100755 --- a/src/test/java/org/kohsuke/github/AppTest.java +++ b/src/test/java/org/kohsuke/github/AppTest.java @@ -874,15 +874,60 @@ public void checkToString() throws Exception { public void reactions() throws Exception { GHIssue i = gitHub.getRepository("github-api/github-api").getIssue(311); + List l; // retrieval - GHReaction r = i.listReactions().iterator().next(); - assertThat(r.getUser().getLogin(), is("kohsuke")); - assertThat(r.getContent(), is(ReactionContent.HEART)); + l = i.listReactions().asList(); + assertThat(l.size(), equalTo(1)); + + assertThat(l.get(0).getUser().getLogin(), is("kohsuke")); + assertThat(l.get(0).getContent(), is(ReactionContent.HEART)); // CRUD - GHReaction a = i.createReaction(ReactionContent.HOORAY); + GHReaction a; + a = i.createReaction(ReactionContent.HOORAY); assertThat(a.getUser().getLogin(), is(gitHub.getMyself().getLogin())); + assertThat(a.getContent(), is(ReactionContent.HOORAY)); a.delete(); + + l = i.listReactions().asList(); + assertThat(l.size(), equalTo(1)); + + a = i.createReaction(ReactionContent.PLUS_ONE); + assertThat(a.getUser().getLogin(), is(gitHub.getMyself().getLogin())); + assertThat(a.getContent(), is(ReactionContent.PLUS_ONE)); + + a = i.createReaction(ReactionContent.CONFUSED); + assertThat(a.getUser().getLogin(), is(gitHub.getMyself().getLogin())); + assertThat(a.getContent(), is(ReactionContent.CONFUSED)); + + a = i.createReaction(ReactionContent.EYES); + assertThat(a.getUser().getLogin(), is(gitHub.getMyself().getLogin())); + assertThat(a.getContent(), is(ReactionContent.EYES)); + + a = i.createReaction(ReactionContent.ROCKET); + assertThat(a.getUser().getLogin(), is(gitHub.getMyself().getLogin())); + assertThat(a.getContent(), is(ReactionContent.ROCKET)); + + l = i.listReactions().asList(); + assertThat(l.size(), equalTo(5)); + assertThat(l.get(0).getUser().getLogin(), is("kohsuke")); + assertThat(l.get(0).getContent(), is(ReactionContent.HEART)); + assertThat(l.get(1).getUser().getLogin(), is(gitHub.getMyself().getLogin())); + assertThat(l.get(1).getContent(), is(ReactionContent.PLUS_ONE)); + assertThat(l.get(2).getUser().getLogin(), is(gitHub.getMyself().getLogin())); + assertThat(l.get(2).getContent(), is(ReactionContent.CONFUSED)); + assertThat(l.get(3).getUser().getLogin(), is(gitHub.getMyself().getLogin())); + assertThat(l.get(3).getContent(), is(ReactionContent.EYES)); + assertThat(l.get(4).getUser().getLogin(), is(gitHub.getMyself().getLogin())); + assertThat(l.get(4).getContent(), is(ReactionContent.ROCKET)); + + l.get(1).delete(); + l.get(2).delete(); + l.get(3).delete(); + l.get(4).delete(); + + l = i.listReactions().asList(); + assertThat(l.size(), equalTo(1)); } @Test diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api-802b5ffb-1b82-43ae-bd10-62f1cf8adfa3.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api-66f6b3ba-129b-441c-9f2f-c9e18c941eea.json similarity index 94% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api-802b5ffb-1b82-43ae-bd10-62f1cf8adfa3.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api-66f6b3ba-129b-441c-9f2f-c9e18c941eea.json index 29eeabe7c9..eb42f47a44 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api-802b5ffb-1b82-43ae-bd10-62f1cf8adfa3.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api-66f6b3ba-129b-441c-9f2f-c9e18c941eea.json @@ -65,27 +65,27 @@ "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", "created_at": "2010-04-19T04:13:03Z", - "updated_at": "2019-10-25T01:32:16Z", - "pushed_at": "2019-10-25T16:41:09Z", + "updated_at": "2020-02-23T02:42:15Z", + "pushed_at": "2020-02-23T02:48:53Z", "git_url": "git://github.com/github-api/github-api.git", "ssh_url": "git@github.com:github-api/github-api.git", "clone_url": "https://github.com/github-api/github-api.git", "svn_url": "https://github.com/github-api/github-api", - "homepage": "http://github-api.kohsuke.org/", - "size": 13494, - "stargazers_count": 565, - "watchers_count": 565, + "homepage": "https://github-api.kohsuke.org/", + "size": 19552, + "stargazers_count": 613, + "watchers_count": 613, "language": "Java", "has_issues": true, "has_projects": true, "has_downloads": true, "has_wiki": true, "has_pages": true, - "forks_count": 433, + "forks_count": 456, "mirror_url": null, "archived": false, "disabled": false, - "open_issues_count": 64, + "open_issues_count": 57, "license": { "key": "mit", "name": "MIT License", @@ -93,18 +93,20 @@ "url": "https://api.github.com/licenses/mit", "node_id": "MDc6TGljZW5zZTEz" }, - "forks": 433, - "open_issues": 64, - "watchers": 565, + "forks": 456, + "open_issues": 57, + "watchers": 613, "default_branch": "master", "permissions": { "admin": true, "push": true, "pull": true }, + "temp_clone_token": "", "allow_squash_merge": true, "allow_merge_commit": true, "allow_rebase_merge": true, + "delete_branch_on_merge": false, "organization": { "login": "github-api", "id": 54909825, @@ -125,6 +127,6 @@ "type": "Organization", "site_admin": false }, - "network_count": 433, - "subscribers_count": 48 + "network_count": 456, + "subscribers_count": 47 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311-27fe2304-4e19-4da7-8db3-0adf9281f71b.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311-1e8e21ad-edaf-4647-b812-4046b8f71a3a.json similarity index 100% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311-27fe2304-4e19-4da7-8db3-0adf9281f71b.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311-1e8e21ad-edaf-4647-b812-4046b8f71a3a.json diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311_reactions-1a36428c-ce04-4580-b160-ffc42b4629ff.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311_reactions-1a36428c-ce04-4580-b160-ffc42b4629ff.json new file mode 100644 index 0000000000..4bb5d5aa05 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311_reactions-1a36428c-ce04-4580-b160-ffc42b4629ff.json @@ -0,0 +1,26 @@ +{ + "id": 63220306, + "node_id": "MDg6UmVhY3Rpb242MzIyMDMwNg==", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "content": "eyes", + "created_at": "2020-02-23T03:15:56Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311_reactions-4abb0b9d-6883-4156-9111-86ec994328df.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311_reactions-39f59d4e-7875-4b75-a093-97a0b4e7239b.json similarity index 100% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311_reactions-4abb0b9d-6883-4156-9111-86ec994328df.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311_reactions-39f59d4e-7875-4b75-a093-97a0b4e7239b.json diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311_reactions-41bca581-4ce9-4d1a-94ee-407bb996afc8.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311_reactions-41bca581-4ce9-4d1a-94ee-407bb996afc8.json new file mode 100644 index 0000000000..d477b817de --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311_reactions-41bca581-4ce9-4d1a-94ee-407bb996afc8.json @@ -0,0 +1,26 @@ +{ + "id": 63220307, + "node_id": "MDg6UmVhY3Rpb242MzIyMDMwNw==", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "content": "rocket", + "created_at": "2020-02-23T03:15:57Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311_reactions-9904f18c-def2-4249-b64c-956a2d12f2bd.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311_reactions-9904f18c-def2-4249-b64c-956a2d12f2bd.json new file mode 100644 index 0000000000..2dc6bb8df7 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311_reactions-9904f18c-def2-4249-b64c-956a2d12f2bd.json @@ -0,0 +1,26 @@ +{ + "id": 63220305, + "node_id": "MDg6UmVhY3Rpb242MzIyMDMwNQ==", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "content": "confused", + "created_at": "2020-02-23T03:15:56Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311_reactions-a94639e7-cb76-4ea2-a6a2-8d9a5642f3ec.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311_reactions-a94639e7-cb76-4ea2-a6a2-8d9a5642f3ec.json new file mode 100644 index 0000000000..ee767d3d2b --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311_reactions-a94639e7-cb76-4ea2-a6a2-8d9a5642f3ec.json @@ -0,0 +1,28 @@ +[ + { + "id": 5037900, + "node_id": "MDg6UmVhY3Rpb241MDM3OTAw", + "user": { + "login": "kohsuke", + "id": 50003, + "node_id": "MDQ6VXNlcjUwMDAz", + "avatar_url": "https://avatars1.githubusercontent.com/u/50003?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kohsuke", + "html_url": "https://github.com/kohsuke", + "followers_url": "https://api.github.com/users/kohsuke/followers", + "following_url": "https://api.github.com/users/kohsuke/following{/other_user}", + "gists_url": "https://api.github.com/users/kohsuke/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kohsuke/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kohsuke/subscriptions", + "organizations_url": "https://api.github.com/users/kohsuke/orgs", + "repos_url": "https://api.github.com/users/kohsuke/repos", + "events_url": "https://api.github.com/users/kohsuke/events{/privacy}", + "received_events_url": "https://api.github.com/users/kohsuke/received_events", + "type": "User", + "site_admin": false + }, + "content": "heart", + "created_at": "2016-11-17T02:40:15Z" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311_reactions-d9de8255-dcbc-409d-b311-b7824a3ddeb6.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311_reactions-d9de8255-dcbc-409d-b311-b7824a3ddeb6.json new file mode 100644 index 0000000000..51292a6985 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311_reactions-d9de8255-dcbc-409d-b311-b7824a3ddeb6.json @@ -0,0 +1,26 @@ +{ + "id": 63220303, + "node_id": "MDg6UmVhY3Rpb242MzIyMDMwMw==", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "content": "+1", + "created_at": "2020-02-23T03:15:55Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311_reactions-03125293-7da8-4da4-8d53-38060ef25daa.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311_reactions-dfcc4bc3-3276-408a-a945-e132d4fbf2e5.json similarity index 91% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311_reactions-03125293-7da8-4da4-8d53-38060ef25daa.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311_reactions-dfcc4bc3-3276-408a-a945-e132d4fbf2e5.json index 093d145ef8..46cc80343d 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311_reactions-03125293-7da8-4da4-8d53-38060ef25daa.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311_reactions-dfcc4bc3-3276-408a-a945-e132d4fbf2e5.json @@ -1,6 +1,6 @@ { - "id": 54107401, - "node_id": "MDg6UmVhY3Rpb241NDEwNzQwMQ==", + "id": 63220302, + "node_id": "MDg6UmVhY3Rpb242MzIyMDMwMg==", "user": { "login": "bitwiseman", "id": 1958953, @@ -22,5 +22,5 @@ "site_admin": false }, "content": "hooray", - "created_at": "2019-10-26T01:27:43Z" + "created_at": "2020-02-23T03:15:55Z" } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311_reactions-e6be4fe8-bb46-418f-bd08-dba996ef250c.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311_reactions-e6be4fe8-bb46-418f-bd08-dba996ef250c.json new file mode 100644 index 0000000000..ee767d3d2b --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311_reactions-e6be4fe8-bb46-418f-bd08-dba996ef250c.json @@ -0,0 +1,28 @@ +[ + { + "id": 5037900, + "node_id": "MDg6UmVhY3Rpb241MDM3OTAw", + "user": { + "login": "kohsuke", + "id": 50003, + "node_id": "MDQ6VXNlcjUwMDAz", + "avatar_url": "https://avatars1.githubusercontent.com/u/50003?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kohsuke", + "html_url": "https://github.com/kohsuke", + "followers_url": "https://api.github.com/users/kohsuke/followers", + "following_url": "https://api.github.com/users/kohsuke/following{/other_user}", + "gists_url": "https://api.github.com/users/kohsuke/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kohsuke/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kohsuke/subscriptions", + "organizations_url": "https://api.github.com/users/kohsuke/orgs", + "repos_url": "https://api.github.com/users/kohsuke/repos", + "events_url": "https://api.github.com/users/kohsuke/events{/privacy}", + "received_events_url": "https://api.github.com/users/kohsuke/received_events", + "type": "User", + "site_admin": false + }, + "content": "heart", + "created_at": "2016-11-17T02:40:15Z" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311_reactions-ec5b4512-28c1-46fe-95d2-710c6da55cb3.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311_reactions-ec5b4512-28c1-46fe-95d2-710c6da55cb3.json new file mode 100644 index 0000000000..ab1fca7f0e --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_github-api_github-api_issues_311_reactions-ec5b4512-28c1-46fe-95d2-710c6da55cb3.json @@ -0,0 +1,132 @@ +[ + { + "id": 5037900, + "node_id": "MDg6UmVhY3Rpb241MDM3OTAw", + "user": { + "login": "kohsuke", + "id": 50003, + "node_id": "MDQ6VXNlcjUwMDAz", + "avatar_url": "https://avatars1.githubusercontent.com/u/50003?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kohsuke", + "html_url": "https://github.com/kohsuke", + "followers_url": "https://api.github.com/users/kohsuke/followers", + "following_url": "https://api.github.com/users/kohsuke/following{/other_user}", + "gists_url": "https://api.github.com/users/kohsuke/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kohsuke/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kohsuke/subscriptions", + "organizations_url": "https://api.github.com/users/kohsuke/orgs", + "repos_url": "https://api.github.com/users/kohsuke/repos", + "events_url": "https://api.github.com/users/kohsuke/events{/privacy}", + "received_events_url": "https://api.github.com/users/kohsuke/received_events", + "type": "User", + "site_admin": false + }, + "content": "heart", + "created_at": "2016-11-17T02:40:15Z" + }, + { + "id": 63220303, + "node_id": "MDg6UmVhY3Rpb242MzIyMDMwMw==", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "content": "+1", + "created_at": "2020-02-23T03:15:55Z" + }, + { + "id": 63220305, + "node_id": "MDg6UmVhY3Rpb242MzIyMDMwNQ==", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "content": "confused", + "created_at": "2020-02-23T03:15:56Z" + }, + { + "id": 63220306, + "node_id": "MDg6UmVhY3Rpb242MzIyMDMwNg==", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "content": "eyes", + "created_at": "2020-02-23T03:15:56Z" + }, + { + "id": 63220307, + "node_id": "MDg6UmVhY3Rpb242MzIyMDMwNw==", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "content": "rocket", + "created_at": "2020-02-23T03:15:57Z" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/user-b7deb8d4-d53a-4dd5-8ab8-f0bf4f7bfb9e.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/user-d9a254e0-d5e1-4fd9-b995-51e933b769f3.json similarity index 91% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/user-b7deb8d4-d53a-4dd5-8ab8-f0bf4f7bfb9e.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/user-d9a254e0-d5e1-4fd9-b995-51e933b769f3.json index a4b576e8a7..8a28d7cbe3 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/user-b7deb8d4-d53a-4dd5-8ab8-f0bf4f7bfb9e.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/user-d9a254e0-d5e1-4fd9-b995-51e933b769f3.json @@ -24,14 +24,14 @@ "email": "bitwiseman@gmail.com", "hireable": null, "bio": "https://twitter.com/bitwiseman", - "public_repos": 169, + "public_repos": 181, "public_gists": 7, - "followers": 139, + "followers": 147, "following": 9, "created_at": "2012-07-11T20:38:33Z", - "updated_at": "2019-09-24T19:32:29Z", - "private_gists": 7, - "total_private_repos": 9, + "updated_at": "2020-02-21T20:59:33Z", + "private_gists": 8, + "total_private_repos": 10, "owned_private_repos": 0, "disk_usage": 33697, "collaborators": 0, diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/reactions_54107401-6-613187.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/reactions_63220302-6-b59615.json similarity index 75% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/reactions_54107401-6-613187.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/reactions_63220302-6-b59615.json index b1d037e051..8fa3b4608b 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/reactions_54107401-6-613187.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/reactions_63220302-6-b59615.json @@ -1,8 +1,8 @@ { - "id": "613187cb-6ce1-4cec-8f3a-aa1e0402c0a2", - "name": "reactions_54107401", + "id": "b596150f-299c-48fc-8c7f-aae75105e09f", + "name": "reactions_63220302", "request": { - "url": "/reactions/54107401", + "url": "/reactions/63220302", "method": "DELETE", "headers": { "Accept": { @@ -13,12 +13,12 @@ "response": { "status": 204, "headers": { - "Date": "Sat, 26 Oct 2019 01:27:43 GMT", + "Date": "Sun, 23 Feb 2020 03:15:55 GMT", "Server": "GitHub.com", "Status": "204 No Content", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4408", - "X-RateLimit-Reset": "1572055286", + "X-RateLimit-Remaining": "4887", + "X-RateLimit-Reset": "1582428789", "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", "X-Accepted-OAuth-Scopes": "", "X-GitHub-Media-Type": "github.squirrel-girl-preview; format=json", @@ -30,11 +30,11 @@ "X-XSS-Protection": "1; mode=block", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "Vary": "Accept-Encoding", - "X-GitHub-Request-Id": "CAAC:45A6:ED51CF:1180A5B:5DB3A10F" + "Vary": "Accept-Encoding, Accept, X-Requested-With", + "X-GitHub-Request-Id": "C701:8993:A68E26:C0D6BE:5E51EE6B" } }, - "uuid": "613187cb-6ce1-4cec-8f3a-aa1e0402c0a2", + "uuid": "b596150f-299c-48fc-8c7f-aae75105e09f", "persistent": true, "insertionIndex": 6 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/reactions_63220303-13-cf170d.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/reactions_63220303-13-cf170d.json new file mode 100644 index 0000000000..0b94c0f7aa --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/reactions_63220303-13-cf170d.json @@ -0,0 +1,40 @@ +{ + "id": "cf170df9-400c-4e8f-a5fb-29657271beea", + "name": "reactions_63220303", + "request": { + "url": "/reactions/63220303", + "method": "DELETE", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.squirrel-girl-preview+json" + } + } + }, + "response": { + "status": 204, + "headers": { + "Date": "Sun, 23 Feb 2020 03:15:57 GMT", + "Server": "GitHub.com", + "Status": "204 No Content", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4880", + "X-RateLimit-Reset": "1582428788", + "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.squirrel-girl-preview; format=json", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "Vary": "Accept-Encoding, Accept, X-Requested-With", + "X-GitHub-Request-Id": "C701:8993:A68EA9:C0D74A:5E51EE6D" + } + }, + "uuid": "cf170df9-400c-4e8f-a5fb-29657271beea", + "persistent": true, + "insertionIndex": 13 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/reactions_63220305-14-dcbdbe.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/reactions_63220305-14-dcbdbe.json new file mode 100644 index 0000000000..2019c634eb --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/reactions_63220305-14-dcbdbe.json @@ -0,0 +1,40 @@ +{ + "id": "dcbdbe23-adc4-4f58-9a1b-11a3f976fb7c", + "name": "reactions_63220305", + "request": { + "url": "/reactions/63220305", + "method": "DELETE", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.squirrel-girl-preview+json" + } + } + }, + "response": { + "status": 204, + "headers": { + "Date": "Sun, 23 Feb 2020 03:15:58 GMT", + "Server": "GitHub.com", + "Status": "204 No Content", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4879", + "X-RateLimit-Reset": "1582428789", + "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.squirrel-girl-preview; format=json", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "Vary": "Accept-Encoding, Accept, X-Requested-With", + "X-GitHub-Request-Id": "C701:8993:A68EC2:C0D760:5E51EE6D" + } + }, + "uuid": "dcbdbe23-adc4-4f58-9a1b-11a3f976fb7c", + "persistent": true, + "insertionIndex": 14 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/reactions_63220306-15-08b50a.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/reactions_63220306-15-08b50a.json new file mode 100644 index 0000000000..babc5186d5 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/reactions_63220306-15-08b50a.json @@ -0,0 +1,40 @@ +{ + "id": "08b50aa8-c491-48a6-99ae-d4cb492515cd", + "name": "reactions_63220306", + "request": { + "url": "/reactions/63220306", + "method": "DELETE", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.squirrel-girl-preview+json" + } + } + }, + "response": { + "status": 204, + "headers": { + "Date": "Sun, 23 Feb 2020 03:15:58 GMT", + "Server": "GitHub.com", + "Status": "204 No Content", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4878", + "X-RateLimit-Reset": "1582428788", + "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.squirrel-girl-preview; format=json", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "Vary": "Accept-Encoding, Accept, X-Requested-With", + "X-GitHub-Request-Id": "C701:8993:A68ED9:C0D77E:5E51EE6E" + } + }, + "uuid": "08b50aa8-c491-48a6-99ae-d4cb492515cd", + "persistent": true, + "insertionIndex": 15 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/reactions_63220307-16-12cbca.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/reactions_63220307-16-12cbca.json new file mode 100644 index 0000000000..b03ef61e66 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/reactions_63220307-16-12cbca.json @@ -0,0 +1,40 @@ +{ + "id": "12cbca2c-5e73-4317-9f86-0e52224a952e", + "name": "reactions_63220307", + "request": { + "url": "/reactions/63220307", + "method": "DELETE", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.squirrel-girl-preview+json" + } + } + }, + "response": { + "status": 204, + "headers": { + "Date": "Sun, 23 Feb 2020 03:15:58 GMT", + "Server": "GitHub.com", + "Status": "204 No Content", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4877", + "X-RateLimit-Reset": "1582428788", + "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.squirrel-girl-preview; format=json", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "Vary": "Accept-Encoding, Accept, X-Requested-With", + "X-GitHub-Request-Id": "C701:8993:A68EE6:C0D795:5E51EE6E" + } + }, + "uuid": "12cbca2c-5e73-4317-9f86-0e52224a952e", + "persistent": true, + "insertionIndex": 16 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api-2-802b5f.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api-2-66f6b3.json similarity index 73% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api-2-802b5f.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api-2-66f6b3.json index 3e7c067205..1f25f068ca 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api-2-802b5f.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api-2-66f6b3.json @@ -1,5 +1,5 @@ { - "id": "802b5ffb-1b82-43ae-bd10-62f1cf8adfa3", + "id": "66f6b3ba-129b-441c-9f2f-c9e18c941eea", "name": "repos_github-api_github-api", "request": { "url": "/repos/github-api/github-api", @@ -12,22 +12,22 @@ }, "response": { "status": 200, - "bodyFileName": "repos_github-api_github-api-802b5ffb-1b82-43ae-bd10-62f1cf8adfa3.json", + "bodyFileName": "repos_github-api_github-api-66f6b3ba-129b-441c-9f2f-c9e18c941eea.json", "headers": { - "Date": "Sat, 26 Oct 2019 01:27:42 GMT", + "Date": "Sun, 23 Feb 2020 03:15:54 GMT", "Content-Type": "application/json; charset=utf-8", "Server": "GitHub.com", "Status": "200 OK", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4412", - "X-RateLimit-Reset": "1572055286", + "X-RateLimit-Remaining": "4891", + "X-RateLimit-Reset": "1582428788", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding" + "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"c1a01d01a6354d93b3cc6098e0b2d047\"", - "Last-Modified": "Fri, 25 Oct 2019 01:32:16 GMT", + "ETag": "W/\"269c8989f92f77931309a63cbad7a7c7\"", + "Last-Modified": "Sun, 23 Feb 2020 02:42:15 GMT", "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", "X-Accepted-OAuth-Scopes": "repo", "X-GitHub-Media-Type": "unknown, github.v3", @@ -39,10 +39,10 @@ "X-XSS-Protection": "1; mode=block", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "CAAC:45A6:ED514A:11809B8:5DB3A10D" + "X-GitHub-Request-Id": "C701:8993:A68DF4:C0D653:5E51EE69" } }, - "uuid": "802b5ffb-1b82-43ae-bd10-62f1cf8adfa3", + "uuid": "66f6b3ba-129b-441c-9f2f-c9e18c941eea", "persistent": true, "insertionIndex": 2 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311-3-27fe23.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311-3-1e8e21.json similarity index 73% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311-3-27fe23.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311-3-1e8e21.json index e27ba8335a..19485a5d1e 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311-3-27fe23.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311-3-1e8e21.json @@ -1,5 +1,5 @@ { - "id": "27fe2304-4e19-4da7-8db3-0adf9281f71b", + "id": "1e8e21ad-edaf-4647-b812-4046b8f71a3a", "name": "repos_github-api_github-api_issues_311", "request": { "url": "/repos/github-api/github-api/issues/311", @@ -12,22 +12,22 @@ }, "response": { "status": 200, - "bodyFileName": "repos_github-api_github-api_issues_311-27fe2304-4e19-4da7-8db3-0adf9281f71b.json", + "bodyFileName": "repos_github-api_github-api_issues_311-1e8e21ad-edaf-4647-b812-4046b8f71a3a.json", "headers": { - "Date": "Sat, 26 Oct 2019 01:27:42 GMT", + "Date": "Sun, 23 Feb 2020 03:15:54 GMT", "Content-Type": "application/json; charset=utf-8", "Server": "GitHub.com", "Status": "200 OK", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4411", - "X-RateLimit-Reset": "1572055286", + "X-RateLimit-Remaining": "4890", + "X-RateLimit-Reset": "1582428788", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding" + "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"609e07e4daf5a4a5fb63f9ff089ae6b4\"", - "Last-Modified": "Fri, 25 Oct 2019 16:53:26 GMT", + "ETag": "W/\"62f7fd95abf580737a40918dc382d828\"", + "Last-Modified": "Mon, 17 Feb 2020 11:11:11 GMT", "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", "X-Accepted-OAuth-Scopes": "repo", "X-GitHub-Media-Type": "unknown, github.v3", @@ -39,10 +39,10 @@ "X-XSS-Protection": "1; mode=block", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "CAAC:45A6:ED5163:11809E8:5DB3A10E" + "X-GitHub-Request-Id": "C701:8993:A68E02:C0D68F:5E51EE6A" } }, - "uuid": "27fe2304-4e19-4da7-8db3-0adf9281f71b", + "uuid": "1e8e21ad-edaf-4647-b812-4046b8f71a3a", "persistent": true, "insertionIndex": 3 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311_reactions-10-1a3642.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311_reactions-10-1a3642.json new file mode 100644 index 0000000000..e00fa54869 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311_reactions-10-1a3642.json @@ -0,0 +1,54 @@ +{ + "id": "1a36428c-ce04-4580-b160-ffc42b4629ff", + "name": "repos_github-api_github-api_issues_311_reactions", + "request": { + "url": "/repos/github-api/github-api/issues/311/reactions", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.squirrel-girl-preview+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"content\":\"eyes\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_github-api_github-api_issues_311_reactions-1a36428c-ce04-4580-b160-ffc42b4629ff.json", + "headers": { + "Date": "Sun, 23 Feb 2020 03:15:56 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "201 Created", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4883", + "X-RateLimit-Reset": "1582428788", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "\"7b229544c753e8c32911036296d1b2eb\"", + "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.squirrel-girl-preview; format=json", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "C701:8993:A68E6C:C0D703:5E51EE6C" + } + }, + "uuid": "1a36428c-ce04-4580-b160-ffc42b4629ff", + "persistent": true, + "insertionIndex": 10 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311_reactions-11-41bca5.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311_reactions-11-41bca5.json new file mode 100644 index 0000000000..5a7a73f9e0 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311_reactions-11-41bca5.json @@ -0,0 +1,54 @@ +{ + "id": "41bca581-4ce9-4d1a-94ee-407bb996afc8", + "name": "repos_github-api_github-api_issues_311_reactions", + "request": { + "url": "/repos/github-api/github-api/issues/311/reactions", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.squirrel-girl-preview+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"content\":\"rocket\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_github-api_github-api_issues_311_reactions-41bca581-4ce9-4d1a-94ee-407bb996afc8.json", + "headers": { + "Date": "Sun, 23 Feb 2020 03:15:57 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "201 Created", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4882", + "X-RateLimit-Reset": "1582428789", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "\"264de84eeb4bbbfd44ee646c90683d2d\"", + "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.squirrel-girl-preview; format=json", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "C701:8993:A68E83:C0D71E:5E51EE6C" + } + }, + "uuid": "41bca581-4ce9-4d1a-94ee-407bb996afc8", + "persistent": true, + "insertionIndex": 11 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311_reactions-12-ec5b45.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311_reactions-12-ec5b45.json new file mode 100644 index 0000000000..271cc1f280 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311_reactions-12-ec5b45.json @@ -0,0 +1,50 @@ +{ + "id": "ec5b4512-28c1-46fe-95d2-710c6da55cb3", + "name": "repos_github-api_github-api_issues_311_reactions", + "request": { + "url": "/repos/github-api/github-api/issues/311/reactions", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.squirrel-girl-preview+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api_github-api_issues_311_reactions-ec5b4512-28c1-46fe-95d2-710c6da55cb3.json", + "headers": { + "Date": "Sun, 23 Feb 2020 03:15:57 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4881", + "X-RateLimit-Reset": "1582428788", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"e7f76146c68532e9ccff19c1a86daf0a\"", + "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "github.squirrel-girl-preview; format=json", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "C701:8993:A68E9B:C0D731:5E51EE6D" + } + }, + "uuid": "ec5b4512-28c1-46fe-95d2-710c6da55cb3", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-github-api-issues-311-reactions", + "requiredScenarioState": "scenario-1-repos-github-api-github-api-issues-311-reactions-3", + "newScenarioState": "scenario-1-repos-github-api-github-api-issues-311-reactions-4", + "insertionIndex": 12 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311_reactions-4-4abb0b.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311_reactions-17-e6be4f.json similarity index 71% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311_reactions-4-4abb0b.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311_reactions-17-e6be4f.json index f0ea68e4d1..db89163b85 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311_reactions-4-4abb0b.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311_reactions-17-e6be4f.json @@ -1,5 +1,5 @@ { - "id": "4abb0b9d-6883-4156-9111-86ec994328df", + "id": "e6be4fe8-bb46-418f-bd08-dba996ef250c", "name": "repos_github-api_github-api_issues_311_reactions", "request": { "url": "/repos/github-api/github-api/issues/311/reactions", @@ -12,21 +12,21 @@ }, "response": { "status": 200, - "bodyFileName": "repos_github-api_github-api_issues_311_reactions-4abb0b9d-6883-4156-9111-86ec994328df.json", + "bodyFileName": "repos_github-api_github-api_issues_311_reactions-e6be4fe8-bb46-418f-bd08-dba996ef250c.json", "headers": { - "Date": "Sat, 26 Oct 2019 01:27:42 GMT", + "Date": "Sun, 23 Feb 2020 03:15:59 GMT", "Content-Type": "application/json; charset=utf-8", "Server": "GitHub.com", "Status": "200 OK", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4410", - "X-RateLimit-Reset": "1572055286", + "X-RateLimit-Remaining": "4876", + "X-RateLimit-Reset": "1582428789", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding" + "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"121462c6df4333753c2e424ec1b757e9\"", + "ETag": "W/\"17896e19dfa86d3946ff4a8c47200920\"", "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", "X-Accepted-OAuth-Scopes": "repo", "X-GitHub-Media-Type": "github.squirrel-girl-preview; format=json", @@ -38,10 +38,12 @@ "X-XSS-Protection": "1; mode=block", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "CAAC:45A6:ED5191:1180A11:5DB3A10E" + "X-GitHub-Request-Id": "C701:8993:A68F04:C0D7BB:5E51EE6E" } }, - "uuid": "4abb0b9d-6883-4156-9111-86ec994328df", + "uuid": "e6be4fe8-bb46-418f-bd08-dba996ef250c", "persistent": true, - "insertionIndex": 4 + "scenarioName": "scenario-1-repos-github-api-github-api-issues-311-reactions", + "requiredScenarioState": "scenario-1-repos-github-api-github-api-issues-311-reactions-4", + "insertionIndex": 17 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311_reactions-4-a94639.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311_reactions-4-a94639.json new file mode 100644 index 0000000000..7512de8199 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311_reactions-4-a94639.json @@ -0,0 +1,50 @@ +{ + "id": "a94639e7-cb76-4ea2-a6a2-8d9a5642f3ec", + "name": "repos_github-api_github-api_issues_311_reactions", + "request": { + "url": "/repos/github-api/github-api/issues/311/reactions", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.squirrel-girl-preview+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api_github-api_issues_311_reactions-a94639e7-cb76-4ea2-a6a2-8d9a5642f3ec.json", + "headers": { + "Date": "Sun, 23 Feb 2020 03:15:54 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4889", + "X-RateLimit-Reset": "1582428788", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"17896e19dfa86d3946ff4a8c47200920\"", + "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "github.squirrel-girl-preview; format=json", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "C701:8993:A68E0B:C0D69D:5E51EE6A" + } + }, + "uuid": "a94639e7-cb76-4ea2-a6a2-8d9a5642f3ec", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-github-api-issues-311-reactions", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-1-repos-github-api-github-api-issues-311-reactions-2", + "insertionIndex": 4 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311_reactions-5-031252.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311_reactions-5-dfcc4b.json similarity index 79% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311_reactions-5-031252.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311_reactions-5-dfcc4b.json index e0c5f52b3b..4f8885a4f1 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311_reactions-5-031252.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311_reactions-5-dfcc4b.json @@ -1,39 +1,39 @@ { - "id": "03125293-7da8-4da4-8d53-38060ef25daa", + "id": "dfcc4bc3-3276-408a-a945-e132d4fbf2e5", "name": "repos_github-api_github-api_issues_311_reactions", "request": { "url": "/repos/github-api/github-api/issues/311/reactions", "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.squirrel-girl-preview+json" + } + }, "bodyPatterns": [ { "equalToJson": "{\"content\":\"hooray\"}", "ignoreArrayOrder": true, "ignoreExtraElements": true } - ], - "headers": { - "Accept": { - "equalTo": "application/vnd.github.squirrel-girl-preview+json" - } - } + ] }, "response": { "status": 201, - "bodyFileName": "repos_github-api_github-api_issues_311_reactions-03125293-7da8-4da4-8d53-38060ef25daa.json", + "bodyFileName": "repos_github-api_github-api_issues_311_reactions-dfcc4bc3-3276-408a-a945-e132d4fbf2e5.json", "headers": { - "Date": "Sat, 26 Oct 2019 01:27:43 GMT", + "Date": "Sun, 23 Feb 2020 03:15:55 GMT", "Content-Type": "application/json; charset=utf-8", "Server": "GitHub.com", "Status": "201 Created", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4409", - "X-RateLimit-Reset": "1572055286", + "X-RateLimit-Remaining": "4888", + "X-RateLimit-Reset": "1582428789", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding" + "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "\"114f64d23a30418378801432528d6961\"", + "ETag": "\"cdc7e73cd4d47876aae737d967949ff5\"", "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", "X-Accepted-OAuth-Scopes": "", "X-GitHub-Media-Type": "github.squirrel-girl-preview; format=json", @@ -45,10 +45,10 @@ "X-XSS-Protection": "1; mode=block", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "CAAC:45A6:ED51AC:1180A3B:5DB3A10E" + "X-GitHub-Request-Id": "C701:8993:A68E18:C0D6AF:5E51EE6A" } }, - "uuid": "03125293-7da8-4da4-8d53-38060ef25daa", + "uuid": "dfcc4bc3-3276-408a-a945-e132d4fbf2e5", "persistent": true, "insertionIndex": 5 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311_reactions-7-39f59d.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311_reactions-7-39f59d.json new file mode 100644 index 0000000000..d291928c21 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311_reactions-7-39f59d.json @@ -0,0 +1,50 @@ +{ + "id": "39f59d4e-7875-4b75-a093-97a0b4e7239b", + "name": "repos_github-api_github-api_issues_311_reactions", + "request": { + "url": "/repos/github-api/github-api/issues/311/reactions", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.squirrel-girl-preview+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api_github-api_issues_311_reactions-39f59d4e-7875-4b75-a093-97a0b4e7239b.json", + "headers": { + "Date": "Sun, 23 Feb 2020 03:15:55 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4886", + "X-RateLimit-Reset": "1582428788", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"17896e19dfa86d3946ff4a8c47200920\"", + "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "github.squirrel-girl-preview; format=json", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "C701:8993:A68E33:C0D6CD:5E51EE6B" + } + }, + "uuid": "39f59d4e-7875-4b75-a093-97a0b4e7239b", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-github-api-issues-311-reactions", + "requiredScenarioState": "scenario-1-repos-github-api-github-api-issues-311-reactions-2", + "newScenarioState": "scenario-1-repos-github-api-github-api-issues-311-reactions-3", + "insertionIndex": 7 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311_reactions-8-d9de82.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311_reactions-8-d9de82.json new file mode 100644 index 0000000000..1bc824d3f6 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311_reactions-8-d9de82.json @@ -0,0 +1,54 @@ +{ + "id": "d9de8255-dcbc-409d-b311-b7824a3ddeb6", + "name": "repos_github-api_github-api_issues_311_reactions", + "request": { + "url": "/repos/github-api/github-api/issues/311/reactions", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.squirrel-girl-preview+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"content\":\"+1\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_github-api_github-api_issues_311_reactions-d9de8255-dcbc-409d-b311-b7824a3ddeb6.json", + "headers": { + "Date": "Sun, 23 Feb 2020 03:15:55 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "201 Created", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4885", + "X-RateLimit-Reset": "1582428788", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "\"6830982bf9c6904a3f72d80ecc83fbaa\"", + "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.squirrel-girl-preview; format=json", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "C701:8993:A68E43:C0D6DC:5E51EE6B" + } + }, + "uuid": "d9de8255-dcbc-409d-b311-b7824a3ddeb6", + "persistent": true, + "insertionIndex": 8 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311_reactions-9-9904f1.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311_reactions-9-9904f1.json new file mode 100644 index 0000000000..0eef3987e8 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_github-api_github-api_issues_311_reactions-9-9904f1.json @@ -0,0 +1,54 @@ +{ + "id": "9904f18c-def2-4249-b64c-956a2d12f2bd", + "name": "repos_github-api_github-api_issues_311_reactions", + "request": { + "url": "/repos/github-api/github-api/issues/311/reactions", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.squirrel-girl-preview+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"content\":\"confused\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_github-api_github-api_issues_311_reactions-9904f18c-def2-4249-b64c-956a2d12f2bd.json", + "headers": { + "Date": "Sun, 23 Feb 2020 03:15:56 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "201 Created", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4884", + "X-RateLimit-Reset": "1582428789", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "\"dd432412a55d48e08377920b04f443c5\"", + "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.squirrel-girl-preview; format=json", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "C701:8993:A68E5A:C0D6EE:5E51EE6B" + } + }, + "uuid": "9904f18c-def2-4249-b64c-956a2d12f2bd", + "persistent": true, + "insertionIndex": 9 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/user-1-b7deb8.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/user-1-d9a254.json similarity index 73% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/user-1-b7deb8.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/user-1-d9a254.json index 7c5a0e030a..ae8e42e37e 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/user-1-b7deb8.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/user-1-d9a254.json @@ -1,5 +1,5 @@ { - "id": "b7deb8d4-d53a-4dd5-8ab8-f0bf4f7bfb9e", + "id": "d9a254e0-d5e1-4fd9-b995-51e933b769f3", "name": "user", "request": { "url": "/user", @@ -12,22 +12,22 @@ }, "response": { "status": 200, - "bodyFileName": "user-b7deb8d4-d53a-4dd5-8ab8-f0bf4f7bfb9e.json", + "bodyFileName": "user-d9a254e0-d5e1-4fd9-b995-51e933b769f3.json", "headers": { - "Date": "Sat, 26 Oct 2019 01:27:41 GMT", + "Date": "Sun, 23 Feb 2020 03:15:53 GMT", "Content-Type": "application/json; charset=utf-8", "Server": "GitHub.com", "Status": "200 OK", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4414", - "X-RateLimit-Reset": "1572055286", + "X-RateLimit-Remaining": "4893", + "X-RateLimit-Reset": "1582428788", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding" + "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"8c3d3dcf6fc5f9edaf26c902295396e5\"", - "Last-Modified": "Tue, 24 Sep 2019 19:32:29 GMT", + "ETag": "W/\"9ba78fe3aeaabbbc6865aada56195a20\"", + "Last-Modified": "Fri, 21 Feb 2020 20:59:33 GMT", "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", "X-Accepted-OAuth-Scopes": "", "X-GitHub-Media-Type": "unknown, github.v3", @@ -39,10 +39,10 @@ "X-XSS-Protection": "1; mode=block", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "CAAC:45A6:ED5124:11809A1:5DB3A10D" + "X-GitHub-Request-Id": "C701:8993:A68DC2:C0D644:5E51EE69" } }, - "uuid": "b7deb8d4-d53a-4dd5-8ab8-f0bf4f7bfb9e", + "uuid": "d9a254e0-d5e1-4fd9-b995-51e933b769f3", "persistent": true, "insertionIndex": 1 } \ No newline at end of file