Skip to content

Commit 260ae86

Browse files
committed
Verify changes produce reasonable output
1 parent 33a99aa commit 260ae86

13 files changed

+189
-169
lines changed

src/test/resources/org/kohsuke/github/AppTest/wiremock/testCommit/__files/repos_jenkinsci_jenkins-3.json

Lines changed: 34 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"login": "jenkinsci",
99
"id": 107424,
1010
"node_id": "MDEyOk9yZ2FuaXphdGlvbjEwNzQyNA==",
11-
"avatar_url": "https://avatars0.githubusercontent.com/u/107424?v=4",
11+
"avatar_url": "https://avatars.githubusercontent.com/u/107424?v=4",
1212
"gravatar_id": "",
1313
"url": "https://api.github.com/users/jenkinsci",
1414
"html_url": "https://github.com/jenkinsci",
@@ -65,48 +65,66 @@
6565
"releases_url": "https://api.github.com/repos/jenkinsci/jenkins/releases{/id}",
6666
"deployments_url": "https://api.github.com/repos/jenkinsci/jenkins/deployments",
6767
"created_at": "2010-11-22T21:21:23Z",
68-
"updated_at": "2019-10-26T01:07:22Z",
69-
"pushed_at": "2019-10-25T16:17:56Z",
68+
"updated_at": "2021-11-08T02:22:33Z",
69+
"pushed_at": "2021-11-07T15:18:52Z",
7070
"git_url": "git://github.com/jenkinsci/jenkins.git",
7171
"ssh_url": "[email protected]:jenkinsci/jenkins.git",
7272
"clone_url": "https://github.com/jenkinsci/jenkins.git",
7373
"svn_url": "https://github.com/jenkinsci/jenkins",
74-
"homepage": "https://jenkins.io/",
75-
"size": 113287,
76-
"stargazers_count": 14167,
77-
"watchers_count": 14167,
74+
"homepage": "https://www.jenkins.io",
75+
"size": 132670,
76+
"stargazers_count": 18024,
77+
"watchers_count": 18024,
7878
"language": "Java",
7979
"has_issues": false,
8080
"has_projects": false,
8181
"has_downloads": false,
8282
"has_wiki": false,
8383
"has_pages": false,
84-
"forks_count": 5807,
84+
"forks_count": 7062,
8585
"mirror_url": null,
8686
"archived": false,
8787
"disabled": false,
88-
"open_issues_count": 74,
88+
"open_issues_count": 80,
8989
"license": {
9090
"key": "mit",
9191
"name": "MIT License",
9292
"spdx_id": "MIT",
9393
"url": "https://api.github.com/licenses/mit",
9494
"node_id": "MDc6TGljZW5zZTEz"
9595
},
96-
"forks": 5807,
97-
"open_issues": 74,
98-
"watchers": 14167,
99-
"default_branch": "main",
96+
"allow_forking": true,
97+
"is_template": false,
98+
"topics": [
99+
"cicd",
100+
"continuous-delivery",
101+
"continuous-deployment",
102+
"continuous-integration",
103+
"devops",
104+
"groovy",
105+
"hacktoberfest",
106+
"java",
107+
"jenkins",
108+
"pipelines-as-code"
109+
],
110+
"visibility": "public",
111+
"forks": 7062,
112+
"open_issues": 80,
113+
"watchers": 18024,
114+
"default_branch": "master",
100115
"permissions": {
101116
"admin": false,
117+
"maintain": false,
102118
"push": false,
119+
"triage": false,
103120
"pull": true
104121
},
122+
"temp_clone_token": "",
105123
"organization": {
106124
"login": "jenkinsci",
107125
"id": 107424,
108126
"node_id": "MDEyOk9yZ2FuaXphdGlvbjEwNzQyNA==",
109-
"avatar_url": "https://avatars0.githubusercontent.com/u/107424?v=4",
127+
"avatar_url": "https://avatars.githubusercontent.com/u/107424?v=4",
110128
"gravatar_id": "",
111129
"url": "https://api.github.com/users/jenkinsci",
112130
"html_url": "https://github.com/jenkinsci",
@@ -122,6 +140,6 @@
122140
"type": "Organization",
123141
"site_admin": false
124142
},
125-
"network_count": 5807,
126-
"subscribers_count": 902
143+
"network_count": 7062,
144+
"subscribers_count": 890
127145
}

