Skip to content

Commit 67a9e2a

Browse files
committed
tests: increase the coverage of the test suite
1 parent 83e3163 commit 67a9e2a

17 files changed

+302
-21
lines changed

teams/leaderless.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
name = "leaderless"
2+
3+
[people]
4+
leads = []
5+
members = ["pietroalbini"]
Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
11
{
2-
"lists": {}
2+
"lists": {
3+
4+
"address": "[email protected]",
5+
"members": [
6+
7+
8+
9+
]
10+
},
11+
12+
"address": "[email protected]",
13+
"members": [
14+
15+
16+
]
17+
}
18+
}
319
}
Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
{
2-
"github_users": [],
3-
"github_ids": [],
4-
"discord_ids": []
2+
"github_users": [
3+
"Mark-Simulacrum",
4+
"nellshamrell",
5+
"pietroalbini"
6+
],
7+
"github_ids": [
8+
813007,
9+
2299951,
10+
5047365
11+
],
12+
"discord_ids": [
13+
244302461718757376,
14+
296309029947441155,
15+
442403469580566528
16+
]
517
}
Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
{
2-
"github_users": [],
3-
"github_ids": [],
4-
"discord_ids": []
2+
"github_users": [
3+
"Mark-Simulacrum",
4+
"nellshamrell",
5+
"pietroalbini"
6+
],
7+
"github_ids": [
8+
813007,
9+
2299951,
10+
5047365
11+
],
12+
"discord_ids": [
13+
244302461718757376,
14+
296309029947441155,
15+
442403469580566528
16+
]
517
}
Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
{
2-
"github_users": [],
3-
"github_ids": [],
4-
"discord_ids": []
2+
"github_users": [
3+
"Mark-Simulacrum",
4+
"nellshamrell",
5+
"pietroalbini"
6+
],
7+
"github_ids": [
8+
813007,
9+
2299951,
10+
5047365
11+
],
12+
"discord_ids": [
13+
244302461718757376,
14+
296309029947441155,
15+
442403469580566528
16+
]
517
}
Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
{
2-
"github_users": [],
3-
"github_ids": [],
4-
"discord_ids": []
2+
"github_users": [
3+
"Mark-Simulacrum",
4+
"nellshamrell",
5+
"pietroalbini"
6+
],
7+
"github_ids": [
8+
813007,
9+
2299951,
10+
5047365
11+
],
12+
"discord_ids": [
13+
244302461718757376,
14+
296309029947441155,
15+
442403469580566528
16+
]
517
}
Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
{
2-
"github_users": [],
3-
"github_ids": [],
4-
"discord_ids": []
2+
"github_users": [
3+
"Mark-Simulacrum",
4+
"nellshamrell",
5+
"pietroalbini"
6+
],
7+
"github_ids": [
8+
813007,
9+
2299951,
10+
5047365
11+
],
12+
"discord_ids": [
13+
244302461718757376,
14+
296309029947441155,
15+
442403469580566528
16+
]
517
}
Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
{
2-
"teams": {}
2+
"teams": {
3+
"T-foo": {
4+
"name": "Demo Team",
5+
"ping": "@ghost/foo",
6+
"members": [
7+
"pietroalbini"
8+
]
9+
}
10+
}
311
}

tests/static-api/_expected/v1/teams.json

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,71 @@
88
"name": "Pietro Albini",
99
"github": "pietroalbini",
1010
"github_id": 2299951,
11+
"is_lead": true
12+
},
13+
{
14+
"name": "Nell Shamrell-Harrington",
15+
"github": "nellshamrell",
16+
"github_id": 813007,
1117
"is_lead": false
1218
}
1319
],
1420
"alumni": [],
21+
"github": {
22+
"teams": [
23+
{
24+
"org": "test-org",
25+
"name": "foo",
26+
"members": [
27+
813007,
28+
2299951
29+
]
30+
},
31+
{
32+
"org": "test-org",
33+
"name": "renamed-team",
34+
"members": [
35+
813007,
36+
2299951,
37+
5047365
38+
]
39+
}
40+
]
41+
},
42+
"website_data": {
43+
"name": "Demo Team",
44+
"description": "Why do you care about the description of test teams?",
45+
"page": "demo",
46+
"email": "[email protected]",
47+
"repo": "https://github.com/ghost/foo",
48+
"discord": {
49+
"channel": "#foo",
50+
"url": "https://discord.gg/MCMm5YC"
51+
},
52+
"zulip_stream": "t-foo",
53+
"weight": 1000
54+
}
55+
},
56+
"wg-test": {
57+
"name": "wg-test",
58+
"kind": "working_group",
59+
"subteam_of": null,
60+
"members": [
61+
{
62+
"name": "Mark Rousskov",
63+
"github": "Mark-Simulacrum",
64+
"github_id": 5047365,
65+
"is_lead": true
66+
}
67+
],
68+
"alumni": [
69+
{
70+
"name": "Pietro Albini",
71+
"github": "pietroalbini",
72+
"github_id": 2299951,
73+
"is_lead": false
74+
}
75+
],
1576
"github": null,
1677
"website_data": null
1778
}

