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

group.feature « callapi « features « integration « tests - github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ed46e4d8778065d50605c3afb61794009f3f2e5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
Feature: callapi/group
  Background:
    Given user "participant1" exists
    And user "participant2" exists
    And user "participant3" exists
    And group "attendees1" exists
    And user "participant2" is member of group "attendees1"

  Scenario: User has no rooms
    Then user "participant1" is participant of the following rooms
    Then user "participant2" is participant of the following rooms
    Then user "participant3" is participant of the following rooms

  Scenario: User1 invites group attendees1 to a group room and they can do everything
    When user "participant1" creates room "room"
      | roomType | 2 |
      | invite   | attendees1 |
    Then user "participant1" is participant of room "room"
    And user "participant2" is participant of room "room"
    Then user "participant1" sees 0 peers in call "room" with 200
    And user "participant2" sees 0 peers in call "room" with 200
    Then user "participant1" joins room "room" with 200
    Then user "participant1" sees 0 peers in call "room" with 200
    And user "participant2" sees 0 peers in call "room" with 200
    Then user "participant1" joins call "room" with 200
      | flags | 1 |
    Then user "participant1" sees 1 peers in call "room" with 200
    And user "participant2" sees 1 peers in call "room" with 200
    Then user "participant1" is participant of the following rooms (v3)
      | id   | type | callFlag |
      | room | 2    | 1        |
    Then user "participant2" joins room "room" with 200
    Then user "participant1" sees 1 peers in call "room" with 200
    And user "participant2" sees 1 peers in call "room" with 200
    And user "participant2" joins call "room" with 200
    Then user "participant1" sees 2 peers in call "room" with 200
    And user "participant2" sees 2 peers in call "room" with 200
    Then user "participant1" is participant of the following rooms (v3)
      | id   | type | callFlag |
      | room | 2    | 7        |
    Then user "participant1" leaves call "room" with 200
    Then user "participant1" sees 1 peers in call "room" with 200
    And user "participant2" sees 1 peers in call "room" with 200
    Then user "participant1" leaves room "room" with 200
    Then user "participant1" sees 1 peers in call "room" with 200
    And user "participant2" sees 1 peers in call "room" with 200
    Then user "participant2" leaves call "room" with 200
    Then user "participant1" sees 0 peers in call "room" with 200
    And user "participant2" sees 0 peers in call "room" with 200
    Then user "participant2" leaves room "room" with 200
    Then user "participant1" sees 0 peers in call "room" with 200
    And user "participant2" sees 0 peers in call "room" with 200

  Scenario: User1 invites group attendees1 to a group room and user3 can't do anything
    When user "participant1" creates room "room"
      | roomType | 2 |
      | invite   | attendees1 |
    Then user "participant1" is participant of room "room"
    Then user "participant3" is not participant of room "room"
    And user "participant3" sees 0 peers in call "room" with 404
    Then user "participant1" joins room "room" with 200
    Then user "participant1" sees 0 peers in call "room" with 200
    And user "participant2" sees 0 peers in call "room" with 200
    Then user "participant1" joins call "room" with 200
    Then user "participant1" sees 1 peers in call "room" with 200
    And user "participant3" sees 0 peers in call "room" with 404
    And user "participant3" joins room "room" with 404
    Then user "participant1" sees 1 peers in call "room" with 200
    And user "participant3" sees 0 peers in call "room" with 404
    And user "participant3" joins call "room" with 404
    Then user "participant1" sees 1 peers in call "room" with 200
    And user "participant3" sees 0 peers in call "room" with 404
    Then user "participant3" leaves call "room" with 404
    Then user "participant1" sees 1 peers in call "room" with 200
    And user "participant3" sees 0 peers in call "room" with 404
    Then user "participant3" leaves room "room" with 200
    Then user "participant1" sees 1 peers in call "room" with 200
    And user "participant3" sees 0 peers in call "room" with 404
    Then user "participant1" leaves call "room" with 200
    Then user "participant1" sees 0 peers in call "room" with 200
    And user "participant3" sees 0 peers in call "room" with 404

  Scenario: User1 invites group attendees1 to a group room and guest can't do anything
    When user "participant1" creates room "room"
      | roomType | 2 |
      | invite   | attendees1 |
    Then user "participant1" is participant of room "room"
    And user "guest" sees 0 peers in call "room" with 404
    Then user "participant1" joins room "room" with 200
    Then user "participant1" joins call "room" with 200
    Then user "participant1" sees 1 peers in call "room" with 200
    And user "guest" sees 0 peers in call "room" with 404
    And user "guest" joins room "room" with 404
    Then user "participant1" sees 1 peers in call "room" with 200
    And user "guest" sees 0 peers in call "room" with 404
    And user "guest" joins call "room" with 404
    Then user "participant1" sees 1 peers in call "room" with 200
    And user "guest" sees 0 peers in call "room" with 404
    Then user "guest" leaves call "room" with 404
    Then user "participant1" sees 1 peers in call "room" with 200
    And user "guest" sees 0 peers in call "room" with 404
    Then user "guest" leaves room "room" with 200
    Then user "participant1" sees 1 peers in call "room" with 200
    And user "guest" sees 0 peers in call "room" with 404
    Then user "participant1" leaves call "room" with 200
    Then user "participant1" sees 0 peers in call "room" with 200
    And user "guest" sees 0 peers in call "room" with 404