Skip to content

Commit 215c92c

Browse files
committed
Add gitbucket cassettes.
1 parent 9702d77 commit 215c92c

File tree

31 files changed

+1594
-0
lines changed

31 files changed

+1594
-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": "2017-04-30T17:11: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_GITBUCKET>",
15+
"Connection": "keep-alive",
16+
"Content-Type": "application/json",
17+
"User-Agent": "github3.py/0.9.5"
18+
},
19+
"method": "GET",
20+
"uri": "http://localhost:8080/api/v3/<GITBUCKET_NAMESPACE>"
21+
},
22+
"response": {
23+
"body": {
24+
"encoding": "utf-8",
25+
"string": "{\"login\":\"<GITBUCKET_NAMESPACE>\",\"email\":\"<GITBUCKET_NAMESPACE>@localhost\",\"type\":\"User\",\"site_admin\":false,\"created_at\":\"2017-04-30T15:09:05Z\",\"url\":\"http://localhost:8080/api/v3/<GITBUCKET_NAMESPACE>s/<GITBUCKET_NAMESPACE>\",\"html_url\":\"http://localhost:8080/<GITBUCKET_NAMESPACE>\",\"avatar_url\":\"http://localhost:8080/<GITBUCKET_NAMESPACE>/_avatar\"}"
26+
},
27+
"headers": {
28+
"Content-Length": "248",
29+
"Content-Type": "application/json;charset=utf-8",
30+
"Date": "Sun, 30 Apr 2017 17:11:25 GMT",
31+
"Expires": "Thu, 01 Jan 1970 00:00:00 GMT",
32+
"Server": "Jetty(9.3.z-SNAPSHOT)",
33+
"Set-Cookie": "JSESSIONID=elg1zmdohhji2r0q9zxilcck;Path=/;HttpOnly"
34+
},
35+
"status": {
36+
"code": 200,
37+
"message": "OK"
38+
},
39+
"url": "http://localhost:8080/api/v3/<GITBUCKET_NAMESPACE>"
40+
}
41+
},
42+
{
43+
"recorded_at": "2017-04-30T17:11:25",
44+
"request": {
45+
"body": {
46+
"encoding": "utf-8",
47+
"string": ""
48+
},
49+
"headers": {
50+
"Accept": "application/vnd.github.v3.full+json",
51+
"Accept-Charset": "utf-8",
52+
"Accept-Encoding": "identity",
53+
"Authorization": "token <PRIVATE_KEY_GITBUCKET>",
54+
"Connection": "keep-alive",
55+
"Content-Type": "application/json",
56+
"Cookie": "JSESSIONID=elg1zmdohhji2r0q9zxilcck",
57+
"User-Agent": "github3.py/0.9.5"
58+
},
59+
"method": "GET",
60+
"uri": "http://localhost:8080/api/v3/repos/root/repo"
61+
},
62+
"response": {
63+
"body": {
64+
"encoding": "utf-8",
65+
"string": "{\"name\":\"repo\",\"full_name\":\"root/repo\",\"description\":\"\",\"watchers\":0,\"forks\":0,\"private\":false,\"default_branch\":\"master\",\"owner\":{\"login\":\"root\",\"email\":\"root@localhost\",\"type\":\"User\",\"site_admin\":true,\"created_at\":\"2017-04-30T15:09:00Z\",\"url\":\"http://localhost:8080/api/v3/<GITBUCKET_NAMESPACE>s/root\",\"html_url\":\"http://localhost:8080/root\",\"avatar_url\":\"http://localhost:8080/root/_avatar\"},\"forks_count\":0,\"watchers_count\":0,\"url\":\"http://localhost:8080/api/v3/repos/root/repo\",\"http_url\":\"http://localhost:8080/git/root/repo.git\",\"clone_url\":\"http://localhost:8080/git/root/repo.git\",\"html_url\":\"http://localhost:8080/root/repo\"}"
66+
},
67+
"headers": {
68+
"Content-Length": "617",
69+
"Content-Type": "application/json;charset=utf-8",
70+
"Date": "Sun, 30 Apr 2017 17:11:25 GMT",
71+
"Server": "Jetty(9.3.z-SNAPSHOT)"
72+
},
73+
"status": {
74+
"code": 200,
75+
"message": "OK"
76+
},
77+
"url": "http://localhost:8080/api/v3/repos/root/repo"
78+
}
79+
},
80+
{
81+
"recorded_at": "2017-04-30T17:11:31",
82+
"request": {
83+
"body": {
84+
"encoding": "utf-8",
85+
"string": ""
86+
},
87+
"headers": {
88+
"Accept": "application/vnd.github.v3.full+json",
89+
"Accept-Charset": "utf-8",
90+
"Accept-Encoding": "identity",
91+
"Authorization": "token <PRIVATE_KEY_GITBUCKET>",
92+
"Connection": "keep-alive",
93+
"Content-Length": "0",
94+
"Content-Type": "application/json",
95+
"Cookie": "JSESSIONID=elg1zmdohhji2r0q9zxilcck",
96+
"User-Agent": "github3.py/0.9.5"
97+
},
98+
"method": "POST",
99+
"uri": "http://localhost:8080/api/v3/repos/root/repo/forks"
100+
},
101+
"response": {
102+
"body": {
103+
"encoding": null,
104+
"string": ""
105+
},
106+
"headers": {
107+
"Content-Length": "0",
108+
"Date": "Sun, 30 Apr 2017 17:11:25 GMT",
109+
"Server": "Jetty(9.3.z-SNAPSHOT)"
110+
},
111+
"status": {
112+
"code": 404,
113+
"message": "Not Found"
114+
},
115+
"url": "http://localhost:8080/api/v3/repos/root/repo/forks"
116+
}
117+
}
118+
],
119+
"recorded_with": "betamax/0.5.1"
120+
}
Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
{
2+
"http_interactions": [
3+
{
4+
"recorded_at": "2017-04-30T17:11:36",
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_GITBUCKET>",
15+
"Connection": "keep-alive",
16+
"Content-Type": "application/json",
17+
"User-Agent": "github3.py/0.9.5"
18+
},
19+
"method": "GET",
20+
"uri": "http://localhost:8080/api/v3/<GITBUCKET_NAMESPACE>"
21+
},
22+
"response": {
23+
"body": {
24+
"encoding": "utf-8",
25+
"string": "{\"login\":\"<GITBUCKET_NAMESPACE>\",\"email\":\"<GITBUCKET_NAMESPACE>@localhost\",\"type\":\"User\",\"site_admin\":false,\"created_at\":\"2017-04-30T15:09:05Z\",\"url\":\"http://localhost:8080/api/v3/<GITBUCKET_NAMESPACE>s/<GITBUCKET_NAMESPACE>\",\"html_url\":\"http://localhost:8080/<GITBUCKET_NAMESPACE>\",\"avatar_url\":\"http://localhost:8080/<GITBUCKET_NAMESPACE>/_avatar\"}"
26+
},
27+
"headers": {
28+
"Content-Length": "248",
29+
"Content-Type": "application/json;charset=utf-8",
30+
"Date": "Sun, 30 Apr 2017 17:11:36 GMT",
31+
"Expires": "Thu, 01 Jan 1970 00:00:00 GMT",
32+
"Server": "Jetty(9.3.z-SNAPSHOT)",
33+
"Set-Cookie": "JSESSIONID=xkncl73xsy4y1aih0cd7kkxo4;Path=/;HttpOnly"
34+
},
35+
"status": {
36+
"code": 200,
37+
"message": "OK"
38+
},
39+
"url": "http://localhost:8080/api/v3/<GITBUCKET_NAMESPACE>"
40+
}
41+
},
42+
{
43+
"recorded_at": "2017-04-30T17:11:36",
44+
"request": {
45+
"body": {
46+
"encoding": "utf-8",
47+
"string": "{\"description\": \"\", \"auto_init\": false, \"private\": false, \"has_downloads\": true, \"name\": \"git-repo\", \"has_wiki\": true, \"has_issues\": true, \"gitignore_template\": \"\", \"homepage\": \"\"}"
48+
},
49+
"headers": {
50+
"Accept": "application/vnd.github.v3.full+json",
51+
"Accept-Charset": "utf-8",
52+
"Accept-Encoding": "identity",
53+
"Authorization": "token <PRIVATE_KEY_GITBUCKET>",
54+
"Connection": "keep-alive",
55+
"Content-Length": "180",
56+
"Content-Type": "application/json",
57+
"Cookie": "JSESSIONID=xkncl73xsy4y1aih0cd7kkxo4",
58+
"User-Agent": "github3.py/0.9.5"
59+
},
60+
"method": "POST",
61+
"uri": "http://localhost:8080/api/v3/<GITBUCKET_NAMESPACE>/repos"
62+
},
63+
"response": {
64+
"body": {
65+
"encoding": "utf-8",
66+
"string": "{\"message\":\"A repository with this name already exists on this account\",\"documentation_url\":\"https://developer.github.com/v3/repos/#create\"}"
67+
},
68+
"headers": {
69+
"Content-Length": "140",
70+
"Content-Type": "application/json;charset=utf-8",
71+
"Date": "Sun, 30 Apr 2017 17:11:36 GMT",
72+
"Server": "Jetty(9.3.z-SNAPSHOT)"
73+
},
74+
"status": {
75+
"code": 200,
76+
"message": "OK"
77+
},
78+
"url": "http://localhost:8080/api/v3/<GITBUCKET_NAMESPACE>/repos"
79+
}
80+
},
81+
{
82+
"recorded_at": "2017-04-30T17:11:36",
83+
"request": {
84+
"body": {
85+
"encoding": "utf-8",
86+
"string": ""
87+
},
88+
"headers": {
89+
"Accept": "application/vnd.github.v3.full+json",
90+
"Accept-Charset": "utf-8",
91+
"Accept-Encoding": "identity",
92+
"Authorization": "token <PRIVATE_KEY_GITBUCKET>",
93+
"Connection": "keep-alive",
94+
"Content-Type": "application/json",
95+
"Cookie": "JSESSIONID=xkncl73xsy4y1aih0cd7kkxo4",
96+
"User-Agent": "github3.py/0.9.5"
97+
},
98+
"method": "GET",
99+
"uri": "http://localhost:8080/api/v3/repos/<GITBUCKET_NAMESPACE>/git-repo"
100+
},
101+
"response": {
102+
"body": {
103+
"encoding": "utf-8",
104+
"string": "{\"name\":\"git-repo\",\"full_name\":\"<GITBUCKET_NAMESPACE>/git-repo\",\"description\":\"\",\"watchers\":0,\"forks\":0,\"private\":false,\"default_branch\":\"master\",\"owner\":{\"login\":\"<GITBUCKET_NAMESPACE>\",\"email\":\"<GITBUCKET_NAMESPACE>@localhost\",\"type\":\"User\",\"site_admin\":false,\"created_at\":\"2017-04-30T15:09:05Z\",\"url\":\"http://localhost:8080/api/v3/<GITBUCKET_NAMESPACE>s/<GITBUCKET_NAMESPACE>\",\"html_url\":\"http://localhost:8080/<GITBUCKET_NAMESPACE>\",\"avatar_url\":\"http://localhost:8080/<GITBUCKET_NAMESPACE>/_avatar\"},\"forks_count\":0,\"watchers_count\":0,\"url\":\"http://localhost:8080/api/v3/repos/<GITBUCKET_NAMESPACE>/git-repo\",\"http_url\":\"http://localhost:8080/git/<GITBUCKET_NAMESPACE>/git-repo.git\",\"clone_url\":\"http://localhost:8080/git/<GITBUCKET_NAMESPACE>/git-repo.git\",\"html_url\":\"http://localhost:8080/<GITBUCKET_NAMESPACE>/git-repo\"}"
105+
},
106+
"headers": {
107+
"Content-Length": "642",
108+
"Content-Type": "application/json;charset=utf-8",
109+
"Date": "Sun, 30 Apr 2017 17:11:36 GMT",
110+
"Server": "Jetty(9.3.z-SNAPSHOT)"
111+
},
112+
"status": {
113+
"code": 200,
114+
"message": "OK"
115+
},
116+
"url": "http://localhost:8080/api/v3/repos/<GITBUCKET_NAMESPACE>/git-repo"
117+
}
118+
}
119+
],
120+
"recorded_with": "betamax/0.5.1"
121+
}
Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
{
2+
"http_interactions": [
3+
{
4+
"recorded_at": "2017-04-30T17:11:36",
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_GITBUCKET>",
15+
"Connection": "keep-alive",
16+
"Content-Type": "application/json",
17+
"User-Agent": "github3.py/0.9.5"
18+
},
19+
"method": "GET",
20+
"uri": "http://localhost:8080/api/v3/<GITBUCKET_NAMESPACE>"
21+
},
22+
"response": {
23+
"body": {
24+
"encoding": "utf-8",
25+
"string": "{\"login\":\"<GITBUCKET_NAMESPACE>\",\"email\":\"<GITBUCKET_NAMESPACE>@localhost\",\"type\":\"User\",\"site_admin\":false,\"created_at\":\"2017-04-30T15:09:05Z\",\"url\":\"http://localhost:8080/api/v3/<GITBUCKET_NAMESPACE>s/<GITBUCKET_NAMESPACE>\",\"html_url\":\"http://localhost:8080/<GITBUCKET_NAMESPACE>\",\"avatar_url\":\"http://localhost:8080/<GITBUCKET_NAMESPACE>/_avatar\"}"
26+
},
27+
"headers": {
28+
"Content-Length": "248",
29+
"Content-Type": "application/json;charset=utf-8",
30+
"Date": "Sun, 30 Apr 2017 17:11:36 GMT",
31+
"Expires": "Thu, 01 Jan 1970 00:00:00 GMT",
32+
"Server": "Jetty(9.3.z-SNAPSHOT)",
33+
"Set-Cookie": "JSESSIONID=n2h07ygolzorkq3c2vyougty;Path=/;HttpOnly"
34+
},
35+
"status": {
36+
"code": 200,
37+
"message": "OK"
38+
},
39+
"url": "http://localhost:8080/api/v3/<GITBUCKET_NAMESPACE>"
40+
}
41+
},
42+
{
43+
"recorded_at": "2017-04-30T17:11:36",
44+
"request": {
45+
"body": {
46+
"encoding": "utf-8",
47+
"string": "{\"description\": \"\", \"auto_init\": false, \"private\": false, \"has_downloads\": true, \"name\": \"foobar\", \"has_wiki\": true, \"has_issues\": true, \"gitignore_template\": \"\", \"homepage\": \"\"}"
48+
},
49+
"headers": {
50+
"Accept": "application/vnd.github.v3.full+json",
51+
"Accept-Charset": "utf-8",
52+
"Accept-Encoding": "identity",
53+
"Authorization": "token <PRIVATE_KEY_GITBUCKET>",
54+
"Connection": "keep-alive",
55+
"Content-Length": "178",
56+
"Content-Type": "application/json",
57+
"Cookie": "JSESSIONID=n2h07ygolzorkq3c2vyougty",
58+
"User-Agent": "github3.py/0.9.5"
59+
},
60+
"method": "POST",
61+
"uri": "http://localhost:8080/api/v3/<GITBUCKET_NAMESPACE>/repos"
62+
},
63+
"response": {
64+
"body": {
65+
"encoding": "utf-8",
66+
"string": "{\"message\":\"A repository with this name already exists on this account\",\"documentation_url\":\"https://developer.github.com/v3/repos/#create\"}"
67+
},
68+
"headers": {
69+
"Content-Length": "140",
70+
"Content-Type": "application/json;charset=utf-8",
71+
"Date": "Sun, 30 Apr 2017 17:11:36 GMT",
72+
"Server": "Jetty(9.3.z-SNAPSHOT)"
73+
},
74+
"status": {
75+
"code": 200,
76+
"message": "OK"
77+
},
78+
"url": "http://localhost:8080/api/v3/<GITBUCKET_NAMESPACE>/repos"
79+
}
80+
},
81+
{
82+
"recorded_at": "2017-04-30T17:11:36",
83+
"request": {
84+
"body": {
85+
"encoding": "utf-8",
86+
"string": ""
87+
},
88+
"headers": {
89+
"Accept": "application/vnd.github.v3.full+json",
90+
"Accept-Charset": "utf-8",
91+
"Accept-Encoding": "identity",
92+
"Authorization": "token <PRIVATE_KEY_GITBUCKET>",
93+
"Connection": "keep-alive",
94+
"Content-Type": "application/json",
95+
"Cookie": "JSESSIONID=n2h07ygolzorkq3c2vyougty",
96+
"User-Agent": "github3.py/0.9.5"
97+
},
98+
"method": "GET",
99+
"uri": "http://localhost:8080/api/v3/repos/<GITBUCKET_NAMESPACE>/foobar"
100+
},
101+
"response": {
102+
"body": {
103+
"encoding": "utf-8",
104+
"string": "{\"name\":\"foobar\",\"full_name\":\"<GITBUCKET_NAMESPACE>/foobar\",\"description\":\"\",\"watchers\":0,\"forks\":0,\"private\":false,\"default_branch\":\"master\",\"owner\":{\"login\":\"<GITBUCKET_NAMESPACE>\",\"email\":\"<GITBUCKET_NAMESPACE>@localhost\",\"type\":\"User\",\"site_admin\":false,\"created_at\":\"2017-04-30T15:09:05Z\",\"url\":\"http://localhost:8080/api/v3/<GITBUCKET_NAMESPACE>s/<GITBUCKET_NAMESPACE>\",\"html_url\":\"http://localhost:8080/<GITBUCKET_NAMESPACE>\",\"avatar_url\":\"http://localhost:8080/<GITBUCKET_NAMESPACE>/_avatar\"},\"forks_count\":0,\"watchers_count\":0,\"url\":\"http://localhost:8080/api/v3/repos/<GITBUCKET_NAMESPACE>/foobar\",\"http_url\":\"http://localhost:8080/git/<GITBUCKET_NAMESPACE>/foobar.git\",\"clone_url\":\"http://localhost:8080/git/<GITBUCKET_NAMESPACE>/foobar.git\",\"html_url\":\"http://localhost:8080/<GITBUCKET_NAMESPACE>/foobar\"}"
105+
},
106+
"headers": {
107+
"Content-Length": "630",
108+
"Content-Type": "application/json;charset=utf-8",
109+
"Date": "Sun, 30 Apr 2017 17:11:36 GMT",
110+
"Server": "Jetty(9.3.z-SNAPSHOT)"
111+
},
112+
"status": {
113+
"code": 200,
114+
"message": "OK"
115+
},
116+
"url": "http://localhost:8080/api/v3/repos/<GITBUCKET_NAMESPACE>/foobar"
117+
}
118+
}
119+
],
120+
"recorded_with": "betamax/0.5.1"
121+
}

0 commit comments

Comments
 (0)