-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1415 from matiasalbarello/add-tests-on-paginate-c…
…hecks Fix checks pagination
- Loading branch information
Showing
10 changed files
with
1,077 additions
and
4 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
219 changes: 219 additions & 0 deletions
219
spec/cassettes/Octokit_Client_Checks/_check_run_annotations/auto-paginates_the_results.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,219 @@ | ||
{ | ||
"http_interactions":[ | ||
{ | ||
"request":{ | ||
"method":"get", | ||
"uri":"https://api.github.com/repos/<GITHUB_LOGIN>/<GITHUB_TEST_REPOSITORY>/check-runs/51295429/annotations?per_page=1", | ||
"body":{ | ||
"encoding":"US-ASCII", | ||
"base64_string":"" | ||
}, | ||
"headers":{ | ||
"Accept":[ | ||
"application/vnd.github.antiope-preview+json" | ||
], | ||
"User-Agent":[ | ||
"Octokit Ruby Gem 4.13.0" | ||
], | ||
"Content-Type":[ | ||
"application/json" | ||
], | ||
"Authorization":[ | ||
"token <<ACCESS_TOKEN>>" | ||
], | ||
"Accept-Encoding":[ | ||
"gzip;q=1.0,deflate;q=0.6,identity;q=0.3" | ||
] | ||
} | ||
}, | ||
"response":{ | ||
"status":{ | ||
"code":200, | ||
"message":"OK" | ||
}, | ||
"headers":{ | ||
"Server":[ | ||
"GitHub.com" | ||
], | ||
"Date":[ | ||
"Thu, 17 Jan 2019 14:55:47 GMT" | ||
], | ||
"Content-Type":[ | ||
"application/json; charset=utf-8" | ||
], | ||
"Transfer-Encoding":[ | ||
"chunked" | ||
], | ||
"Status":[ | ||
"200 OK" | ||
], | ||
"X-Ratelimit-Limit":[ | ||
"5000" | ||
], | ||
"X-Ratelimit-Remaining":[ | ||
"4979" | ||
], | ||
"X-Ratelimit-Reset":[ | ||
"1547738944" | ||
], | ||
"Cache-Control":[ | ||
"private, max-age=60, s-maxage=60" | ||
], | ||
"Vary":[ | ||
"Accept, Authorization, Cookie, X-GitHub-OTP" | ||
], | ||
"Etag":[ | ||
"W/\"86c75b80d451bfb4fea50d8960828ea9\"" | ||
], | ||
"X-Github-Media-Type":[ | ||
"github.antiope-preview; format=json" | ||
], | ||
"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":[ | ||
"CF00:4C7A:46FB90:AFF523:5C409773" | ||
], | ||
"Link":[ | ||
"<https://api.github.com/repos/<GITHUB_LOGIN>/<GITHUB_TEST_REPOSITORY>/check-runs/51295429/annotations?page=2&per_page=1>; rel=\"next\"" | ||
] | ||
}, | ||
"body":{ | ||
"encoding":"ASCII-8BIT", | ||
"base64_string":"W3sicGF0aCI6IlJFQURNRS5tZCIsImJsb2JfaHJlZiI6Imh0dHBzOi8vZ2l0\naHViLmNvbS88R0lUSFVCX0xPR0lOPi88R0lUSFVCX1RFU1RfUkVQT1NJVE9S\nWT4vYmxvYi9lMWRiNzQxOGE3N2RiMDY1ZDE5MDBlNTc5YzgyZWYwYWFkMWRh\nMmIxL1JFQURNRS5tZCIsInN0YXJ0X2xpbmUiOjEsInN0YXJ0X2NvbHVtbiI6\nbnVsbCwiZW5kX2xpbmUiOjEsImVuZF9jb2x1bW4iOm51bGwsImFubm90YXRp\nb25fbGV2ZWwiOiJub3RpY2UiLCJ0aXRsZSI6IlJFQURNRS5tZCNMMSIsIm1l\nc3NhZ2UiOiJMb29rcyBnb29kISIsInJhd19kZXRhaWxzIjpudWxsfV0=\n" | ||
}, | ||
"http_version":null | ||
}, | ||
"recorded_at":"Thu, 17 Jan 2019 14:55:47 GMT" | ||
}, | ||
{ | ||
"request":{ | ||
"method":"get", | ||
"uri":"https://api.github.com/repos/<GITHUB_LOGIN>/<GITHUB_TEST_REPOSITORY>/check-runs/51295429/annotations?page=2&per_page=1", | ||
"body":{ | ||
"encoding":"US-ASCII", | ||
"base64_string":"" | ||
}, | ||
"headers":{ | ||
"Accept":[ | ||
"application/vnd.github.antiope-preview+json" | ||
], | ||
"User-Agent":[ | ||
"Octokit Ruby Gem 4.13.0" | ||
], | ||
"Content-Type":[ | ||
"application/json" | ||
], | ||
"Authorization":[ | ||
"token <<ACCESS_TOKEN>>" | ||
], | ||
"Accept-Encoding":[ | ||
"gzip;q=1.0,deflate;q=0.6,identity;q=0.3" | ||
] | ||
} | ||
}, | ||
"response":{ | ||
"status":{ | ||
"code":200, | ||
"message":"OK" | ||
}, | ||
"headers":{ | ||
"Server":[ | ||
"GitHub.com" | ||
], | ||
"Date":[ | ||
"Thu, 17 Jan 2019 14:55:47 GMT" | ||
], | ||
"Content-Type":[ | ||
"application/json; charset=utf-8" | ||
], | ||
"Transfer-Encoding":[ | ||
"chunked" | ||
], | ||
"Status":[ | ||
"200 OK" | ||
], | ||
"X-Ratelimit-Limit":[ | ||
"5000" | ||
], | ||
"X-Ratelimit-Remaining":[ | ||
"4979" | ||
], | ||
"X-Ratelimit-Reset":[ | ||
"1547738944" | ||
], | ||
"Cache-Control":[ | ||
"private, max-age=60, s-maxage=60" | ||
], | ||
"Vary":[ | ||
"Accept, Authorization, Cookie, X-GitHub-OTP" | ||
], | ||
"Etag":[ | ||
"W/\"86c75b80d451bfb4fea50d8960828ea9\"" | ||
], | ||
"X-Github-Media-Type":[ | ||
"github.antiope-preview; format=json" | ||
], | ||
"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":[ | ||
"CF00:4C7A:46FB90:AFF523:5C409773" | ||
], | ||
"Link":[ | ||
"<https://api.github.com/repos/<GITHUB_LOGIN>/<GITHUB_TEST_REPOSITORY>/check-runs/51295429/annotations?page=1&per_page=1>; rel=\"prev\"" | ||
] | ||
}, | ||
"body":{ | ||
"encoding":"ASCII-8BIT", | ||
"base64_string":"W3sicGF0aCI6IlJFQURNRS5tZCIsImJsb2JfaHJlZiI6Imh0dHBzOi8vZ2l0\naHViLmNvbS88R0lUSFVCX0xPR0lOPi88R0lUSFVCX1RFU1RfUkVQT1NJVE9S\nWT4vYmxvYi9lMWRiNzQxOGE3N2RiMDY1ZDE5MDBlNTc5YzgyZWYwYWFkMWRh\nMmIxL1JFQURNRS5tZCIsInN0YXJ0X2xpbmUiOjEsInN0YXJ0X2NvbHVtbiI6\nbnVsbCwiZW5kX2xpbmUiOjEsImVuZF9jb2x1bW4iOm51bGwsImFubm90YXRp\nb25fbGV2ZWwiOiJub3RpY2UiLCJ0aXRsZSI6IlJFQURNRS5tZCNMMSIsIm1l\nc3NhZ2UiOiJMb29rcyBnb29kISIsInJhd19kZXRhaWxzIjpudWxsfV0=\n" | ||
}, | ||
"http_version":null | ||
}, | ||
"recorded_at":"Thu, 17 Jan 2019 14:55:47 GMT" | ||
} | ||
], | ||
"recorded_with":"VCR 4.0.0" | ||
} |
112 changes: 112 additions & 0 deletions
112
spec/cassettes/Octokit_Client_Checks/_check_run_annotations/paginates_the_results.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,112 @@ | ||
{ | ||
"http_interactions":[ | ||
{ | ||
"request":{ | ||
"method":"get", | ||
"uri":"https://api.github.com/repos/<GITHUB_LOGIN>/<GITHUB_TEST_REPOSITORY>/check-runs/51295429/annotations?per_page=1", | ||
"body":{ | ||
"encoding":"US-ASCII", | ||
"base64_string":"" | ||
}, | ||
"headers":{ | ||
"Accept":[ | ||
"application/vnd.github.antiope-preview+json" | ||
], | ||
"User-Agent":[ | ||
"Octokit Ruby Gem 4.13.0" | ||
], | ||
"Content-Type":[ | ||
"application/json" | ||
], | ||
"Authorization":[ | ||
"token <<ACCESS_TOKEN>>" | ||
], | ||
"Accept-Encoding":[ | ||
"gzip;q=1.0,deflate;q=0.6,identity;q=0.3" | ||
] | ||
} | ||
}, | ||
"response":{ | ||
"status":{ | ||
"code":200, | ||
"message":"OK" | ||
}, | ||
"headers":{ | ||
"Server":[ | ||
"GitHub.com" | ||
], | ||
"Date":[ | ||
"Thu, 17 Jan 2019 14:55:47 GMT" | ||
], | ||
"Content-Type":[ | ||
"application/json; charset=utf-8" | ||
], | ||
"Transfer-Encoding":[ | ||
"chunked" | ||
], | ||
"Status":[ | ||
"200 OK" | ||
], | ||
"X-Ratelimit-Limit":[ | ||
"5000" | ||
], | ||
"X-Ratelimit-Remaining":[ | ||
"4979" | ||
], | ||
"X-Ratelimit-Reset":[ | ||
"1547738944" | ||
], | ||
"Cache-Control":[ | ||
"private, max-age=60, s-maxage=60" | ||
], | ||
"Vary":[ | ||
"Accept, Authorization, Cookie, X-GitHub-OTP" | ||
], | ||
"Etag":[ | ||
"W/\"86c75b80d451bfb4fea50d8960828ea9\"" | ||
], | ||
"X-Github-Media-Type":[ | ||
"github.antiope-preview; format=json" | ||
], | ||
"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":[ | ||
"CF00:4C7A:46FB90:AFF523:5C409773" | ||
], | ||
"Link":[ | ||
"<https://api.github.com/repos/<GITHUB_LOGIN>/<GITHUB_TEST_REPOSITORY>/check-runs/51295429/annotations?page=2&per_page=1>; rel=\"next\"" | ||
] | ||
}, | ||
"body":{ | ||
"encoding":"ASCII-8BIT", | ||
"base64_string":"W3sicGF0aCI6IlJFQURNRS5tZCIsImJsb2JfaHJlZiI6Imh0dHBzOi8vZ2l0\naHViLmNvbS88R0lUSFVCX0xPR0lOPi88R0lUSFVCX1RFU1RfUkVQT1NJVE9S\nWT4vYmxvYi9lMWRiNzQxOGE3N2RiMDY1ZDE5MDBlNTc5YzgyZWYwYWFkMWRh\nMmIxL1JFQURNRS5tZCIsInN0YXJ0X2xpbmUiOjEsInN0YXJ0X2NvbHVtbiI6\nbnVsbCwiZW5kX2xpbmUiOjEsImVuZF9jb2x1bW4iOm51bGwsImFubm90YXRp\nb25fbGV2ZWwiOiJub3RpY2UiLCJ0aXRsZSI6IlJFQURNRS5tZCNMMSIsIm1l\nc3NhZ2UiOiJMb29rcyBnb29kISIsInJhd19kZXRhaWxzIjpudWxsfV0=\n" | ||
}, | ||
"http_version":null | ||
}, | ||
"recorded_at":"Thu, 17 Jan 2019 14:55:47 GMT" | ||
} | ||
], | ||
"recorded_with":"VCR 4.0.0" | ||
} |
Oops, something went wrong.