@@ -40,6 +40,24 @@ Feature: federation/permissions
40
40
| permissions |
41
41
| CLM |
42
42
43
+ Scenario : change permissions for all attendees before inviting federated user
44
+ Given user "participant1" creates room "room" (v4)
45
+ | roomType | 2 |
46
+ | roomName | room name |
47
+ When user "participant1" sets permissions for all attendees in room "room" to "SM" with 200 (v4)
48
+ And user "participant1" removes permissions for all attendees in room "room" to "S" with 200 (v4)
49
+ And user "participant1" adds permissions for all attendees in room "room" to "L" with 200 (v4)
50
+ And user "participant1" adds federated_user "participant2" to room "room" with 200 (v4)
51
+ And user "participant2" has the following invitations (v1)
52
+ | remoteServerUrl | remoteToken | state | inviterCloudId | inviterDisplayName |
53
+ | LOCAL | room | 0 | participant1 @http ://localhost :8080 | participant1 -displayname |
54
+ And user "participant2" accepts invite to room "room" of server "LOCAL" with 200 (v1)
55
+ | id | name | type | remoteServer | remoteToken |
56
+ | LOCAL ::room | room name | 2 | LOCAL | room |
57
+ Then user "participant2" is participant of room "LOCAL::room" (v4)
58
+ | permissions |
59
+ | CLM |
60
+
43
61
Scenario : change permissions for all attendees before federated user accepts invitation
44
62
Given user "participant1" creates room "room" (v4)
45
63
| roomType | 2 |
@@ -74,6 +92,43 @@ Feature: federation/permissions
74
92
| permissions |
75
93
| CM |
76
94
95
+ Scenario : set conversation permissions before inviting federated user
96
+ Given user "participant1" creates room "room" (v4)
97
+ | roomType | 2 |
98
+ | roomName | room name |
99
+ When user "participant1" sets default permissions for room "room" to "M" with 200 (v4)
100
+ And user "participant1" adds federated_user "participant2" to room "room" with 200 (v4)
101
+ And user "participant2" has the following invitations (v1)
102
+ | remoteServerUrl | remoteToken | state | inviterCloudId | inviterDisplayName |
103
+ | LOCAL | room | 0 | participant1 @http ://localhost :8080 | participant1 -displayname |
104
+ And user "participant2" accepts invite to room "room" of server "LOCAL" with 200 (v1)
105
+ | id | name | type | remoteServer | remoteToken |
106
+ | LOCAL ::room | room name | 2 | LOCAL | room |
107
+ Then user "participant2" is participant of room "LOCAL::room" (v4)
108
+ | permissions |
109
+ | CM |
110
+
111
+ Scenario : set conversation permissions before inviting federated user again
112
+ Given user "participant1" creates room "room" (v4)
113
+ | roomType | 2 |
114
+ | roomName | room name |
115
+ And user "participant1" adds federated_user "participant2" to room "room" with 200 (v4)
116
+ And user "participant2" has the following invitations (v1)
117
+ | remoteServerUrl | remoteToken | state | inviterCloudId | inviterDisplayName |
118
+ | LOCAL | room | 0 | participant1 @http ://localhost :8080 | participant1 -displayname |
119
+ And user "participant2" declines invite to room "room" of server "LOCAL" with 200 (v1)
120
+ When user "participant1" sets default permissions for room "room" to "M" with 200 (v4)
121
+ And user "participant1" adds federated_user "participant2" to room "room" with 200 (v4)
122
+ And user "participant2" has the following invitations (v1)
123
+ | remoteServerUrl | remoteToken | state | inviterCloudId | inviterDisplayName |
124
+ | LOCAL | room | 0 | participant1 @http ://localhost :8080 | participant1 -displayname |
125
+ And user "participant2" accepts invite to room "room" of server "LOCAL" with 200 (v1)
126
+ | id | name | type | remoteServer | remoteToken |
127
+ | LOCAL ::room | room name | 2 | LOCAL | room |
128
+ Then user "participant2" is participant of room "LOCAL::room" (v4)
129
+ | permissions |
130
+ | CM |
131
+
77
132
Scenario : set conversation permissions before federated user accepts invitation
78
133
Given user "participant1" creates room "room" (v4)
79
134
| roomType | 2 |
0 commit comments