Skip to content

Commit 4734741

Browse files
committed
Revert "Drop still-unused test JSON files [JENKINS-61290, PR jenkinsci#284]"
This reverts commit d816c1a to do test the "branch not inspected" logging feature. Signed-off-by: Jim Klimov <[email protected]>
1 parent 16285a8 commit 4734741

8 files changed

+1253
-0
lines changed

src/test/resources/api/PRs/_files/body-yolo-pulls-open-pr-from-branch-226.json

Lines changed: 355 additions & 0 deletions
Large diffs are not rendered by default.

src/test/resources/api/PRs/_files/body-yolo-pulls-open-pr-from-branch-listing.json

Lines changed: 345 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
{
2+
"name": "hotfix/BUGID-123456",
3+
"commit": {
4+
"sha": "b2e9d15d8311409d1adaeb139eeac0a8b436f5d8",
5+
"node_id": "MDY6Q29tbWl0NzY0OTczNDA6YjJlOWQxNWQ4MzExNDA5ZDFhZGFlYjEzOWVlYWMwYThiNDM2ZjVkOA==",
6+
"commit": {
7+
"author": {
8+
"name": "Some Contributor",
9+
"email": "[email protected]",
10+
"date": "2018-02-26T13:27:01Z"
11+
},
12+
"committer": {
13+
"name": "GitHub",
14+
"email": "[email protected]",
15+
"date": "2018-02-26T13:27:01Z"
16+
},
17+
"message": "Quickly work around some problems",
18+
"tree": {
19+
"sha": "747f9b7dc5aa53ae1741caab8f8cb20a577c1c64",
20+
"url": "https://api.github.com/repos/cloudbeers/yolo/git/trees/747f9b7dc5aa53ae1741caab8f8cb20a577c1c64"
21+
},
22+
"url": "https://api.github.com/repos/cloudbeers/yolo/git/commits/b2e9d15d8311409d1adaeb139eeac0a8b436f5d8",
23+
"comment_count": 0,
24+
"verification": {
25+
"verified": true,
26+
"reason": "valid",
27+
"signature": "-----BEGIN PGP SIGNATURE-----\n\nPGP==HASH==\n-----END PGP SIGNATURE-----\n",
28+
"payload": "tree 747f9b7dc5aa53ae1741caab8f8cb20a577c1c64\nparent 097b9948c911c706638ffb9f8af8056c9a9872da\nparent 4f76402ef5bfed3f56b22c6705b5052ac3f92e87\nauthor Some Contributor <[email protected]> 1519651621 +0100\ncommitter GitHub <[email protected]> 1519651621 +0100\n\nQuickly work around some problems"
29+
}
30+
},
31+
"url": "https://api.github.com/repos/cloudbeers/yolo/commits/b2e9d15d8311409d1adaeb139eeac0a8b436f5d8",
32+
"html_url": "https://github.com/cloudbeers/yolo/commit/b2e9d15d8311409d1adaeb139eeac0a8b436f5d8",
33+
"comments_url": "https://api.github.com/repos/cloudbeers/yolo/commits/b2e9d15d8311409d1adaeb139eeac0a8b436f5d8/comments",
34+
"author": {
35+
"login": "somecontrib",
36+
"id": 209336,
37+
"node_id": "MDQ6VXNlcjE5Mzg3NDQx",
38+
"avatar_url": "https://avatars1.githubusercontent.com/u/209336?v=4",
39+
"gravatar_id": "",
40+
"url": "https://api.github.com/users/somecontrib",
41+
"html_url": "https://github.com/somecontrib",
42+
"followers_url": "https://api.github.com/users/somecontrib/followers",
43+
"following_url": "https://api.github.com/users/somecontrib/following{/other_user}",
44+
"gists_url": "https://api.github.com/users/somecontrib/gists{/gist_id}",
45+
"starred_url": "https://api.github.com/users/somecontrib/starred{/owner}{/repo}",
46+
"subscriptions_url": "https://api.github.com/users/somecontrib/subscriptions",
47+
"organizations_url": "https://api.github.com/users/somecontrib/orgs",
48+
"repos_url": "https://api.github.com/users/somecontrib/repos",
49+
"events_url": "https://api.github.com/users/somecontrib/events{/privacy}",
50+
"received_events_url": "https://api.github.com/users/somecontrib/received_events",
51+
"type": "User",
52+
"site_admin": false
53+
},
54+
"committer": {
55+
"login": "web-flow",
56+
"id": 19864447,
57+
"node_id": "MDQ6VXNlcjE5ODY0NDQ3",
58+
"avatar_url": "https://avatars3.githubusercontent.com/u/19864447?v=4",
59+
"gravatar_id": "",
60+
"url": "https://api.github.com/users/web-flow",
61+
"html_url": "https://github.com/web-flow",
62+
"followers_url": "https://api.github.com/users/web-flow/followers",
63+
"following_url": "https://api.github.com/users/web-flow/following{/other_user}",
64+
"gists_url": "https://api.github.com/users/web-flow/gists{/gist_id}",
65+
"starred_url": "https://api.github.com/users/web-flow/starred{/owner}{/repo}",
66+
"subscriptions_url": "https://api.github.com/users/web-flow/subscriptions",
67+
"organizations_url": "https://api.github.com/users/web-flow/orgs",
68+
"repos_url": "https://api.github.com/users/web-flow/repos",
69+
"events_url": "https://api.github.com/users/web-flow/events{/privacy}",
70+
"received_events_url": "https://api.github.com/users/web-flow/received_events",
71+
"type": "User",
72+
"site_admin": false
73+
},
74+
"parents": [
75+
{
76+
"sha": "097b9948c911c706638ffb9f8af8056c9a9872da",
77+
"url": "https://api.github.com/repos/cloudbeers/yolo/commits/097b9948c911c706638ffb9f8af8056c9a9872da",
78+
"html_url": "https://github.com/cloudbeers/yolo/commit/097b9948c911c706638ffb9f8af8056c9a9872da"
79+
},
80+
{
81+
"sha": "4f76402ef5bfed3f56b22c6705b5052ac3f92e87",
82+
"url": "https://api.github.com/repos/cloudbeers/yolo/commits/4f76402ef5bfed3f56b22c6705b5052ac3f92e87",
83+
"html_url": "https://github.com/cloudbeers/yolo/commit/4f76402ef5bfed3f56b22c6705b5052ac3f92e87"
84+
}
85+
]
86+
},
87+
"_links": {
88+
"self": "https://api.github.com/repos/cloudbeers/yolo/branches/hotfix/BUGID-123456",
89+
"html": "https://github.com/cloudbeers/yolo/tree/hotfix/BUGID-123456"
90+
},
91+
"protected": true,
92+
"protection": {
93+
"enabled": true,
94+
"required_status_checks": {
95+
"enforcement_level": "everyone",
96+
"contexts": [
97+
"continuous-integration/jenkins/pr-head",
98+
"continuous-integration/jenkins/pr-merge",
99+
"continuous-integration/travis-ci"
100+
]
101+
}
102+
},
103+
"protection_url": "https://api.github.com/repos/cloudbeers/yolo/branches/hotfix/BUGID-123456/protection"
104+
}
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
{
2+
"name": "release/version-132",
3+
"commit": {
4+
"sha": "a5223ef8db4f717400489f42007ef73c6ce6dab7",
5+
"node_id": "MDY6Q29tbWl0NzY0OTczNDA6YTUyMjNlZjhkYjRmNzE3NDAwNDg5ZjQyMDA3ZWY3M2M2Y2U2ZGFiNw==",
6+
"commit": {
7+
"author": {
8+
"name": "Release Manager",
9+
"email": "[email protected]",
10+
"date": "2018-09-19T13:14:30Z"
11+
},
12+
"committer": {
13+
"name": "GitHub",
14+
"email": "[email protected]",
15+
"date": "2018-09-19T13:14:30Z"
16+
},
17+
"message": "Merge pull request #145 from stephenc/branchRelease-backports",
18+
"tree": {
19+
"sha": "5f8e3d0f46ba4b071f543a921e34879b017ad479",
20+
"url": "https://api.github.com/repos/cloudbeers/yolo/git/trees/5f8e3d0f46ba4b071f543a921e34879b017ad479"
21+
},
22+
"url": "https://api.github.com/repos/cloudbeers/yolo/git/commits/a5223ef8db4f717400489f42007ef73c6ce6dab7",
23+
"comment_count": 0,
24+
"verification": {
25+
"verified": true,
26+
"reason": "valid",
27+
"signature": "-----BEGIN PGP SIGNATURE-----\n\nPGP=HASH==\n-----END PGP SIGNATURE-----\n",
28+
"payload": "tree 5f8e3d0f46ba4b071f543a921e34879b017ad479\nparent 2734e2ba489ce3b9fdba21e0ea1a7e2576ee9aeb\nparent 3d1abda5673d995df0278b6216b179156c30ff54\nauthor Release Manager <[email protected]> 1537362870 +0200\ncommitter GitHub <[email protected]> 1537362870 +0200\n\nMerge pull request #145 from stephenc/branchRelease-backports"
29+
}
30+
},
31+
"url": "https://api.github.com/repos/cloudbeers/yolo/commits/a5223ef8db4f717400489f42007ef73c6ce6dab7",
32+
"html_url": "https://github.com/cloudbeers/yolo/commit/a5223ef8db4f717400489f42007ef73c6ce6dab7",
33+
"comments_url": "https://api.github.com/repos/cloudbeers/yolo/commits/a5223ef8db4f717400489f42007ef73c6ce6dab7/comments",
34+
"author": {
35+
"login": "stephenc",
36+
"id": 209336,
37+
"node_id": "MDQ6VXNlcjkyMTE5Nw==",
38+
"avatar_url": "https://avatars1.githubusercontent.com/u/209336?v=4",
39+
"gravatar_id": "",
40+
"url": "https://api.github.com/users/stephenc",
41+
"html_url": "https://github.com/stephenc",
42+
"followers_url": "https://api.github.com/users/stephenc/followers",
43+
"following_url": "https://api.github.com/users/stephenc/following{/other_user}",
44+
"gists_url": "https://api.github.com/users/stephenc/gists{/gist_id}",
45+
"starred_url": "https://api.github.com/users/stephenc/starred{/owner}{/repo}",
46+
"subscriptions_url": "https://api.github.com/users/stephenc/subscriptions",
47+
"organizations_url": "https://api.github.com/users/stephenc/orgs",
48+
"repos_url": "https://api.github.com/users/stephenc/repos",
49+
"events_url": "https://api.github.com/users/stephenc/events{/privacy}",
50+
"received_events_url": "https://api.github.com/users/stephenc/received_events",
51+
"type": "User",
52+
"site_admin": false
53+
},
54+
"committer": {
55+
"login": "web-flow",
56+
"id": 19864447,
57+
"node_id": "MDQ6VXNlcjE5ODY0NDQ3",
58+
"avatar_url": "https://avatars3.githubusercontent.com/u/19864447?v=4",
59+
"gravatar_id": "",
60+
"url": "https://api.github.com/users/web-flow",
61+
"html_url": "https://github.com/web-flow",
62+
"followers_url": "https://api.github.com/users/web-flow/followers",
63+
"following_url": "https://api.github.com/users/web-flow/following{/other_user}",
64+
"gists_url": "https://api.github.com/users/web-flow/gists{/gist_id}",
65+
"starred_url": "https://api.github.com/users/web-flow/starred{/owner}{/repo}",
66+
"subscriptions_url": "https://api.github.com/users/web-flow/subscriptions",
67+
"organizations_url": "https://api.github.com/users/web-flow/orgs",
68+
"repos_url": "https://api.github.com/users/web-flow/repos",
69+
"events_url": "https://api.github.com/users/web-flow/events{/privacy}",
70+
"received_events_url": "https://api.github.com/users/web-flow/received_events",
71+
"type": "User",
72+
"site_admin": false
73+
},
74+
"parents": [
75+
{
76+
"sha": "2734e2ba489ce3b9fdba21e0ea1a7e2576ee9aeb",
77+
"url": "https://api.github.com/repos/cloudbeers/yolo/commits/2734e2ba489ce3b9fdba21e0ea1a7e2576ee9aeb",
78+
"html_url": "https://github.com/cloudbeers/yolo/commit/2734e2ba489ce3b9fdba21e0ea1a7e2576ee9aeb"
79+
},
80+
{
81+
"sha": "3d1abda5673d995df0278b6216b179156c30ff54",
82+
"url": "https://api.github.com/repos/cloudbeers/yolo/commits/3d1abda5673d995df0278b6216b179156c30ff54",
83+
"html_url": "https://github.com/cloudbeers/yolo/commit/3d1abda5673d995df0278b6216b179156c30ff54"
84+
}
85+
]
86+
},
87+
"_links": {
88+
"self": "https://api.github.com/repos/cloudbeers/yolo/branches/release/version-132",
89+
"html": "https://github.com/cloudbeers/yolo/tree/release/version-132"
90+
},
91+
"protected": true,
92+
"protection": {
93+
"enabled": true,
94+
"required_status_checks": {
95+
"enforcement_level": "everyone",
96+
"contexts": [
97+
"continuous-integration/jenkins/pr-head",
98+
"continuous-integration/jenkins/pr-merge",
99+
"continuous-integration/travis-ci"
100+
]
101+
}
102+
},
103+
"protection_url": "https://api.github.com/repos/cloudbeers/yolo/branches/release/version-132/protection"
104+
}
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
{
2+
"name": "branchWithPR",
3+
"commit": {
4+
"sha": "8b62d23190bf5210b5688ef62534897bb730aeb7",
5+
"node_id": "MDY6Q29tbWl0NzY0OTczNDA6OGI2MmQyMzE5MGJmNTIxMGI1Njg4ZWY2MjUzNDg5N2JiNzMwYWViNw==",
6+
"commit": {
7+
"author": {
8+
"name": "stephenc",
9+
"email": "[email protected]",
10+
"date": "2020-03-06T13:15:29Z"
11+
},
12+
"committer": {
13+
"name": "stephenc",
14+
"email": "[email protected]",
15+
"date": "2020-03-06T14:34:52Z"
16+
},
17+
"message": "Minor code cleanup\n\nSigned-off-by: stephenc <[email protected]>",
18+
"tree": {
19+
"sha": "806bfa680bcc0f384935ac3a56f51c8b7334f18e",
20+
"url": "https://api.github.com/repos/cloudbeers/yolo/git/trees/806bfa680bcc0f384935ac3a56f51c8b7334f18e"
21+
},
22+
"url": "https://api.github.com/repos/cloudbeers/yolo/git/commits/8b62d23190bf5210b5688ef62534897bb730aeb7",
23+
"comment_count": 0,
24+
"verification": {
25+
"verified": true,
26+
"reason": "valid",
27+
"signature": "-----BEGIN PGP SIGNATURE-----\n\nPGP==HASH==\n-----END PGP SIGNATURE-----",
28+
"payload": "tree 806bfa680bcc0f384935ac3a56f51c8b7334f18e\nparent be5d76394128d512458d736add63f8a67411cba0\nauthor stephenc <[email protected]> 1583500529 +0100\ncommitter stephenc <[email protected]> 1583505292 +0100\n\nMinor code cleanup\n\nSigned-off-by: stephenc <[email protected]>\n"
29+
}
30+
},
31+
"url": "https://api.github.com/repos/cloudbeers/yolo/commits/8b62d23190bf5210b5688ef62534897bb730aeb7",
32+
"html_url": "https://github.com/cloudbeers/yolo/commit/8b62d23190bf5210b5688ef62534897bb730aeb7",
33+
"comments_url": "https://api.github.com/repos/cloudbeers/yolo/commits/8b62d23190bf5210b5688ef62534897bb730aeb7/comments",
34+
"author": {
35+
"login": "stephenc",
36+
"id": 209336,
37+
"node_id": "MDQ6VXNlcjk4NzI5Njk=",
38+
"avatar_url": "https://avatars1.githubusercontent.com/u/209336?v=4",
39+
"gravatar_id": "",
40+
"url": "https://api.github.com/users/stephenc",
41+
"html_url": "https://github.com/stephenc",
42+
"followers_url": "https://api.github.com/users/stephenc/followers",
43+
"following_url": "https://api.github.com/users/stephenc/following{/other_user}",
44+
"gists_url": "https://api.github.com/users/stephenc/gists{/gist_id}",
45+
"starred_url": "https://api.github.com/users/stephenc/starred{/owner}{/repo}",
46+
"subscriptions_url": "https://api.github.com/users/stephenc/subscriptions",
47+
"organizations_url": "https://api.github.com/users/stephenc/orgs",
48+
"repos_url": "https://api.github.com/users/stephenc/repos",
49+
"events_url": "https://api.github.com/users/stephenc/events{/privacy}",
50+
"received_events_url": "https://api.github.com/users/stephenc/received_events",
51+
"type": "User",
52+
"site_admin": false
53+
},
54+
"committer": {
55+
"login": "stephenc",
56+
"id": 209336,
57+
"node_id": "MDQ6VXNlcjk4NzI5Njk=",
58+
"avatar_url": "https://avatars1.githubusercontent.com/u/209336?v=4",
59+
"gravatar_id": "",
60+
"url": "https://api.github.com/users/stephenc",
61+
"html_url": "https://github.com/stephenc",
62+
"followers_url": "https://api.github.com/users/stephenc/followers",
63+
"following_url": "https://api.github.com/users/stephenc/following{/other_user}",
64+
"gists_url": "https://api.github.com/users/stephenc/gists{/gist_id}",
65+
"starred_url": "https://api.github.com/users/stephenc/starred{/owner}{/repo}",
66+
"subscriptions_url": "https://api.github.com/users/stephenc/subscriptions",
67+
"organizations_url": "https://api.github.com/users/stephenc/orgs",
68+
"repos_url": "https://api.github.com/users/stephenc/repos",
69+
"events_url": "https://api.github.com/users/stephenc/events{/privacy}",
70+
"received_events_url": "https://api.github.com/users/stephenc/received_events",
71+
"type": "User",
72+
"site_admin": false
73+
},
74+
"parents": [
75+
{
76+
"sha": "be5d76394128d512458d736add63f8a67411cba0",
77+
"url": "https://api.github.com/repos/cloudbeers/yolo/commits/be5d76394128d512458d736add63f8a67411cba0",
78+
"html_url": "https://github.com/cloudbeers/yolo/commit/be5d76394128d512458d736add63f8a67411cba0"
79+
}
80+
]
81+
},
82+
"_links": {
83+
"self": "https://api.github.com/repos/cloudbeers/yolo/branches/branchWithPR",
84+
"html": "https://github.com/cloudbeers/yolo/tree/branchWithPR"
85+
},
86+
"protected": false,
87+
"protection": {
88+
"enabled": false,
89+
"required_status_checks": {
90+
"enforcement_level": "off",
91+
"contexts": [
92+
93+
]
94+
}
95+
},
96+
"protection_url": "https://api.github.com/repos/cloudbeers/yolo/branches/branchWithPR/protection"
97+
}

0 commit comments

Comments
 (0)