-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add testing for non existent branch
Signed-off-by: joseph-sentry <[email protected]>
- Loading branch information
1 parent
7a4bdac
commit 62a17de
Showing
2 changed files
with
84 additions
and
1 deletion.
There are no files selected for viewing
75 changes: 75 additions & 0 deletions
75
tests/integration/cassetes/test_github/TestGithubTestCase/test_get_branch_not_existent.yaml
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,75 @@ | ||
interactions: | ||
- request: | ||
body: '' | ||
headers: | ||
accept: | ||
- application/json | ||
accept-encoding: | ||
- gzip, deflate | ||
connection: | ||
- keep-alive | ||
host: | ||
- api.github.com | ||
user-agent: | ||
- Default | ||
method: GET | ||
uri: https://api.github.com/repos/ThiagoCodecov/example-python/branches/none | ||
response: | ||
content: '{"message":"Branch not found","documentation_url":"https://docs.github.com/rest/branches/branches#get-a-branch"}' | ||
headers: | ||
Access-Control-Allow-Origin: | ||
- '*' | ||
Access-Control-Expose-Headers: | ||
- ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, | ||
X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, | ||
X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, | ||
X-GitHub-Request-Id, Deprecation, Sunset | ||
Content-Encoding: | ||
- gzip | ||
Content-Security-Policy: | ||
- default-src 'none' | ||
Content-Type: | ||
- application/json; charset=utf-8 | ||
Date: | ||
- Wed, 30 Aug 2023 14:16:40 GMT | ||
Referrer-Policy: | ||
- origin-when-cross-origin, strict-origin-when-cross-origin | ||
Server: | ||
- GitHub.com | ||
Strict-Transport-Security: | ||
- max-age=31536000; includeSubdomains; preload | ||
Transfer-Encoding: | ||
- chunked | ||
Vary: | ||
- Accept-Encoding, Accept, X-Requested-With | ||
X-Accepted-OAuth-Scopes: | ||
- '' | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Frame-Options: | ||
- deny | ||
X-GitHub-Media-Type: | ||
- github.v3 | ||
X-GitHub-Request-Id: | ||
- FAF3:54E5:1518A8A:2AFCA6E:64EF4F48 | ||
X-OAuth-Scopes: | ||
- repo | ||
X-RateLimit-Limit: | ||
- '5000' | ||
X-RateLimit-Remaining: | ||
- '4938' | ||
X-RateLimit-Reset: | ||
- '1693406893' | ||
X-RateLimit-Resource: | ||
- core | ||
X-RateLimit-Used: | ||
- '62' | ||
X-XSS-Protection: | ||
- '0' | ||
github-authentication-token-expiration: | ||
- 2023-09-29 14:15:09 UTC | ||
x-github-api-version-selected: | ||
- '2022-11-28' | ||
http_version: HTTP/1.1 | ||
status_code: 404 | ||
version: 1 |
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