Skip to content

Commit b2d1420

Browse files
committed
More code coverage
1 parent 0489b31 commit b2d1420

25 files changed

+69
-50
lines changed

src/test/java/org/kohsuke/github/AppTest.java

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,16 +1005,23 @@ public void tryHook() throws Exception {
10051005
public void testEventApi() throws Exception {
10061006
for (GHEventInfo ev : gitHub.getEvents()) {
10071007
if (ev.getType() == GHEvent.PULL_REQUEST) {
1008+
GHEventPayload.PullRequest pr = ev.getPayload(GHEventPayload.PullRequest.class);
1009+
assertThat(pr.getNumber(), is(pr.getPullRequest().getNumber()));
1010+
1011+
assertThat(pr.getPullRequest().getClosedBy(), nullValue());
1012+
assertThat(pr.getPullRequest().getPullRequest(), nullValue());
1013+
10081014
if (ev.getId() == 10680625394L) {
10091015
assertThat(ev.getActorLogin(), equalTo("pull[bot]"));
10101016
assertThat(ev.getOrganization(), nullValue());
10111017
assertThat(ev.getRepository().getFullName(), equalTo("daddyfatstacksBIG/lerna"));
10121018
assertThat(ev.getCreatedAt(), equalTo(GitHubClient.parseInstant("2019-10-21T21:54:52Z")));
10131019
assertThat(ev.getType(), equalTo(GHEvent.PULL_REQUEST));
1020+
assertThat(pr.getPullRequest().getMergedAt(),
1021+
equalTo(GitHubClient.parseInstant("2019-10-21T21:54:52Z")));
1022+
assertThat(pr.getPullRequest().getPatchUrl().toString(), endsWith("lerna/pull/20.patch"));
1023+
assertThat(pr.getPullRequest().getDiffUrl().toString(), endsWith("lerna/pull/20.diff"));
10141024
}
1015-
1016-
GHEventPayload.PullRequest pr = ev.getPayload(GHEventPayload.PullRequest.class);
1017-
assertThat(pr.getNumber(), is(pr.getPullRequest().getNumber()));
10181025
}
10191026
}
10201027
}
@@ -1040,6 +1047,14 @@ public void testUserPublicEventApi() throws Exception {
10401047
GHEventPayload.PullRequest pr = ev.getPayload(GHEventPayload.PullRequest.class);
10411048
assertThat(pr.getNumber(), is(pr.getPullRequest().getNumber()));
10421049
}
1050+
if (ev.getType() == GHEvent.PULL_REQUEST_REVIEW) {
1051+
if (ev.getId() == 27468578706L) {
1052+
GHEventPayload.PullRequestReview prr = ev.getPayload(GHEventPayload.PullRequestReview.class);
1053+
assertThat(prr.getReview().getSubmittedAt(),
1054+
equalTo(GitHubClient.parseInstant("2023-03-03T10:51:48Z")));
1055+
assertThat(prr.getReview().getCreatedAt(), equalTo(prr.getReview().getSubmittedAt()));
1056+
}
1057+
}
10431058
}
10441059
}
10451060

