aboutsummaryrefslogtreecommitdiffstats
path: root/build/integration/features/maintenance-mode.feature
blob: 56d3b9c0fb6a7ff60da3bdac219a93ad8a6286fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Feature: maintenance-mode

  Background:
    Given Maintenance mode is enabled
    Then the command was successful

  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
    And the command was successful

  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
    And the command was successful

  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
    And the command was successful

  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
    And the command was successful

  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
    And the command was successful

  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
    And the command was successful