-
Notifications
You must be signed in to change notification settings - Fork 720
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cd585e1
commit ca7c568
Showing
11 changed files
with
496 additions
and
0 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
...ithub/GHTeamTest/wiremock/testListMembersWithRoleAdmin/__files/orgs_hub4j-test-org-1.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 @@ | ||
{ | ||
"login": "hub4j-test-org", | ||
"id": 7544739, | ||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", | ||
"url": "https://api.github.com/orgs/hub4j-test-org", | ||
"repos_url": "https://api.github.com/orgs/hub4j-test-org/repos", | ||
"events_url": "https://api.github.com/orgs/hub4j-test-org/events", | ||
"hooks_url": "https://api.github.com/orgs/hub4j-test-org/hooks", | ||
"issues_url": "https://api.github.com/orgs/hub4j-test-org/issues", | ||
"members_url": "https://api.github.com/orgs/hub4j-test-org/members{/member}", | ||
"public_members_url": "https://api.github.com/orgs/hub4j-test-org/public_members{/member}", | ||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", | ||
"description": "Hub4j Test Org Description (this could be null or blank too)", | ||
"name": "Hub4j Test Org Name (this could be null or blank too)", | ||
"company": null, | ||
"blog": "https://hub4j.url.io/could/be/null", | ||
"location": "Hub4j Test Org Location (this could be null or blank too)", | ||
"email": "hub4jtestorgemail@could.be.null.com", | ||
"twitter_username": null, | ||
"is_verified": false, | ||
"has_organization_projects": true, | ||
"has_repository_projects": true, | ||
"public_repos": 13, | ||
"public_gists": 0, | ||
"followers": 0, | ||
"following": 0, | ||
"html_url": "https://github.com/hub4j-test-org", | ||
"created_at": "2014-05-10T19:39:11Z", | ||
"updated_at": "2020-06-04T05:56:10Z", | ||
"type": "Organization", | ||
"total_private_repos": 1, | ||
"owned_private_repos": 1, | ||
"private_gists": 0, | ||
"disk_usage": 152, | ||
"collaborators": 0, | ||
"billing_email": "kk@kohsuke.org", | ||
"default_repository_permission": "none", | ||
"members_can_create_repositories": false, | ||
"two_factor_requirement_enabled": false, | ||
"members_can_create_pages": true, | ||
"plan": { | ||
"name": "free", | ||
"space": 976562499, | ||
"private_repos": 10000, | ||
"filled_seats": 18, | ||
"seats": 3 | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
...wiremock/testListMembersWithRoleAdmin/__files/orgs_hub4j-test-org_teams_dummy-team-2.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,49 @@ | ||
{ | ||
"name": "dummy-team", | ||
"id": 3451996, | ||
"node_id": "MDQ6VGVhbTM0NTE5OTY=", | ||
"slug": "dummy-team", | ||
"description": "Updated by API TestModified", | ||
"privacy": "closed", | ||
"url": "https://api.github.com/organizations/7544739/team/3451996", | ||
"html_url": "https://github.com/orgs/hub4j-test-org/teams/dummy-team", | ||
"members_url": "https://api.github.com/organizations/7544739/team/3451996/members{/member}", | ||
"repositories_url": "https://api.github.com/organizations/7544739/team/3451996/repos", | ||
"permission": "pull", | ||
"created_at": "2019-10-03T21:46:12Z", | ||
"updated_at": "2020-06-02T19:31:50Z", | ||
"members_count": 1, | ||
"repos_count": 1, | ||
"organization": { | ||
"login": "hub4j-test-org", | ||
"id": 7544739, | ||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", | ||
"url": "https://api.github.com/orgs/hub4j-test-org", | ||
"repos_url": "https://api.github.com/orgs/hub4j-test-org/repos", | ||
"events_url": "https://api.github.com/orgs/hub4j-test-org/events", | ||
"hooks_url": "https://api.github.com/orgs/hub4j-test-org/hooks", | ||
"issues_url": "https://api.github.com/orgs/hub4j-test-org/issues", | ||
"members_url": "https://api.github.com/orgs/hub4j-test-org/members{/member}", | ||
"public_members_url": "https://api.github.com/orgs/hub4j-test-org/public_members{/member}", | ||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", | ||
"description": "Hub4j Test Org Description (this could be null or blank too)", | ||
"name": "Hub4j Test Org Name (this could be null or blank too)", | ||
"company": null, | ||
"blog": "https://hub4j.url.io/could/be/null", | ||
"location": "Hub4j Test Org Location (this could be null or blank too)", | ||
"email": "hub4jtestorgemail@could.be.null.com", | ||
"twitter_username": null, | ||
"is_verified": false, | ||
"has_organization_projects": true, | ||
"has_repository_projects": true, | ||
"public_repos": 13, | ||
"public_gists": 0, | ||
"followers": 0, | ||
"following": 0, | ||
"html_url": "https://github.com/hub4j-test-org", | ||
"created_at": "2014-05-10T19:39:11Z", | ||
"updated_at": "2020-06-04T05:56:10Z", | ||
"type": "Organization" | ||
}, | ||
"parent": null | ||
} |
22 changes: 22 additions & 0 deletions
22
...hub/GHTeamTest/wiremock/testListMembersWithRoleAdmin/__files/teams_3451996_members-3.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,22 @@ | ||
[ | ||
{ | ||
"login": "bitwiseman", | ||
"id": 1958953, | ||
"node_id": "MDQ6VXNlcjE5NTg5NTM=", | ||
"avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", | ||
"gravatar_id": "", | ||
"url": "https://api.github.com/users/bitwiseman", | ||
"html_url": "https://github.com/bitwiseman", | ||
"followers_url": "https://api.github.com/users/bitwiseman/followers", | ||
"following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", | ||
"gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", | ||
"starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", | ||
"subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", | ||
"organizations_url": "https://api.github.com/users/bitwiseman/orgs", | ||
"repos_url": "https://api.github.com/users/bitwiseman/repos", | ||
"events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", | ||
"received_events_url": "https://api.github.com/users/bitwiseman/received_events", | ||
"type": "User", | ||
"site_admin": false | ||
} | ||
] |
46 changes: 46 additions & 0 deletions
46
...thub/GHTeamTest/wiremock/testListMembersWithRoleAdmin/mappings/orgs_hub4j-test-org-1.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,46 @@ | ||
{ | ||
"id": "38173383-3f59-422c-8366-c51b58045b0f", | ||
"name": "orgs_hub4j-test-org", | ||
"request": { | ||
"url": "/orgs/hub4j-test-org", | ||
"method": "GET", | ||
"headers": { | ||
"Accept": { | ||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" | ||
} | ||
} | ||
}, | ||
"response": { | ||
"status": 200, | ||
"bodyFileName": "orgs_hub4j-test-org-1.json", | ||
"headers": { | ||
"Date": "Wed, 30 Sep 2020 20:51:08 GMT", | ||
"Content-Type": "application/json; charset=utf-8", | ||
"Server": "GitHub.com", | ||
"Status": "200 OK", | ||
"Cache-Control": "private, max-age=60, s-maxage=60", | ||
"Vary": [ | ||
"Accept, Authorization, Cookie, X-GitHub-OTP", | ||
"Accept-Encoding, Accept, X-Requested-With", | ||
"Accept-Encoding" | ||
], | ||
"ETag": "W/\"5c55d16bf1d59fa9c42072f73eac7e9484cb6b90e83ce9fecee1423b52bf612f\"", | ||
"Last-Modified": "Thu, 04 Jun 2020 05:56:10 GMT", | ||
"X-GitHub-Media-Type": "unknown, github.v3", | ||
"X-RateLimit-Limit": "5000", | ||
"X-RateLimit-Remaining": "4924", | ||
"X-RateLimit-Reset": "1601499340", | ||
"X-RateLimit-Used": "76", | ||
"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": "E5C2:A4E1:1C0614EA:2177F4B5:5F74EFBB" | ||
} | ||
}, | ||
"uuid": "38173383-3f59-422c-8366-c51b58045b0f", | ||
"persistent": true, | ||
"insertionIndex": 1 | ||
} |
46 changes: 46 additions & 0 deletions
46
...iremock/testListMembersWithRoleAdmin/mappings/orgs_hub4j-test-org_teams_dummy-team-2.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,46 @@ | ||
{ | ||
"id": "c2b588ab-05f4-4fd5-b081-dacd63995b2e", | ||
"name": "orgs_hub4j-test-org_teams_dummy-team", | ||
"request": { | ||
"url": "/orgs/hub4j-test-org/teams/dummy-team", | ||
"method": "GET", | ||
"headers": { | ||
"Accept": { | ||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" | ||
} | ||
} | ||
}, | ||
"response": { | ||
"status": 200, | ||
"bodyFileName": "orgs_hub4j-test-org_teams_dummy-team-2.json", | ||
"headers": { | ||
"Date": "Wed, 30 Sep 2020 20:51:08 GMT", | ||
"Content-Type": "application/json; charset=utf-8", | ||
"Server": "GitHub.com", | ||
"Status": "200 OK", | ||
"Cache-Control": "private, max-age=60, s-maxage=60", | ||
"Vary": [ | ||
"Accept, Authorization, Cookie, X-GitHub-OTP", | ||
"Accept-Encoding, Accept, X-Requested-With", | ||
"Accept-Encoding" | ||
], | ||
"ETag": "W/\"087f5aba00a8363b8754fb3c15ba46d72105cdeb0c841f21bd3009a71b39aa7a\"", | ||
"Last-Modified": "Tue, 02 Jun 2020 19:31:50 GMT", | ||
"X-GitHub-Media-Type": "unknown, github.v3", | ||
"X-RateLimit-Limit": "5000", | ||
"X-RateLimit-Remaining": "4923", | ||
"X-RateLimit-Reset": "1601499340", | ||
"X-RateLimit-Used": "77", | ||
"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": "E5C2:A4E1:1C0615FE:2177F547:5F74EFBC" | ||
} | ||
}, | ||
"uuid": "c2b588ab-05f4-4fd5-b081-dacd63995b2e", | ||
"persistent": true, | ||
"insertionIndex": 2 | ||
} |
48 changes: 48 additions & 0 deletions
48
...ub/GHTeamTest/wiremock/testListMembersWithRoleAdmin/mappings/teams_3451996_members-3.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": "231075d0-651b-400c-b080-9b2ccd041e88", | ||
"name": "teams_3451996_members", | ||
"request": { | ||
"url": "/teams/3451996/members?role=admin", | ||
"method": "GET", | ||
"headers": { | ||
"Accept": { | ||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" | ||
} | ||
} | ||
}, | ||
"response": { | ||
"status": 200, | ||
"bodyFileName": "teams_3451996_members-3.json", | ||
"headers": { | ||
"Date": "Wed, 30 Sep 2020 20:51:08 GMT", | ||
"Content-Type": "application/json; charset=utf-8", | ||
"Server": "GitHub.com", | ||
"Status": "200 OK", | ||
"Cache-Control": "private, max-age=60, s-maxage=60", | ||
"Vary": [ | ||
"Accept, Authorization, Cookie, X-GitHub-OTP", | ||
"Accept-Encoding, Accept, X-Requested-With", | ||
"Accept-Encoding" | ||
], | ||
"ETag": "W/\"5e0877dcfff7c4b3268d7d416b181ebafe1714c592ff52d01d75930662c0c556\"", | ||
"X-GitHub-Media-Type": "unknown, github.v3", | ||
"Deprecation": "Sat, 01 Feb 2020 00:00:00 GMT", | ||
"Sunset": "Mon, 01 Feb 2021 00:00:00 GMT", | ||
"X-RateLimit-Limit": "5000", | ||
"X-RateLimit-Remaining": "4922", | ||
"X-RateLimit-Reset": "1601499340", | ||
"X-RateLimit-Used": "78", | ||
"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": "E5C2:A4E1:1C06168B:2177F673:5F74EFBC", | ||
"Link": "<https://docs.github.com/changes/2020-01-21-moving-the-team-api-endpoints/>; rel=\"deprecation\"; type=\"text/html\", <https://api.github.com/organizations/7544739/team/3451996/members>; rel=\"alternate\"" | ||
} | ||
}, | ||
"uuid": "231075d0-651b-400c-b080-9b2ccd041e88", | ||
"persistent": true, | ||
"insertionIndex": 3 | ||
} |
48 changes: 48 additions & 0 deletions
48
...hub/GHTeamTest/wiremock/testListMembersWithRoleNoMatch/__files/orgs_hub4j-test-org-1.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 @@ | ||
{ | ||
"login": "hub4j-test-org", | ||
"id": 7544739, | ||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", | ||
"url": "https://api.github.com/orgs/hub4j-test-org", | ||
"repos_url": "https://api.github.com/orgs/hub4j-test-org/repos", | ||
"events_url": "https://api.github.com/orgs/hub4j-test-org/events", | ||
"hooks_url": "https://api.github.com/orgs/hub4j-test-org/hooks", | ||
"issues_url": "https://api.github.com/orgs/hub4j-test-org/issues", | ||
"members_url": "https://api.github.com/orgs/hub4j-test-org/members{/member}", | ||
"public_members_url": "https://api.github.com/orgs/hub4j-test-org/public_members{/member}", | ||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", | ||
"description": "Hub4j Test Org Description (this could be null or blank too)", | ||
"name": "Hub4j Test Org Name (this could be null or blank too)", | ||
"company": null, | ||
"blog": "https://hub4j.url.io/could/be/null", | ||
"location": "Hub4j Test Org Location (this could be null or blank too)", | ||
"email": "hub4jtestorgemail@could.be.null.com", | ||
"twitter_username": null, | ||
"is_verified": false, | ||
"has_organization_projects": true, | ||
"has_repository_projects": true, | ||
"public_repos": 13, | ||
"public_gists": 0, | ||
"followers": 0, | ||
"following": 0, | ||
"html_url": "https://github.com/hub4j-test-org", | ||
"created_at": "2014-05-10T19:39:11Z", | ||
"updated_at": "2020-06-04T05:56:10Z", | ||
"type": "Organization", | ||
"total_private_repos": 1, | ||
"owned_private_repos": 1, | ||
"private_gists": 0, | ||
"disk_usage": 152, | ||
"collaborators": 0, | ||
"billing_email": "kk@kohsuke.org", | ||
"default_repository_permission": "none", | ||
"members_can_create_repositories": false, | ||
"two_factor_requirement_enabled": false, | ||
"members_can_create_pages": true, | ||
"plan": { | ||
"name": "free", | ||
"space": 976562499, | ||
"private_repos": 10000, | ||
"filled_seats": 18, | ||
"seats": 3 | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
...remock/testListMembersWithRoleNoMatch/__files/orgs_hub4j-test-org_teams_dummy-team-2.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,49 @@ | ||
{ | ||
"name": "dummy-team", | ||
"id": 3451996, | ||
"node_id": "MDQ6VGVhbTM0NTE5OTY=", | ||
"slug": "dummy-team", | ||
"description": "Updated by API TestModified", | ||
"privacy": "closed", | ||
"url": "https://api.github.com/organizations/7544739/team/3451996", | ||
"html_url": "https://github.com/orgs/hub4j-test-org/teams/dummy-team", | ||
"members_url": "https://api.github.com/organizations/7544739/team/3451996/members{/member}", | ||
"repositories_url": "https://api.github.com/organizations/7544739/team/3451996/repos", | ||
"permission": "pull", | ||
"created_at": "2019-10-03T21:46:12Z", | ||
"updated_at": "2020-06-02T19:31:50Z", | ||
"members_count": 1, | ||
"repos_count": 1, | ||
"organization": { | ||
"login": "hub4j-test-org", | ||
"id": 7544739, | ||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", | ||
"url": "https://api.github.com/orgs/hub4j-test-org", | ||
"repos_url": "https://api.github.com/orgs/hub4j-test-org/repos", | ||
"events_url": "https://api.github.com/orgs/hub4j-test-org/events", | ||
"hooks_url": "https://api.github.com/orgs/hub4j-test-org/hooks", | ||
"issues_url": "https://api.github.com/orgs/hub4j-test-org/issues", | ||
"members_url": "https://api.github.com/orgs/hub4j-test-org/members{/member}", | ||
"public_members_url": "https://api.github.com/orgs/hub4j-test-org/public_members{/member}", | ||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", | ||
"description": "Hub4j Test Org Description (this could be null or blank too)", | ||
"name": "Hub4j Test Org Name (this could be null or blank too)", | ||
"company": null, | ||
"blog": "https://hub4j.url.io/could/be/null", | ||
"location": "Hub4j Test Org Location (this could be null or blank too)", | ||
"email": "hub4jtestorgemail@could.be.null.com", | ||
"twitter_username": null, | ||
"is_verified": false, | ||
"has_organization_projects": true, | ||
"has_repository_projects": true, | ||
"public_repos": 13, | ||
"public_gists": 0, | ||
"followers": 0, | ||
"following": 0, | ||
"html_url": "https://github.com/hub4j-test-org", | ||
"created_at": "2014-05-10T19:39:11Z", | ||
"updated_at": "2020-06-04T05:56:10Z", | ||
"type": "Organization" | ||
}, | ||
"parent": null | ||
} |
Oops, something went wrong.