-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Showing
7 changed files
with
189 additions
and
2 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
143 changes: 143 additions & 0 deletions
143
...sts/topics/AuthenticationTestCases_RecordedData/OtpTestCase.testGetAuthenticatedUser.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,143 @@ | ||
[ | ||
{ | ||
"request": { | ||
"body": null, | ||
"headers": { | ||
"Accept": "application/vnd.github.v3.full+json", | ||
"Accept-Encoding": "gzip, deflate, compress", | ||
"Authorization": "Basic removed=", | ||
"User-Agent": "jacquev6/PyGithub/2; UnitTests recorder" | ||
}, | ||
"is_json": false, | ||
"url": { | ||
"netloc": "api.github.com", | ||
"path": "/user", | ||
"query": {}, | ||
"scheme": "https" | ||
}, | ||
"verb": "GET" | ||
}, | ||
"response": { | ||
"body": { | ||
"documentation_url": "https://developer.github.com/v3/auth#working-with-two-factor-authentication", | ||
"message": "Must specify two-factor authentication OTP code." | ||
}, | ||
"headers": { | ||
"access-control-allow-credentials": "true", | ||
"access-control-allow-origin": "*", | ||
"access-control-expose-headers": "ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval", | ||
"content-length": "160", | ||
"content-security-policy": "default-src 'none'", | ||
"content-type": "application/json; charset=utf-8", | ||
"date": "Sat, 20 Sep 2014 16:48:09 GMT", | ||
"server": "GitHub.com", | ||
"status": "401 Unauthorized", | ||
"strict-transport-security": "max-age=31536000; includeSubdomains; preload", | ||
"x-content-type-options": "nosniff", | ||
"x-frame-options": "deny", | ||
"x-github-media-type": "github.v3; param=full; format=json", | ||
"x-github-otp": "required; app", | ||
"x-github-request-id": "62E81E54:5B18:6ECD522:541DAFC9", | ||
"x-ratelimit-limit": "60", | ||
"x-ratelimit-remaining": "56", | ||
"x-ratelimit-reset": "1411233998", | ||
"x-xss-protection": "1; mode=block" | ||
}, | ||
"is_json": true, | ||
"status": 401 | ||
} | ||
}, | ||
{ | ||
"request": { | ||
"body": null, | ||
"headers": { | ||
"Accept": "application/vnd.github.v3.full+json", | ||
"Accept-Encoding": "gzip, deflate, compress", | ||
"Authorization": "Basic removed=", | ||
"User-Agent": "jacquev6/PyGithub/2; UnitTests recorder", | ||
"X-GitHub-OTP": "348483" | ||
}, | ||
"is_json": false, | ||
"url": { | ||
"netloc": "api.github.com", | ||
"path": "/user", | ||
"query": {}, | ||
"scheme": "https" | ||
}, | ||
"verb": "GET" | ||
}, | ||
"response": { | ||
"body": { | ||
"avatar_url": "https://avatars.githubusercontent.com/u/327146?v=2", | ||
"bio": null, | ||
"blog": "http://vincent-jacques.net", | ||
"collaborators": 2, | ||
"company": "Amazon", | ||
"created_at": "2010-07-09T06:10:06Z", | ||
"disk_usage": 118665, | ||
"email": "vincent@vincent-jacques.net", | ||
"events_url": "https://api.github.com/users/jacquev6/events{/privacy}", | ||
"followers": 38, | ||
"followers_url": "https://api.github.com/users/jacquev6/followers", | ||
"following": 51, | ||
"following_url": "https://api.github.com/users/jacquev6/following{/other_user}", | ||
"gists_url": "https://api.github.com/users/jacquev6/gists{/gist_id}", | ||
"gravatar_id": "b68de5ae38616c296fa345d2b9df2225", | ||
"hireable": false, | ||
"html_url": "https://github.com/jacquev6", | ||
"id": 327146, | ||
"location": "Seattle, WA, USA", | ||
"login": "jacquev6", | ||
"name": "Vincent Jacques", | ||
"organizations_url": "https://api.github.com/users/jacquev6/orgs", | ||
"owned_private_repos": 4, | ||
"plan": { | ||
"collaborators": 0, | ||
"name": "micro", | ||
"private_repos": 5, | ||
"space": 614400 | ||
}, | ||
"private_gists": 51, | ||
"public_gists": 4, | ||
"public_repos": 22, | ||
"received_events_url": "https://api.github.com/users/jacquev6/received_events", | ||
"repos_url": "https://api.github.com/users/jacquev6/repos", | ||
"site_admin": false, | ||
"starred_url": "https://api.github.com/users/jacquev6/starred{/owner}{/repo}", | ||
"subscriptions_url": "https://api.github.com/users/jacquev6/subscriptions", | ||
"total_private_repos": 4, | ||
"type": "User", | ||
"updated_at": "2014-09-20T04:22:05Z", | ||
"url": "https://api.github.com/users/jacquev6" | ||
}, | ||
"headers": { | ||
"access-control-allow-credentials": "true", | ||
"access-control-allow-origin": "*", | ||
"access-control-expose-headers": "ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval", | ||
"cache-control": "private, max-age=60, s-maxage=60", | ||
"content-encoding": "gzip", | ||
"content-security-policy": "default-src 'none'", | ||
"content-type": "application/json; charset=utf-8", | ||
"date": "Sat, 20 Sep 2014 16:48:10 GMT", | ||
"etag": "\"29d823f49e834b15bb50bf021f69a1fd\"", | ||
"last-modified": "Sat, 20 Sep 2014 04:22:05 GMT", | ||
"server": "GitHub.com", | ||
"status": "200 OK", | ||
"strict-transport-security": "max-age=31536000; includeSubdomains; preload", | ||
"transfer-encoding": "chunked", | ||
"vary": "Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding", | ||
"x-content-type-options": "nosniff", | ||
"x-frame-options": "deny", | ||
"x-github-media-type": "github.v3; param=full; format=json", | ||
"x-github-request-id": "62E81E54:5B14:8D6AEF5:541DAFCA", | ||
"x-ratelimit-limit": "5000", | ||
"x-ratelimit-remaining": "4998", | ||
"x-ratelimit-reset": "1411234808", | ||
"x-served-by": "971af40390ac4398fcdd45c8dab0fbe7", | ||
"x-xss-protection": "1; mode=block" | ||
}, | ||
"is_json": true, | ||
"status": 200 | ||
} | ||
} | ||
] |
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