diff options
author | Vitor Mattos <vitor@php.rio> | 2023-01-25 12:24:35 -0300 |
---|---|---|
committer | Vitor Mattos <vitor@php.rio> | 2023-01-25 12:24:35 -0300 |
commit | 3a8a6024a132f0caeb058f883293adb069799e28 (patch) | |
tree | ffa93fbe5be05344d3ae8178385e761cd82458b5 /tests | |
parent | fac1de205e34905b1cfae41c47b9660af5c39ba9 (diff) |
Stop recording after end call
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/features/bootstrap/FeatureContext.php | 3 | ||||
-rw-r--r-- | tests/integration/features/callapi/recording.feature | 34 |
2 files changed, 37 insertions, 0 deletions
diff --git a/tests/integration/features/bootstrap/FeatureContext.php b/tests/integration/features/bootstrap/FeatureContext.php index 91893ae3b..39d7a05ca 100644 --- a/tests/integration/features/bootstrap/FeatureContext.php +++ b/tests/integration/features/bootstrap/FeatureContext.php @@ -421,6 +421,9 @@ class FeatureContext implements Context, SnippetAcceptingContext { if (isset($expectedRoom['messageExpiration'])) { $data['messageExpiration'] = (int) $room['messageExpiration']; } + if (isset($expectedRoom['callRecording'])) { + $data['callRecording'] = (int) $room['callRecording']; + } if (isset($expectedRoom['participants'])) { throw new \Exception('participants key needs to be checked via participants endpoint'); } diff --git a/tests/integration/features/callapi/recording.feature b/tests/integration/features/callapi/recording.feature index 5b4919723..330529b9c 100644 --- a/tests/integration/features/callapi/recording.feature +++ b/tests/integration/features/callapi/recording.feature @@ -124,3 +124,37 @@ Feature: callapi/recording And user "participant1" has the following notifications | app | object_type | object_id | subject | | spreed | chat | room1 | Recording for the call in room1 was uploaded. | + + Scenario: Stop recording automatically when end the call + When the following "spreed" app config is set + | signaling_dev | yes | + And user "participant1" creates room "room1" (v4) + | roomType | 2 | + | roomName | room1 | + And user "participant1" joins room "room1" with 200 (v4) + And user "participant1" joins call "room1" with 200 (v4) + And user "participant1" starts "audio" recording in room "room1" with 200 (v1) + And user "participant1" is participant of the following unordered rooms (v4) + | type | name | callRecording | + | 2 | room1 | 2 | + Then user "participant1" ends call "room1" with 200 (v4) + And user "participant1" is participant of the following unordered rooms (v4) + | type | name | callRecording | + | 2 | room1 | 0 | + + Scenario: Stop recording automatically when the last participant go out + When the following "spreed" app config is set + | signaling_dev | yes | + And user "participant1" creates room "room1" (v4) + | roomType | 2 | + | roomName | room1 | + And user "participant1" joins room "room1" with 200 (v4) + And user "participant1" joins call "room1" with 200 (v4) + And user "participant1" starts "audio" recording in room "room1" with 200 (v1) + And user "participant1" is participant of the following unordered rooms (v4) + | type | name | callRecording | + | 2 | room1 | 2 | + Then user "participant1" leaves room "room1" with 200 (v4) + And user "participant1" is participant of the following unordered rooms (v4) + | type | name | callRecording | + | 2 | room1 | 0 | |