-
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 #37018 from owncloud/manageOptionsForMount
[Tests-Only] Add acceptance test to manage options for local storage mount
- Loading branch information
Showing
2 changed files
with
143 additions
and
0 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
28 changes: 28 additions & 0 deletions
28
tests/acceptance/features/cliLocalStorage/manageOptionsForLocalStorage.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,28 @@ | ||
@cli @skipOnLDAP @local_storage | ||
Feature: manage options for a mount using occ command | ||
As an admin | ||
I want to add options for a local storage mount | ||
So that I can manage options for the mount | ||
|
||
Background: | ||
Given the administrator has created the local storage mount "local_storage2" | ||
And the administrator has created the local storage mount "local_storage3" | ||
And the administrator has uploaded file with content "this is a file in local storage2" to "/local_storage2/file-in-local-storage.txt" | ||
And the administrator has uploaded file with content "this is a file in local storage3" to "/local_storage3/new-file" | ||
|
||
Scenario: add options for a local storage mount | ||
When the administrator adds an option with key "enable_sharing" and value "true" for the local storage mount "local_storage2" | ||
And the administrator adds an option with key "read-only" and value "1" for the local storage mount "local_storage2" | ||
And the administrator adds an option with key "enable_sharing" and value "false" for the local storage mount "local_storage3" | ||
And the administrator adds an option with key "read-only" and value "1" for the local storage mount "local_storage3" | ||
And the administrator lists the local storage using the occ command | ||
Then the following should be included in the options of local storage "/local_storage2": | ||
| options | | ||
| enable_sharing: true | | ||
| read-only: 1 | | ||
And the following should be included in the options of local storage "/local_storage3": | ||
| options | | ||
| read-only: 1 | | ||
But the following should not be included in the options of local storage "/local_storage3": | ||
| options | | ||
| enable_sharing: false | |