-
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.
- Loading branch information
1 parent
d5c4f23
commit cdb2dae
Showing
3 changed files
with
54 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
25 changes: 25 additions & 0 deletions
25
tests/acceptance/features/cliProvisioning/enableApp.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,25 @@ | ||
@cli @skipOnLDAP | ||
Feature: enable an app | ||
As an admin | ||
I want to be able to enable a disabled app | ||
So that I can use the app features again | ||
|
||
Scenario: Admin enables an app | ||
Given the app "comments" has been disabled | ||
When the administrator enables the app "comments" using the occ command | ||
Then the command should have been successful | ||
And the command output should contain the text 'comments enabled' | ||
And app "comments" should be enabled | ||
|
||
Scenario: Admin tries to enable an app which is already enabled | ||
Given the app "comments" has been enabled | ||
When the administrator enables the app "comments" using the occ command | ||
Then the command should have been successful | ||
And the command output should contain the text 'comments enabled' | ||
And app "comments" should be enabled | ||
|
||
Scenario: Admin tries to enable an app which is not installed in ownCloud server | ||
When the administrator enables the app "not-installed-app" using the occ command | ||
Then the command should have failed with exit code 1 | ||
And the command output should contain the text 'not-installed-app not found' | ||
And the app "not-installed-app" should not be on the apps list |