Skip to content

Commit

Permalink
Maintenance tests now live in their own feature
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioBertolinSG committed May 10, 2017
1 parent c6316e9 commit 3c0caec
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public function maintenanceModeIs($state) {
}

/**
* @AfterScenario
* @AfterScenario @maintenance_mode
*
* Disables maintenance mode in case it was enabled.
*/
Expand Down
16 changes: 16 additions & 0 deletions tests/integration/features/maintenance-mode.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Feature: maintenance-mode
Background:
Given using api version "1"
And maintenance mode is enabled

@maintenance_mode
Scenario: Maintenance mode new dav path
Given using new dav path
When Connecting to dav endpoint as user "admin"
Then the HTTP status code should be "503"

@maintenance_mode
Scenario: Maintenance mode old dav path
Given using old dav path
When Connecting to dav endpoint as user "admin"
Then the HTTP status code should be "503"
Original file line number Diff line number Diff line change
Expand Up @@ -543,10 +543,3 @@ Feature: webdav-related-new-endpoint
And user "user0" uploads new chunk file "3" with "CCCCC" to id "chunking-42"
When user "user0" moves new chunk file with id "chunking-42" to "/existingFile.txt"
Then User "user0" checks id of file "/existingFile.txt"

Scenario: Maintenance mode
Given using new dav path
And maintenance mode is enabled
When Connecting to dav endpoint as user "admin"
Then the HTTP status code should be "503"

Original file line number Diff line number Diff line change
Expand Up @@ -487,8 +487,3 @@ Feature: webdav-related-old-endpoint
And Downloading file "/myChunkedFile.txt"
Then Downloaded content should be "AAAAABBBBBCCCCC"

Scenario: Maintenance mode
Given maintenance mode is enabled
When Connecting to dav endpoint as user "admin"
Then the HTTP status code should be "503"

0 comments on commit 3c0caec

Please sign in to comment.