Add integration tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
3abe86dade
commit
5cf6fc7e8d
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue