Skip to content
Merged
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
Adjust integration tests to the new expectations
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Apr 13, 2021
commit f212cb2244c6de42dd475f6418af65ea975d8b7c
18 changes: 9 additions & 9 deletions tests/integration/features/conversation/files.feature
Original file line number Diff line number Diff line change
Expand Up @@ -220,13 +220,13 @@ Feature: conversation/files
When user "participant3" joins room "file test/renamed.txt room" with 200 (v4)
Then user "participant3" is participant of room "file test/renamed.txt room" (v4)

Scenario: owner of a no longer shared file can not join its room
Scenario: owner of a no longer shared file can join its room
Given user "participant1" shares "welcome.txt" with user "participant2" with OCS 100
And user "participant2" accepts last share
And user "participant2" gets the room for path "welcome (2).txt" with 200 (v1)
And user "participant1" deletes last share
When user "participant1" joins room "file welcome (2).txt room" with 404 (v4)
Then user "participant1" is not participant of room "file welcome (2).txt room" (v4)
When user "participant1" joins room "file welcome (2).txt room" with 200 (v4)
Then user "participant1" is participant of room "file welcome (2).txt room" (v4)

Scenario: user no longer with access to a file can not join its room
Given user "participant1" shares "welcome.txt" with user "participant3" with OCS 100
Expand Down Expand Up @@ -447,7 +447,7 @@ Feature: conversation/files
# Participants are removed from the room for a no longer shared file once they
# try to join the room again, but not when the file is unshared.

Scenario: owner is not participant of room for file no longer shared
Scenario: owner is participant of room for file no longer shared
Given user "participant1" shares "welcome.txt" with user "participant2" with OCS 100
And user "participant2" accepts last share
And user "participant1" gets the room for path "welcome.txt" with 200 (v1)
Expand All @@ -456,8 +456,8 @@ Feature: conversation/files
And user "participant1" is participant of room "file welcome.txt room" (v4)
When user "participant1" deletes last share
Then user "participant1" is participant of room "file welcome.txt room" (v4)
And user "participant1" joins room "file welcome.txt room" with 404 (v4)
And user "participant1" is not participant of room "file welcome.txt room" (v4)
And user "participant1" joins room "file welcome.txt room" with 200 (v4)
And user "participant1" is participant of room "file welcome.txt room" (v4)

Scenario: user is not participant of room for file no longer with access to it
Given user "participant1" shares "welcome.txt" with user "participant2" with OCS 100
Expand All @@ -473,16 +473,16 @@ Feature: conversation/files



Scenario: owner is not participant of room for file no longer shared by link
Scenario: owner is participant of room for file no longer shared by link
Given user "participant1" shares "welcome.txt" by link with OCS 100
And user "participant1" gets the room for last share with 200 (v1)
And user "participant1" joins room "file last share room" with 200 (v4)
And user "participant1" leaves room "file last share room" with 200 (v4)
And user "participant1" is participant of room "file last share room" (v4)
When user "participant1" deletes last share
Then user "participant1" is participant of room "file last share room" (v4)
And user "participant1" joins room "file last share room" with 404 (v4)
And user "participant1" is not participant of room "file last share room" (v4)
And user "participant1" joins room "file last share room" with 200 (v4)
And user "participant1" is participant of room "file last share room" (v4)

Scenario: user is participant of room for file no longer shared by link but with access to it
Given user "participant1" shares "welcome.txt" with user "participant2" with OCS 100
Expand Down