Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fixtures to not bother api.github.com when testing #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions fixtures/generated/0400dc939a89f5d7e291a825f10b2123
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
43 changes: 43 additions & 0 deletions fixtures/generated/0400dc939a89f5d7e291a825f10b2123.headers
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"statusCode": 200,
"headers": {
"server": "github.com",
"date": "Tue, 22 Apr 2014 00:47:02 GMT",
"content-type": "application/json; charset=utf-8",
"connection": "close",
"status": "200 OK",
"x-ratelimit-limit": "5000",
"x-ratelimit-remaining": "4934",
"x-ratelimit-reset": "1398131192",
"cache-control": "private, max-age=60, s-maxage=60",
"etag": "\"9443281d3c4880565d805eeb40606895\"",
"x-oauth-scopes": "gist, repo, user",
"x-accepted-oauth-scopes": "",
"vary": "Accept, Authorization, Cookie, X-GitHub-OTP",
"x-github-media-type": "github.v3; param=raw",
"link": "<https://api.github.com/user/6079203/following?page=0>; rel=\"last\"",
"x-xss-protection": "1; mode=block",
"x-frame-options": "deny",
"content-security-policy": "default-src 'none'",
"content-length": "2",
"access-control-allow-credentials": "true",
"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",
"access-control-allow-origin": "*",
"x-github-request-id": "17757AFA:3B01:8BCF79:5355BC06",
"strict-transport-security": "max-age=31536000",
"x-content-type-options": "nosniff",
"x-served-by": "88d924ed861736d2749ce1a55766cb53"
},
"url": "https://api.github.com:443/users/octokit-test2/following",
"time": 409,
"request": {
"method": "GET",
"headers": {
"User-Agent": "octokit",
"Accept": "application/vnd.github.raw",
"If-Modified-Since": "Thu, 01 Jan 1970 00:00:00 GMT",
"Authorization": "token dca7f85a5911df8e9b7aeb4c5be8f5f50806ac49",
"Host": "api.github.com"
}
}
}
1 change: 1 addition & 0 deletions fixtures/generated/140fda03275ef21d970579c5714ea2ca
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
43 changes: 43 additions & 0 deletions fixtures/generated/140fda03275ef21d970579c5714ea2ca.headers
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"statusCode": 200,
"headers": {
"server": "github.com",
"date": "Tue, 22 Apr 2014 00:47:02 GMT",
"content-type": "application/json; charset=utf-8",
"connection": "close",
"status": "200 OK",
"x-ratelimit-limit": "5000",
"x-ratelimit-remaining": "4935",
"x-ratelimit-reset": "1398131192",
"cache-control": "private, max-age=60, s-maxage=60",
"etag": "\"9443281d3c4880565d805eeb40606895\"",
"x-oauth-scopes": "gist, repo, user",
"x-accepted-oauth-scopes": "",
"vary": "Accept, Authorization, Cookie, X-GitHub-OTP",
"x-github-media-type": "github.v3; param=raw",
"link": "<https://api.github.com/user/6079203/followers?page=0>; rel=\"last\"",
"x-xss-protection": "1; mode=block",
"x-frame-options": "deny",
"content-security-policy": "default-src 'none'",
"content-length": "2",
"access-control-allow-credentials": "true",
"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",
"access-control-allow-origin": "*",
"x-github-request-id": "17757AFA:3B01:8BCED7:5355BC05",
"strict-transport-security": "max-age=31536000",
"x-content-type-options": "nosniff",
"x-served-by": "a1d8c69b807c8e21f06cad9da377d1b0"
},
"url": "https://api.github.com:443/users/octokit-test2/followers",
"time": 366,
"request": {
"method": "GET",
"headers": {
"User-Agent": "octokit",
"Accept": "application/vnd.github.raw",
"If-Modified-Since": "Thu, 01 Jan 1970 00:00:00 GMT",
"Authorization": "token dca7f85a5911df8e9b7aeb4c5be8f5f50806ac49",
"Host": "api.github.com"
}
}
}
1 change: 1 addition & 0 deletions fixtures/generated/1a713a4822430160f98e80511c2ffce0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
43 changes: 43 additions & 0 deletions fixtures/generated/1a713a4822430160f98e80511c2ffce0.headers
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"statusCode": 200,
"headers": {
"server": "github.com",
"date": "Tue, 22 Apr 2014 00:46:54 GMT",
"content-type": "application/json; charset=utf-8",
"connection": "close",
"status": "200 OK",
"x-ratelimit-limit": "5000",
"x-ratelimit-remaining": "4952",
"x-ratelimit-reset": "1398131192",
"cache-control": "private, max-age=60, s-maxage=60",
"etag": "\"9443281d3c4880565d805eeb40606895\"",
"x-oauth-scopes": "gist, repo, user",
"x-accepted-oauth-scopes": "",
"vary": "Accept, Authorization, Cookie, X-GitHub-OTP",
"x-github-media-type": "github.v3; param=raw",
"link": "<https://api.github.com/repositories/14854242/issues/events?page=0>; rel=\"last\"",
"x-xss-protection": "1; mode=block",
"x-frame-options": "deny",
"content-security-policy": "default-src 'none'",
"content-length": "2",
"access-control-allow-credentials": "true",
"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",
"access-control-allow-origin": "*",
"x-github-request-id": "17757AFA:3B01:8BC1FD:5355BBFE",
"strict-transport-security": "max-age=31536000",
"x-content-type-options": "nosniff",
"x-served-by": "6d7de9e645814cac34ea2a8d72ba3141"
},
"url": "https://api.github.com:443/repos/octokit-test/octokit-test-repo/issues/events",
"time": 424,
"request": {
"method": "GET",
"headers": {
"User-Agent": "octokit",
"Accept": "application/vnd.github.raw",
"If-Modified-Since": "Thu, 01 Jan 1970 00:00:00 GMT",
"Authorization": "token dca7f85a5911df8e9b7aeb4c5be8f5f50806ac49",
"Host": "api.github.com"
}
}
}
1 change: 1 addition & 0 deletions fixtures/generated/1f50a907ff7042f277a5a599088910e3

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions fixtures/generated/1f50a907ff7042f277a5a599088910e3.headers
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"statusCode": 200,
"headers": {
"server": "github.com",
"date": "Tue, 22 Apr 2014 00:46:34 GMT",
"content-type": "application/json; charset=utf-8",
"connection": "close",
"status": "200 OK",
"x-ratelimit-limit": "5000",
"x-ratelimit-remaining": "4996",
"x-ratelimit-reset": "1398131192",
"cache-control": "private, max-age=60, s-maxage=60",
"last-modified": "Tue, 22 Apr 2014 00:46:30 GMT",
"etag": "\"d523a106fd952a3057507ababffdfa88\"",
"x-poll-interval": "60",
"x-oauth-scopes": "gist, repo, user",
"x-accepted-oauth-scopes": "repo",
"vary": "Accept, Authorization, Cookie, X-GitHub-OTP",
"x-github-media-type": "github.v3; param=raw",
"link": "<https://api.github.com/events?page=2>; rel=\"next\"",
"x-xss-protection": "1; mode=block",
"x-frame-options": "deny",
"content-security-policy": "default-src 'none'",
"content-length": "57165",
"access-control-allow-credentials": "true",
"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",
"access-control-allow-origin": "*",
"x-github-request-id": "17757AFA:439F:585ED5:5355BBEA",
"strict-transport-security": "max-age=31536000",
"x-content-type-options": "nosniff",
"x-served-by": "03d91026ad8428f4d9966d7434f9d82e"
},
"url": "https://api.github.com:443/events",
"time": 648,
"request": {
"method": "GET",
"headers": {
"User-Agent": "octokit",
"Accept": "application/vnd.github.raw",
"If-Modified-Since": "Thu, 01 Jan 1970 00:00:00 GMT",
"Authorization": "token dca7f85a5911df8e9b7aeb4c5be8f5f50806ac49",
"Host": "api.github.com"
}
}
}
1 change: 1 addition & 0 deletions fixtures/generated/27c40ce25266b4872cab683f5212cbb7
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"login":"octokit-test2","id":6079203,"avatar_url":"https://avatars.githubusercontent.com/u/6079203?","gravatar_id":"8bac7207033720c41a552c8ca5761a58","url":"https://api.github.com/users/octokit-test2","html_url":"https://github.com/octokit-test2","followers_url":"https://api.github.com/users/octokit-test2/followers","following_url":"https://api.github.com/users/octokit-test2/following{/other_user}","gists_url":"https://api.github.com/users/octokit-test2/gists{/gist_id}","starred_url":"https://api.github.com/users/octokit-test2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octokit-test2/subscriptions","organizations_url":"https://api.github.com/users/octokit-test2/orgs","repos_url":"https://api.github.com/users/octokit-test2/repos","events_url":"https://api.github.com/users/octokit-test2/events{/privacy}","received_events_url":"https://api.github.com/users/octokit-test2/received_events","type":"User","site_admin":false,"public_repos":0,"public_gists":0,"followers":0,"following":0,"created_at":"2013-12-01T16:15:05Z","updated_at":"2013-12-01T16:15:14Z"}
43 changes: 43 additions & 0 deletions fixtures/generated/27c40ce25266b4872cab683f5212cbb7.headers
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"statusCode": 200,
"headers": {
"server": "github.com",
"date": "Tue, 22 Apr 2014 00:47:00 GMT",
"content-type": "application/json; charset=utf-8",
"connection": "close",
"status": "200 OK",
"x-ratelimit-limit": "5000",
"x-ratelimit-remaining": "4939",
"x-ratelimit-reset": "1398131192",
"cache-control": "private, max-age=60, s-maxage=60",
"last-modified": "Sun, 01 Dec 2013 16:15:14 GMT",
"etag": "\"c73d727e135f3b53bc18fed56d9a682a\"",
"x-oauth-scopes": "gist, repo, user",
"x-accepted-oauth-scopes": "",
"vary": "Accept, Authorization, Cookie, X-GitHub-OTP",
"x-github-media-type": "github.v3; param=raw",
"x-xss-protection": "1; mode=block",
"x-frame-options": "deny",
"content-security-policy": "default-src 'none'",
"content-length": "1095",
"access-control-allow-credentials": "true",
"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",
"access-control-allow-origin": "*",
"x-github-request-id": "17757AFA:3B01:8BCBD4:5355BC04",
"strict-transport-security": "max-age=31536000",
"x-content-type-options": "nosniff",
"x-served-by": "a1d8c69b807c8e21f06cad9da377d1b0"
},
"url": "https://api.github.com:443/users/octokit-test2",
"time": 369,
"request": {
"method": "GET",
"headers": {
"User-Agent": "octokit",
"Accept": "application/vnd.github.raw",
"If-Modified-Since": "Thu, 01 Jan 1970 00:00:00 GMT",
"Authorization": "token dca7f85a5911df8e9b7aeb4c5be8f5f50806ac49",
"Host": "api.github.com"
}
}
}
1 change: 1 addition & 0 deletions fixtures/generated/27d62dfc0325003a62424141bc416678
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"login":"octokit-test-org","id":6076387,"url":"https://api.github.com/orgs/octokit-test-org","repos_url":"https://api.github.com/orgs/octokit-test-org/repos","events_url":"https://api.github.com/orgs/octokit-test-org/events","members_url":"https://api.github.com/orgs/octokit-test-org/members{/member}","public_members_url":"https://api.github.com/orgs/octokit-test-org/public_members{/member}","avatar_url":"https://avatars.githubusercontent.com/u/6076387?"}]
42 changes: 42 additions & 0 deletions fixtures/generated/27d62dfc0325003a62424141bc416678.headers
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"statusCode": 200,
"headers": {
"server": "github.com",
"date": "Tue, 22 Apr 2014 00:46:57 GMT",
"content-type": "application/json; charset=utf-8",
"connection": "close",
"status": "200 OK",
"x-ratelimit-limit": "5000",
"x-ratelimit-remaining": "4945",
"x-ratelimit-reset": "1398131192",
"cache-control": "private, max-age=60, s-maxage=60",
"etag": "\"817cd1e16cf17cfd4d8a68827633e622\"",
"x-oauth-scopes": "gist, repo, user",
"x-accepted-oauth-scopes": "admin:org, read:org, repo, user, write:org",
"vary": "Accept, Authorization, Cookie, X-GitHub-OTP",
"x-github-media-type": "github.v3; param=raw",
"x-xss-protection": "1; mode=block",
"x-frame-options": "deny",
"content-security-policy": "default-src 'none'",
"content-length": "462",
"access-control-allow-credentials": "true",
"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",
"access-control-allow-origin": "*",
"x-github-request-id": "17757AFA:3B02:2515B4:5355BC01",
"strict-transport-security": "max-age=31536000",
"x-content-type-options": "nosniff",
"x-served-by": "62a1303ae95931e56e387e87d354bb24"
},
"url": "https://api.github.com:443/user/orgs",
"time": 491,
"request": {
"method": "GET",
"headers": {
"User-Agent": "octokit",
"Accept": "application/vnd.github.raw",
"If-Modified-Since": "Thu, 01 Jan 1970 00:00:00 GMT",
"Authorization": "token dca7f85a5911df8e9b7aeb4c5be8f5f50806ac49",
"Host": "api.github.com"
}
}
}
1 change: 1 addition & 0 deletions fixtures/generated/2acf5dc1710b14bbb6548716349537ba
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Practicality beats purity.
37 changes: 37 additions & 0 deletions fixtures/generated/2acf5dc1710b14bbb6548716349537ba.headers
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"statusCode": 200,
"headers": {
"server": "github.com",
"date": "Tue, 22 Apr 2014 00:46:32 GMT",
"content-type": "text/plain;charset=utf-8",
"connection": "close",
"status": "200 OK",
"x-ratelimit-limit": "5000",
"x-ratelimit-remaining": "4999",
"x-ratelimit-reset": "1398131192",
"x-xss-protection": "1; mode=block",
"x-frame-options": "deny",
"content-security-policy": "default-src 'none'",
"content-length": "26",
"access-control-allow-credentials": "true",
"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",
"access-control-allow-origin": "*",
"x-github-request-id": "17757AFA:439E:3DCA1A:5355BBE7",
"strict-transport-security": "max-age=31536000",
"x-content-type-options": "nosniff",
"vary": "Accept-Encoding",
"x-served-by": "62a1303ae95931e56e387e87d354bb24"
},
"url": "https://api.github.com:443/zen",
"time": 1500,
"request": {
"method": "GET",
"headers": {
"User-Agent": "octokit",
"Accept": "application/vnd.github.raw",
"If-Modified-Since": "Thu, 01 Jan 1970 00:00:00 GMT",
"Authorization": "token dca7f85a5911df8e9b7aeb4c5be8f5f50806ac49",
"Host": "api.github.com"
}
}
}
1 change: 1 addition & 0 deletions fixtures/generated/38df271aeb423cd1a2346e7c4fcffb99
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
43 changes: 43 additions & 0 deletions fixtures/generated/38df271aeb423cd1a2346e7c4fcffb99.headers
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"statusCode": 200,
"headers": {
"server": "github.com",
"date": "Tue, 22 Apr 2014 00:46:55 GMT",
"content-type": "application/json; charset=utf-8",
"connection": "close",
"status": "200 OK",
"x-ratelimit-limit": "5000",
"x-ratelimit-remaining": "4950",
"x-ratelimit-reset": "1398131192",
"cache-control": "private, max-age=60, s-maxage=60",
"etag": "\"9443281d3c4880565d805eeb40606895\"",
"x-oauth-scopes": "gist, repo, user",
"x-accepted-oauth-scopes": "admin:repo_hook, public_repo, read:repo_hook, repo, write:repo_hook",
"vary": "Accept, Authorization, Cookie, X-GitHub-OTP",
"x-github-media-type": "github.v3; param=raw",
"link": "<https://api.github.com/repositories/14854242/hooks?page=0>; rel=\"last\"",
"x-xss-protection": "1; mode=block",
"x-frame-options": "deny",
"content-security-policy": "default-src 'none'",
"content-length": "2",
"access-control-allow-credentials": "true",
"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",
"access-control-allow-origin": "*",
"x-github-request-id": "17757AFA:3AFF:511CC8:5355BBFF",
"strict-transport-security": "max-age=31536000",
"x-content-type-options": "nosniff",
"x-served-by": "a1d8c69b807c8e21f06cad9da377d1b0"
},
"url": "https://api.github.com:443/repos/octokit-test/octokit-test-repo/hooks",
"time": 365,
"request": {
"method": "GET",
"headers": {
"User-Agent": "octokit",
"Accept": "application/vnd.github.raw",
"If-Modified-Since": "Thu, 01 Jan 1970 00:00:00 GMT",
"Authorization": "token dca7f85a5911df8e9b7aeb4c5be8f5f50806ac49",
"Host": "api.github.com"
}
}
}
Loading