@@ -4,6 +4,24 @@ Feature: cleanup-remote-storage
44 Background :
55 Given using api version "1"
66
7+ Scenario : cleanup remote storage with no storage
8+ Given Using server "LOCAL"
9+ And user "user0" exists
10+ Given Using server "REMOTE"
11+ And user "user1" exists
12+ # Rename file so it has a unique name in the target server (as the target
13+ # server may have its own /textfile0.txt" file)
14+ And User "user1" copies file "/textfile0.txt" to "/remote-share.txt"
15+ And User "user1" from server "REMOTE" shares "/remote-share.txt" with user "user0" from server "LOCAL"
16+ And Using server "LOCAL"
17+ # Accept and download the file to ensure that a storage is created for the
18+ # federated share
19+ When invoking occ with "sharing:cleanup-remote-storage"
20+ Then the command was successful
21+ And the command output contains the text "0 remote storage(s) need(s) to be checked"
22+ And the command output contains the text "0 remote share(s) exist"
23+ And the command output contains the text "no storages deleted"
24+
725 Scenario : cleanup remote storage with active storages
826 Given Using server "LOCAL"
927 And user "user0" exists
@@ -26,6 +44,24 @@ Feature: cleanup-remote-storage
2644 And the command output contains the text "1 remote share(s) exist"
2745 And the command output contains the text "no storages deleted"
2846
47+ Scenario : cleanup remote storage with no storage2
48+ Given Using server "LOCAL"
49+ And user "user0" exists
50+ Given Using server "REMOTE"
51+ And user "user1" exists
52+ # Rename file so it has a unique name in the target server (as the target
53+ # server may have its own /textfile0.txt" file)
54+ And User "user1" copies file "/textfile0.txt" to "/remote-share.txt"
55+ And User "user1" from server "REMOTE" shares "/remote-share.txt" with user "user0" from server "LOCAL"
56+ And Using server "LOCAL"
57+ # Accept and download the file to ensure that a storage is created for the
58+ # federated share
59+ When invoking occ with "sharing:cleanup-remote-storage"
60+ Then the command was successful
61+ And the command output contains the text "0 remote storage(s) need(s) to be checked"
62+ And the command output contains the text "0 remote share(s) exist"
63+ And the command output contains the text "no storages deleted"
64+
2965 Scenario : cleanup remote storage with inactive storages
3066 Given Using server "LOCAL"
3167 And user "user0" exists
0 commit comments