src/test/resources/org/kohsuke/github/AppTest/wiremock/testCommit/__files/repos_jenkinsci_jenkins_commits_08c1c9970af4d609ae754fbe803e06186e3206f7-4.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"login": "kohsuke",
3434
"id": 50003,
3535
"node_id": "MDQ6VXNlcjUwMDAz",
36-
"avatar_url": "https://avatars1.githubusercontent.com/u/50003?v=4",
36+
"avatar_url": "https://avatars.githubusercontent.com/u/50003?v=4",
3737
"gravatar_id": "",
3838
"url": "https://api.github.com/users/kohsuke",
3939
"html_url": "https://github.com/kohsuke",
@@ -53,7 +53,7 @@
5353
"login": "kohsuke",
5454
"id": 50003,
5555
"node_id": "MDQ6VXNlcjUwMDAz",
56-
"avatar_url": "https://avatars1.githubusercontent.com/u/50003?v=4",
56+
"avatar_url": "https://avatars.githubusercontent.com/u/50003?v=4",
5757
"gravatar_id": "",
5858
"url": "https://api.github.com/users/kohsuke",
5959
"html_url": "https://github.com/kohsuke",

src/test/resources/org/kohsuke/github/AppTest/wiremock/testCommit/__files/repos_jenkinsci_jenkins_commits_e5463e3d53fdf74e917d63dc44ec60bab60a24d4-5.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"login": "kohsuke",
3434
"id": 50003,
3535
"node_id": "MDQ6VXNlcjUwMDAz",
36-
"avatar_url": "https://avatars1.githubusercontent.com/u/50003?v=4",
36+
"avatar_url": "https://avatars.githubusercontent.com/u/50003?v=4",
3737
"gravatar_id": "",
3838
"url": "https://api.github.com/users/kohsuke",
3939
"html_url": "https://github.com/kohsuke",
@@ -53,7 +53,7 @@
5353
"login": "kohsuke",
5454
"id": 50003,
5555
"node_id": "MDQ6VXNlcjUwMDAz",
56-
"avatar_url": "https://avatars1.githubusercontent.com/u/50003?v=4",
56+
"avatar_url": "https://avatars.githubusercontent.com/u/50003?v=4",
5757
"gravatar_id": "",
5858
"url": "https://api.github.com/users/kohsuke",
5959
"html_url": "https://github.com/kohsuke",

