-
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 #33392 from owncloud/occ-config-key-test
Add cli test for adding, deleting and listing system and app configs
- Loading branch information
Showing
2 changed files
with
162 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
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,35 @@ | ||
@cli | ||
Feature: add and delete app configs using occ command | ||
|
||
As an administrator | ||
I want to be able to add and delete app configs via the command line | ||
|
||
Scenario: admin adds and deletes a config for an app using the occ command | ||
When the administrator adds a config key "con" with value "conkey" in app "core" using the occ command | ||
Then the command should have been successful | ||
And the command output should contain the text 'Config value con for app core set to conkey' | ||
And the config key "con" of app "core" must have value "conkey" | ||
When the administrator deletes the config key "con" of app "core" using the occ command | ||
Then the command should have been successful | ||
And the command output should contain the text 'Config value con of app core deleted' | ||
And the app "core" should not have config key "con" | ||
|
||
Scenario: admin adds and deletes a system config | ||
When the administrator adds a system config key "con" with value "conkey" using the occ command | ||
Then the command should have been successful | ||
And the command output should contain the text 'System config value con set to string conkey' | ||
And the system config key "con" with value "conkey" should exist | ||
When the administrator deletes a system config key "con" using the occ command | ||
Then the command should have been successful | ||
And the command output should contain the text 'System config value con deleted' | ||
And the system config key "con" should not exist | ||
|
||
Scenario: admin can list system config | ||
When the administrator lists the config keys | ||
Then the command should have been successful | ||
And the command output should contain the system configs | ||
|
||
Scenario: admin can list app config | ||
When the administrator lists the config keys | ||
Then the command should have been successful | ||
And the command output should contain the apps configs |