maintenance-mode.feature 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
  2. # SPDX-License-Identifier: AGPL-3.0-or-later
  3. Feature: maintenance-mode
  4. Background:
  5. Given Maintenance mode is enabled
  6. Then the command was successful
  7. Scenario: Accessing /index.php with maintenance mode enabled
  8. When requesting "/index.php" with "GET"
  9. Then the HTTP status code should be "503"
  10. Then Maintenance mode is disabled
  11. And the command was successful
  12. Scenario: Accessing /remote.php/webdav with maintenance mode enabled
  13. When requesting "/remote.php/webdav" with "GET"
  14. Then the HTTP status code should be "503"
  15. Then Maintenance mode is disabled
  16. And the command was successful
  17. Scenario: Accessing /remote.php/dav with maintenance mode enabled
  18. When requesting "/remote.php/dav" with "GET"
  19. Then the HTTP status code should be "503"
  20. Then Maintenance mode is disabled
  21. And the command was successful
  22. Scenario: Accessing /ocs/v1.php with maintenance mode enabled
  23. When requesting "/ocs/v1.php" with "GET"
  24. Then the HTTP status code should be "503"
  25. Then Maintenance mode is disabled
  26. And the command was successful
  27. Scenario: Accessing /ocs/v2.php with maintenance mode enabled
  28. When requesting "/ocs/v2.php" with "GET"
  29. Then the HTTP status code should be "503"
  30. Then Maintenance mode is disabled
  31. And the command was successful
  32. Scenario: Accessing /public.php/webdav with maintenance mode enabled
  33. When requesting "/public.php/webdav" with "GET"
  34. Then the HTTP status code should be "503"
  35. Then Maintenance mode is disabled
  36. And the command was successful
  37. Scenario: Accessing /public.php/dav with maintenance mode enabled
  38. When requesting "/public.php/dav" with "GET"
  39. Then the HTTP status code should be "503"
  40. Then Maintenance mode is disabled
  41. And the command was successful