Skip to content

Commit 8ab7019

Browse files
committed
Add test for removing share
Signed-off-by: Julius Härtl <jus@bitgrid.net>
1 parent 00c2406 commit 8ab7019

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

tests/integration/features/sharing.feature

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,28 @@ Feature: File sharing
110110
Given User "user2" deletes file "/Deck/user0-file2.txt"
111111
And as "user2" the file "/Deck/user0-file2.txt" does not exist
112112
And as "user3" the file "/Deck/user0-file2.txt" exists
113+
114+
Scenario: Remove a share as the owner
115+
Given acting as user "user0"
116+
And creates a board named "Shared board" with color "fafafa"
117+
And create a stack named "Stack"
118+
And create a card named "Test"
119+
And shares the board with group "group1"
120+
Then the HTTP status code should be "200"
121+
122+
Given using new dav path
123+
When User "user0" uploads file "../data/test.txt" to "/user0-file2.txt"
124+
Then the HTTP status code should be "201"
125+
Given acting as user "user0"
126+
When share the file "/user0-file2.txt" with the card
127+
Then the OCS status code should be "100"
128+
And the HTTP status code should be "200"
129+
130+
And as "user2" the file "/Deck/user0-file2.txt" exists
131+
And as "user3" the file "/Deck/user0-file2.txt" exists
132+
And as "user0" the file "/Deck/user0-file2.txt" does not exist
133+
134+
Given acting as user "user0"
135+
When Deleting last share
136+
And as "user2" the file "/Deck/user0-file2.txt" does not exist
137+
And as "user3" the file "/Deck/user0-file2.txt" does not exist

0 commit comments

Comments
 (0)