diff options
author | Joas Schilling <coding@schilljs.com> | 2021-09-28 14:57:29 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-10-07 19:18:31 +0300 |
commit | 118a6d2ded963942baee339d24b67dd3506ed12e (patch) | |
tree | bcbc9c5f78dec0db4e76e1f7469cae53fc84acb0 /tests | |
parent | e115e96d7daa11b70fb270f59825894535f10c7c (diff) |
Split publishing media into audio and video after clarifying with the HPB
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/php/Controller/SignalingControllerTest.php | 30 | ||||
-rw-r--r-- | tests/php/Signaling/BackendNotifierTest.php | 8 |
2 files changed, 22 insertions, 16 deletions
diff --git a/tests/php/Controller/SignalingControllerTest.php b/tests/php/Controller/SignalingControllerTest.php index f0470f7a4..7e79d7c0a 100644 --- a/tests/php/Controller/SignalingControllerTest.php +++ b/tests/php/Controller/SignalingControllerTest.php @@ -433,7 +433,8 @@ class SignalingControllerTest extends \Test\TestCase { 'type' => Room::ONE_TO_ONE_CALL, ], 'permissions' => [ - 'publish-media', + 'publish-audio', + 'publish-video', 'publish-screen', ], ], @@ -492,7 +493,8 @@ class SignalingControllerTest extends \Test\TestCase { 'type' => Room::PUBLIC_CALL, ], 'permissions' => [ - 'publish-media', + 'publish-audio', + 'publish-video', 'publish-screen', ], ], @@ -555,7 +557,8 @@ class SignalingControllerTest extends \Test\TestCase { 'type' => Room::PUBLIC_CALL, ], 'permissions' => [ - 'publish-media', + 'publish-audio', + 'publish-video', 'publish-screen', 'control', ], @@ -616,7 +619,8 @@ class SignalingControllerTest extends \Test\TestCase { 'type' => Room::PUBLIC_CALL, ], 'permissions' => [ - 'publish-media', + 'publish-audio', + 'publish-video', 'publish-screen', ], ], @@ -676,7 +680,8 @@ class SignalingControllerTest extends \Test\TestCase { 'type' => Room::PUBLIC_CALL, ], 'permissions' => [ - 'publish-media', + 'publish-audio', + 'publish-video', 'publish-screen', ], ], @@ -686,13 +691,13 @@ class SignalingControllerTest extends \Test\TestCase { public function dataBackendRoomUserPublicPermissions(): array { return [ [Attendee::PERMISSIONS_DEFAULT, []], - [Attendee::PERMISSIONS_PUBLISH_AUDIO, ['publish-media']], - [Attendee::PERMISSIONS_PUBLISH_VIDEO, ['publish-media']], - [Attendee::PERMISSIONS_PUBLISH_AUDIO | Attendee::PERMISSIONS_PUBLISH_VIDEO, ['publish-media']], + [Attendee::PERMISSIONS_PUBLISH_AUDIO, ['publish-audio']], + [Attendee::PERMISSIONS_PUBLISH_VIDEO, ['publish-video']], + [Attendee::PERMISSIONS_PUBLISH_AUDIO | Attendee::PERMISSIONS_PUBLISH_VIDEO, ['publish-audio', 'publish-video']], [Attendee::PERMISSIONS_PUBLISH_SCREEN, ['publish-screen']], - [Attendee::PERMISSIONS_PUBLISH_AUDIO | Attendee::PERMISSIONS_PUBLISH_SCREEN, ['publish-media', 'publish-screen']], - [Attendee::PERMISSIONS_PUBLISH_VIDEO | Attendee::PERMISSIONS_PUBLISH_SCREEN, ['publish-media', 'publish-screen']], - [Attendee::PERMISSIONS_PUBLISH_AUDIO | Attendee::PERMISSIONS_PUBLISH_VIDEO | Attendee::PERMISSIONS_PUBLISH_SCREEN, ['publish-media', 'publish-screen']], + [Attendee::PERMISSIONS_PUBLISH_AUDIO | Attendee::PERMISSIONS_PUBLISH_SCREEN, ['publish-audio', 'publish-screen']], + [Attendee::PERMISSIONS_PUBLISH_VIDEO | Attendee::PERMISSIONS_PUBLISH_SCREEN, ['publish-video', 'publish-screen']], + [Attendee::PERMISSIONS_PUBLISH_AUDIO | Attendee::PERMISSIONS_PUBLISH_VIDEO | Attendee::PERMISSIONS_PUBLISH_SCREEN, ['publish-audio', 'publish-video', 'publish-screen']], ]; } @@ -848,7 +853,8 @@ class SignalingControllerTest extends \Test\TestCase { 'type' => Room::ONE_TO_ONE_CALL, ], 'permissions' => [ - 'publish-media', + 'publish-audio', + 'publish-video', 'publish-screen', ], 'session' => [ diff --git a/tests/php/Signaling/BackendNotifierTest.php b/tests/php/Signaling/BackendNotifierTest.php index 9cc7cc2bb..b3050d907 100644 --- a/tests/php/Signaling/BackendNotifierTest.php +++ b/tests/php/Signaling/BackendNotifierTest.php @@ -661,7 +661,7 @@ class BackendNotifierTest extends \Test\TestCase { 'participants' => [ 'changed' => [ [ - 'permissions' => ['publish-media', 'publish-screen', 'control'], + 'permissions' => ['publish-audio', 'publish-video', 'publish-screen', 'control'], 'inCall' => 0, 'lastPing' => 0, 'sessionId' => $userSession, @@ -696,7 +696,7 @@ class BackendNotifierTest extends \Test\TestCase { 'participants' => [ 'changed' => [ [ - 'permissions' => ['publish-media', 'publish-screen'], + 'permissions' => ['publish-audio', 'publish-video', 'publish-screen'], 'inCall' => 0, 'lastPing' => 0, 'sessionId' => $guestSession, @@ -775,7 +775,7 @@ class BackendNotifierTest extends \Test\TestCase { 'participants' => [ 'changed' => [ [ - 'permissions' => ['publish-media', 'publish-screen'], + 'permissions' => ['publish-audio', 'publish-video', 'publish-screen'], 'inCall' => 0, 'lastPing' => 0, 'sessionId' => $userSession, @@ -820,7 +820,7 @@ class BackendNotifierTest extends \Test\TestCase { 'participants' => [ 'changed' => [ [ - 'permissions' => ['publish-media', 'publish-screen'], + 'permissions' => ['publish-audio', 'publish-video', 'publish-screen'], 'inCall' => 0, 'lastPing' => 0, 'sessionId' => $guestSession, |