tests/static-api/_expected/v1/teams/foo.json

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,48 @@
77
"name": "Pietro Albini",
88
"github": "pietroalbini",
99
"github_id": 2299951,
10+
"is_lead": true
11+
},
12+
{
13+
"name": "Nell Shamrell-Harrington",
14+
"github": "nellshamrell",
15+
"github_id": 813007,
1016
"is_lead": false
1117
}
1218
],
1319
"alumni": [],
14-
"github": null,
15-
"website_data": null
20+
"github": {
21+
"teams": [
22+
{
23+
"org": "test-org",
24+
"name": "foo",
25+
"members": [
26+
813007,
27+
2299951
28+
]
29+
},
30+
{
31+
"org": "test-org",
32+
"name": "renamed-team",
33+
"members": [
34+
813007,
35+
2299951,
36+
5047365
37+
]
38+
}
39+
]
40+
},
41+
"website_data": {
42+
"name": "Demo Team",
43+
"description": "Why do you care about the description of test teams?",
44+
"page": "demo",
45+
"email": "[email protected]",
46+
"repo": "https://github.com/ghost/foo",
47+
"discord": {
48+
"channel": "#foo",
49+
"url": "https://discord.gg/MCMm5YC"
50+
},
51+
"zulip_stream": "t-foo",
52+
"weight": 1000
53+
}
1654
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "wg-test",
3+
"kind": "working_group",
4+
"subteam_of": null,
5+
"members": [
6+
{
7+
"name": "Mark Rousskov",
8+
"github": "Mark-Simulacrum",
9+
"github_id": 5047365,
10+
"is_lead": true
11+
}
12+
],
13+
"alumni": [
14+
{
15+
"name": "Pietro Albini",
16+
"github": "pietroalbini",
17+
"github_id": 2299951,
18+
"is_lead": false
19+
}
20+
],
21+
"github": null,
22+
"website_data": null
23+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name = 'Mark Rousskov'
2+
github = 'Mark-Simulacrum'
3+
github-id = 5047365
4+
5+
discord-id = 442403469580566528
6+
7+
[permissions]
8+
crater = true
9+
bors.rust.review = true
10+
bors.crater.try = true
11+
crates-io-ops-bot.crates_io = true

tests/static-api/people/kennytm.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
name = 'kennytm'
2+
github = 'kennytm'
3+
github-id = 103023
4+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
name = 'Nell Shamrell-Harrington'
2+
github = 'nellshamrell'
3+
github-id = 813007
4+
5+
discord-id = 244302461718757376
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
name = 'Pietro Albini'
22
github = 'pietroalbini'
33
github-id = 2299951
4+
5+
discord-id = 296309029947441155

tests/static-api/teams/foo.toml

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,46 @@
11
name = "foo"
22

33
[people]
4-
leads = []
5-
members = ["pietroalbini"]
4+
leads = ["pietroalbini"]
5+
members = ["pietroalbini", "nellshamrell"]
6+
7+
[permissions]
8+
crater = true
9+
bors.rust.review = true
10+
bors.crater.try = true
11+
crates-io-ops-bot.crates_io = true
12+
13+
[rfcbot]
14+
label = "T-foo"
15+
name = "Demo Team"
16+
ping = "@ghost/foo"
17+
exclude-members = ["nellshamrell"]
18+
19+
[website]
20+
name = "Demo Team"
21+
description = "Why do you care about the description of test teams?"
22+
page = "demo"
23+
24+
repo = "https://github.com/ghost/foo"
25+
discord-invite = "https://discord.gg/MCMm5YC"
26+
discord-name = "#foo"
27+
zulip-stream = "t-foo"
28+
weight = 1000
29+
30+
[[github]]
31+
orgs = ["test-org"]
32+
33+
[[github]]
34+
orgs = ["test-org"]
35+
team-name = "renamed-team"
36+
extra-teams = ["wg-test"]
37+
38+
[[lists]]
39+
address = "[email protected]"
40+
41+
[[lists]]
42+
address = "[email protected]"
43+
include-team-members = false
44+
extra-people = ["kennytm"]
45+
extra-emails = ["[email protected]"]
46+
extra-teams = ["wg-test"]

tests/static-api/teams/wg-test.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name = "wg-test"
2+
kind = "working-group"
3+
4+
[people]
5+
leads = ["Mark-Simulacrum"]
6+
members = ["Mark-Simulacrum"]
7+
alumni = ["pietroalbini"]

0 commit comments

Comments
 (0)