Skip to content

Commit 197fbcd

Browse files
committed
It is not allowed to move a mount point into another
Signed-off-by: Joas Schilling <[email protected]>
1 parent 23f4c29 commit 197fbcd

File tree

1 file changed

+0
-96
lines changed

1 file changed

+0
-96
lines changed

tests/integration/features/sharing/move.feature

Lines changed: 0 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ Feature: move
5050
| share_with | group room |
5151
| share_with_displayname | Group room |
5252

53-
54-
5553
# # When an own share is moved into a received shared folder the ownership of
5654
# # the share is handed over to the folder owner.
5755
# Scenario: move share to received shared folder from a user in the room
@@ -210,8 +208,6 @@ Feature: move
210208
# Then the OCS status code should be "404"
211209
# And the HTTP status code should be "200"
212210

213-
214-
215211
Scenario: move received share to another folder
216212
Given user "participant1" creates room "group room"
217213
| roomType | 2 |
@@ -272,95 +268,3 @@ Feature: move
272268
And user "participant1" shares "welcome.txt" with room "group room" with OCS 100
273269
When user "participant3" moves file "/welcome (2).txt" to "/test/renamed.txt"
274270
Then the HTTP status code should be "403"
275-
276-
# Received shares can be moved into other received shares, though. However,
277-
# they are moved back to the default share folder.
278-
Scenario: move received share to received shared folder from a user in the room
279-
Given user "participant1" creates room "group room"
280-
| roomType | 2 |
281-
| roomName | room |
282-
And user "participant1" renames room "group room" to "Group room" with 200
283-
And user "participant1" adds "participant2" to room "group room" with 200
284-
And user "participant1" adds "participant3" to room "group room" with 200
285-
And user "participant3" creates folder "/test"
286-
And user "participant3" shares "/test" with user "participant2" with OCS 100
287-
And user "participant1" shares "welcome.txt" with room "group room" with OCS 100
288-
When user "participant2" moves file "/welcome (2).txt" to "/test/renamed.txt"
289-
Then user "participant1" gets last share
290-
And share is returned with
291-
| uid_owner | participant1 |
292-
| displayname_owner | participant1-displayname |
293-
| path | /welcome.txt |
294-
| item_type | file |
295-
| mimetype | text/plain |
296-
| storage_id | home::participant1 |
297-
| file_target | /welcome.txt |
298-
| share_with | group room |
299-
| share_with_displayname | Group room |
300-
And user "participant2" gets last share
301-
And share is returned with
302-
| uid_owner | participant1 |
303-
| displayname_owner | participant1-displayname |
304-
| path | /renamed.txt |
305-
| item_type | file |
306-
| mimetype | text/plain |
307-
| storage_id | shared::/renamed.txt |
308-
| file_target | /renamed.txt |
309-
| share_with | group room |
310-
| share_with_displayname | Group room |
311-
And user "participant3" gets last share
312-
And share is returned with
313-
| uid_owner | participant1 |
314-
| displayname_owner | participant1-displayname |
315-
| path | /welcome (2).txt |
316-
| item_type | file |
317-
| mimetype | text/plain |
318-
| storage_id | shared::/welcome (2).txt |
319-
| file_target | /welcome (2).txt |
320-
| share_with | group room |
321-
| share_with_displayname | Group room |
322-
323-
Scenario: move received share to received shared folder from a user not in the room
324-
Given user "participant1" creates room "group room"
325-
| roomType | 2 |
326-
| roomName | room |
327-
And user "participant1" renames room "group room" to "Group room" with 200
328-
And user "participant1" adds "participant2" to room "group room" with 200
329-
And user "participant1" adds "participant3" to room "group room" with 200
330-
And user "participant4" creates folder "/test"
331-
And user "participant4" shares "/test" with user "participant2" with OCS 100
332-
And user "participant1" shares "welcome.txt" with room "group room" with OCS 100
333-
When user "participant2" moves file "/welcome (2).txt" to "/test/renamed.txt"
334-
Then user "participant1" gets last share
335-
And share is returned with
336-
| uid_owner | participant1 |
337-
| displayname_owner | participant1-displayname |
338-
| path | /welcome.txt |
339-
| item_type | file |
340-
| mimetype | text/plain |
341-
| storage_id | home::participant1 |
342-
| file_target | /welcome.txt |
343-
| share_with | group room |
344-
| share_with_displayname | Group room |
345-
And user "participant2" gets last share
346-
And share is returned with
347-
| uid_owner | participant1 |
348-
| displayname_owner | participant1-displayname |
349-
| path | /renamed.txt |
350-
| item_type | file |
351-
| mimetype | text/plain |
352-
| storage_id | shared::/renamed.txt |
353-
| file_target | /renamed.txt |
354-
| share_with | group room |
355-
| share_with_displayname | Group room |
356-
And user "participant3" gets last share
357-
And share is returned with
358-
| uid_owner | participant1 |
359-
| displayname_owner | participant1-displayname |
360-
| path | /welcome (2).txt |
361-
| item_type | file |
362-
| mimetype | text/plain |
363-
| storage_id | shared::/welcome (2).txt |
364-
| file_target | /welcome (2).txt |
365-
| share_with | group room |
366-
| share_with_displayname | Group room |

0 commit comments

Comments
 (0)