Skip to content

Commit 98dd65c

Browse files
committed
Add wiremock files for userIsCollaborator test
1 parent e4c66ad commit 98dd65c

File tree

2 files changed

+94
-0
lines changed
  • src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/userIsCollaborator

2 files changed

+94
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"login": "0xacx",
3+
"id": 99351112,
4+
"node_id": "U_kgDOBev6SA",
5+
"avatar_url": "https://avatars.githubusercontent.com/u/99351112?v=4",
6+
"gravatar_id": "",
7+
"url": "https://api.github.com/users/0xacx",
8+
"html_url": "https://github.com/0xacx",
9+
"followers_url": "https://api.github.com/users/0xacx/followers",
10+
"following_url": "https://api.github.com/users/0xacx/following{/other_user}",
11+
"gists_url": "https://api.github.com/users/0xacx/gists{/gist_id}",
12+
"starred_url": "https://api.github.com/users/0xacx/starred{/owner}{/repo}",
13+
"subscriptions_url": "https://api.github.com/users/0xacx/subscriptions",
14+
"organizations_url": "https://api.github.com/users/0xacx/orgs",
15+
"repos_url": "https://api.github.com/users/0xacx/repos",
16+
"events_url": "https://api.github.com/users/0xacx/events{/privacy}",
17+
"received_events_url": "https://api.github.com/users/0xacx/received_events",
18+
"type": "User",
19+
"site_admin": false,
20+
"name": null,
21+
"company": null,
22+
"blog": "",
23+
"location": null,
24+
"email": null,
25+
"hireable": null,
26+
"bio": null,
27+
"twitter_username": null,
28+
"public_repos": 13,
29+
"public_gists": 0,
30+
"followers": 0,
31+
"following": 2,
32+
"created_at": "2022-02-09T16:37:05Z",
33+
"updated_at": "2022-06-15T07:58:04Z",
34+
"private_gists": 0,
35+
"total_private_repos": 0,
36+
"owned_private_repos": 0,
37+
"disk_usage": 725,
38+
"collaborators": 0,
39+
"two_factor_authentication": false,
40+
"plan": {
41+
"name": "free",
42+
"space": 976562499,
43+
"collaborators": 0,
44+
"private_repos": 10000
45+
}
46+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"id": "27a143ee-fd78-47f0-a017-1ffd68615756",
3+
"name": "user",
4+
"request": {
5+
"url": "/user",
6+
"method": "GET",
7+
"headers": {
8+
"Accept": {
9+
"equalTo": "application/vnd.github.v3+json"
10+
}
11+
}
12+
},
13+
"response": {
14+
"status": 200,
15+
"bodyFileName": "user-1.json",
16+
"headers": {
17+
"Server": "GitHub.com",
18+
"Date": "Wed, 22 Jun 2022 13:18:14 GMT",
19+
"Content-Type": "application/json; charset=utf-8",
20+
"Cache-Control": "private, max-age=60, s-maxage=60",
21+
"Vary": [
22+
"Accept, Authorization, Cookie, X-GitHub-OTP",
23+
"Accept-Encoding, Accept, X-Requested-With"
24+
],
25+
"ETag": "W/\"73ba98e72cc4eee3ac22773bf0aca91ee52ada5d7ed1683fb83c677d46388dde\"",
26+
"Last-Modified": "Wed, 15 Jun 2022 07:58:04 GMT",
27+
"X-OAuth-Scopes": "admin:org, admin:repo_hook, gist, repo, user, workflow, write:discussion, write:packages",
28+
"X-Accepted-OAuth-Scopes": "",
29+
"github-authentication-token-expiration": "2022-09-20 12:51:45 UTC",
30+
"X-GitHub-Media-Type": "github.v3; format=json",
31+
"X-RateLimit-Limit": "5000",
32+
"X-RateLimit-Remaining": "4888",
33+
"X-RateLimit-Reset": "1655906861",
34+
"X-RateLimit-Used": "112",
35+
"X-RateLimit-Resource": "core",
36+
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
37+
"X-Frame-Options": "deny",
38+
"X-Content-Type-Options": "nosniff",
39+
"X-XSS-Protection": "0",
40+
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
41+
"Content-Security-Policy": "default-src 'none'",
42+
"X-GitHub-Request-Id": "CDCC:0F9F:287D3E:2D0A3B:62B31696"
43+
}
44+
},
45+
"uuid": "27a143ee-fd78-47f0-a017-1ffd68615756",
46+
"persistent": true,
47+
"insertionIndex": 1
48+
}

0 commit comments

Comments
 (0)