Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert "Delete 4"
This reverts commit 5b0b955.
  • Loading branch information
nickvergessen committed Apr 3, 2023
commit 607273b8b628577ff9a2396bcb0ae07d7cb2be3c
37 changes: 37 additions & 0 deletions tests/integration/features/command/monitor-room.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
Feature: command/monitor-room

Background:
Given user "participant1" exists
Given user "participant2" exists

Scenario: No call in progress
Given invoking occ with "talk:monitor:room abcdef"
Then the command failed with exit code 1
And the command output contains the text "Room with token abcdef not found"

Scenario: From nothing to calling
When user "participant1" creates room "room" (v4)
| roomType | 3 |
| roomName | room |
And user "participant1" adds user "participant2" to room "room" with 200 (v4)
And user "participant2" gets room "room" with 200 (v4)

Given invoking occ with "talk:monitor:room room-name:room"
Then the command was successful
And the command output contains the text "The conversation has 2 attendees with 0 sessions of which 0 are in the call."

Given user "participant1" joins room "room" with 200 (v4)
And invoking occ with "talk:monitor:room room-name:room"
Then the command was successful
And the command output contains the text "The conversation has 2 attendees with 1 sessions of which 0 are in the call."

Given user "participant1" joins call "room" with 200 (v4)
And invoking occ with "talk:monitor:room room-name:room"
Then the command was successful
And the command output contains the text "The conversation has 2 attendees with 1 sessions of which 1 are in the call."

Given user "participant2" joins room "room" with 200 (v4)
And user "participant2" joins call "room" with 200 (v4)
And invoking occ with "talk:monitor:room room-name:room"
Then the command was successful
And the command output contains the text "The conversation has 2 attendees with 2 sessions of which 2 are in the call."