Skip to content

Commit 3b13bc3

Browse files
author
Dean Karn
committed
moved test fixtures into files
1 parent 865045c commit 3b13bc3

19 files changed

+2565
-2547
lines changed

bitbucket/bitbucket_test.go

Lines changed: 54 additions & 2547 deletions
Large diffs are not rendered by default.
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"actor":{
3+
"username":"emmap1",
4+
"display_name":"Emma",
5+
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
6+
"links":{
7+
"self":{
8+
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
9+
},
10+
"html":{
11+
"href":"https://api.bitbucket.org/emmap1"
12+
},
13+
"avatar":{
14+
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
15+
}
16+
}
17+
},
18+
"comment":{
19+
"id":17,
20+
"parent":{
21+
"id":16
22+
},
23+
"content":{
24+
"raw":"Comment text",
25+
"html":"<p>Comment text</p>",
26+
"markup":"markdown"
27+
},
28+
"inline":{
29+
"path":"path/to/file",
30+
"from":null,
31+
"to":10
32+
},
33+
"created_on":"2015-04-06T16:52:29.982346+00:00",
34+
"updated_on":"2015-04-06T16:52:29.983730+00:00",
35+
"links":{
36+
"self":{
37+
"href":"https://api.bitbucket.org/api/2.0/comments/comment_id"
38+
},
39+
"html":{
40+
"href":"https://api.bitbucket.org/comment_id"
41+
}
42+
}
43+
},
44+
"repository":{
45+
"links":{
46+
"self":{
47+
"href":"https://api.bitbucket.org/api/2.0/repositories/bitbucket/bitbucket"
48+
},
49+
"html":{
50+
"href":"https://api.bitbucket.org/bitbucket/bitbucket"
51+
},
52+
"avatar":{
53+
"href":"https://api-staging-assetroot.s3.amazonaws.com/c/photos/2014/Aug/01/bitbucket-logo-2629490769-3_avatar.png"
54+
}
55+
},
56+
"uuid":"{673a6070-3421-46c9-9d48-90745f7bfe8e}",
57+
"full_name":"team_name/repo_name",
58+
"name":"repo_name",
59+
"scm":"git",
60+
"is_private":true
61+
},
62+
"commit":{
63+
"hash":"d3022fc0ca3d65c7f6654eea129d6bf0cf0ee08e"
64+
}
65+
}
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
{
2+
"actor":{
3+
"username":"emmap1",
4+
"display_name":"Emma",
5+
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
6+
"links":{
7+
"self":{
8+
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
9+
},
10+
"html":{
11+
"href":"https://api.bitbucket.org/emmap1"
12+
},
13+
"avatar":{
14+
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
15+
}
16+
}
17+
},
18+
"repository":{
19+
"links":{
20+
"self":{
21+
"href":"https://api.bitbucket.org/api/2.0/repositories/bitbucket/bitbucket"
22+
},
23+
"html":{
24+
"href":"https://api.bitbucket.org/bitbucket/bitbucket"
25+
},
26+
"avatar":{
27+
"href":"https://api-staging-assetroot.s3.amazonaws.com/c/photos/2014/Aug/01/bitbucket-logo-2629490769-3_avatar.png"
28+
}
29+
},
30+
"uuid":"{673a6070-3421-46c9-9d48-90745f7bfe8e}",
31+
"full_name":"team_name/repo_name",
32+
"name":"repo_name",
33+
"scm":"git",
34+
"is_private":true
35+
},
36+
"issue":{
37+
"id":1,
38+
"component":"component",
39+
"title":"Issue title",
40+
"content":{
41+
"raw":"Issue description",
42+
"html":"<p>Issue description</p>",
43+
"markup":"markdown"
44+
},
45+
"priority":"trivial|minor|major|critical|blocker",
46+
"state":"new|open|on hold|resolved|duplicate|invalid|wontfix|closed",
47+
"type":"bug|enhancement|proposal|task",
48+
"milestone":{
49+
"name":"milestone 1"
50+
},
51+
"version":{
52+
"name":"version 1"
53+
},
54+
"created_on":"2015-04-06T15:23:38.179678+00:00",
55+
"updated_on":"2015-04-06T15:23:38.179678+00:00",
56+
"links":{
57+
"self":{
58+
"href":"https://api.bitbucket.org/api/2.0/issues/issue_id"
59+
},
60+
"html":{
61+
"href":"https://api.bitbucket.org/issue_id"
62+
}
63+
}
64+
},
65+
"comment":{
66+
"id":17,
67+
"parent":{
68+
"id":16
69+
},
70+
"content":{
71+
"raw":"Comment text",
72+
"html":"<p>Comment text</p>",
73+
"markup":"markdown"
74+
},
75+
"inline":{
76+
"path":"path/to/file",
77+
"from":null,
78+
"to":10
79+
},
80+
"created_on":"2015-04-06T16:52:29.982346+00:00",
81+
"updated_on":"2015-04-06T16:52:29.983730+00:00",
82+
"links":{
83+
"self":{
84+
"href":"https://api.bitbucket.org/api/2.0/comments/comment_id"
85+
},
86+
"html":{
87+
"href":"https://api.bitbucket.org/comment_id"
88+
}
89+
}
90+
}
91+
}
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"actor":{
3+
"username":"emmap1",
4+
"display_name":"Emma",
5+
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
6+
"links":{
7+
"self":{
8+
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
9+
},
10+
"html":{
11+
"href":"https://api.bitbucket.org/emmap1"
12+
},
13+
"avatar":{
14+
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
15+
}
16+
}
17+
},
18+
"issue":{
19+
"id":1,
20+
"component":"component",
21+
"title":"Issue title",
22+
"content":{
23+
"raw":"Issue description",
24+
"html":"<p>Issue description</p>",
25+
"markup":"markdown"
26+
},
27+
"priority":"trivial|minor|major|critical|blocker",
28+
"state":"new|open|on hold|resolved|duplicate|invalid|wontfix|closed",
29+
"type":"bug|enhancement|proposal|task",
30+
"milestone":{
31+
"name":"milestone 1"
32+
},
33+
"version":{
34+
"name":"version 1"
35+
},
36+
"created_on":"2015-04-06T15:23:38.179678+00:00",
37+
"updated_on":"2015-04-06T15:23:38.179678+00:00",
38+
"links":{
39+
"self":{
40+
"href":"https://api.bitbucket.org/api/2.0/issues/issue_id"
41+
},
42+
"html":{
43+
"href":"https://api.bitbucket.org/issue_id"
44+
}
45+
}
46+
},
47+
"repository":{
48+
"links":{
49+
"self":{
50+
"href":"https://api.bitbucket.org/api/2.0/repositories/bitbucket/bitbucket"
51+
},
52+
"html":{
53+
"href":"https://api.bitbucket.org/bitbucket/bitbucket"
54+
},
55+
"avatar":{
56+
"href":"https://api-staging-assetroot.s3.amazonaws.com/c/photos/2014/Aug/01/bitbucket-logo-2629490769-3_avatar.png"
57+
}
58+
},
59+
"uuid":"{673a6070-3421-46c9-9d48-90745f7bfe8e}",
60+
"full_name":"team_name/repo_name",
61+
"name":"repo_name",
62+
"scm":"git",
63+
"is_private":true
64+
}
65+
}
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
{
2+
"actor":{
3+
"username":"emmap1",
4+
"display_name":"Emma",
5+
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
6+
"links":{
7+
"self":{
8+
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
9+
},
10+
"html":{
11+
"href":"https://api.bitbucket.org/emmap1"
12+
},
13+
"avatar":{
14+
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
15+
}
16+
}
17+
},
18+
"issue":{
19+
"id":1,
20+
"component":"component",
21+
"title":"Issue title",
22+
"content":{
23+
"raw":"Issue description",
24+
"html":"<p>Issue description</p>",
25+
"markup":"markdown"
26+
},
27+
"priority":"trivial|minor|major|critical|blocker",
28+
"state":"new|open|on hold|resolved|duplicate|invalid|wontfix|closed",
29+
"type":"bug|enhancement|proposal|task",
30+
"milestone":{
31+
"name":"milestone 1"
32+
},
33+
"version":{
34+
"name":"version 1"
35+
},
36+
"created_on":"2015-04-06T15:23:38.179678+00:00",
37+
"updated_on":"2015-04-06T15:23:38.179678+00:00",
38+
"links":{
39+
"self":{
40+
"href":"https://api.bitbucket.org/api/2.0/issues/issue_id"
41+
},
42+
"html":{
43+
"href":"https://api.bitbucket.org/issue_id"
44+
}
45+
}
46+
},
47+
"repository":{
48+
"links":{
49+
"self":{
50+
"href":"https://api.bitbucket.org/api/2.0/repositories/bitbucket/bitbucket"
51+
},
52+
"html":{
53+
"href":"https://api.bitbucket.org/bitbucket/bitbucket"
54+
},
55+
"avatar":{
56+
"href":"https://api-staging-assetroot.s3.amazonaws.com/c/photos/2014/Aug/01/bitbucket-logo-2629490769-3_avatar.png"
57+
}
58+
},
59+
"uuid":"{673a6070-3421-46c9-9d48-90745f7bfe8e}",
60+
"full_name":"team_name/repo_name",
61+
"name":"repo_name",
62+
"scm":"git",
63+
"is_private":true
64+
},
65+
"comment":{
66+
"id":17,
67+
"parent":{
68+
"id":16
69+
},
70+
"content":{
71+
"raw":"Comment text",
72+
"html":"<p>Comment text</p>",
73+
"markup":"markdown"
74+
},
75+
"inline":{
76+
"path":"path/to/file",
77+
"from":null,
78+
"to":10
79+
},
80+
"created_on":"2015-04-06T16:52:29.982346+00:00",
81+
"updated_on":"2015-04-06T16:52:29.983730+00:00",
82+
"links":{
83+
"self":{
84+
"href":"https://api.bitbucket.org/api/2.0/comments/comment_id"
85+
},
86+
"html":{
87+
"href":"https://api.bitbucket.org/comment_id"
88+
}
89+
}
90+
},
91+
"changes":{
92+
"status":{
93+
"old":"open",
94+
"new":"on hold"
95+
}
96+
}
97+
}

0 commit comments

Comments
 (0)