-
Notifications
You must be signed in to change notification settings - Fork 736
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes modifyCollaborators for multiple users
Fixes #868
- Loading branch information
Showing
5 changed files
with
171 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
...hsuke/github/GHRepositoryTest/wiremock/addCollaborators/__files/users_jimmysombrero2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"login": "jimmysombrero2", | ||
"id": 12157727, | ||
"node_id": "MDQ6VXNlcjEyMTU3NzI3", | ||
"avatar_url": "https://avatars3.githubusercontent.com/u/12157727?v=4", | ||
"gravatar_id": "", | ||
"url": "https://api.github.com/users/jimmysombrero", | ||
"html_url": "https://github.com/jimmysombrero", | ||
"followers_url": "https://api.github.com/users/jimmysombrero/followers", | ||
"following_url": "https://api.github.com/users/jimmysombrero/following{/other_user}", | ||
"gists_url": "https://api.github.com/users/jimmysombrero/gists{/gist_id}", | ||
"starred_url": "https://api.github.com/users/jimmysombrero/starred{/owner}{/repo}", | ||
"subscriptions_url": "https://api.github.com/users/jimmysombrero/subscriptions", | ||
"organizations_url": "https://api.github.com/users/jimmysombrero/orgs", | ||
"repos_url": "https://api.github.com/users/jimmysombrero/repos", | ||
"events_url": "https://api.github.com/users/jimmysombrero/events{/privacy}", | ||
"received_events_url": "https://api.github.com/users/jimmysombrero/received_events", | ||
"type": "User", | ||
"site_admin": false, | ||
"name": null, | ||
"company": null, | ||
"blog": "", | ||
"location": null, | ||
"email": null, | ||
"hireable": null, | ||
"bio": null, | ||
"public_repos": 4, | ||
"public_gists": 0, | ||
"followers": 1, | ||
"following": 0, | ||
"created_at": "2015-04-28T17:47:19Z", | ||
"updated_at": "2020-02-02T04:43:58Z", | ||
"private_gists": 0, | ||
"total_private_repos": 0, | ||
"owned_private_repos": 0, | ||
"disk_usage": 19, | ||
"collaborators": 0, | ||
"two_factor_authentication": false, | ||
"plan": { | ||
"name": "free", | ||
"space": 976562499, | ||
"collaborators": 0, | ||
"private_repos": 10000 | ||
} | ||
} |
48 changes: 48 additions & 0 deletions
48
...dCollaborators/mappings/repos_hub4j-test-org_github-api_collaborators_jimmysombrero2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"id": "3d80b19e-05f4-4ad9-a610-5f573abc4363", | ||
"name": "repos_hub4j-test-org_github-api_collaborators_jimmysombrero2", | ||
"request": { | ||
"url": "/repos/hub4j-test-org/github-api/collaborators/jimmysombrero2", | ||
"method": "PUT", | ||
"headers": { | ||
"Accept": { | ||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" | ||
} | ||
}, | ||
"bodyPatterns": [ | ||
{ | ||
"equalToJson": "{\"permission\":\"push\"}", | ||
"ignoreArrayOrder": true, | ||
"ignoreExtraElements": true | ||
} | ||
] | ||
}, | ||
"response": { | ||
"status": 201, | ||
"body": "[]", | ||
"headers": { | ||
"Server": "GitHub.com", | ||
"Date": "Sun, 02 Feb 2020 04:59:39 GMT", | ||
"Content-Type": "application/json; charset=utf-8", | ||
"Status": "201 Created", | ||
"X-RateLimit-Limit": "5000", | ||
"X-RateLimit-Remaining": "4892", | ||
"X-RateLimit-Reset": "1580620983", | ||
"X-OAuth-Scopes": "admin:enterprise, admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete:packages, delete_repo, gist, notifications, read:packages, repo, user, workflow, write:discussion, write:packages", | ||
"X-Accepted-OAuth-Scopes": "", | ||
"X-GitHub-Media-Type": "unknown, github.v3", | ||
"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": "C903:768E:16C4966:2BA11B0:5E36573B" | ||
} | ||
}, | ||
"uuid": "3d80b19e-05f4-4ad9-a610-5f573abc4363", | ||
"persistent": true, | ||
"insertionIndex": 4 | ||
} |
45 changes: 45 additions & 0 deletions
45
...ke/github/GHRepositoryTest/wiremock/addCollaborators/mappings/users_jimmysombrero2-7.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"id": "6685376c-451b-486d-88cd-502af9a7c5d2", | ||
"name": "users_jimmysombrero2", | ||
"request": { | ||
"url": "/users/jimmysombrero2", | ||
"method": "GET", | ||
"headers": { | ||
"Accept": { | ||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" | ||
} | ||
} | ||
}, | ||
"response": { | ||
"status": 200, | ||
"bodyFileName": "users_jimmysombrero2.json", | ||
"headers": { | ||
"Server": "GitHub.com", | ||
"Date": "Mon, 03 Feb 2020 03:50:14 GMT", | ||
"Content-Type": "application/json; charset=utf-8", | ||
"Status": "200 OK", | ||
"X-RateLimit-Limit": "5000", | ||
"X-RateLimit-Remaining": "4907", | ||
"X-RateLimit-Reset": "1580704799", | ||
"Cache-Control": "private, max-age=60, s-maxage=60", | ||
"Vary": "Accept, Authorization, Cookie, X-GitHub-OTP", | ||
"ETag": "W/\"7a0206b47e995649c88218afeb2266a6\"", | ||
"Last-Modified": "Sun, 02 Feb 2020 04:43:58 GMT", | ||
"X-OAuth-Scopes": "admin:enterprise, admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete:packages, delete_repo, gist, notifications, read:packages, repo, user, workflow, write:discussion, write:packages", | ||
"X-Accepted-OAuth-Scopes": "", | ||
"X-GitHub-Media-Type": "unknown, github.v3", | ||
"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": "CDFE:768D:1021273:26DC788:5E379876" | ||
} | ||
}, | ||
"uuid": "6685376c-451b-486d-88cd-502af9a7c5d1", | ||
"persistent": true, | ||
"insertionIndex": 6 | ||
} |