src/test/resources/org/kohsuke/github/AppTest/wiremock/testCommit/__files/user-1.json

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"login": "bitwiseman",
33
"id": 1958953,
44
"node_id": "MDQ6VXNlcjE5NTg5NTM=",
5-
"avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4",
5+
"avatar_url": "https://avatars.githubusercontent.com/u/1958953?v=4",
66
"gravatar_id": "",
77
"url": "https://api.github.com/users/bitwiseman",
88
"html_url": "https://github.com/bitwiseman",
@@ -23,17 +23,18 @@
2323
"location": "Seattle, WA, USA",
2424
"email": "[email protected]",
2525
"hireable": null,
26-
"bio": "https://twitter.com/bitwiseman",
27-
"public_repos": 169,
28-
"public_gists": 7,
29-
"followers": 139,
30-
"following": 9,
26+
"bio": null,
27+
"twitter_username": "bitwiseman",
28+
"public_repos": 212,
29+
"public_gists": 8,
30+
"followers": 204,
31+
"following": 12,
3132
"created_at": "2012-07-11T20:38:33Z",
32-
"updated_at": "2019-09-24T19:32:29Z",
33-
"private_gists": 7,
34-
"total_private_repos": 9,
33+
"updated_at": "2021-11-08T01:39:31Z",
34+
"private_gists": 19,
35+
"total_private_repos": 22,
3536
"owned_private_repos": 0,
36-
"disk_usage": 33697,
37+
"disk_usage": 33700,
3738
"collaborators": 0,
3839
"two_factor_authentication": true,
3940
"plan": {

src/test/resources/org/kohsuke/github/AppTest/wiremock/testCommit/__files/users_jenkinsci-2.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"login": "jenkinsci",
33
"id": 107424,
44
"node_id": "MDEyOk9yZ2FuaXphdGlvbjEwNzQyNA==",
5-
"avatar_url": "https://avatars0.githubusercontent.com/u/107424?v=4",
5+
"avatar_url": "https://avatars.githubusercontent.com/u/107424?v=4",
66
"gravatar_id": "",
77
"url": "https://api.github.com/users/jenkinsci",
88
"html_url": "https://github.com/jenkinsci",
@@ -24,10 +24,11 @@
2424
"email": "[email protected]",
2525
"hireable": null,
2626
"bio": "Jenkins is an open source automation server with an unparalleled plugin ecosystem to support practically every tool as part of your delivery pipelines",
27-
"public_repos": 2204,
27+
"twitter_username": "jenkinsci",
28+
"public_repos": 2424,
2829
"public_gists": 0,
2930
"followers": 0,
3031
"following": 0,
3132
"created_at": "2009-07-21T21:03:50Z",
32-
"updated_at": "2019-02-25T15:26:10Z"
33+
"updated_at": "2021-02-25T15:26:21Z"
3334
}
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"id": "f502af71-7b74-4106-a246-1728b2c761ec",
2+
"id": "43861b91-8f8e-459f-9943-e360bd0e8147",
33
"name": "repos_jenkinsci_jenkins",
44
"request": {
55
"url": "/repos/jenkinsci/jenkins",
@@ -14,35 +14,35 @@
1414
"status": 200,
1515
"bodyFileName": "repos_jenkinsci_jenkins-3.json",
1616
"headers": {
17-
"Date": "Sat, 26 Oct 2019 01:28:42 GMT",
18-
"Content-Type": "application/json; charset=utf-8",
1917
"Server": "GitHub.com",
20-
"Status": "200 OK",
21-
"X-RateLimit-Limit": "5000",
22-
"X-RateLimit-Remaining": "4288",
23-
"X-RateLimit-Reset": "1572055286",
18+
"Date": "Mon, 08 Nov 2021 03:25:42 GMT",
19+
"Content-Type": "application/json; charset=utf-8",
2420
"Cache-Control": "private, max-age=60, s-maxage=60",
2521
"Vary": [
2622
"Accept, Authorization, Cookie, X-GitHub-OTP",
27-
"Accept-Encoding"
23+
"Accept-Encoding, Accept, X-Requested-With"
2824
],
29-
"ETag": "W/\"bc93de689b79708d9501fd02bc1f7696\"",
30-
"Last-Modified": "Sat, 26 Oct 2019 01:07:22 GMT",
31-
"X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion",
25+
"ETag": "W/\"4401db34d390f31435924c44d14c8f008d47a1fc845133b0c07e07d27684a6f1\"",
26+
"Last-Modified": "Mon, 08 Nov 2021 02:22:33 GMT",
27+
"X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion",
3228
"X-Accepted-OAuth-Scopes": "repo",
33-
"X-GitHub-Media-Type": "unknown, github.v3",
34-
"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",
35-
"Access-Control-Allow-Origin": "*",
29+
"github-authentication-token-expiration": "2022-01-19 07:08:40 UTC",
30+
"X-GitHub-Media-Type": "github.v3; format=json",
31+
"X-RateLimit-Limit": "5000",
32+
"X-RateLimit-Remaining": "4987",
33+
"X-RateLimit-Reset": "1636345515",
34+
"X-RateLimit-Used": "13",
35+
"X-RateLimit-Resource": "core",
3636
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
3737
"X-Frame-Options": "deny",
3838
"X-Content-Type-Options": "nosniff",
39-
"X-XSS-Protection": "1; mode=block",
39+
"X-XSS-Protection": "0",
4040
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
4141
"Content-Security-Policy": "default-src 'none'",
42-
"X-GitHub-Request-Id": "CB0D:1CC2:1A23FD:1EF37A:5DB3A149"
42+
"X-GitHub-Request-Id": "D628:5914:1857195:19DC102:618898B6"
4343
}
4444
},
45-
"uuid": "f502af71-7b74-4106-a246-1728b2c761ec",
45+
"uuid": "43861b91-8f8e-459f-9943-e360bd0e8147",
4646
"persistent": true,
4747
"insertionIndex": 3
4848
}
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"id": "c46f8ba9-3382-4afd-95b4-5efe98749e1d",
2+
"id": "706a3cd4-b4cf-4098-b7e2-ee6709e7c5a6",
33
"name": "repos_jenkinsci_jenkins_commits_08c1c9970af4d609ae754fbe803e06186e3206f7",
44
"request": {
55
"url": "/repos/jenkinsci/jenkins/commits/08c1c9970af4d609ae754fbe803e06186e3206f7",
@@ -14,35 +14,35 @@
1414
"status": 200,
1515
"bodyFileName": "repos_jenkinsci_jenkins_commits_08c1c9970af4d609ae754fbe803e06186e3206f7-4.json",
1616
"headers": {
17-
"Date": "Sat, 26 Oct 2019 01:28:42 GMT",
18-
"Content-Type": "application/json; charset=utf-8",
1917
"Server": "GitHub.com",
20-
"Status": "200 OK",
21-
"X-RateLimit-Limit": "5000",
22-
"X-RateLimit-Remaining": "4287",
23-
"X-RateLimit-Reset": "1572055286",
18+
"Date": "Mon, 08 Nov 2021 03:25:42 GMT",
19+
"Content-Type": "application/json; charset=utf-8",
2420
"Cache-Control": "private, max-age=60, s-maxage=60",
2521
"Vary": [
2622
"Accept, Authorization, Cookie, X-GitHub-OTP",
27-
"Accept-Encoding"
23+
"Accept-Encoding, Accept, X-Requested-With"
2824
],
29-
"ETag": "W/\"cc8e7993a42bab15efbff39d175d0b10\"",
25+
"ETag": "W/\"95dd27206f72726a9ded63189ba601a73ecd2a04fc4272e6535c293bbaf41539\"",
3026
"Last-Modified": "Tue, 24 Apr 2012 00:16:52 GMT",
31-
"X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion",
27+
"X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion",
3228
"X-Accepted-OAuth-Scopes": "",
33-
"X-GitHub-Media-Type": "unknown, github.v3",
34-
"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",
35-
"Access-Control-Allow-Origin": "*",
29+
"github-authentication-token-expiration": "2022-01-19 07:08:40 UTC",
30+
"X-GitHub-Media-Type": "github.v3; format=json",
31+
"X-RateLimit-Limit": "5000",
32+
"X-RateLimit-Remaining": "4986",
33+
"X-RateLimit-Reset": "1636345515",
34+
"X-RateLimit-Used": "14",
35+
"X-RateLimit-Resource": "core",
3636
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
3737
"X-Frame-Options": "deny",
3838
"X-Content-Type-Options": "nosniff",
39-
"X-XSS-Protection": "1; mode=block",
39+
"X-XSS-Protection": "0",
4040
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
4141
"Content-Security-Policy": "default-src 'none'",
42-
"X-GitHub-Request-Id": "CB0D:1CC2:1A2400:1EF37E:5DB3A14A"
42+
"X-GitHub-Request-Id": "D62A:81AA:18094E:1E8DBE:618898B6"
4343
}
4444
},
45-
"uuid": "c46f8ba9-3382-4afd-95b4-5efe98749e1d",
45+
"uuid": "706a3cd4-b4cf-4098-b7e2-ee6709e7c5a6",
4646
"persistent": true,
4747
"insertionIndex": 4
4848
}
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"id": "8ff72064-9c69-42c5-b00f-8fd6d21af7f7",
2+
"id": "3ffce8cf-f91f-48ad-9f51-82e41de42f90",
33
"name": "repos_jenkinsci_jenkins_commits_e5463e3d53fdf74e917d63dc44ec60bab60a24d4",
44
"request": {
55
"url": "/repos/jenkinsci/jenkins/commits/e5463e3d53fdf74e917d63dc44ec60bab60a24d4",
@@ -14,35 +14,35 @@
1414
"status": 200,
1515
"bodyFileName": "repos_jenkinsci_jenkins_commits_e5463e3d53fdf74e917d63dc44ec60bab60a24d4-5.json",
1616
"headers": {
17-
"Date": "Sat, 26 Oct 2019 01:28:42 GMT",
18-
"Content-Type": "application/json; charset=utf-8",
1917
"Server": "GitHub.com",
20-
"Status": "200 OK",
21-
"X-RateLimit-Limit": "5000",
22-
"X-RateLimit-Remaining": "4286",
23-
"X-RateLimit-Reset": "1572055286",
18+
"Date": "Mon, 08 Nov 2021 03:25:43 GMT",
19+
"Content-Type": "application/json; charset=utf-8",
2420
"Cache-Control": "private, max-age=60, s-maxage=60",
2521
"Vary": [
2622
"Accept, Authorization, Cookie, X-GitHub-OTP",
27-
"Accept-Encoding"
23+
"Accept-Encoding, Accept, X-Requested-With"
2824
],
29-
"ETag": "W/\"96de82f912d65c05b4e1f392051a6c2a\"",
25+
"ETag": "W/\"ebc5e8f2474b688401866d62b0341b44d7f38c5383b05755b9be04f6f349873c\"",
3026
"Last-Modified": "Mon, 23 Apr 2012 22:32:43 GMT",
31-
"X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion",
27+
"X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion",
3228
"X-Accepted-OAuth-Scopes": "",
33-
"X-GitHub-Media-Type": "unknown, github.v3",
34-
"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",
35-
"Access-Control-Allow-Origin": "*",
29+
"github-authentication-token-expiration": "2022-01-19 07:08:40 UTC",
30+
"X-GitHub-Media-Type": "github.v3; format=json",
31+
"X-RateLimit-Limit": "5000",
32+
"X-RateLimit-Remaining": "4985",
33+
"X-RateLimit-Reset": "1636345515",
34+
"X-RateLimit-Used": "15",
35+
"X-RateLimit-Resource": "core",
3636
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
3737
"X-Frame-Options": "deny",
3838
"X-Content-Type-Options": "nosniff",
39-
"X-XSS-Protection": "1; mode=block",
39+
"X-XSS-Protection": "0",
4040
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
4141
"Content-Security-Policy": "default-src 'none'",
42-
"X-GitHub-Request-Id": "CB0D:1CC2:1A2403:1EF383:5DB3A14A"
42+
"X-GitHub-Request-Id": "D62C:7D72:1B2C13A:1CAFABE:618898B6"
4343
}
4444
},
45-
"uuid": "8ff72064-9c69-42c5-b00f-8fd6d21af7f7",
45+
"uuid": "3ffce8cf-f91f-48ad-9f51-82e41de42f90",
4646
"persistent": true,
4747
"insertionIndex": 5
4848
}

0 commit comments

Comments
 (0)