diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2019-08-12 22:58:30 +0300 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2019-08-13 11:53:48 +0300 |
commit | c938fbcb6d271daae3c7ce0fd405144a773d7a4a (patch) | |
tree | fcae230d4c4f1afe1d7cf89e0f122765e2b42ffe /tests | |
parent | 33aafacc8c723f18088ebb44c8de1b4e40bd8003 (diff) |
Add more integration tests for joining a file room
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/features/conversation/files.feature | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/integration/features/conversation/files.feature b/tests/integration/features/conversation/files.feature index 8a7fca8fa..a7c6b18d1 100644 --- a/tests/integration/features/conversation/files.feature +++ b/tests/integration/features/conversation/files.feature @@ -117,6 +117,15 @@ Feature: conversation/files When user "participant2" joins room "file test/renamed.txt room" with 200 Then user "participant2" is participant of room "file test/renamed.txt room" + Scenario: user with access to a file in a reshared folder can join its room + Given user "participant1" creates folder "/test" + And user "participant1" moves file "/welcome.txt" to "/test/renamed.txt" with 201 + And user "participant1" shares "test" with user "participant2" with OCS 100 + And user "participant2" shares "test" with user "participant3" with OCS 100 + And user "participant3" gets the room for path "test/renamed.txt" with 200 + When user "participant3" joins room "file test/renamed.txt room" with 200 + Then user "participant3" is participant of room "file test/renamed.txt room" + Scenario: owner of a no longer shared file can not join its room Given user "participant1" shares "welcome.txt" with user "participant2" with OCS 100 And user "participant2" gets the room for path "welcome (2).txt" with 200 @@ -145,6 +154,30 @@ Feature: conversation/files + Scenario: join room for file shared with group + Given user "participant1" shares "welcome.txt" with group "group1" with OCS 100 + And user "participant1" gets the room for path "welcome.txt" with 200 + And user "participant2" gets the room for path "welcome (2).txt" with 200 + When user "participant1" joins room "file welcome.txt room" with 200 + And user "participant2" joins room "file welcome.txt room" with 200 + Then user "participant1" is participant of room "file welcome (2).txt room" + And user "participant2" is participant of room "file welcome (2).txt room" + + Scenario: join room for file shared with user and group + Given user "participant1" shares "welcome.txt" with group "group1" with OCS 100 + And user "participant1" shares "welcome.txt" with user "participant3" with OCS 100 + And user "participant1" gets the room for path "welcome.txt" with 200 + And user "participant2" gets the room for path "welcome (2).txt" with 200 + And user "participant3" gets the room for path "welcome (2).txt" with 200 + When user "participant1" joins room "file welcome.txt room" with 200 + And user "participant2" joins room "file welcome.txt room" with 200 + And user "participant3" joins room "file welcome.txt room" with 200 + Then user "participant1" is participant of room "file welcome (2).txt room" + And user "participant2" is participant of room "file welcome (2).txt room" + And user "participant3" is participant of room "file welcome (2).txt room" + + + Scenario: owner of a shared file can join its room again after removing self from it Given user "participant1" shares "welcome.txt" with user "participant2" with OCS 100 # Note that the room token is got by a different user than the one that |