diff options
author | Joas Schilling <coding@schilljs.com> | 2021-09-13 14:10:05 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-09-17 09:53:10 +0300 |
commit | 11903a58d39438099be4472549f8feb6f28f0a56 (patch) | |
tree | 211f4e74df570f76570971da3b98b29abfee704b /tests | |
parent | e1b24233569744c9920689921c9cd79509d0a436 (diff) |
Add some validation to the geo location id
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/features/chat/rich-object-share.feature | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/integration/features/chat/rich-object-share.feature b/tests/integration/features/chat/rich-object-share.feature index 94a0f3719..53e30bf4b 100644 --- a/tests/integration/features/chat/rich-object-share.feature +++ b/tests/integration/features/chat/rich-object-share.feature @@ -11,10 +11,16 @@ Feature: chat/public | room | actorType | actorId | actorDisplayName | message | messageParameters | | public room | users | participant1 | participant1-displayname | {object} | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"},"object":{"name":"Another room","call-type":"group","type":"call","id":"R4nd0mT0k3n"}} | - Scenario: Share an invalid rich object to a chat Given user "participant1" creates room "public room" (v4) | roomType | 3 | | roomName | room | When user "participant1" shares rich-object "call" "R4nd0mT0k3n" '{"MISSINGname":"Another room","call-type":"group"}' to room "public room" with 400 (v1) Then user "participant1" sees the following messages in room "public room" with 200 + + Scenario: Share an invalid location to a chat + Given user "participant1" creates room "public room" (v4) + | roomType | 3 | + | roomName | room | + When user "participant1" shares rich-object "geo-location" "https://nextcloud.com/" '{"name":"Location name"}' to room "public room" with 400 (v1) + Then user "participant1" sees the following messages in room "public room" with 200 |