@@ -1674,7 +1689,7 @@ public void testSubscribers() throws IOException {
16741689
@Test
16751690
public void notifications() throws Exception {
16761691
boolean found = false;
1677-
for (GHThread t : gitHub.listNotifications().nonBlocking(true).read(true)) {
1692+
for (GHThread t : gitHub.listNotifications().since(0).nonBlocking(true).read(true)) {
16781693
if (!found) {
16791694
found = true;
16801695
// both read and unread are included

src/test/java/org/kohsuke/github/RepositoryTrafficTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
import java.util.Iterator;
1010
import java.util.List;
1111

12+
import static org.hamcrest.CoreMatchers.equalTo;
13+
1214
// TODO: Auto-generated Javadoc
1315
/**
1416
* The Class RepositoryTrafficTest.
@@ -95,6 +97,8 @@ public void testGetClones() throws IOException {
9597
snapshotNotAllowed();
9698

9799
GHRepository repository = getRepository(gitHub);
100+
assertThat(repository.getPushedAt(), equalTo(GitHubClient.parseInstant("2020-02-21T21:17:31Z")));
101+
98102
GHRepositoryCloneTraffic clones = repository.getCloneTraffic();
99103

100104
GHRepositoryCloneTraffic expectedResult = new GHRepositoryCloneTraffic(128,

src/test/resources/org/kohsuke/github/AppTest/wiremock/notifications/mappings/10-notifications.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "a979348d-c6be-4cb7-8877-7c42a6f013ae",
33
"name": "notifications",
44
"request": {
5-
"url": "/notifications?all=true&page=9",
5+
"url": "/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=9",
66
"method": "GET",
77
"headers": {
88
"Accept": {
@@ -41,7 +41,7 @@
4141
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
4242
"Content-Security-Policy": "default-src 'none'",
4343
"X-GitHub-Request-Id": "CB13:833E:A1F628:BFE1F0:5DB3A14D",
44-
"Link": "<https://api.github.com/notifications?all=true&page=8>; rel=\"prev\", <https://api.github.com/notifications?all=true&page=10>; rel=\"next\", <https://api.github.com/notifications?all=true&page=23>; rel=\"last\", <https://api.github.com/notifications?all=true&page=1>; rel=\"first\""
44+
"Link": "<https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=8>; rel=\"prev\", <https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=10>; rel=\"next\", <https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=23>; rel=\"last\", <https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=1>; rel=\"first\""
4545
}
4646
},
4747
"uuid": "a979348d-c6be-4cb7-8877-7c42a6f013ae",

src/test/resources/org/kohsuke/github/AppTest/wiremock/notifications/mappings/11-notifications.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "89714ed3-235b-4914-86a8-44ad66d59f30",
33
"name": "notifications",
44
"request": {
5-
"url": "/notifications?all=true&page=10",
5+
"url": "/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=10",
66
"method": "GET",
77
"headers": {
88
"Accept": {
@@ -41,7 +41,7 @@
4141
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
4242
"Content-Security-Policy": "default-src 'none'",
4343
"X-GitHub-Request-Id": "CB13:833E:A1F646:BFE217:5DB3A14D",
44-
"Link": "<https://api.github.com/notifications?all=true&page=9>; rel=\"prev\", <https://api.github.com/notifications?all=true&page=11>; rel=\"next\", <https://api.github.com/notifications?all=true&page=23>; rel=\"last\", <https://api.github.com/notifications?all=true&page=1>; rel=\"first\""
44+
"Link": "<https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=9>; rel=\"prev\", <https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=11>; rel=\"next\", <https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=23>; rel=\"last\", <https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=1>; rel=\"first\""
4545
}
4646
},
4747
"uuid": "89714ed3-235b-4914-86a8-44ad66d59f30",

src/test/resources/org/kohsuke/github/AppTest/wiremock/notifications/mappings/12-notifications.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "2b718339-36d3-4c6b-9484-79cdd79a79e4",
33
"name": "notifications",
44
"request": {
5-
"url": "/notifications?all=true&page=11",
5+
"url": "/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=11",
66
"method": "GET",
77
"headers": {
88
"Accept": {
@@ -41,7 +41,7 @@
4141
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
4242
"Content-Security-Policy": "default-src 'none'",
4343
"X-GitHub-Request-Id": "CB13:833E:A1F657:BFE22B:5DB3A14D",
44-
"Link": "<https://api.github.com/notifications?all=true&page=10>; rel=\"prev\", <https://api.github.com/notifications?all=true&page=12>; rel=\"next\", <https://api.github.com/notifications?all=true&page=23>; rel=\"last\", <https://api.github.com/notifications?all=true&page=1>; rel=\"first\""
44+
"Link": "<https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=10>; rel=\"prev\", <https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=12>; rel=\"next\", <https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=23>; rel=\"last\", <https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=1>; rel=\"first\""
4545
}
4646
},
4747
"uuid": "2b718339-36d3-4c6b-9484-79cdd79a79e4",

src/test/resources/org/kohsuke/github/AppTest/wiremock/notifications/mappings/13-notifications.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "989db4b3-8dde-4065-b4ef-6a2d90a2753a",
33
"name": "notifications",
44
"request": {
5-
"url": "/notifications?all=true&page=12",
5+
"url": "/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=12",
66
"method": "GET",
77
"headers": {
88
"Accept": {
@@ -41,7 +41,7 @@
4141
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
4242
"Content-Security-Policy": "default-src 'none'",
4343
"X-GitHub-Request-Id": "CB13:833E:A1F661:BFE238:5DB3A14E",
44-
"Link": "<https://api.github.com/notifications?all=true&page=11>; rel=\"prev\", <https://api.github.com/notifications?all=true&page=13>; rel=\"next\", <https://api.github.com/notifications?all=true&page=23>; rel=\"last\", <https://api.github.com/notifications?all=true&page=1>; rel=\"first\""
44+
"Link": "<https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=11>; rel=\"prev\", <https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=13>; rel=\"next\", <https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=23>; rel=\"last\", <https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=1>; rel=\"first\""
4545
}
4646
},
4747
"uuid": "989db4b3-8dde-4065-b4ef-6a2d90a2753a",

src/test/resources/org/kohsuke/github/AppTest/wiremock/notifications/mappings/14-notifications.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "50b907ef-a983-4cc9-bfd2-e2ba76eae729",
33
"name": "notifications",
44
"request": {
5-
"url": "/notifications?all=true&page=13",
5+
"url": "/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=13",
66
"method": "GET",
77
"headers": {
88
"Accept": {
@@ -41,7 +41,7 @@
4141
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
4242
"Content-Security-Policy": "default-src 'none'",
4343
"X-GitHub-Request-Id": "CB13:833E:A1F66D:BFE242:5DB3A14E",
44-
"Link": "<https://api.github.com/notifications?all=true&page=12>; rel=\"prev\", <https://api.github.com/notifications?all=true&page=14>; rel=\"next\", <https://api.github.com/notifications?all=true&page=23>; rel=\"last\", <https://api.github.com/notifications?all=true&page=1>; rel=\"first\""
44+
"Link": "<https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=12>; rel=\"prev\", <https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=14>; rel=\"next\", <https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=23>; rel=\"last\", <https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=1>; rel=\"first\""
4545
}
4646
},
4747
"uuid": "50b907ef-a983-4cc9-bfd2-e2ba76eae729",

src/test/resources/org/kohsuke/github/AppTest/wiremock/notifications/mappings/15-notifications.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "f2648b73-4af1-4be3-a2a4-9edc712c5d59",
33
"name": "notifications",
44
"request": {
5-
"url": "/notifications?all=true&page=14",
5+
"url": "/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=14",
66
"method": "GET",
77
"headers": {
88
"Accept": {
@@ -41,7 +41,7 @@
4141
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
4242
"Content-Security-Policy": "default-src 'none'",
4343
"X-GitHub-Request-Id": "CB13:833E:A1F679:BFE254:5DB3A14E",
44-
"Link": "<https://api.github.com/notifications?all=true&page=13>; rel=\"prev\", <https://api.github.com/notifications?all=true&page=15>; rel=\"next\", <https://api.github.com/notifications?all=true&page=23>; rel=\"last\", <https://api.github.com/notifications?all=true&page=1>; rel=\"first\""
44+
"Link": "<https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=13>; rel=\"prev\", <https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=15>; rel=\"next\", <https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=23>; rel=\"last\", <https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=1>; rel=\"first\""
4545
}
4646
},
4747
"uuid": "f2648b73-4af1-4be3-a2a4-9edc712c5d59",

src/test/resources/org/kohsuke/github/AppTest/wiremock/notifications/mappings/16-notifications.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "ee5a6c9f-da3a-47e7-a393-b403e82ae5d9",
33
"name": "notifications",
44
"request": {
5-
"url": "/notifications?all=true&page=15",
5+
"url": "/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=15",
66
"method": "GET",
77
"headers": {
88
"Accept": {
@@ -41,7 +41,7 @@
4141
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
4242
"Content-Security-Policy": "default-src 'none'",
4343
"X-GitHub-Request-Id": "CB13:833E:A1F689:BFE266:5DB3A14E",
44-
"Link": "<https://api.github.com/notifications?all=true&page=14>; rel=\"prev\", <https://api.github.com/notifications?all=true&page=16>; rel=\"next\", <https://api.github.com/notifications?all=true&page=23>; rel=\"last\", <https://api.github.com/notifications?all=true&page=1>; rel=\"first\""
44+
"Link": "<https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=14>; rel=\"prev\", <https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=16>; rel=\"next\", <https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=23>; rel=\"last\", <https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=1>; rel=\"first\""
4545
}
4646
},
4747
"uuid": "ee5a6c9f-da3a-47e7-a393-b403e82ae5d9",

src/test/resources/org/kohsuke/github/AppTest/wiremock/notifications/mappings/17-notifications.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "a41aeecf-7097-4ac6-b857-ab14797afe0a",
33
"name": "notifications",
44
"request": {
5-
"url": "/notifications?all=true&page=16",
5+
"url": "/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=16",
66
"method": "GET",
77
"headers": {
88
"Accept": {
@@ -41,7 +41,7 @@
4141
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
4242
"Content-Security-Policy": "default-src 'none'",
4343
"X-GitHub-Request-Id": "CB13:833E:A1F69E:BFE27A:5DB3A14F",
44-
"Link": "<https://api.github.com/notifications?all=true&page=15>; rel=\"prev\", <https://api.github.com/notifications?all=true&page=17>; rel=\"next\", <https://api.github.com/notifications?all=true&page=23>; rel=\"last\", <https://api.github.com/notifications?all=true&page=1>; rel=\"first\""
44+
"Link": "<https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=15>; rel=\"prev\", <https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=17>; rel=\"next\", <https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=23>; rel=\"last\", <https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=1>; rel=\"first\""
4545
}
4646
},
4747
"uuid": "a41aeecf-7097-4ac6-b857-ab14797afe0a",

src/test/resources/org/kohsuke/github/AppTest/wiremock/notifications/mappings/18-notifications.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "e1d519f7-9bd2-4fcd-a288-2391944ec7ca",
33
"name": "notifications",
44
"request": {
5-
"url": "/notifications?all=true&page=17",
5+
"url": "/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=17",
66
"method": "GET",
77
"headers": {
88
"Accept": {
@@ -41,7 +41,7 @@
4141
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
4242
"Content-Security-Policy": "default-src 'none'",
4343
"X-GitHub-Request-Id": "CB13:833E:A1F6B4:BFE291:5DB3A14F",
44-
"Link": "<https://api.github.com/notifications?all=true&page=16>; rel=\"prev\", <https://api.github.com/notifications?all=true&page=18>; rel=\"next\", <https://api.github.com/notifications?all=true&page=23>; rel=\"last\", <https://api.github.com/notifications?all=true&page=1>; rel=\"first\""
44+
"Link": "<https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=16>; rel=\"prev\", <https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=18>; rel=\"next\", <https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=23>; rel=\"last\", <https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=1>; rel=\"first\""
4545
}
4646
},
4747
"uuid": "e1d519f7-9bd2-4fcd-a288-2391944ec7ca",

src/test/resources/org/kohsuke/github/AppTest/wiremock/notifications/mappings/19-notifications.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "1b694852-8043-418c-a76e-39370f22db96",
33
"name": "notifications",
44
"request": {
5-
"url": "/notifications?all=true&page=18",
5+
"url": "/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=18",
66
"method": "GET",
77
"headers": {
88
"Accept": {
@@ -41,7 +41,7 @@
4141
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
4242
"Content-Security-Policy": "default-src 'none'",
4343
"X-GitHub-Request-Id": "CB13:833E:A1F6CA:BFE2B2:5DB3A14F",
44-
"Link": "<https://api.github.com/notifications?all=true&page=17>; rel=\"prev\", <https://api.github.com/notifications?all=true&page=19>; rel=\"next\", <https://api.github.com/notifications?all=true&page=23>; rel=\"last\", <https://api.github.com/notifications?all=true&page=1>; rel=\"first\""
44+
"Link": "<https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=17>; rel=\"prev\", <https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=19>; rel=\"next\", <https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=23>; rel=\"last\", <https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=1>; rel=\"first\""
4545
}
4646
},
4747
"uuid": "1b694852-8043-418c-a76e-39370f22db96",

src/test/resources/org/kohsuke/github/AppTest/wiremock/notifications/mappings/2-notifications.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "d85867b0-1efe-43f5-bdf4-1b9aef03ef55",
33
"name": "notifications",
44
"request": {
5-
"url": "/notifications?all=true",
5+
"url": "/notifications?all=true&since=1970-01-01T00%3A00%3A00Z",
66
"method": "GET",
77
"headers": {
88
"Accept": {
@@ -41,7 +41,7 @@
4141
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
4242
"Content-Security-Policy": "default-src 'none'",
4343
"X-GitHub-Request-Id": "CB13:833E:A1F5C2:BFE16E:5DB3A14B",
44-
"Link": "<https://api.github.com/notifications?all=true&page=2>; rel=\"next\", <https://api.github.com/notifications?all=true&page=23>; rel=\"last\""
44+
"Link": "<https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=2>; rel=\"next\", <https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=23>; rel=\"last\""
4545
}
4646
},
4747
"uuid": "d85867b0-1efe-43f5-bdf4-1b9aef03ef55",

src/test/resources/org/kohsuke/github/AppTest/wiremock/notifications/mappings/20-notifications.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "48908278-ce2f-4cec-8662-6f4ca3d81226",
33
"name": "notifications",
44
"request": {
5-
"url": "/notifications?all=true&page=19",
5+
"url": "/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=19",
66
"method": "GET",
77
"headers": {
88
"Accept": {
@@ -41,7 +41,7 @@
4141
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
4242
"Content-Security-Policy": "default-src 'none'",
4343
"X-GitHub-Request-Id": "CB13:833E:A1F6E4:BFE2D4:5DB3A150",
44-
"Link": "<https://api.github.com/notifications?all=true&page=18>; rel=\"prev\", <https://api.github.com/notifications?all=true&page=20>; rel=\"next\", <https://api.github.com/notifications?all=true&page=23>; rel=\"last\", <https://api.github.com/notifications?all=true&page=1>; rel=\"first\""
44+
"Link": "<https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=18>; rel=\"prev\", <https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=20>; rel=\"next\", <https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=23>; rel=\"last\", <https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=1>; rel=\"first\""
4545
}
4646
},
4747
"uuid": "48908278-ce2f-4cec-8662-6f4ca3d81226",

src/test/resources/org/kohsuke/github/AppTest/wiremock/notifications/mappings/21-notifications.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "42be6527-0570-4353-b42f-d0cae80258e3",
33
"name": "notifications",
44
"request": {
5-
"url": "/notifications?all=true&page=20",
5+
"url": "/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=20",
66
"method": "GET",
77
"headers": {
88
"Accept": {
@@ -41,7 +41,7 @@
4141
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
4242
"Content-Security-Policy": "default-src 'none'",
4343
"X-GitHub-Request-Id": "CB13:833E:A1F70C:BFE300:5DB3A150",
44-
"Link": "<https://api.github.com/notifications?all=true&page=19>; rel=\"prev\", <https://api.github.com/notifications?all=true&page=21>; rel=\"next\", <https://api.github.com/notifications?all=true&page=23>; rel=\"last\", <https://api.github.com/notifications?all=true&page=1>; rel=\"first\""
44+
"Link": "<https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=19>; rel=\"prev\", <https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=21>; rel=\"next\", <https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=23>; rel=\"last\", <https://api.github.com/notifications?all=true&since=1970-01-01T00%3A00%3A00Z&page=1>; rel=\"first\""
4545
}
4646
},
4747
"uuid": "42be6527-0570-4353-b42f-d0cae80258e3",

0 commit comments

Comments
 (0)