summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-11-19 11:24:37 +0100
committerJoas Schilling <coding@schilljs.com>2022-05-03 09:38:35 +0200
commit3e98f22568711a033ffff208241932db909e24e8 (patch)
treee977250cbb3c9bc19b78fb1cf233c6c0055aeb4e /tests
parent88d32ad044a785bcfc6c01795f55bb2602974259 (diff)
Allow to enable SIP without individual pin requirement
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/features/bootstrap/FeatureContext.php2
-rw-r--r--tests/integration/features/conversation-2/sip-dialin.feature8
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/integration/features/bootstrap/FeatureContext.php b/tests/integration/features/bootstrap/FeatureContext.php
index 992fa9ddd..65e30539f 100644
--- a/tests/integration/features/bootstrap/FeatureContext.php
+++ b/tests/integration/features/bootstrap/FeatureContext.php
@@ -1096,6 +1096,8 @@ class FeatureContext implements Context, SnippetAcceptingContext {
$SIPState = 0;
} elseif ($SIPStateString === 'enabled') {
$SIPState = 1;
+ } elseif ($SIPStateString === 'no pin') {
+ $SIPState = 2;
} else {
Assert::fail('Invalid SIP state');
}
diff --git a/tests/integration/features/conversation-2/sip-dialin.feature b/tests/integration/features/conversation-2/sip-dialin.feature
index 7fe2c92e3..7b80267f6 100644
--- a/tests/integration/features/conversation-2/sip-dialin.feature
+++ b/tests/integration/features/conversation-2/sip-dialin.feature
@@ -49,6 +49,14 @@ Feature: public
| 1 | 0 | users | participant1 | |
| 3 | 0 | users | participant2 | |
| 3 | 0 | users | participant3 | |
+ When user "participant1" sets SIP state for room "room" to "no pin" with 200 (v4)
+ Then user "participant1" sees the following attendees in room "room" with 200 (v4)
+ | participantType | inCall | actorType | actorId | attendeePin |
+ | 4 | 0 | emails | test@example.tld | **PIN** |
+ | 4 | 0 | guests | "guest" | |
+ | 1 | 0 | users | participant1 | **PIN** |
+ | 3 | 0 | users | participant2 | **PIN** |
+ | 3 | 0 | users | participant3 | **PIN** |
Scenario: Non-SIP admin tries to enable SIP
Given the following "spreed" app config is set