audc-gerry 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +62 -62
- data/Rakefile +7 -7
- data/lib/gerry/api/access.rb +17 -17
- data/lib/gerry/api/accounts.rb +38 -38
- data/lib/gerry/api/branches.rb +45 -45
- data/lib/gerry/api/changes.rb +38 -38
- data/lib/gerry/api/groups.rb +72 -72
- data/lib/gerry/api/projects.rb +73 -73
- data/lib/gerry/api/request.rb +86 -86
- data/lib/gerry/client.rb +58 -58
- data/lib/gerry/version.rb +5 -5
- data/lib/gerry.rb +11 -11
- data/spec/access_spec.rb +15 -15
- data/spec/accounts_spec.rb +35 -35
- data/spec/branches_spec.rb +36 -36
- data/spec/changes_spec.rb +55 -55
- data/spec/fixtures/README.md.json +2 -2
- data/spec/fixtures/access_rights.json +250 -250
- data/spec/fixtures/account_groups.json +32 -32
- data/spec/fixtures/branch_access.json +50 -50
- data/spec/fixtures/capabilities.json +7 -7
- data/spec/fixtures/changes.json +30 -30
- data/spec/fixtures/changes_batch_0.json +18 -18
- data/spec/fixtures/changes_batch_1.json +18 -18
- data/spec/fixtures/changes_batch_2.json +17 -17
- data/spec/fixtures/group_members.json +14 -14
- data/spec/fixtures/groups.json +68 -68
- data/spec/fixtures/open_changes.json +16 -16
- data/spec/fixtures/project_branch.json +6 -6
- data/spec/fixtures/project_branches.json +21 -21
- data/spec/fixtures/project_head.json +2 -2
- data/spec/fixtures/projects.json +9 -9
- data/spec/fixtures/query_capabilities.json +4 -4
- data/spec/groups_spec.rb +92 -92
- data/spec/projects_spec.rb +90 -90
- data/spec/request_spec.rb +46 -46
- data/spec/spec_helper.rb +49 -49
- metadata +52 -54
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
)]}'
|
|
2
|
-
[
|
|
3
|
-
{
|
|
4
|
-
"kind": "gerritcodereview#group",
|
|
5
|
-
"id": "global%3AAnonymous-Users",
|
|
6
|
-
"url": "#/admin/groups/uuid-global%3AAnonymous-Users",
|
|
7
|
-
"options": {
|
|
8
|
-
},
|
|
9
|
-
"description": "Any user, signed-in or not",
|
|
10
|
-
"group_id": 2,
|
|
11
|
-
"owner_id": "6a1e70e1a88782771a91808c8af9bbb7a9871389"
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"kind": "gerritcodereview#group",
|
|
15
|
-
"id": "834ec36dd5e0ed21a2ff5d7e2255da082d63bbd7",
|
|
16
|
-
"url": "#/admin/groups/uuid-834ec36dd5e0ed21a2ff5d7e2255da082d63bbd7",
|
|
17
|
-
"options": {
|
|
18
|
-
"visible_to_all": true
|
|
19
|
-
},
|
|
20
|
-
"group_id": 6,
|
|
21
|
-
"owner_id": "834ec36dd5e0ed21a2ff5d7e2255da082d63bbd7"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"kind": "gerritcodereview#group",
|
|
25
|
-
"id": "global%3ARegistered-Users",
|
|
26
|
-
"url": "#/admin/groups/uuid-global%3ARegistered-Users",
|
|
27
|
-
"options": {
|
|
28
|
-
},
|
|
29
|
-
"description": "Any signed-in user",
|
|
30
|
-
"group_id": 3,
|
|
31
|
-
"owner_id": "6a1e70e1a88782771a91808c8af9bbb7a9871389"
|
|
32
|
-
}
|
|
1
|
+
)]}'
|
|
2
|
+
[
|
|
3
|
+
{
|
|
4
|
+
"kind": "gerritcodereview#group",
|
|
5
|
+
"id": "global%3AAnonymous-Users",
|
|
6
|
+
"url": "#/admin/groups/uuid-global%3AAnonymous-Users",
|
|
7
|
+
"options": {
|
|
8
|
+
},
|
|
9
|
+
"description": "Any user, signed-in or not",
|
|
10
|
+
"group_id": 2,
|
|
11
|
+
"owner_id": "6a1e70e1a88782771a91808c8af9bbb7a9871389"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"kind": "gerritcodereview#group",
|
|
15
|
+
"id": "834ec36dd5e0ed21a2ff5d7e2255da082d63bbd7",
|
|
16
|
+
"url": "#/admin/groups/uuid-834ec36dd5e0ed21a2ff5d7e2255da082d63bbd7",
|
|
17
|
+
"options": {
|
|
18
|
+
"visible_to_all": true
|
|
19
|
+
},
|
|
20
|
+
"group_id": 6,
|
|
21
|
+
"owner_id": "834ec36dd5e0ed21a2ff5d7e2255da082d63bbd7"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"kind": "gerritcodereview#group",
|
|
25
|
+
"id": "global%3ARegistered-Users",
|
|
26
|
+
"url": "#/admin/groups/uuid-global%3ARegistered-Users",
|
|
27
|
+
"options": {
|
|
28
|
+
},
|
|
29
|
+
"description": "Any signed-in user",
|
|
30
|
+
"group_id": 3,
|
|
31
|
+
"owner_id": "6a1e70e1a88782771a91808c8af9bbb7a9871389"
|
|
32
|
+
}
|
|
33
33
|
]
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
)]}'
|
|
2
|
-
{
|
|
3
|
-
"revision": "61157ed63e14d261b6dca40650472a9b0bd88474",
|
|
4
|
-
"inherits_from": {
|
|
5
|
-
"id": "All-Projects",
|
|
6
|
-
"name": "All-Projects",
|
|
7
|
-
"description": "Access inherited by all other projects."
|
|
8
|
-
},
|
|
9
|
-
"local": {
|
|
10
|
-
"refs/*": {
|
|
11
|
-
"permissions": {
|
|
12
|
-
"read": {
|
|
13
|
-
"rules": {
|
|
14
|
-
"c2ce4749a32ceb82cd6adcce65b8216e12afb41c": {
|
|
15
|
-
"action": "ALLOW",
|
|
16
|
-
"force": false
|
|
17
|
-
},
|
|
18
|
-
"global:Anonymous-Users": {
|
|
19
|
-
"action": "ALLOW",
|
|
20
|
-
"force": false
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
"is_owner": true,
|
|
28
|
-
"owner_of": [
|
|
29
|
-
"refs/*"
|
|
30
|
-
],
|
|
31
|
-
"can_upload": true,
|
|
32
|
-
"can_add": true,
|
|
33
|
-
"config_visible": true,
|
|
34
|
-
"groups": {
|
|
35
|
-
"c2ce4749a32ceb82cd6adcce65b8216e12afb41c": {
|
|
36
|
-
"url": "#/admin/groups/uuid-c2ce4749a32ceb82cd6adcce65b8216e12afb41c",
|
|
37
|
-
"options": {},
|
|
38
|
-
"description": "Users who perform batch actions on Gerrit",
|
|
39
|
-
"group_id": 2,
|
|
40
|
-
"owner": "Administrators",
|
|
41
|
-
"owner_id": "d5b7124af4de52924ed397913e2c3b37bf186948",
|
|
42
|
-
"created_on": "2009-06-08 23:31:00.000000000",
|
|
43
|
-
"name": "Non-Interactive Users"
|
|
44
|
-
},
|
|
45
|
-
"global:Anonymous-Users": {
|
|
46
|
-
"options": {},
|
|
47
|
-
"name": "Anonymous Users"
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
1
|
+
)]}'
|
|
2
|
+
{
|
|
3
|
+
"revision": "61157ed63e14d261b6dca40650472a9b0bd88474",
|
|
4
|
+
"inherits_from": {
|
|
5
|
+
"id": "All-Projects",
|
|
6
|
+
"name": "All-Projects",
|
|
7
|
+
"description": "Access inherited by all other projects."
|
|
8
|
+
},
|
|
9
|
+
"local": {
|
|
10
|
+
"refs/*": {
|
|
11
|
+
"permissions": {
|
|
12
|
+
"read": {
|
|
13
|
+
"rules": {
|
|
14
|
+
"c2ce4749a32ceb82cd6adcce65b8216e12afb41c": {
|
|
15
|
+
"action": "ALLOW",
|
|
16
|
+
"force": false
|
|
17
|
+
},
|
|
18
|
+
"global:Anonymous-Users": {
|
|
19
|
+
"action": "ALLOW",
|
|
20
|
+
"force": false
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"is_owner": true,
|
|
28
|
+
"owner_of": [
|
|
29
|
+
"refs/*"
|
|
30
|
+
],
|
|
31
|
+
"can_upload": true,
|
|
32
|
+
"can_add": true,
|
|
33
|
+
"config_visible": true,
|
|
34
|
+
"groups": {
|
|
35
|
+
"c2ce4749a32ceb82cd6adcce65b8216e12afb41c": {
|
|
36
|
+
"url": "#/admin/groups/uuid-c2ce4749a32ceb82cd6adcce65b8216e12afb41c",
|
|
37
|
+
"options": {},
|
|
38
|
+
"description": "Users who perform batch actions on Gerrit",
|
|
39
|
+
"group_id": 2,
|
|
40
|
+
"owner": "Administrators",
|
|
41
|
+
"owner_id": "d5b7124af4de52924ed397913e2c3b37bf186948",
|
|
42
|
+
"created_on": "2009-06-08 23:31:00.000000000",
|
|
43
|
+
"name": "Non-Interactive Users"
|
|
44
|
+
},
|
|
45
|
+
"global:Anonymous-Users": {
|
|
46
|
+
"options": {},
|
|
47
|
+
"name": "Anonymous Users"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
)]}'
|
|
2
|
-
{
|
|
3
|
-
"queryLimit": {
|
|
4
|
-
"min": 0,
|
|
5
|
-
"max": 500
|
|
6
|
-
}
|
|
7
|
-
}
|
|
1
|
+
)]}'
|
|
2
|
+
{
|
|
3
|
+
"queryLimit": {
|
|
4
|
+
"min": 0,
|
|
5
|
+
"max": 500
|
|
6
|
+
}
|
|
7
|
+
}
|
data/spec/fixtures/changes.json
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
)]}'
|
|
2
|
-
[
|
|
3
|
-
{
|
|
4
|
-
"project": "awesome",
|
|
5
|
-
"branch": "master",
|
|
6
|
-
"id": "Idd8747a5ea93bb9bddf7695bab25670be135f777",
|
|
7
|
-
"subject": "Add an awesome feature",
|
|
8
|
-
"status": "NEW",
|
|
9
|
-
"created": "2012-09-12 15:54:21.531000000",
|
|
10
|
-
"updated": "2012-10-13 01:34:40.511000000",
|
|
11
|
-
"_sortkey": "00115dfe00009334",
|
|
12
|
-
"_number": 3,
|
|
13
|
-
"owner": {
|
|
14
|
-
"name": "The Duke"
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"project": "clean",
|
|
19
|
-
"branch": "master",
|
|
20
|
-
"id": "Idac803deea68faa1294b3fa5bf814277e899f075",
|
|
21
|
-
"subject": "Refactor code",
|
|
22
|
-
"status": "NEW",
|
|
23
|
-
"created": "2012-09-12 15:51:30.605000000",
|
|
24
|
-
"updated": "2012-10-13 00:45:26.431000000",
|
|
25
|
-
"_sortkey": "00205dcddd00937d",
|
|
26
|
-
"_number": 42,
|
|
27
|
-
"owner": {
|
|
28
|
-
"name": "Batman"
|
|
29
|
-
}
|
|
30
|
-
}
|
|
1
|
+
)]}'
|
|
2
|
+
[
|
|
3
|
+
{
|
|
4
|
+
"project": "awesome",
|
|
5
|
+
"branch": "master",
|
|
6
|
+
"id": "Idd8747a5ea93bb9bddf7695bab25670be135f777",
|
|
7
|
+
"subject": "Add an awesome feature",
|
|
8
|
+
"status": "NEW",
|
|
9
|
+
"created": "2012-09-12 15:54:21.531000000",
|
|
10
|
+
"updated": "2012-10-13 01:34:40.511000000",
|
|
11
|
+
"_sortkey": "00115dfe00009334",
|
|
12
|
+
"_number": 3,
|
|
13
|
+
"owner": {
|
|
14
|
+
"name": "The Duke"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"project": "clean",
|
|
19
|
+
"branch": "master",
|
|
20
|
+
"id": "Idac803deea68faa1294b3fa5bf814277e899f075",
|
|
21
|
+
"subject": "Refactor code",
|
|
22
|
+
"status": "NEW",
|
|
23
|
+
"created": "2012-09-12 15:51:30.605000000",
|
|
24
|
+
"updated": "2012-10-13 00:45:26.431000000",
|
|
25
|
+
"_sortkey": "00205dcddd00937d",
|
|
26
|
+
"_number": 42,
|
|
27
|
+
"owner": {
|
|
28
|
+
"name": "Batman"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
31
|
]
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
)]}'
|
|
2
|
-
[
|
|
3
|
-
{
|
|
4
|
-
"project": "awesome",
|
|
5
|
-
"branch": "master",
|
|
6
|
-
"id": "Idd8747a5ea93bb9bddf7695bab25670be135f777",
|
|
7
|
-
"subject": "Add an awesome feature",
|
|
8
|
-
"status": "NEW",
|
|
9
|
-
"created": "2012-09-12 15:54:21.531000000",
|
|
10
|
-
"updated": "2012-10-13 01:34:40.511000000",
|
|
11
|
-
"_sortkey": "00115dfe00009334",
|
|
12
|
-
"_number": 3,
|
|
13
|
-
"owner": {
|
|
14
|
-
"name": "The Duke"
|
|
15
|
-
},
|
|
16
|
-
"_more_changes": true
|
|
17
|
-
}
|
|
18
|
-
]
|
|
1
|
+
)]}'
|
|
2
|
+
[
|
|
3
|
+
{
|
|
4
|
+
"project": "awesome",
|
|
5
|
+
"branch": "master",
|
|
6
|
+
"id": "Idd8747a5ea93bb9bddf7695bab25670be135f777",
|
|
7
|
+
"subject": "Add an awesome feature",
|
|
8
|
+
"status": "NEW",
|
|
9
|
+
"created": "2012-09-12 15:54:21.531000000",
|
|
10
|
+
"updated": "2012-10-13 01:34:40.511000000",
|
|
11
|
+
"_sortkey": "00115dfe00009334",
|
|
12
|
+
"_number": 3,
|
|
13
|
+
"owner": {
|
|
14
|
+
"name": "The Duke"
|
|
15
|
+
},
|
|
16
|
+
"_more_changes": true
|
|
17
|
+
}
|
|
18
|
+
]
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
)]}'
|
|
2
|
-
[
|
|
3
|
-
{
|
|
4
|
-
"project": "clean",
|
|
5
|
-
"branch": "master",
|
|
6
|
-
"id": "Idac803deea68faa1294b3fa5bf814277e899f075",
|
|
7
|
-
"subject": "Refactor code",
|
|
8
|
-
"status": "NEW",
|
|
9
|
-
"created": "2012-09-12 15:51:30.605000000",
|
|
10
|
-
"updated": "2012-10-13 00:45:26.431000000",
|
|
11
|
-
"_sortkey": "00205dcddd00937d",
|
|
12
|
-
"_number": 42,
|
|
13
|
-
"owner": {
|
|
14
|
-
"name": "Batman"
|
|
15
|
-
},
|
|
16
|
-
"_more_changes": true
|
|
17
|
-
}
|
|
18
|
-
]
|
|
1
|
+
)]}'
|
|
2
|
+
[
|
|
3
|
+
{
|
|
4
|
+
"project": "clean",
|
|
5
|
+
"branch": "master",
|
|
6
|
+
"id": "Idac803deea68faa1294b3fa5bf814277e899f075",
|
|
7
|
+
"subject": "Refactor code",
|
|
8
|
+
"status": "NEW",
|
|
9
|
+
"created": "2012-09-12 15:51:30.605000000",
|
|
10
|
+
"updated": "2012-10-13 00:45:26.431000000",
|
|
11
|
+
"_sortkey": "00205dcddd00937d",
|
|
12
|
+
"_number": 42,
|
|
13
|
+
"owner": {
|
|
14
|
+
"name": "Batman"
|
|
15
|
+
},
|
|
16
|
+
"_more_changes": true
|
|
17
|
+
}
|
|
18
|
+
]
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
)]}'
|
|
2
|
-
[
|
|
3
|
-
{
|
|
4
|
-
"project": "X",
|
|
5
|
-
"branch": "default",
|
|
6
|
-
"id": "Ieb185f4da8725ae35e9f940e614c6eaa7b88eff5",
|
|
7
|
-
"subject": "Remove unused imports",
|
|
8
|
-
"status": "NEW",
|
|
9
|
-
"created": "2016-01-11 15:51:30.605000000",
|
|
10
|
-
"updated": "2016-02-12 00:45:26.431000000",
|
|
11
|
-
"_sortkey": "002e4203000187d5",
|
|
12
|
-
"_number": 4711,
|
|
13
|
-
"owner": {
|
|
14
|
-
"name": "Bill"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
]
|
|
1
|
+
)]}'
|
|
2
|
+
[
|
|
3
|
+
{
|
|
4
|
+
"project": "X",
|
|
5
|
+
"branch": "default",
|
|
6
|
+
"id": "Ieb185f4da8725ae35e9f940e614c6eaa7b88eff5",
|
|
7
|
+
"subject": "Remove unused imports",
|
|
8
|
+
"status": "NEW",
|
|
9
|
+
"created": "2016-01-11 15:51:30.605000000",
|
|
10
|
+
"updated": "2016-02-12 00:45:26.431000000",
|
|
11
|
+
"_sortkey": "002e4203000187d5",
|
|
12
|
+
"_number": 4711,
|
|
13
|
+
"owner": {
|
|
14
|
+
"name": "Bill"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
]
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
)]}'
|
|
2
|
-
[
|
|
3
|
-
{
|
|
4
|
-
"_account_id": 1000097,
|
|
5
|
-
"name": "Jane Roe",
|
|
6
|
-
"email": "jane.roe@example.com",
|
|
7
|
-
"username": "jane"
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
"_account_id": 1000096,
|
|
11
|
-
"name": "John Doe",
|
|
12
|
-
"email": "john.doe@example.com",
|
|
13
|
-
"username": "john"
|
|
14
|
-
}
|
|
1
|
+
)]}'
|
|
2
|
+
[
|
|
3
|
+
{
|
|
4
|
+
"_account_id": 1000097,
|
|
5
|
+
"name": "Jane Roe",
|
|
6
|
+
"email": "jane.roe@example.com",
|
|
7
|
+
"username": "jane"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"_account_id": 1000096,
|
|
11
|
+
"name": "John Doe",
|
|
12
|
+
"email": "john.doe@example.com",
|
|
13
|
+
"username": "john"
|
|
14
|
+
}
|
|
15
15
|
]
|
data/spec/fixtures/groups.json
CHANGED
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
)]}'
|
|
2
|
-
{
|
|
3
|
-
"Administrators": {
|
|
4
|
-
"kind": "gerritcodereview#group",
|
|
5
|
-
"id": "6a1e70e1a88782771a91808c8af9bbb7a9871389",
|
|
6
|
-
"url": "#/admin/groups/uuid-6a1e70e1a88782771a91808c8af9bbb7a9871389",
|
|
7
|
-
"options": {
|
|
8
|
-
},
|
|
9
|
-
"description": "Gerrit Site Administrators",
|
|
10
|
-
"group_id": 1,
|
|
11
|
-
"owner": "Administrators",
|
|
12
|
-
"owner_id": "6a1e70e1a88782771a91808c8af9bbb7a9871389"
|
|
13
|
-
},
|
|
14
|
-
"Anonymous Users": {
|
|
15
|
-
"kind": "gerritcodereview#group",
|
|
16
|
-
"id": "global%3AAnonymous-Users",
|
|
17
|
-
"url": "#/admin/groups/uuid-global%3AAnonymous-Users",
|
|
18
|
-
"options": {
|
|
19
|
-
},
|
|
20
|
-
"description": "Any user, signed-in or not",
|
|
21
|
-
"group_id": 2,
|
|
22
|
-
"owner": "Administrators",
|
|
23
|
-
"owner_id": "6a1e70e1a88782771a91808c8af9bbb7a9871389"
|
|
24
|
-
},
|
|
25
|
-
"MyProject_Committers": {
|
|
26
|
-
"kind": "gerritcodereview#group",
|
|
27
|
-
"id": "834ec36dd5e0ed21a2ff5d7e2255da082d63bbd7",
|
|
28
|
-
"url": "#/admin/groups/uuid-834ec36dd5e0ed21a2ff5d7e2255da082d63bbd7",
|
|
29
|
-
"options": {
|
|
30
|
-
"visible_to_all": true
|
|
31
|
-
},
|
|
32
|
-
"group_id": 6,
|
|
33
|
-
"owner": "MyProject_Committers",
|
|
34
|
-
"owner_id": "834ec36dd5e0ed21a2ff5d7e2255da082d63bbd7"
|
|
35
|
-
},
|
|
36
|
-
"Non-Interactive Users": {
|
|
37
|
-
"kind": "gerritcodereview#group",
|
|
38
|
-
"id": "5057f3cbd3519d6ab69364429a89ffdffba50f73",
|
|
39
|
-
"url": "#/admin/groups/uuid-5057f3cbd3519d6ab69364429a89ffdffba50f73",
|
|
40
|
-
"options": {
|
|
41
|
-
},
|
|
42
|
-
"description": "Users who perform batch actions on Gerrit",
|
|
43
|
-
"group_id": 4,
|
|
44
|
-
"owner": "Administrators",
|
|
45
|
-
"owner_id": "6a1e70e1a88782771a91808c8af9bbb7a9871389"
|
|
46
|
-
},
|
|
47
|
-
"Project Owners": {
|
|
48
|
-
"kind": "gerritcodereview#group",
|
|
49
|
-
"id": "global%3AProject-Owners",
|
|
50
|
-
"url": "#/admin/groups/uuid-global%3AProject-Owners",
|
|
51
|
-
"options": {
|
|
52
|
-
},
|
|
53
|
-
"description": "Any owner of the project",
|
|
54
|
-
"group_id": 5,
|
|
55
|
-
"owner": "Administrators",
|
|
56
|
-
"owner_id": "6a1e70e1a88782771a91808c8af9bbb7a9871389"
|
|
57
|
-
},
|
|
58
|
-
"Registered Users": {
|
|
59
|
-
"kind": "gerritcodereview#group",
|
|
60
|
-
"id": "global%3ARegistered-Users",
|
|
61
|
-
"url": "#/admin/groups/uuid-global%3ARegistered-Users",
|
|
62
|
-
"options": {
|
|
63
|
-
},
|
|
64
|
-
"description": "Any signed-in user",
|
|
65
|
-
"group_id": 3,
|
|
66
|
-
"owner": "Administrators",
|
|
67
|
-
"owner_id": "6a1e70e1a88782771a91808c8af9bbb7a9871389"
|
|
68
|
-
}
|
|
1
|
+
)]}'
|
|
2
|
+
{
|
|
3
|
+
"Administrators": {
|
|
4
|
+
"kind": "gerritcodereview#group",
|
|
5
|
+
"id": "6a1e70e1a88782771a91808c8af9bbb7a9871389",
|
|
6
|
+
"url": "#/admin/groups/uuid-6a1e70e1a88782771a91808c8af9bbb7a9871389",
|
|
7
|
+
"options": {
|
|
8
|
+
},
|
|
9
|
+
"description": "Gerrit Site Administrators",
|
|
10
|
+
"group_id": 1,
|
|
11
|
+
"owner": "Administrators",
|
|
12
|
+
"owner_id": "6a1e70e1a88782771a91808c8af9bbb7a9871389"
|
|
13
|
+
},
|
|
14
|
+
"Anonymous Users": {
|
|
15
|
+
"kind": "gerritcodereview#group",
|
|
16
|
+
"id": "global%3AAnonymous-Users",
|
|
17
|
+
"url": "#/admin/groups/uuid-global%3AAnonymous-Users",
|
|
18
|
+
"options": {
|
|
19
|
+
},
|
|
20
|
+
"description": "Any user, signed-in or not",
|
|
21
|
+
"group_id": 2,
|
|
22
|
+
"owner": "Administrators",
|
|
23
|
+
"owner_id": "6a1e70e1a88782771a91808c8af9bbb7a9871389"
|
|
24
|
+
},
|
|
25
|
+
"MyProject_Committers": {
|
|
26
|
+
"kind": "gerritcodereview#group",
|
|
27
|
+
"id": "834ec36dd5e0ed21a2ff5d7e2255da082d63bbd7",
|
|
28
|
+
"url": "#/admin/groups/uuid-834ec36dd5e0ed21a2ff5d7e2255da082d63bbd7",
|
|
29
|
+
"options": {
|
|
30
|
+
"visible_to_all": true
|
|
31
|
+
},
|
|
32
|
+
"group_id": 6,
|
|
33
|
+
"owner": "MyProject_Committers",
|
|
34
|
+
"owner_id": "834ec36dd5e0ed21a2ff5d7e2255da082d63bbd7"
|
|
35
|
+
},
|
|
36
|
+
"Non-Interactive Users": {
|
|
37
|
+
"kind": "gerritcodereview#group",
|
|
38
|
+
"id": "5057f3cbd3519d6ab69364429a89ffdffba50f73",
|
|
39
|
+
"url": "#/admin/groups/uuid-5057f3cbd3519d6ab69364429a89ffdffba50f73",
|
|
40
|
+
"options": {
|
|
41
|
+
},
|
|
42
|
+
"description": "Users who perform batch actions on Gerrit",
|
|
43
|
+
"group_id": 4,
|
|
44
|
+
"owner": "Administrators",
|
|
45
|
+
"owner_id": "6a1e70e1a88782771a91808c8af9bbb7a9871389"
|
|
46
|
+
},
|
|
47
|
+
"Project Owners": {
|
|
48
|
+
"kind": "gerritcodereview#group",
|
|
49
|
+
"id": "global%3AProject-Owners",
|
|
50
|
+
"url": "#/admin/groups/uuid-global%3AProject-Owners",
|
|
51
|
+
"options": {
|
|
52
|
+
},
|
|
53
|
+
"description": "Any owner of the project",
|
|
54
|
+
"group_id": 5,
|
|
55
|
+
"owner": "Administrators",
|
|
56
|
+
"owner_id": "6a1e70e1a88782771a91808c8af9bbb7a9871389"
|
|
57
|
+
},
|
|
58
|
+
"Registered Users": {
|
|
59
|
+
"kind": "gerritcodereview#group",
|
|
60
|
+
"id": "global%3ARegistered-Users",
|
|
61
|
+
"url": "#/admin/groups/uuid-global%3ARegistered-Users",
|
|
62
|
+
"options": {
|
|
63
|
+
},
|
|
64
|
+
"description": "Any signed-in user",
|
|
65
|
+
"group_id": 3,
|
|
66
|
+
"owner": "Administrators",
|
|
67
|
+
"owner_id": "6a1e70e1a88782771a91808c8af9bbb7a9871389"
|
|
68
|
+
}
|
|
69
69
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
)]}'
|
|
2
|
-
[
|
|
3
|
-
{
|
|
4
|
-
"project": "awesome",
|
|
5
|
-
"branch": "master",
|
|
6
|
-
"id": "Idd8747a5ea93bb9bddf7695bab25670be135f777",
|
|
7
|
-
"subject": "Add an awesome feature",
|
|
8
|
-
"status": "OPEN",
|
|
9
|
-
"created": "2012-09-12 15:54:21.531000000",
|
|
10
|
-
"updated": "2012-10-13 01:34:40.511000000",
|
|
11
|
-
"_sortkey": "00115dfe00009334",
|
|
12
|
-
"_number": 3,
|
|
13
|
-
"owner": {
|
|
14
|
-
"name": "The Duke"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
1
|
+
)]}'
|
|
2
|
+
[
|
|
3
|
+
{
|
|
4
|
+
"project": "awesome",
|
|
5
|
+
"branch": "master",
|
|
6
|
+
"id": "Idd8747a5ea93bb9bddf7695bab25670be135f777",
|
|
7
|
+
"subject": "Add an awesome feature",
|
|
8
|
+
"status": "OPEN",
|
|
9
|
+
"created": "2012-09-12 15:54:21.531000000",
|
|
10
|
+
"updated": "2012-10-13 01:34:40.511000000",
|
|
11
|
+
"_sortkey": "00115dfe00009334",
|
|
12
|
+
"_number": 3,
|
|
13
|
+
"owner": {
|
|
14
|
+
"name": "The Duke"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
17
|
]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
)]}'
|
|
2
|
-
{
|
|
3
|
-
"ref": "refs/heads/stable",
|
|
4
|
-
"revision": "b43",
|
|
5
|
-
"can_delete": true
|
|
6
|
-
}
|
|
1
|
+
)]}'
|
|
2
|
+
{
|
|
3
|
+
"ref": "refs/heads/stable",
|
|
4
|
+
"revision": "b43",
|
|
5
|
+
"can_delete": true
|
|
6
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
)]}'
|
|
2
|
-
[
|
|
3
|
-
{
|
|
4
|
-
"ref": "master",
|
|
5
|
-
"revision": "b3f3113",
|
|
6
|
-
"can_delete": "yes",
|
|
7
|
-
"web_lnks": "ab"
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
"ref": "develop",
|
|
11
|
-
"revision": "b3f3114",
|
|
12
|
-
"can_delete": "yes",
|
|
13
|
-
"web_lnks": "ab"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"ref": "stage",
|
|
17
|
-
"revision": "b3f3114",
|
|
18
|
-
"can_delete": "yes",
|
|
19
|
-
"web_lnks": "ab"
|
|
20
|
-
}
|
|
21
|
-
]
|
|
1
|
+
)]}'
|
|
2
|
+
[
|
|
3
|
+
{
|
|
4
|
+
"ref": "master",
|
|
5
|
+
"revision": "b3f3113",
|
|
6
|
+
"can_delete": "yes",
|
|
7
|
+
"web_lnks": "ab"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"ref": "develop",
|
|
11
|
+
"revision": "b3f3114",
|
|
12
|
+
"can_delete": "yes",
|
|
13
|
+
"web_lnks": "ab"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"ref": "stage",
|
|
17
|
+
"revision": "b3f3114",
|
|
18
|
+
"can_delete": "yes",
|
|
19
|
+
"web_lnks": "ab"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
)]}'
|
|
2
|
-
"refs/heads/stable"
|
|
1
|
+
)]}'
|
|
2
|
+
"refs/heads/stable"
|
data/spec/fixtures/projects.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
)]}'
|
|
2
|
-
{
|
|
3
|
-
"awesome": {
|
|
4
|
-
"description": "Awesome project"
|
|
5
|
-
},
|
|
6
|
-
"clean": {
|
|
7
|
-
"description": "Clean code!"
|
|
8
|
-
}
|
|
9
|
-
}
|
|
1
|
+
)]}'
|
|
2
|
+
{
|
|
3
|
+
"awesome": {
|
|
4
|
+
"description": "Awesome project"
|
|
5
|
+
},
|
|
6
|
+
"clean": {
|
|
7
|
+
"description": "Clean code!"
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
)]}'
|
|
2
|
-
{
|
|
3
|
-
"createAccount": true,
|
|
4
|
-
"createGroup": true
|
|
1
|
+
)]}'
|
|
2
|
+
{
|
|
3
|
+
"createAccount": true,
|
|
4
|
+
"createGroup": true
|
|
5
5
|
}
|