-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37123 from owncloud/files-external-imports
[Tests-Only] Acceptance tests to export the local storages mounts to a file
- Loading branch information
Showing
5 changed files
with
123 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
tests/acceptance/features/cliLocalStorage/importLocalStorage.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
@cli @skipOnLDAP @local_storage | ||
Feature: import exported local storage mounts from the command line | ||
As an admin | ||
I want to import exported local storage mounts from the command line | ||
So that I can create previously exported local storage mounts | ||
|
||
@issue-37054 | ||
Scenario: import local storage mounts from a file | ||
Given the administrator has created the local storage mount "local_storage2" | ||
And the administrator has uploaded file with content "this is a file in local storage" to "/local_storage2/file-in-local-storage.txt" | ||
And the administrator has exported the local storage mounts using the occ command | ||
And the administrator has created a file "data/exportedMounts.json" with the last exported content using the testing API | ||
And the administrator has deleted local storage "local_storage2" using the occ command | ||
When the administrator imports the local storage mount from file "data/exportedMounts.json" using the occ command | ||
# change the then step once the issue is fixed, and the import works well | ||
Then the command output should contain the text "An unhandled exception has been thrown:" |