Skip to content

Commit a6357fa

Browse files
committed
Added cassettes for github tests for gist and requests
1 parent 04d8474 commit a6357fa

9 files changed

+1068
-0
lines changed
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
{
2+
"http_interactions": [
3+
{
4+
"recorded_at": "2016-05-21T16:23:25",
5+
"request": {
6+
"body": {
7+
"encoding": "utf-8",
8+
"string": ""
9+
},
10+
"headers": {
11+
"Accept": "application/vnd.github.v3.full+json",
12+
"Accept-Charset": "utf-8",
13+
"Accept-Encoding": "identity",
14+
"Authorization": "token <PRIVATE_KEY_GITHUB>",
15+
"Connection": "keep-alive",
16+
"Content-Type": "application/json",
17+
"User-Agent": "github3.py/0.9.5"
18+
},
19+
"method": "GET",
20+
"uri": "https://api.github.com/user"
21+
},
22+
"response": {
23+
"body": {
24+
"encoding": "utf-8",
25+
"string": "{\"login\":\"<GITHUB_NAMESPACE>\",\"id\":254441,\"avatar_url\":\"https://avatars.githubusercontent.com/u/254441?v=3\",\"gravatar_id\":\"\",\"url\":\"https://api.github.com/users/<GITHUB_NAMESPACE>\",\"html_url\":\"https://github.com/<GITHUB_NAMESPACE>\",\"followers_url\":\"https://api.github.com/users/<GITHUB_NAMESPACE>/followers\",\"following_url\":\"https://api.github.com/users/<GITHUB_NAMESPACE>/following{/other_user}\",\"gists_url\":\"https://api.github.com/users/<GITHUB_NAMESPACE>/gists{/gist_id}\",\"starred_url\":\"https://api.github.com/users/<GITHUB_NAMESPACE>/starred{/owner}{/repo}\",\"subscriptions_url\":\"https://api.github.com/users/<GITHUB_NAMESPACE>/subscriptions\",\"organizations_url\":\"https://api.github.com/users/<GITHUB_NAMESPACE>/orgs\",\"repos_url\":\"https://api.github.com/users/<GITHUB_NAMESPACE>/repos\",\"events_url\":\"https://api.github.com/users/<GITHUB_NAMESPACE>/events{/privacy}\",\"received_events_url\":\"https://api.github.com/users/<GITHUB_NAMESPACE>/received_events\",\"type\":\"User\",\"site_admin\":false,\"name\":\"<GITHUB_NAMESPACE>\",\"company\":null,\"blog\":\"http://<GITHUB_NAMESPACE>.got.nothing.to/blog/\",\"location\":\"Paris\",\"email\":null,\"hireable\":true,\"bio\":null,\"public_repos\":72,\"public_gists\":10,\"followers\":44,\"following\":13,\"created_at\":\"2010-04-27T14:04:09Z\",\"updated_at\":\"2016-03-26T00:48:05Z\"}"
26+
},
27+
"headers": {
28+
"Access-Control-Allow-Origin": "*",
29+
"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",
30+
"Cache-Control": "private, max-age=60, s-maxage=60",
31+
"Content-Length": "1118",
32+
"Content-Security-Policy": "default-src 'none'",
33+
"Content-Type": "application/json; charset=utf-8",
34+
"Date": "Sat, 21 May 2016 16:23:25 GMT",
35+
"ETag": "\"0aa481b18bc60170aa178c9983d294fc\"",
36+
"Last-Modified": "Sat, 26 Mar 2016 00:48:05 GMT",
37+
"Server": "GitHub.com",
38+
"Status": "200 OK",
39+
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
40+
"Vary": "Accept, Authorization, Cookie, X-GitHub-OTP",
41+
"X-Accepted-OAuth-Scopes": "",
42+
"X-Content-Type-Options": "nosniff",
43+
"X-Frame-Options": "deny",
44+
"X-GitHub-Media-Type": "github.v3; param=full; format=json",
45+
"X-GitHub-Request-Id": "4EC11365:B213:8F753BD:57408B7D",
46+
"X-OAuth-Scopes": "delete_repo, gist, repo",
47+
"X-RateLimit-Limit": "5000",
48+
"X-RateLimit-Remaining": "4994",
49+
"X-RateLimit-Reset": "1463848979",
50+
"X-Served-By": "2811da37fbdda4367181b328b22b2499",
51+
"X-XSS-Protection": "1; mode=block"
52+
},
53+
"status": {
54+
"code": 200,
55+
"message": "OK"
56+
},
57+
"url": "https://api.github.com/user"
58+
}
59+
},
60+
{
61+
"recorded_at": "2016-05-21T16:23:25",
62+
"request": {
63+
"body": {
64+
"encoding": "utf-8",
65+
"string": "{\"public\": true, \"files\": {\"random-fortune-1.txt\": {\"content\": \"Your best consolation is the hope that the things you failed to get weren't\\nreally worth having.\\n\"}}, \"description\": \"this is a test.\"}"
66+
},
67+
"headers": {
68+
"Accept": "application/vnd.github.v3.full+json",
69+
"Accept-Charset": "utf-8",
70+
"Accept-Encoding": "identity",
71+
"Authorization": "token <PRIVATE_KEY_GITHUB>",
72+
"Connection": "keep-alive",
73+
"Content-Length": "201",
74+
"Content-Type": "application/json",
75+
"User-Agent": "github3.py/0.9.5"
76+
},
77+
"method": "POST",
78+
"uri": "https://api.github.com/gists"
79+
},
80+
"response": {
81+
"body": {
82+
"encoding": "utf-8",
83+
"string": "{\"url\":\"https://api.github.com/gists/38e4e3ef0c34be6e0ffe3a67d39ecaa7\",\"forks_url\":\"https://api.github.com/gists/38e4e3ef0c34be6e0ffe3a67d39ecaa7/forks\",\"commits_url\":\"https://api.github.com/gists/38e4e3ef0c34be6e0ffe3a67d39ecaa7/commits\",\"id\":\"38e4e3ef0c34be6e0ffe3a67d39ecaa7\",\"git_pull_url\":\"https://gist.github.com/38e4e3ef0c34be6e0ffe3a67d39ecaa7.git\",\"git_push_url\":\"https://gist.github.com/38e4e3ef0c34be6e0ffe3a67d39ecaa7.git\",\"html_url\":\"https://gist.github.com/38e4e3ef0c34be6e0ffe3a67d39ecaa7\",\"files\":{\"random-fortune-1.txt\":{\"filename\":\"random-fortune-1.txt\",\"type\":\"text/plain\",\"language\":\"Text\",\"raw_url\":\"https://gist.githubusercontent.com/<GITHUB_NAMESPACE>/38e4e3ef0c34be6e0ffe3a67d39ecaa7/raw/1d4c746630a25f87cd02492a7ec8c5b210c1ba56/random-fortune-1.txt\",\"size\":97,\"truncated\":false,\"content\":\"Your best consolation is the hope that the things you failed to get weren't\\nreally worth having.\\n\"}},\"public\":true,\"created_at\":\"2016-05-21T16:23:26Z\",\"updated_at\":\"2016-05-21T16:23:26Z\",\"description\":\"this is a test.\",\"comments\":0,\"user\":null,\"comments_url\":\"https://api.github.com/gists/38e4e3ef0c34be6e0ffe3a67d39ecaa7/comments\",\"owner\":{\"login\":\"<GITHUB_NAMESPACE>\",\"id\":254441,\"avatar_url\":\"https://avatars.githubusercontent.com/u/254441?v=3\",\"gravatar_id\":\"\",\"url\":\"https://api.github.com/users/<GITHUB_NAMESPACE>\",\"html_url\":\"https://github.com/<GITHUB_NAMESPACE>\",\"followers_url\":\"https://api.github.com/users/<GITHUB_NAMESPACE>/followers\",\"following_url\":\"https://api.github.com/users/<GITHUB_NAMESPACE>/following{/other_user}\",\"gists_url\":\"https://api.github.com/users/<GITHUB_NAMESPACE>/gists{/gist_id}\",\"starred_url\":\"https://api.github.com/users/<GITHUB_NAMESPACE>/starred{/owner}{/repo}\",\"subscriptions_url\":\"https://api.github.com/users/<GITHUB_NAMESPACE>/subscriptions\",\"organizations_url\":\"https://api.github.com/users/<GITHUB_NAMESPACE>/orgs\",\"repos_url\":\"https://api.github.com/users/<GITHUB_NAMESPACE>/repos\",\"events_url\":\"https://api.github.com/users/<GITHUB_NAMESPACE>/events{/privacy}\",\"received_events_url\":\"https://api.github.com/users/<GITHUB_NAMESPACE>/received_events\",\"type\":\"User\",\"site_admin\":false},\"forks\":[],\"history\":[{\"user\":{\"login\":\"<GITHUB_NAMESPACE>\",\"id\":254441,\"avatar_url\":\"https://avatars.githubusercontent.com/u/254441?v=3\",\"gravatar_id\":\"\",\"url\":\"https://api.github.com/users/<GITHUB_NAMESPACE>\",\"html_url\":\"https://github.com/<GITHUB_NAMESPACE>\",\"followers_url\":\"https://api.github.com/users/<GITHUB_NAMESPACE>/followers\",\"following_url\":\"https://api.github.com/users/<GITHUB_NAMESPACE>/following{/other_user}\",\"gists_url\":\"https://api.github.com/users/<GITHUB_NAMESPACE>/gists{/gist_id}\",\"starred_url\":\"https://api.github.com/users/<GITHUB_NAMESPACE>/starred{/owner}{/repo}\",\"subscriptions_url\":\"https://api.github.com/users/<GITHUB_NAMESPACE>/subscriptions\",\"organizations_url\":\"https://api.github.com/users/<GITHUB_NAMESPACE>/orgs\",\"repos_url\":\"https://api.github.com/users/<GITHUB_NAMESPACE>/repos\",\"events_url\":\"https://api.github.com/users/<GITHUB_NAMESPACE>/events{/privacy}\",\"received_events_url\":\"https://api.github.com/users/<GITHUB_NAMESPACE>/received_events\",\"type\":\"User\",\"site_admin\":false},\"version\":\"874d5ae845ea751d66f4885506df3c3e66c79061\",\"committed_at\":\"2016-05-21T16:23:26Z\",\"change_status\":{\"total\":2,\"additions\":2,\"deletions\":0},\"url\":\"https://api.github.com/gists/38e4e3ef0c34be6e0ffe3a67d39ecaa7/874d5ae845ea751d66f4885506df3c3e66c79061\"}],\"truncated\":false}"
84+
},
85+
"headers": {
86+
"Access-Control-Allow-Origin": "*",
87+
"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",
88+
"Cache-Control": "private, max-age=60, s-maxage=60",
89+
"Content-Length": "3146",
90+
"Content-Security-Policy": "default-src 'none'",
91+
"Content-Type": "application/json; charset=utf-8",
92+
"Date": "Sat, 21 May 2016 16:23:26 GMT",
93+
"ETag": "\"b3bd1db1a4cbc65a5c992a6bb71a53c4\"",
94+
"Location": "https://api.github.com/gists/38e4e3ef0c34be6e0ffe3a67d39ecaa7",
95+
"Server": "GitHub.com",
96+
"Status": "201 Created",
97+
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
98+
"Vary": "Accept, Authorization, Cookie, X-GitHub-OTP",
99+
"X-Accepted-OAuth-Scopes": "",
100+
"X-Content-Type-Options": "nosniff",
101+
"X-Frame-Options": "deny",
102+
"X-GitHub-Media-Type": "github.v3; param=full; format=json",
103+
"X-GitHub-Request-Id": "4EC11365:B213:8F753D7:57408B7D",
104+
"X-OAuth-Scopes": "delete_repo, gist, repo",
105+
"X-RateLimit-Limit": "5000",
106+
"X-RateLimit-Remaining": "4993",
107+
"X-RateLimit-Reset": "1463848979",
108+
"X-Served-By": "139317cebd6caf9cd03889139437f00b",
109+
"X-XSS-Protection": "1; mode=block"
110+
},
111+
"status": {
112+
"code": 201,
113+
"message": "Created"
114+
},
115+
"url": "https://api.github.com/gists"
116+
}
117+
}
118+
],
119+
"recorded_with": "betamax/0.5.1"
120+
}

0 commit comments

Comments
 (0)