File tree Expand file tree Collapse file tree 4 files changed +82
-1
lines changed
transcripts/share-apis/roles Expand file tree Collapse file tree 4 files changed +82
-1
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "body" : {
3+ "members" : [
4+ {
5+ "avatarUrl" : " https://www.gravatar.com/avatar/205e460b479e2e5b48aec07710c08d50?f=y&d=retro" ,
6+ "handle" : " admin" ,
7+ "name" : " Admin User" ,
8+ "userId" : " U-<UUID>"
9+ },
10+ {
11+ "avatarUrl" : null ,
12+ "handle" : " some-user" ,
13+ "name" : null ,
14+ "userId" : " U-<UUID>"
15+ },
16+ {
17+ "avatarUrl" : null ,
18+ "handle" : " test" ,
19+ "name" : null ,
20+ "userId" : " U-<UUID>"
21+ },
22+ {
23+ "avatarUrl" : " https://www.gravatar.com/avatar/205e460b479e2e5b48aec07710c08d50?f=y&d=retro" ,
24+ "handle" : " transcripts" ,
25+ "name" : " The Transcript User" ,
26+ "userId" : " U-<UUID>"
27+ }
28+ ]
29+ },
30+ "status" : [
31+ {
32+ "status_code" : 200
33+ }
34+ ]
35+ }
Original file line number Diff line number Diff line change 1+ {
2+ "body" : {
3+ "members" : [
4+ {
5+ "avatarUrl" : " https://www.gravatar.com/avatar/205e460b479e2e5b48aec07710c08d50?f=y&d=retro" ,
6+ "handle" : " admin" ,
7+ "name" : " Admin User" ,
8+ "userId" : " U-<UUID>"
9+ },
10+ {
11+ "avatarUrl" : null ,
12+ "handle" : " test" ,
13+ "name" : null ,
14+ "userId" : " U-<UUID>"
15+ },
16+ {
17+ "avatarUrl" : " https://www.gravatar.com/avatar/205e460b479e2e5b48aec07710c08d50?f=y&d=retro" ,
18+ "handle" : " transcripts" ,
19+ "name" : " The Transcript User" ,
20+ "userId" : " U-<UUID>"
21+ }
22+ ]
23+ },
24+ "status" : [
25+ {
26+ "status_code" : 200
27+ }
28+ ]
29+ }
Original file line number Diff line number Diff line change 2020 },
2121 "permissions" : [
2222 " project:view" ,
23- " project:contribute"
23+ " project:contribute" ,
24+ " project:maintain" ,
25+ " project:create" ,
26+ " org:view" ,
27+ " org:edit" ,
28+ " team:view" ,
29+ " notification_hub_entry:view" ,
30+ " notification_hub_entry:update" ,
31+ " notification_subscription:view" ,
32+ " notification_subscription:manage" ,
33+ " notification_delivery_method:view" ,
34+ " notification_delivery_method:manage"
2435 ],
2536 "releaseDownloads" : [],
2637 "slug" : " privateorgproject" ,
Original file line number Diff line number Diff line change @@ -36,6 +36,9 @@ fetch "$test_user" POST grant-project-contributor '/orgs/unison/roles' "
3636 ]
3737}"
3838
39+ # Now the user should be a member of the org
40+ fetch " $test_user " GET check-contributor-membership-addition ' /orgs/unison/members'
41+
3942fetch " $some_user " GET maintainer-project-view ' /users/unison/projects/privateorgproject'
4043
4144# Remove the user from the org again
@@ -49,3 +52,6 @@ fetch "$test_user" DELETE revoke-project-contributor '/orgs/unison/roles' "
4952}"
5053
5154fetch " $some_user " GET non-maintainer-project-view ' /users/unison/projects/privateorgproject'
55+
56+ # Now the user should be no longer be a member of the org
57+ fetch " $test_user " GET check-contributor-membership-removal ' /orgs/unison/members'
You can’t perform that action at this time.
0 commit comments