diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2017-03-20 18:10:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-20 18:10:05 +0100 |
commit | 03a92eaf74ea3898f67a12e3c19216683abb44d8 (patch) | |
tree | 533fa317e6b1ef57a4a3f391b84e9778268b2312 /build/integration | |
parent | be9ae45a4b8ced2173d1322a2d78a670e706e878 (diff) | |
parent | 5795482282bed45c678b26799da83e4da4ae2978 (diff) | |
download | nextcloud-server-03a92eaf74ea3898f67a12e3c19216683abb44d8.tar.gz nextcloud-server-03a92eaf74ea3898f67a12e3c19216683abb44d8.zip |
Merge pull request #3957 from nextcloud/downstream-27307
Follow up to #3949 (app exists on enable)
Diffstat (limited to 'build/integration')
-rw-r--r-- | build/integration/features/provisioning-v1.feature | 12 | ||||
-rw-r--r-- | build/integration/features/provisioning-v2.feature | 12 |
2 files changed, 24 insertions, 0 deletions
diff --git a/build/integration/features/provisioning-v1.feature b/build/integration/features/provisioning-v1.feature index a8501ee8873..ad9d901d051 100644 --- a/build/integration/features/provisioning-v1.feature +++ b/build/integration/features/provisioning-v1.feature @@ -306,6 +306,12 @@ Feature: provisioning Then the OCS status code should be "100" And the HTTP status code should be "200" + Scenario: get app info from app that does not exist + Given As an "admin" + When sending "GET" to "/cloud/apps/this_app_should_never_exist" + Then the OCS status code should be "998" + And the HTTP status code should be "200" + Scenario: enable an app Given As an "admin" And app "testing" is disabled @@ -314,6 +320,12 @@ Feature: provisioning And the HTTP status code should be "200" And app "testing" is enabled + Scenario: enable an app that does not exist + Given As an "admin" + When sending "POST" to "/cloud/apps/this_app_should_never_exist" + Then the OCS status code should be "998" + And the HTTP status code should be "200" + Scenario: disable an app Given As an "admin" And app "testing" is enabled diff --git a/build/integration/features/provisioning-v2.feature b/build/integration/features/provisioning-v2.feature index 6140128684d..def9b376d21 100644 --- a/build/integration/features/provisioning-v2.feature +++ b/build/integration/features/provisioning-v2.feature @@ -7,3 +7,15 @@ Feature: provisioning When sending "GET" to "/cloud/users/test" Then the HTTP status code should be "404" + Scenario: get app info from app that does not exist + Given As an "admin" + When sending "GET" to "/cloud/apps/this_app_should_never_exist" + Then the OCS status code should be "998" + And the HTTP status code should be "404" + + Scenario: enable an app that does not exist + Given As an "admin" + When sending "POST" to "/cloud/apps/this_app_should_never_exist" + Then the OCS status code should be "998" + And the HTTP status code should be "404" + |