-
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.
Ensure connection response stream is always closed
- Loading branch information
1 parent
4f8a646
commit a6bbb1d
Showing
11 changed files
with
249 additions
and
43 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
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
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
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
34 changes: 34 additions & 0 deletions
34
...es/org/kohsuke/github/RequesterRetryTest/wiremock/testGitHubIsApiUrlValid/__files/-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,34 @@ | ||
{ | ||
"current_user_url": "https://api.github.com/user", | ||
"current_user_authorizations_html_url": "https://github.com/settings/connections/applications{/client_id}", | ||
"authorizations_url": "https://api.github.com/authorizations", | ||
"code_search_url": "https://api.github.com/search/code?q={query}{&page,per_page,sort,order}", | ||
"commit_search_url": "https://api.github.com/search/commits?q={query}{&page,per_page,sort,order}", | ||
"emails_url": "https://api.github.com/user/emails", | ||
"emojis_url": "https://api.github.com/emojis", | ||
"events_url": "https://api.github.com/events", | ||
"feeds_url": "https://api.github.com/feeds", | ||
"followers_url": "https://api.github.com/user/followers", | ||
"following_url": "https://api.github.com/user/following{/target}", | ||
"gists_url": "https://api.github.com/gists{/gist_id}", | ||
"hub_url": "https://api.github.com/hub", | ||
"issue_search_url": "https://api.github.com/search/issues?q={query}{&page,per_page,sort,order}", | ||
"issues_url": "https://api.github.com/issues", | ||
"keys_url": "https://api.github.com/user/keys", | ||
"label_search_url": "https://api.github.com/search/labels?q={query}&repository_id={repository_id}{&page,per_page}", | ||
"notifications_url": "https://api.github.com/notifications", | ||
"organization_url": "https://api.github.com/orgs/{org}", | ||
"organization_repositories_url": "https://api.github.com/orgs/{org}/repos{?type,page,per_page,sort}", | ||
"organization_teams_url": "https://api.github.com/orgs/{org}/teams", | ||
"public_gists_url": "https://api.github.com/gists/public", | ||
"rate_limit_url": "https://api.github.com/rate_limit", | ||
"repository_url": "https://api.github.com/repos/{owner}/{repo}", | ||
"repository_search_url": "https://api.github.com/search/repositories?q={query}{&page,per_page,sort,order}", | ||
"current_user_repositories_url": "https://api.github.com/user/repos{?type,page,per_page,sort}", | ||
"starred_url": "https://api.github.com/user/starred{/owner}{/repo}", | ||
"starred_gists_url": "https://api.github.com/gists/starred", | ||
"user_url": "https://api.github.com/users/{user}", | ||
"user_organizations_url": "https://api.github.com/user/orgs", | ||
"user_repositories_url": "https://api.github.com/users/{user}/repos{?type,page,per_page,sort}", | ||
"user_search_url": "https://api.github.com/search/users?q={query}{&page,per_page,sort,order}" | ||
} |
46 changes: 46 additions & 0 deletions
46
...rg/kohsuke/github/RequesterRetryTest/wiremock/testGitHubIsApiUrlValid/__files/user-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 @@ | ||
{ | ||
"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, | ||
"name": "Liam Newman", | ||
"company": "Cloudbees, Inc.", | ||
"blog": "", | ||
"location": "Seattle, WA, USA", | ||
"email": "[email protected]", | ||
"hireable": null, | ||
"bio": "https://twitter.com/bitwiseman", | ||
"twitter_username": null, | ||
"public_repos": 187, | ||
"public_gists": 7, | ||
"followers": 161, | ||
"following": 9, | ||
"created_at": "2012-07-11T20:38:33Z", | ||
"updated_at": "2020-05-29T18:24:44Z", | ||
"private_gists": 19, | ||
"total_private_repos": 12, | ||
"owned_private_repos": 0, | ||
"disk_usage": 33700, | ||
"collaborators": 0, | ||
"two_factor_authentication": true, | ||
"plan": { | ||
"name": "free", | ||
"space": 976562499, | ||
"collaborators": 0, | ||
"private_repos": 10000 | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
...s/org/kohsuke/github/RequesterRetryTest/wiremock/testGitHubIsApiUrlValid/mappings/-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,41 @@ | ||
{ | ||
"id": "e4a8f577-6cb7-4106-84f2-7ee0205b76ce", | ||
"name": "", | ||
"request": { | ||
"url": "/", | ||
"method": "GET" | ||
}, | ||
"response": { | ||
"status": 200, | ||
"bodyFileName": "-2.json", | ||
"headers": { | ||
"Date": "Wed, 10 Jun 2020 23:28:05 GMT", | ||
"Content-Type": "application/json; charset=utf-8", | ||
"Server": "GitHub.com", | ||
"Status": "200 OK", | ||
"X-RateLimit-Limit": "5000", | ||
"X-RateLimit-Remaining": "4988", | ||
"X-RateLimit-Reset": "1591835235", | ||
"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/\"e01e638f43d5e359ea8768a81a8aa145\"", | ||
"X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", | ||
"X-Accepted-OAuth-Scopes": "", | ||
"X-GitHub-Media-Type": "github.v3; format=json", | ||
"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": "F658:22C1:47B4:5D7E:5EE16C85" | ||
} | ||
}, | ||
"uuid": "e4a8f577-6cb7-4106-84f2-7ee0205b76ce", | ||
"persistent": true, | ||
"insertionIndex": 2 | ||
} |
Oops, something went wrong.