2017-04-11 02:30:32 +03:00
|
|
|
Feature: maintenance-mode
|
|
|
|
|
|
|
|
Background:
|
|
|
|
Given Maintenance mode is enabled
|
2017-04-11 14:58:18 +03:00
|
|
|
Then the command was successful
|
2017-04-11 02:30:32 +03:00
|
|
|
|
|
|
|
Scenario: Accessing /index.php with maintenance mode enabled
|
|
|
|
When requesting "/index.php" with "GET"
|
|
|
|
Then the HTTP status code should be "503"
|
|
|
|
Then Maintenance mode is disabled
|
2017-04-11 14:58:18 +03:00
|
|
|
And the command was successful
|
2017-04-11 02:30:32 +03:00
|
|
|
|
|
|
|
Scenario: Accessing /remote.php/webdav with maintenance mode enabled
|
|
|
|
When requesting "/remote.php/webdav" with "GET"
|
|
|
|
Then the HTTP status code should be "503"
|
|
|
|
Then Maintenance mode is disabled
|
2017-04-11 14:58:18 +03:00
|
|
|
And the command was successful
|
2017-04-11 02:30:32 +03:00
|
|
|
|
|
|
|
Scenario: Accessing /remote.php/dav with maintenance mode enabled
|
|
|
|
When requesting "/remote.php/dav" with "GET"
|
|
|
|
Then the HTTP status code should be "503"
|
|
|
|
Then Maintenance mode is disabled
|
2017-04-11 14:58:18 +03:00
|
|
|
And the command was successful
|
2017-04-11 02:30:32 +03:00
|
|
|
|
|
|
|
Scenario: Accessing /ocs/v1.php with maintenance mode enabled
|
|
|
|
When requesting "/ocs/v1.php" with "GET"
|
|
|
|
Then the HTTP status code should be "503"
|
|
|
|
Then Maintenance mode is disabled
|
2017-04-11 14:58:18 +03:00
|
|
|
And the command was successful
|
2017-04-11 02:30:32 +03:00
|
|
|
|
|
|
|
Scenario: Accessing /ocs/v2.php with maintenance mode enabled
|
|
|
|
When requesting "/ocs/v2.php" with "GET"
|
|
|
|
Then the HTTP status code should be "503"
|
|
|
|
Then Maintenance mode is disabled
|
2017-04-11 14:58:18 +03:00
|
|
|
And the command was successful
|
2017-04-11 02:30:32 +03:00
|
|
|
|
|
|
|
Scenario: Accessing /public.php/webdav with maintenance mode enabled
|
|
|
|
When requesting "/public.php/webdav" with "GET"
|
|
|
|
Then the HTTP status code should be "503"
|
|
|
|
Then Maintenance mode is disabled
|
2017-04-11 14:58:18 +03:00
|
|
|
And the command was successful
|