Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-09-24 13:10:24 +0300
committerJoas Schilling <coding@schilljs.com>2021-10-07 19:18:30 +0300
commit3f54ae8eea471b1598171ce043dc197c24820b36 (patch)
tree611cfd6a235cd882c92a6db758ca2a0a26a65bc8 /tests
parent3b4f96031e45d9d7bc074715fad13621a72910ea (diff)
Fix integration tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/features/bootstrap/FeatureContext.php79
-rw-r--r--tests/integration/features/conversation-2/set-participant-permissions.feature431
-rw-r--r--tests/integration/features/conversation-2/set-publishing-permissions.feature439
3 files changed, 483 insertions, 466 deletions
diff --git a/tests/integration/features/bootstrap/FeatureContext.php b/tests/integration/features/bootstrap/FeatureContext.php
index 05e8e84f3..3fa083c18 100644
--- a/tests/integration/features/bootstrap/FeatureContext.php
+++ b/tests/integration/features/bootstrap/FeatureContext.php
@@ -50,6 +50,18 @@ class FeatureContext implements Context, SnippetAcceptingContext {
/** @var array[] */
protected static $messages;
+
+ protected static $permissionsMap = [
+ 'D' => 0, // PERMISSIONS_DEFAULT
+ 'C' => 1, // PERMISSIONS_CUSTOM
+ 'S' => 2, // PERMISSIONS_CALL_START
+ 'J' => 4, // PERMISSIONS_CALL_JOIN
+ 'L' => 8, // PERMISSIONS_LOBBY_IGNORE
+ 'A' => 16, // PERMISSIONS_PUBLISH_AUDIO
+ 'V' => 32, // PERMISSIONS_PUBLISH_VIDEO
+ 'P' => 64, // PERMISSIONS_PUBLISH_SCREEN
+ ];
+
/** @var string */
protected $currentUser;
@@ -417,11 +429,15 @@ class FeatureContext implements Context, SnippetAcceptingContext {
if (isset($attendee['participantType'])) {
$attendee['participantType'] = (string)$this->mapParticipantTypeTestInput($attendee['participantType']);
}
+ return $attendee;
+ }, $formData->getHash());
+
+ $result = array_map(function ($attendee) {
if (isset($attendee['permissions'])) {
- $attendee['permissions'] = (string)$this->mapPermissionsTestInput($attendee['permissions']);
+ $attendee['permissions'] = $this->mapPermissionsAPIOutput($attendee['permissions']);
}
return $attendee;
- }, $formData->getHash());
+ }, $result);
usort($expected, [$this, 'sortAttendees']);
usort($result, [$this, 'sortAttendees']);
@@ -480,21 +496,42 @@ class FeatureContext implements Context, SnippetAcceptingContext {
Assert::fail('Invalid test input value for participant type');
}
- // FIXME this function needs rewriting
- private function mapPermissionsTestInput($permissions) {
+ private function mapPermissionsTestInput($permissions): int {
if (is_numeric($permissions)) {
return $permissions;
}
- switch ($permissions) {
- case 'NONE': return 0;
- case 'AUDIO': return 1;
- case 'VIDEO': return 2;
- case 'SCREENSHARING': return 4;
- case 'ALL': return 7;
+ $numericPermissions = 0;
+ foreach (self::$permissionsMap as $char => $int) {
+ if (strpos($permissions, $char) !== false) {
+ $numericPermissions += $int;
+ $permissions = str_replace($char, '', $permissions);
+ }
}
- Assert::fail('Invalid test input value for permissions');
+ if (trim($permissions) !== '') {
+ Assert::fail('Invalid test input value for permissions');
+ }
+
+ return $numericPermissions;
+ }
+
+ private function mapPermissionsAPIOutput($permissions): string {
+ $permissions = (int) $permissions;
+
+ $permissionsString = '';
+ foreach (self::$permissionsMap as $char => $int) {
+ if ($permissions & $int) {
+ $permissionsString .= $char;
+ $permissions &= ~ $int;
+ }
+ }
+
+ if ($permissions !== 0) {
+ Assert::fail('Invalid API output value for permissions');
+ }
+
+ return $permissionsString;
}
/**
@@ -1085,7 +1122,7 @@ class FeatureContext implements Context, SnippetAcceptingContext {
}
/**
- * @When /^user "([^"]*)" sets publishing permissions for "([^"]*)" in room "([^"]*)" to "([^"]*)" with (\d+) \((v4)\)$/
+ * @When /^user "([^"]*)" sets permissions for "([^"]*)" in room "([^"]*)" to "([^"]*)" with (\d+) \((v4)\)$/
*
* @param string $user
* @param string $participant
@@ -1104,28 +1141,16 @@ class FeatureContext implements Context, SnippetAcceptingContext {
$attendeeId = $this->getAttendeeId('users', $participant, $identifier, $statusCode === 200 ? $user : null);
}
- if ($permissionsString === 'NONE') {
- $permissions = 0;
- } elseif ($permissionsString === 'AUDIO') {
- $permissions = 1;
- } elseif ($permissionsString === 'VIDEO') {
- $permissions = 2;
- } elseif ($permissionsString === 'SCREENSHARING') {
- $permissions = 4;
- } elseif ($permissionsString === 'ALL') {
- $permissions = 7;
- } else {
- Assert::fail('Invalid permissions');
- }
+ $permissions = $this->mapPermissionsTestInput($permissionsString);
$requestParameters = [
['attendeeId', $attendeeId],
- ['state', $permissions],
+ ['permissions', $permissions],
];
$this->setCurrentUser($user);
$this->sendRequest(
- 'PUT', '/apps/spreed/api/' . $apiVersion . '/room/' . self::$identifierToToken[$identifier] . '/attendees/publishing-permissions',
+ 'PUT', '/apps/spreed/api/' . $apiVersion . '/room/' . self::$identifierToToken[$identifier] . '/attendees/permissions',
new TableNode($requestParameters)
);
$this->assertStatusCode($this->response, $statusCode);
diff --git a/tests/integration/features/conversation-2/set-participant-permissions.feature b/tests/integration/features/conversation-2/set-participant-permissions.feature
new file mode 100644
index 000000000..8186a99df
--- /dev/null
+++ b/tests/integration/features/conversation-2/set-participant-permissions.feature
@@ -0,0 +1,431 @@
+Feature: set-publishing-permissions
+ Background:
+ Given user "owner" exists
+ Given user "moderator" exists
+ Given user "invited user" exists
+ Given user "not invited user" exists
+ Given user "not invited but joined user" exists
+ Given user "not joined user" exists
+
+ Scenario: owner can not set permissions in one-to-one room
+ Given user "owner" creates room "one-to-one room" (v4)
+ | roomType | 1 |
+ | invite | moderator |
+ And user "owner" loads attendees attendee ids in room "one-to-one room" (v4)
+ When user "owner" sets permissions for "owner" in room "one-to-one room" to "S" with 400 (v4)
+ And user "owner" sets permissions for "moderator" in room "one-to-one room" to "S" with 400 (v4)
+ And user "moderator" sets permissions for "owner" in room "one-to-one room" to "S" with 400 (v4)
+ And user "moderator" sets permissions for "moderator" in room "one-to-one room" to "S" with 400 (v4)
+ Then user "owner" sees the following attendees in room "one-to-one room" with 200 (v4)
+ | actorType | actorId | permissions |
+ | users | owner | SJLAVP |
+ | users | moderator | SJLAVP |
+ And user "moderator" sees the following attendees in room "one-to-one room" with 200 (v4)
+ | actorType | actorId | permissions |
+ | users | owner | SJLAVP |
+ | users | moderator | SJLAVP |
+
+ Scenario: owner can set permissions in group room
+ Given user "owner" creates room "group room" (v4)
+ | roomType | 2 |
+ | roomName | room |
+ And user "owner" adds user "moderator" to room "group room" with 200 (v4)
+ And user "owner" promotes "moderator" in room "group room" with 200 (v4)
+ And user "owner" adds user "invited user" to room "group room" with 200 (v4)
+ And user "owner" loads attendees attendee ids in room "group room" (v4)
+ When user "owner" sets permissions for "owner" in room "group room" to "S" with 403 (v4)
+ And user "owner" sets permissions for "moderator" in room "group room" to "S" with 403 (v4)
+ And user "owner" sets permissions for "invited user" in room "group room" to "S" with 200 (v4)
+ Then user "owner" sees the following attendees in room "group room" with 200 (v4)
+ | actorType | actorId | permissions |
+ | users | owner | SJLAVP |
+ | users | moderator | SJLAVP |
+ | users | invited user | CS |
+ And user "moderator" sees the following attendees in room "group room" with 200 (v4)
+ | actorType | actorId | permissions |
+ | users | owner | SJLAVP |
+ | users | moderator | SJLAVP |
+ | users | invited user | CS |
+ And user "invited user" sees the following attendees in room "group room" with 200 (v4)
+ | actorType | actorId | permissions |
+ | users | owner | SJLAVP |
+ | users | moderator | SJLAVP |
+ | users | invited user | CS |
+
+ Scenario: moderator can set permissions in group room
+ Given user "owner" creates room "group room" (v4)
+ | roomType | 2 |
+ | roomName | room |
+ And user "owner" adds user "moderator" to room "group room" with 200 (v4)
+ And user "owner" promotes "moderator" in room "group room" with 200 (v4)
+ And user "owner" adds user "invited user" to room "group room" with 200 (v4)
+ And user "owner" loads attendees attendee ids in room "group room" (v4)
+ When user "owner" sets permissions for "owner" in room "group room" to "S" with 403 (v4)
+ And user "owner" sets permissions for "moderator" in room "group room" to "S" with 403 (v4)
+ And user "owner" sets permissions for "invited user" in room "group room" to "S" with 200 (v4)
+ Then user "owner" sees the following attendees in room "group room" with 200 (v4)
+ | actorType | actorId | permissions |
+ | users | owner | SJLAVP |
+ | users | moderator | SJLAVP |
+ | users | invited user | CS |
+ And user "moderator" sees the following attendees in room "group room" with 200 (v4)
+ | actorType | actorId | permissions |
+ | users | owner | SJLAVP |
+ | users | moderator | SJLAVP |
+ | users | invited user | CS |
+ And user "invited user" sees the following attendees in room "group room" with 200 (v4)
+ | actorType | actorId | permissions |
+ | users | owner | SJLAVP |
+ | users | moderator | SJLAVP |
+ | users | invited user | CS |
+
+ Scenario: others can not set permissions in group room
+ Given user "owner" creates room "group room" (v4)
+ | roomType | 2 |
+ | roomName | room |
+ And user "owner" adds user "moderator" to room "group room" with 200 (v4)
+ And user "owner" promotes "moderator" in room "group room" with 200 (v4)
+ And user "owner" adds user "invited user" to room "group room" with 200 (v4)
+ And user "owner" loads attendees attendee ids in room "group room" (v4)
+ When user "invited user" sets permissions for "owner" in room "group room" to "S" with 403 (v4)
+ And user "invited user" sets permissions for "moderator" in room "group room" to "S" with 403 (v4)
+ And user "invited user" sets permissions for "invited user" in room "group room" to "S" with 403 (v4)
+ And user "not invited user" sets permissions for "owner" in room "group room" to "S" with 404 (v4)
+ And user "not invited user" sets permissions for "moderator" in room "group room" to "S" with 404 (v4)
+ And user "not invited user" sets permissions for "invited user" in room "group room" to "S" with 404 (v4)
+ # Guest user names in tests must begin with "guest"
+ And user "guest not joined" sets permissions for "owner" in room "group room" to "S" with 404 (v4)
+ And user "guest not joined" sets permissions for "moderator" in room "group room" to "S" with 404 (v4)
+ And user "guest not joined" sets permissions for "invited user" in room "group room" to "S" with 404 (v4)
+ Then user "owner" sees the following attendees in room "group room" with 200 (v4)
+ | actorType | actorId | permissions |
+ | users | owner | SJLAVP |
+ | users | moderator | SJLAVP |
+ | users | invited user | SJAVP |
+ And user "moderator" sees the following attendees in room "group room" with 200 (v4)
+ | actorType | actorId | permissions |
+ | users | owner | SJLAVP |
+ | users | moderator | SJLAVP |
+ | users | invited user | SJAVP |
+ And user "invited user" sees the following attendees in room "group room" with 200 (v4)
+ | actorType | actorId | permissions |
+ | users | owner | SJLAVP |
+ | users | moderator | SJLAVP |
+ | users | invited user | SJAVP |
+
+ Scenario: owner can set permissions in public room
+ Given user "owner" creates room "public room" (v4)
+ | roomType | 3 |
+ | roomName | room |
+ And user "owner" adds user "moderator" to room "public room" with 200 (v4)
+ And user "owner" promotes "moderator" in room "public room" with 200 (v4)
+ And user "owner" adds user "invited user" to room "public room" with 200 (v4)
+ And user "not invited but joined user" joins room "public room" with 200 (v4)
+ And user "guest moderator" joins room "public room" with 200 (v4)
+ And user "owner" promotes "guest moderator" in room "public room" with 200 (v4)
+ And user "guest" joins room "public room" with 200 (v4)
+ And user "owner" loads attendees attendee ids in room "public room" (v4)
+ When user "owner" sets permissions for "owner" in room "public room" to "S" with 403 (v4)
+ And user "owner" sets permissions for "moderator" in room "public room" to "S" with 403 (v4)
+ And user "owner" sets permissions for "invited user" in room "public room" to "S" with 200 (v4)
+ And user "owner" sets permissions for "not invited but joined user" in room "public room" to "S" with 200 (v4)
+ And user "owner" sets permissions for "guest moderator" in room "public room" to "S" with 403 (v4)
+ And user "owner" sets permissions for "guest" in room "public room" to "S" with 200 (v4)
+ Then user "owner" sees the following attendees in room "public room" with 200 (v4)
+ | actorType | actorId | permissions |
+ | users | owner | SJLAVP |
+ | users | moderator | SJLAVP |
+ | users | invited user | CS |
+ | users | not invited but joined user | CS |
+ | guests | "guest moderator" | SJLAVP |
+ | guests | "guest" | CS |
+ And user "moderator" sees the following attendees in room "public room" with 200 (v4)
+ | actorType | actorId | permissions |
+ | users | owner | SJLAVP |
+ | users | moderator | SJLAVP |
+ | users | invited user | CS |
+ | users | not invited but joined user | CS |
+ | guests | "guest moderator" | SJLAVP |
+ | guests | "guest" | CS |
+ And user "invited user" sees the following attendees in room "public room" with 200 (v4)
+ | actorType | actorId | permissions |
+ | users | owner | SJLAVP |
+ | users | moderator | SJLAVP |
+ | users | invited user | CS |
+ | users | not invited but joined user | CS |
+ | guests | "guest moderator" | SJLAVP |
+ | guests | "guest" | CS |
+ And user "not invited but joined user" sees the following attendees in room "public room" with 200 (v4)
+ | actorType | actorId | permissions |
+ | users | owner | SJLAVP |
+ | users | moderator | SJLAVP |
+ | users | invited user | CS |
+ | users | not invited but joined user | CS |
+ | guests | "guest moderator" | SJLAVP |
+ | guests | "guest" | CS |
+ And user "guest moderator" sees the following attendees in room "public room" with 200 (v4)
+ | actorType | actorId | permissions |
+ | users | owner | SJLAVP |
+ | users | moderator | SJLAVP |
+ | users | invited user | CS |
+ | users | not invited but joined user | CS |
+ | guests | "guest moderator" | SJLAVP |
+ | guests | "guest" | CS |
+
+ Scenario: moderator can set permissions in public room
+ Given user "owner" creates room "public room" (v4)
+ | roomType | 3 |
+ | roomName | room |
+ And user "owner" adds user "moderator" to room "public room" with 200 (v4)
+ And user "owner" promotes "moderator" in room "public room" with 200 (v4)
+ And user "owner" adds user "invited user" to room "public room" with 200 (v4)
+ And user "not invited but joined user" joins room "public room" with 200 (v4)
+ And user "guest moderator" joins room "public room" with 200 (v4)
+ And user "owner" promotes "guest moderator" in room "public room" with 200 (v4)
+ And user "guest" joins room "public room" with 200 (v4)
+ And user "owner" loads attendees attendee ids in room "public room" (v4)
+ When user "moderator" sets permissions for "owner" in room "public room" to "S" with 403 (v4)
+ And user "moderator" sets permissions for "moderator" in room "public room" to "S" with 403 (v4)
+ And user "moderator" sets permissions for "invited user" in room "public room" to "S" with 200 (v4)
+ And user "moderator" sets permissions for "not invited but joined user" in room "public room" to "S" with 200 (v4)
+ And user "moderator" sets permissions for "guest moderator" in room "public room" to "S" with 403 (v4)
+ And user "moderator" sets permissions for "guest" in room "public room" to "S" with 200 (v4)
+ Then user "owner" sees the following attendees in room "public room" with 200 (v4)
+ | actorType | actorId | permissions |
+ | users | owner | SJLAVP |
+ | users | moderator | SJLAVP |
+ | users | invited user | CS |
+ | users | not invited but joined user | CS |
+ | guests | "guest moderator" | SJLAVP |
+ | guests | "guest" | CS |
+ And user "moderator" sees the following attendees in room "public room" with 200 (v4)
+ | actorType | actorId | permissions |
+ | users | owner | SJLAVP |
+ | users | moderator | SJLAVP |
+ | users | invited user | CS |
+ | users | not invited but joined user | CS |
+ | guests | "guest moderator" | SJLAVP |
+ | guests | "guest" | CS |
+ And user "invited user" sees the following attendees in room "public room" with 200 (v4)
+ | actorType | actorId | permissions |
+ | users | owner | SJLAVP |
+ | users | moderator | SJLAVP |
+ | users | invited user | CS |
+ | users | not invited but joined user | CS |
+ | guests | "guest moderator" | SJLAVP |
+ | guests | "guest" | CS |
+ And user "not invited but joined user" sees the following attendees in room "public room" with 200 (v4)
+ | actorType | actorId | permissions |
+ | users | owner | SJLAVP |
+ | users | moderator | SJLAVP |
+ | users | invited user | CS |
+ | users | not invited but joined user | CS |
+ | guests | "guest moderator" | SJLAVP |
+ | guests | "guest" | CS |
+ And user "guest moderator" sees the following attendees in room "public room" with 200 (v4)
+ | actorType | actorId | permissions |
+ | users | owner | SJLAVP |
+ | users | moderator | SJLAVP |
+ | users | invited user | CS |
+ | users | not invited but joined user | CS |
+ | guests | "guest moderator" | SJLAVP |
+ | guests | "guest" | CS |
+ # Guests can not fetch the participant list
+
+ Scenario: guest moderator can set permissions in public room
+ Given user "owner" creates room "public room" (v4)
+ | roomType | 3 |
+ | roomName | room |
+ And user "owner" adds user "moderator" to room "public room" with 200 (v4)
+ And user "owner" promotes "moderator" in room "public room" with 200 (v4)
+ And user "owner" adds user "invited user" to room "public room" with 200 (v4)
+ And user "not invited but joined user" joins room "public room" with 200 (v4)
+ And user "guest moderator" joins room "public room" with 200 (v4)
+ And user "owner" promotes "guest moderator" in room "public room" with 200 (v4)
+ And user "guest" joins room "public room" with 200 (v4)
+ And user "owner" loads attendees attendee ids in room "public room" (v4)
+ # Guest user names in tests must begin with "guest"
+ When user "guest moderator" sets permissions for "owner" in room "public room" to "S" with 403 (v4)
+ And user "guest moderator" sets permissions for "moderator" in room "public room" to "S" with 403 (v4)
+ And user "guest moderator" sets permissions for "invited user" in room "public room" to "S" with 200 (v4)
+ And user "guest moderator" sets permissions for "not invited but joined user" in room "public room" to "S" with 200 (v4)
+ And user "guest moderator" sets permissions for "guest moderator" in room "public room" to "S" with 403 (v4)
+ And user "guest moderator" sets permissions for "guest" in room "public room" to "S" with 200 (v4)
+ Then user "owner" sees the following attendees in room "public room" with 200 (v4)
+ | actorType | actorId | permissions |
+ | users | owner | SJLAVP |
+ | users | moderator | SJLAVP |
+ | users | invited user | CS |
+ | users | not invited but joined user | CS |
+ | guests | "guest moderator" | SJLAVP |
+ | guests | "guest" | CS |
+ And user "moderator" sees the following attendees in room "public room" with 200 (v4)
+ | actorType | actorId | permissions |
+ | users | owner | SJLAVP |
+ | users | moderator | SJLAVP |
+ | users | invited user | CS |
+ | users | not invited but joined user | CS |
+ | guests | "guest moderator" | SJLAVP |
+ | guests | "guest" | CS |
+ And user "invited user" sees the following attendees in room "public room" with 200 (v4)
+ | actorType | actorId | permissions |
+ | users | owner | SJLAVP |
+ | users | moderator | SJLAVP |
+ | users | invited user | CS |
+ | users | not invited but joined user | CS |
+ | guests | "guest moderator" | SJLAVP |
+ | guests | "guest" | CS |
+ And user "not invited but joined user" sees the following attendees in room "public room" with 200 (v4)
+ | actorType | actorId | permissions |
+ | users | owner | SJLAVP |
+ | users | moderator | SJLAVP |
+ | users | invited user | CS |
+ | users | not invited but joined user | CS |
+ | guests | "guest moderator" | SJLAVP |
+ | guests | "guest" | CS |
+ And user "guest moderator" sees the following attendees in room "public room" with 200 (v4)
+ | actorType | actorId | permissions |
+ | users | owner | SJLAVP |
+ | users | moderator | SJLAVP |
+ | users | invited user | CS |
+ | users | not invited but joined user | CS |
+ | guests | "guest moderator" | SJLAVP |
+ | guests | "guest" | CS |
+ # Guests can not fetch the participant list
+
+ Scenario: others can not set permissions in public room
+ Given user "owner" creates room "public room" (v4)
+ | roomType | 3 |
+ | roomName | room |
+ And user "owner" adds user "moderator" to room "public room" with 200 (v4)
+ And user "owner" promotes "moderator" in room "public room" with 200 (v4)
+ And user "owner" adds user "invited user" to room "public room" with 200 (v4)
+ And user "not invited but joined user" joins room "public room" with 200 (v4)
+ And user "guest moderator" joins room "public room" with 200 (v4)
+ And user "owner" promotes "guest moderator" in room "public room" with 200 (v4)
+ And user "guest" joins room "public room" with 200 (v4)
+ And user "owner" loads attendees attendee ids in room "public room" (v4)
+ When user "invited user" sets permissions for "owner" in room "public room" to "S" with 403 (v4)
+ And user "invited user" sets permissions for "moderator" in room "public room" to "S" with 403 (v4)
+ And user "invited user" sets permissions for "invited user" in room "public room" to "S" with 403 (v4)
+ And user "invited user" sets permissions for "not invited but joined user" in room "public room" to "S" with 403 (v4)
+ And user "invited user" sets permissions for "guest moderator" in room "public room" to "S" with 403 (v4)
+ And user "invited user" sets permissions for "guest" in room "public room" to "S" with 403 (v4)
+ And user "not invited but joined user" sets permissions for "owner" in room "public room" to "S" with 403 (v4)
+ And user "not invited but joined user" sets permissions for "moderator" in room "public room" to "S" with 403 (v4)
+ And user "not invited but joined user" sets permissions for "invited user" in room "public room" to "S" with 403 (v4)
+ And user "not invited but joined user" sets permissions for "not invited but joined user" in room "public room" to "S" with 403 (v4)
+ And user "not invited but joined user" sets permissions for "guest moderator" in room "public room" to "S" with 403 (v4)
+ And user "not invited but joined user" sets permissions for "guest" in room "public room" to "S" with 403 (v4)
+ And user "not joined user" sets permissions for "owner" in room "public room" to "S" with 404 (v4)
+ And user "not joined user" sets permissions for "moderator" in room "public room" to "S" with 404 (v4)
+ And user "not joined user" sets permissions for "invited user" in room "public room" to "S" with 404 (v4)
+ And user "not joined user" sets permissions for "not invited but joined user" in room "public room" to "S" with 404 (v4)
+ And user "not joined user" sets permissions for "guest moderator" in room "public room" to "S" with 404 (v4)
+ And user "not joined user" sets permissions for "guest" in room "public room" to "S" with 404 (v4)
+ # Guest user names in tests must begin with "guest"
+ And user "guest" sets permissions for "owner" in room "public room" to "S" with 403 (v4)
+ And user "guest" sets permissions for "moderator" in room "public room" to "S" with 403 (v4)
+ And user "guest" sets permissions for "invited user" in room "public room" to "S" with 403 (v4)
+ And user "guest" sets permissions for "not invited but joined user" in room "public room" to "S" with 403 (v4)
+ And user "guest" sets permissions for "guest moderator" in room "public room" to "S" with 403 (v4)
+ And user "guest" sets permissions for "guest" in room "public room" to "S" with 403 (v4)
+ And user "guest not joined" sets permissions for "owner" in room "public room" to "S" with 404 (v4)
+ And user "guest not joined" sets permissions for "moderator" in room "public room" to "S" with 404 (v4)
+ And user "guest not joined" sets permissions for "invited user" in room "public room" to "S" with 404 (v4)
+ And user "guest not joined" sets permissions for "not invited but joined user" in room "public room" to "S" with 404 (v4)
+ And user "guest not joined" sets permissions for "guest moderator" in room "public room" to "S" with 404 (v4)
+ And user "guest not joined" sets permissions for "guest" in room "public room" to "S" with 404 (v4)
+ Then user "owner" sees the following attendees in room "public room" with 200 (v4)
+ | actorType | actorId | permissions |
+ | users | owner | SJLAVP |
+ | users | moderator | SJLAVP |
+ | users | invited user | SJAVP |
+ | users | not invited but joined user | SJAVP |
+ | guests | "guest moderator" | SJLAVP |
+ | guests | "guest" | SJAVP |
+ And user "moderator" sees the following attendees in room "public room" with 200 (v4)
+ | actorType | actorId | permissions |
+ | users | owner | SJLAVP |
+ | users | moderator | SJLAVP |
+ | users | invited user | SJAVP |
+ | users | not invited but joined user | SJAVP |
+ | guests | "guest moderator" | SJLAVP |
+ | guests | "guest" | SJAVP |
+ And user "invited user" sees the following attendees in room "public room" with 200 (v4)
+ | actorType | actorId | permissions |
+ | users | owner | SJLAVP |
+ | users | moderator | SJLAVP |
+ | users | invited user | SJAVP |
+ | users | not invited but joined user | SJAVP |
+ | guests | "guest moderator" | SJLAVP |
+ | guests | "guest" | SJAVP |
+ And user "not invited but joined user" sees the following attendees in room "public room" with 200 (v4)
+ | actorType | actorId | permissions |
+ | users | owner | SJLAVP |
+ | users | moderator | SJLAVP |
+ | users | invited user | SJAVP |
+ | users | not invited but joined user | SJAVP |
+ | guests | "guest moderator" | SJLAVP |
+ | guests | "guest" | SJAVP |
+ And user "guest moderator" sees the following attendees in room "public room" with 200 (v4)
+ | actorType | actorId | permissions |
+ | users | owner | SJLAVP |
+ | users | moderator | SJLAVP |
+ | users | invited user | SJAVP |
+ | users | not invited but joined user | SJAVP |
+ | guests | "guest moderator" | SJLAVP |
+ | guests | "guest" | SJAVP |
+ # Guests can not fetch the participant list
+
+ Scenario: participants can not set permissions in room for a share
+ # These users are only needed in very specific tests, so they are not
+ # created in the background step.
+ Given user "owner of file" exists
+ And user "user with access to file" exists
+ And user "owner of file" shares "welcome.txt" with user "user with access to file" with OCS 100
+ And user "user with access to file" accepts last share
+ And user "owner of file" shares "welcome.txt" by link with OCS 100
+ And user "guest" gets the room for last share with 200 (v1)
+ And user "owner of file" joins room "file last share room" with 200 (v4)
+ And user "user with access to file" joins room "file last share room" with 200 (v4)
+ And user "guest" joins room "file last share room" with 200 (v4)
+ And user "owner of file" loads attendees attendee ids in room "file last share room" (v4)
+ When user "owner of file" sets permissions for "owner of file" in room "file last share room" to "S" with 403 (v4)
+ And user "owner of file" sets permissions for "user with access to file" in room "file last share room" to "S" with 403 (v4)
+ And user "owner of file" sets permissions for "guest" in room "file last share room" to "S" with 403 (v4)
+ And user "user with access to file" sets permissions for "owner of file" in room "file last share room" to "S" with 403 (v4)
+ And user "user with access to file" sets permissions for "user with access to file" in room "file last share room" to "S" with 403 (v4)
+ And user "user with access to file" sets permissions for "guest" in room "file last share room" to "S" with 403 (v4)
+ And user "guest" sets permissions for "owner of file" in room "file last share room" to "S" with 403 (v4)
+ And user "guest" sets permissions for "user with access to file" in room "file last share room" to "S" with 403 (v4)
+ And user "guest" sets permissions for "guest" in room "file last share room" to "S" with 403 (v4)
+ Then user "owner of file" sees the following attendees in room "file last share room" with 200 (v4)
+ | actorType | actorId | permissions |
+ | users | owner of file | SJAVP |
+ | users | user with access to file | SJAVP |
+ | guests | "guest" | SJAVP |
+ And user "user with access to file" sees the following attendees in room "file last share room" with 200 (v4)
+ | actorType | actorId | permissions |
+ | users | owner of file | SJAVP |
+ | users | user with access to file | SJAVP |
+ | guests | "guest" | SJAVP |
+
+ # This does not make much sense, but there is no real need to block it either.
+ Scenario: owner can set permissions in a password request room
+ # The user is only needed in very specific tests, so it is not created in
+ # the background step.
+ Given user "owner of file" exists
+ And user "owner of file" shares "welcome.txt" by link with OCS 100
+ | password | 123456 |
+ | sendPasswordByTalk | true |
+ And user "guest" creates the password request room for last share with 201 (v1)
+ And user "guest" joins room "password request for last share room" with 200 (v4)
+ And user "owner of file" joins room "password request for last share room" with 200 (v4)
+ And user "owner of file" loads attendees attendee ids in room "password request for last share room" (v4)
+ When user "owner of file" sets permissions for "owner of file" in room "password request for last share room" to "S" with 403 (v4)
+ And user "owner of file" sets permissions for "guest" in room "password request for last share room" to "S" with 200 (v4)
+ Then user "owner of file" sees the following attendees in room "password request for last share room" with 200 (v4)
+ | actorType | actorId | permissions |
+ | users | owner of file | SJLAVP |
+ | guests | "guest" | CS |
diff --git a/tests/integration/features/conversation-2/set-publishing-permissions.feature b/tests/integration/features/conversation-2/set-publishing-permissions.feature
deleted file mode 100644
index eabe85459..000000000
--- a/tests/integration/features/conversation-2/set-publishing-permissions.feature
+++ /dev/null
@@ -1,439 +0,0 @@
-Feature: set-publishing-permissions
- Background:
- Given user "owner" exists
- Given user "moderator" exists
- Given user "invited user" exists
- Given user "not invited user" exists
- Given user "not invited but joined user" exists
- Given user "not joined user" exists
-
- Scenario: owner can not set publishing permissions in one-to-one room
- Given user "owner" creates room "one-to-one room" (v4)
- | roomType | 1 |
- | invite | moderator |
- And user "owner" loads attendees attendee ids in room "one-to-one room" (v4)
- When user "owner" sets publishing permissions for "owner" in room "one-to-one room" to "NONE" with 400 (v4)
- And user "owner" sets publishing permissions for "moderator" in room "one-to-one room" to "NONE" with 400 (v4)
- And user "moderator" sets publishing permissions for "owner" in room "one-to-one room" to "NONE" with 400 (v4)
- And user "moderator" sets publishing permissions for "moderator" in room "one-to-one room" to "NONE" with 400 (v4)
- Then user "owner" sees the following attendees in room "one-to-one room" with 200 (v4)
- | actorType | actorId | permissions |
- | users | owner | ALL |
- | users | moderator | ALL |
- And user "moderator" sees the following attendees in room "one-to-one room" with 200 (v4)
- | actorType | actorId | permissions |
- | users | owner | ALL |
- | users | moderator | ALL |
-
-
-
- Scenario: owner can set publishing permissions in group room
- Given user "owner" creates room "group room" (v4)
- | roomType | 2 |
- | roomName | room |
- And user "owner" adds user "moderator" to room "group room" with 200 (v4)
- And user "owner" promotes "moderator" in room "group room" with 200 (v4)
- And user "owner" adds user "invited user" to room "group room" with 200 (v4)
- And user "owner" loads attendees attendee ids in room "group room" (v4)
- When user "owner" sets publishing permissions for "owner" in room "group room" to "NONE" with 200 (v4)
- And user "owner" sets publishing permissions for "moderator" in room "group room" to "NONE" with 200 (v4)
- And user "owner" sets publishing permissions for "invited user" in room "group room" to "NONE" with 200 (v4)
- Then user "owner" sees the following attendees in room "group room" with 200 (v4)
- | actorType | actorId | permissions |
- | users | owner | NONE |
- | users | moderator | NONE |
- | users | invited user | NONE |
- And user "moderator" sees the following attendees in room "group room" with 200 (v4)
- | actorType | actorId | permissions |
- | users | owner | NONE |
- | users | moderator | NONE |
- | users | invited user | NONE |
- And user "invited user" sees the following attendees in room "group room" with 200 (v4)
- | actorType | actorId | permissions |
- | users | owner | NONE |
- | users | moderator | NONE |
- | users | invited user | NONE |
-
- Scenario: moderator can set publishing permissions in group room
- Given user "owner" creates room "group room" (v4)
- | roomType | 2 |
- | roomName | room |
- And user "owner" adds user "moderator" to room "group room" with 200 (v4)
- And user "owner" promotes "moderator" in room "group room" with 200 (v4)
- And user "owner" adds user "invited user" to room "group room" with 200 (v4)
- And user "owner" loads attendees attendee ids in room "group room" (v4)
- When user "moderator" sets publishing permissions for "owner" in room "group room" to "NONE" with 200 (v4)
- And user "moderator" sets publishing permissions for "moderator" in room "group room" to "NONE" with 200 (v4)
- And user "moderator" sets publishing permissions for "invited user" in room "group room" to "NONE" with 200 (v4)
- Then user "owner" sees the following attendees in room "group room" with 200 (v4)
- | actorType | actorId | permissions |
- | users | owner | NONE |
- | users | moderator | NONE |
- | users | invited user | NONE |
- And user "moderator" sees the following attendees in room "group room" with 200 (v4)
- | actorType | actorId | permissions |
- | users | owner | NONE |
- | users | moderator | NONE |
- | users | invited user | NONE |
- And user "invited user" sees the following attendees in room "group room" with 200 (v4)
- | actorType | actorId | permissions |
- | users | owner | NONE |
- | users | moderator | NONE |
- | users | invited user | NONE |
-
- Scenario: others can not set publishing permissions in group room
- Given user "owner" creates room "group room" (v4)
- | roomType | 2 |
- | roomName | room |
- And user "owner" adds user "moderator" to room "group room" with 200 (v4)
- And user "owner" promotes "moderator" in room "group room" with 200 (v4)
- And user "owner" adds user "invited user" to room "group room" with 200 (v4)
- And user "owner" loads attendees attendee ids in room "group room" (v4)
- When user "invited user" sets publishing permissions for "owner" in room "group room" to "NONE" with 403 (v4)
- And user "invited user" sets publishing permissions for "moderator" in room "group room" to "NONE" with 403 (v4)
- And user "invited user" sets publishing permissions for "invited user" in room "group room" to "NONE" with 403 (v4)
- And user "not invited user" sets publishing permissions for "owner" in room "group room" to "NONE" with 404 (v4)
- And user "not invited user" sets publishing permissions for "moderator" in room "group room" to "NONE" with 404 (v4)
- And user "not invited user" sets publishing permissions for "invited user" in room "group room" to "NONE" with 404 (v4)
- # Guest user names in tests must begin with "guest"
- And user "guest not joined" sets publishing permissions for "owner" in room "group room" to "NONE" with 404 (v4)
- And user "guest not joined" sets publishing permissions for "moderator" in room "group room" to "NONE" with 404 (v4)
- And user "guest not joined" sets publishing permissions for "invited user" in room "group room" to "NONE" with 404 (v4)
- Then user "owner" sees the following attendees in room "group room" with 200 (v4)
- | actorType | actorId | permissions |
- | users | owner | ALL |
- | users | moderator | ALL |
- | users | invited user | ALL |
- And user "moderator" sees the following attendees in room "group room" with 200 (v4)
- | actorType | actorId | permissions |
- | users | owner | ALL |
- | users | moderator | ALL |
- | users | invited user | ALL |
- And user "invited user" sees the following attendees in room "group room" with 200 (v4)
- | actorType | actorId | permissions |
- | users | owner | ALL |
- | users | moderator | ALL |
- | users | invited user | ALL |
-
-
-
- Scenario: owner can set publishing permissions in public room
- Given user "owner" creates room "public room" (v4)
- | roomType | 3 |
- | roomName | room |
- And user "owner" adds user "moderator" to room "public room" with 200 (v4)
- And user "owner" promotes "moderator" in room "public room" with 200 (v4)
- And user "owner" adds user "invited user" to room "public room" with 200 (v4)
- And user "not invited but joined user" joins room "public room" with 200 (v4)
- And user "guest moderator" joins room "public room" with 200 (v4)
- And user "owner" promotes "guest moderator" in room "public room" with 200 (v4)
- And user "guest" joins room "public room" with 200 (v4)
- And user "owner" loads attendees attendee ids in room "public room" (v4)
- When user "owner" sets publishing permissions for "owner" in room "public room" to "NONE" with 200 (v4)
- And user "owner" sets publishing permissions for "moderator" in room "public room" to "NONE" with 200 (v4)
- And user "owner" sets publishing permissions for "invited user" in room "public room" to "NONE" with 200 (v4)
- And user "owner" sets publishing permissions for "not invited but joined user" in room "public room" to "NONE" with 200 (v4)
- And user "owner" sets publishing permissions for "guest moderator" in room "public room" to "NONE" with 200 (v4)
- And user "owner" sets publishing permissions for "guest" in room "public room" to "NONE" with 200 (v4)
- Then user "owner" sees the following attendees in room "public room" with 200 (v4)
- | actorType | actorId | permissions |
- | users | owner | NONE |
- | users | moderator | NONE |
- | users | invited user | NONE |
- | users | not invited but joined user | NONE |
- | guests | "guest moderator" | NONE |
- | guests | "guest" | NONE |
- And user "moderator" sees the following attendees in room "public room" with 200 (v4)
- | actorType | actorId | permissions |
- | users | owner | NONE |
- | users | moderator | NONE |
- | users | invited user | NONE |
- | users | not invited but joined user | NONE |
- | guests | "guest moderator" | NONE |
- | guests | "guest" | NONE |
- And user "invited user" sees the following attendees in room "public room" with 200 (v4)
- | actorType | actorId | permissions |
- | users | owner | NONE |
- | users | moderator | NONE |
- | users | invited user | NONE |
- | users | not invited but joined user | NONE |
- | guests | "guest moderator" | NONE |
- | guests | "guest" | NONE |
- And user "not invited but joined user" sees the following attendees in room "public room" with 200 (v4)
- | actorType | actorId | permissions |
- | users | owner | NONE |
- | users | moderator | NONE |
- | users | invited user | NONE |
- | users | not invited but joined user | NONE |
- | guests | "guest moderator" | NONE |
- | guests | "guest" | NONE |
- And user "guest moderator" sees the following attendees in room "public room" with 200 (v4)
- | actorType | actorId | permissions |
- | users | owner | NONE |
- | users | moderator | NONE |
- | users | invited user | NONE |
- | users | not invited but joined user | NONE |
- | guests | "guest moderator" | NONE |
- | guests | "guest" | NONE |
-
- Scenario: moderator can set publishing permissions in public room
- Given user "owner" creates room "public room" (v4)
- | roomType | 3 |
- | roomName | room |
- And user "owner" adds user "moderator" to room "public room" with 200 (v4)
- And user "owner" promotes "moderator" in room "public room" with 200 (v4)
- And user "owner" adds user "invited user" to room "public room" with 200 (v4)
- And user "not invited but joined user" joins room "public room" with 200 (v4)
- And user "guest moderator" joins room "public room" with 200 (v4)
- And user "owner" promotes "guest moderator" in room "public room" with 200 (v4)
- And user "guest" joins room "public room" with 200 (v4)
- And user "owner" loads attendees attendee ids in room "public room" (v4)
- When user "moderator" sets publishing permissions for "owner" in room "public room" to "NONE" with 200 (v4)
- And user "moderator" sets publishing permissions for "moderator" in room "public room" to "NONE" with 200 (v4)
- And user "moderator" sets publishing permissions for "invited user" in room "public room" to "NONE" with 200 (v4)
- And user "moderator" sets publishing permissions for "not invited but joined user" in room "public room" to "NONE" with 200 (v4)
- And user "moderator" sets publishing permissions for "guest moderator" in room "public room" to "NONE" with 200 (v4)
- And user "moderator" sets publishing permissions for "guest" in room "public room" to "NONE" with 200 (v4)
- Then user "owner" sees the following attendees in room "public room" with 200 (v4)
- | actorType | actorId | permissions |
- | users | owner | NONE |
- | users | moderator | NONE |
- | users | invited user | NONE |
- | users | not invited but joined user | NONE |
- | guests | "guest moderator" | NONE |
- | guests | "guest" | NONE |
- And user "moderator" sees the following attendees in room "public room" with 200 (v4)
- | actorType | actorId | permissions |
- | users | owner | NONE |
- | users | moderator | NONE |
- | users | invited user | NONE |
- | users | not invited but joined user | NONE |
- | guests | "guest moderator" | NONE |
- | guests | "guest" | NONE |
- And user "invited user" sees the following attendees in room "public room" with 200 (v4)
- | actorType | actorId | permissions |
- | users | owner | NONE |
- | users | moderator | NONE |
- | users | invited user | NONE |
- | users | not invited but joined user | NONE |
- | guests | "guest moderator" | NONE |
- | guests | "guest" | NONE |
- And user "not invited but joined user" sees the following attendees in room "public room" with 200 (v4)
- | actorType | actorId | permissions |
- | users | owner | NONE |
- | users | moderator | NONE |
- | users | invited user | NONE |
- | users | not invited but joined user | NONE |
- | guests | "guest moderator" | NONE |
- | guests | "guest" | NONE |
- And user "guest moderator" sees the following attendees in room "public room" with 200 (v4)
- | actorType | actorId | permissions |
- | users | owner | NONE |
- | users | moderator | NONE |
- | users | invited user | NONE |
- | users | not invited but joined user | NONE |
- | guests | "guest moderator" | NONE |
- | guests | "guest" | NONE |
- # Guests can not fetch the participant list
-
- Scenario: guest moderator can set publishing permissions in public room
- Given user "owner" creates room "public room" (v4)
- | roomType | 3 |
- | roomName | room |
- And user "owner" adds user "moderator" to room "public room" with 200 (v4)
- And user "owner" promotes "moderator" in room "public room" with 200 (v4)
- And user "owner" adds user "invited user" to room "public room" with 200 (v4)
- And user "not invited but joined user" joins room "public room" with 200 (v4)
- And user "guest moderator" joins room "public room" with 200 (v4)
- And user "owner" promotes "guest moderator" in room "public room" with 200 (v4)
- And user "guest" joins room "public room" with 200 (v4)
- And user "owner" loads attendees attendee ids in room "public room" (v4)
- # Guest user names in tests must begin with "guest"
- When user "guest moderator" sets publishing permissions for "owner" in room "public room" to "NONE" with 200 (v4)
- And user "guest moderator" sets publishing permissions for "moderator" in room "public room" to "NONE" with 200 (v4)
- And user "guest moderator" sets publishing permissions for "invited user" in room "public room" to "NONE" with 200 (v4)
- And user "guest moderator" sets publishing permissions for "not invited but joined user" in room "public room" to "NONE" with 200 (v4)
- And user "guest moderator" sets publishing permissions for "guest moderator" in room "public room" to "NONE" with 200 (v4)
- And user "guest moderator" sets publishing permissions for "guest" in room "public room" to "NONE" with 200 (v4)
- Then user "owner" sees the following attendees in room "public room" with 200 (v4)
- | actorType | actorId | permissions |
- | users | owner | NONE |
- | users | moderator | NONE |
- | users | invited user | NONE |
- | users | not invited but joined user | NONE |
- | guests | "guest moderator" | NONE |
- | guests | "guest" | NONE |
- And user "moderator" sees the following attendees in room "public room" with 200 (v4)
- | actorType | actorId | permissions |
- | users | owner | NONE |
- | users | moderator | NONE |
- | users | invited user | NONE |
- | users | not invited but joined user | NONE |
- | guests | "guest moderator" | NONE |
- | guests | "guest" | NONE |
- And user "invited user" sees the following attendees in room "public room" with 200 (v4)
- | actorType | actorId | permissions |
- | users | owner | NONE |
- | users | moderator | NONE |
- | users | invited user | NONE |
- | users | not invited but joined user | NONE |
- | guests | "guest moderator" | NONE |
- | guests | "guest" | NONE |
- And user "not invited but joined user" sees the following attendees in room "public room" with 200 (v4)
- | actorType | actorId | permissions |
- | users | owner | NONE |
- | users | moderator | NONE |
- | users | invited user | NONE |
- | users | not invited but joined user | NONE |
- | guests | "guest moderator" | NONE |
- | guests | "guest" | NONE |
- And user "guest moderator" sees the following attendees in room "public room" with 200 (v4)
- | actorType | actorId | permissions |
- | users | owner | NONE |
- | users | moderator | NONE |
- | users | invited user | NONE |
- | users | not invited but joined user | NONE |
- | guests | "guest moderator" | NONE |
- | guests | "guest" | NONE |
- # Guests can not fetch the participant list
-
- Scenario: others can not set publishing permissions in public room
- Given user "owner" creates room "public room" (v4)
- | roomType | 3 |
- | roomName | room |
- And user "owner" adds user "moderator" to room "public room" with 200 (v4)
- And user "owner" promotes "moderator" in room "public room" with 200 (v4)
- And user "owner" adds user "invited user" to room "public room" with 200 (v4)
- And user "not invited but joined user" joins room "public room" with 200 (v4)
- And user "guest moderator" joins room "public room" with 200 (v4)
- And user "owner" promotes "guest moderator" in room "public room" with 200 (v4)
- And user "guest" joins room "public room" with 200 (v4)
- And user "owner" loads attendees attendee ids in room "public room" (v4)
- When user "invited user" sets publishing permissions for "owner" in room "public room" to "NONE" with 403 (v4)
- And user "invited user" sets publishing permissions for "moderator" in room "public room" to "NONE" with 403 (v4)
- And user "invited user" sets publishing permissions for "invited user" in room "public room" to "NONE" with 403 (v4)
- And user "invited user" sets publishing permissions for "not invited but joined user" in room "public room" to "NONE" with 403 (v4)
- And user "invited user" sets publishing permissions for "guest moderator" in room "public room" to "NONE" with 403 (v4)
- And user "invited user" sets publishing permissions for "guest" in room "public room" to "NONE" with 403 (v4)
- And user "not invited but joined user" sets publishing permissions for "owner" in room "public room" to "NONE" with 403 (v4)
- And user "not invited but joined user" sets publishing permissions for "moderator" in room "public room" to "NONE" with 403 (v4)
- And user "not invited but joined user" sets publishing permissions for "invited user" in room "public room" to "NONE" with 403 (v4)
- And user "not invited but joined user" sets publishing permissions for "not invited but joined user" in room "public room" to "NONE" with 403 (v4)
- And user "not invited but joined user" sets publishing permissions for "guest moderator" in room "public room" to "NONE" with 403 (v4)
- And user "not invited but joined user" sets publishing permissions for "guest" in room "public room" to "NONE" with 403 (v4)
- And user "not joined user" sets publishing permissions for "owner" in room "public room" to "NONE" with 404 (v4)
- And user "not joined user" sets publishing permissions for "moderator" in room "public room" to "NONE" with 404 (v4)
- And user "not joined user" sets publishing permissions for "invited user" in room "public room" to "NONE" with 404 (v4)
- And user "not joined user" sets publishing permissions for "not invited but joined user" in room "public room" to "NONE" with 404 (v4)
- And user "not joined user" sets publishing permissions for "guest moderator" in room "public room" to "NONE" with 404 (v4)
- And user "not joined user" sets publishing permissions for "guest" in room "public room" to "NONE" with 404 (v4)
- # Guest user names in tests must begin with "guest"
- And user "guest" sets publishing permissions for "owner" in room "public room" to "NONE" with 403 (v4)
- And user "guest" sets publishing permissions for "moderator" in room "public room" to "NONE" with 403 (v4)
- And user "guest" sets publishing permissions for "invited user" in room "public room" to "NONE" with 403 (v4)
- And user "guest" sets publishing permissions for "not invited but joined user" in room "public room" to "NONE" with 403 (v4)
- And user "guest" sets publishing permissions for "guest moderator" in room "public room" to "NONE" with 403 (v4)
- And user "guest" sets publishing permissions for "guest" in room "public room" to "NONE" with 403 (v4)
- And user "guest not joined" sets publishing permissions for "owner" in room "public room" to "NONE" with 404 (v4)
- And user "guest not joined" sets publishing permissions for "moderator" in room "public room" to "NONE" with 404 (v4)
- And user "guest not joined" sets publishing permissions for "invited user" in room "public room" to "NONE" with 404 (v4)
- And user "guest not joined" sets publishing permissions for "not invited but joined user" in room "public room" to "NONE" with 404 (v4)
- And user "guest not joined" sets publishing permissions for "guest moderator" in room "public room" to "NONE" with 404 (v4)
- And user "guest not joined" sets publishing permissions for "guest" in room "public room" to "NONE" with 404 (v4)
- Then user "owner" sees the following attendees in room "public room" with 200 (v4)
- | actorType | actorId | permissions |
- | users | owner | ALL |
- | users | moderator | ALL |
- | users | invited user | ALL |
- | users | not invited but joined user | ALL |
- | guests | "guest moderator" | ALL |
- | guests | "guest" | ALL |
- And user "moderator" sees the following attendees in room "public room" with 200 (v4)
- | actorType | actorId | permissions |
- | users | owner | ALL |
- | users | moderator | ALL |
- | users | invited user | ALL |
- | users | not invited but joined user | ALL |
- | guests | "guest moderator" | ALL |
- | guests | "guest" | ALL |
- And user "invited user" sees the following attendees in room "public room" with 200 (v4)
- | actorType | actorId | permissions |
- | users | owner | ALL |
- | users | moderator | ALL |
- | users | invited user | ALL |
- | users | not invited but joined user | ALL |
- | guests | "guest moderator" | ALL |
- | guests | "guest" | ALL |
- And user "not invited but joined user" sees the following attendees in room "public room" with 200 (v4)
- | actorType | actorId | permissions |
- | users | owner | ALL |
- | users | moderator | ALL |
- | users | invited user | ALL |
- | users | not invited but joined user | ALL |
- | guests | "guest moderator" | ALL |
- | guests | "guest" | ALL |
- And user "guest moderator" sees the following attendees in room "public room" with 200 (v4)
- | actorType | actorId | permissions |
- | users | owner | ALL |
- | users | moderator | ALL |
- | users | invited user | ALL |
- | users | not invited but joined user | ALL |
- | guests | "guest moderator" | ALL |
- | guests | "guest" | ALL |
- # Guests can not fetch the participant list
-
-
-
- Scenario: participants can not set publishing permissions in room for a share
- # These users are only needed in very specific tests, so they are not
- # created in the background step.
- Given user "owner of file" exists
- And user "user with access to file" exists
- And user "owner of file" shares "welcome.txt" with user "user with access to file" with OCS 100
- And user "user with access to file" accepts last share
- And user "owner of file" shares "welcome.txt" by link with OCS 100
- And user "guest" gets the room for last share with 200 (v1)
- And user "owner of file" joins room "file last share room" with 200 (v4)
- And user "user with access to file" joins room "file last share room" with 200 (v4)
- And user "guest" joins room "file last share room" with 200 (v4)
- And user "owner of file" loads attendees attendee ids in room "file last share room" (v4)
- When user "owner of file" sets publishing permissions for "owner of file" in room "file last share room" to "NONE" with 403 (v4)
- And user "owner of file" sets publishing permissions for "user with access to file" in room "file last share room" to "NONE" with 403 (v4)
- And user "owner of file" sets publishing permissions for "guest" in room "file last share room" to "NONE" with 403 (v4)
- And user "user with access to file" sets publishing permissions for "owner of file" in room "file last share room" to "NONE" with 403 (v4)
- And user "user with access to file" sets publishing permissions for "user with access to file" in room "file last share room" to "NONE" with 403 (v4)
- And user "user with access to file" sets publishing permissions for "guest" in room "file last share room" to "NONE" with 403 (v4)
- And user "guest" sets publishing permissions for "owner of file" in room "file last share room" to "NONE" with 403 (v4)
- And user "guest" sets publishing permissions for "user with access to file" in room "file last share room" to "NONE" with 403 (v4)
- And user "guest" sets publishing permissions for "guest" in room "file last share room" to "NONE" with 403 (v4)
- Then user "owner of file" sees the following attendees in room "file last share room" with 200 (v4)
- | actorType | actorId | permissions |
- | users | owner of file | ALL |
- | users | user with access to file | ALL |
- | guests | "guest" | ALL |
- And user "user with access to file" sees the following attendees in room "file last share room" with 200 (v4)
- | actorType | actorId | permissions |
- | users | owner of file | ALL |
- | users | user with access to file | ALL |
- | guests | "guest" | ALL |
-
-
-
- # This does not make much sense, but there is no real need to block it either.
- Scenario: owner can set publishing permissions in a password request room
- # The user is only needed in very specific tests, so it is not created in
- # the background step.
- Given user "owner of file" exists
- And user "owner of file" shares "welcome.txt" by link with OCS 100
- | password | 123456 |
- | sendPasswordByTalk | true |
- And user "guest" creates the password request room for last share with 201 (v1)
- And user "guest" joins room "password request for last share room" with 200 (v4)
- And user "owner of file" joins room "password request for last share room" with 200 (v4)
- And user "owner of file" loads attendees attendee ids in room "password request for last share room" (v4)
- When user "owner of file" sets publishing permissions for "owner of file" in room "password request for last share room" to "NONE" with 200 (v4)
- And user "owner of file" sets publishing permissions for "guest" in room "password request for last share room" to "NONE" with 200 (v4)
- Then user "owner of file" sees the following attendees in room "password request for last share room" with 200 (v4)
- | actorType | actorId | permissions |
- | users | owner of file | NONE |
- | guests | "guest" | NONE |