Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
fix(downtime): improve dst management with downtimes
Browse files Browse the repository at this point in the history
  • Loading branch information
kduret authored and ganoze committed Oct 18, 2017
1 parent ad375c0 commit 8b54153
Show file tree
Hide file tree
Showing 7 changed files with 648 additions and 32 deletions.
4 changes: 4 additions & 0 deletions behat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ default:
paths: [ %paths.base%/features/DowntimeStartAndStop.feature ]
contexts: [ DowntimeStartAndStopContext ]

downtime_dst:
paths: [ %paths.base%/features/DowntimeDST.feature ]
contexts: [ DowntimeDSTContext ]

command_arguments:
paths: [ %paths.base%/features/CommandArguments.feature ]
contexts: [ CommandArgumentsContext ]
Expand Down
132 changes: 132 additions & 0 deletions features/DowntimeDST.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
Feature: Downtime DST
As a Centreon user
I want to be certain that the downtimes work correctly with DST
To release quality products

Background:
Given I am logged in a Centreon server located at "Europe/Paris"
And a passive service is monitored


# summer changing time

@critical
Scenario: realtime downtime starting on summer changing time
Given a downtime starting on summer changing time
When realtime downtime is applied
Then the downtime is properly scheduled

@critical
Scenario: recurrent downtime starting on summer changing time
Given a downtime starting on summer changing time
When recurrent downtime is applied
Then the downtime is properly scheduled

@critical
Scenario: recurrent downtime ending on summer changing time
Given a downtime ending on summer changing time
When recurrent downtime is applied
Then the downtime is properly scheduled

@critical
Scenario: realtime downtime ending on summer changing time
Given a downtime ending on summer changing time
When realtime downtime is applied
Then the downtime is properly scheduled

@critical
Scenario: recurrent downtime starting and ending on summer changing time
Given a downtime starting and ending on summer changing time
When recurrent downtime is applied
Then the downtime is not scheduled

@critical
Scenario: realtime downtime starting and ending on summer changing time
Given a downtime starting and ending on summer changing time
When realtime downtime is applied
Then the downtime is not scheduled

@critical
Scenario: recurrent downtime during all day on summer changing date
Given a downtime during all day on summer changing date
When recurrent downtime is applied
Then the downtime is properly scheduled

@critical
Scenario: realtime downtime during all day on summer changing date
Given a downtime during all day on summer changing date
When realtime downtime is applied
Then the downtime is properly scheduled

@critical
Scenario: recurrent downtime of next day of summer changing date
Given a downtime during all day on summer changing date is scheduled
And a downtime of next day of summer changing date
When recurrent downtime is applied
Then the downtime is properly scheduled



# winter changing time

@critical
Scenario: recurrent downtime starting on winter changing time
Given a downtime starting on winter changing time
When recurrent downtime is applied
Then the downtime is properly scheduled

@critical
Scenario: realtime downtime starting on winter changing time
Given a downtime starting on winter changing time
When realtime downtime is applied
Then the downtime is properly scheduled

@critical
Scenario: recurrent downtime ending on winter changing time
Given a downtime ending on winter changing time
When recurrent downtime is applied
Then the downtime is properly scheduled

@critical
Scenario: realtime downtime ending on winter changing time
Given a downtime ending on winter changing time
When realtime downtime is applied
Then the downtime is properly scheduled

@critical
Scenario: recurrent downtime starting and ending on winter changing time
Given a downtime starting and ending on winter changing time
When recurrent downtime is applied
Then the downtime is properly scheduled

@critical
Scenario: realtime downtime starting and ending on winter changing time
Given a downtime starting and ending on winter changing time
When realtime downtime is applied
Then the downtime is properly scheduled

@critical
Scenario: recurrent downtime during all day on winter changing date
Given a downtime during all day on winter changing date
When recurrent downtime is applied
Then the downtime is properly scheduled

@critical
Scenario: realtime downtime during all day on winter changing date
Given a downtime during all day on winter changing date
When realtime downtime is applied
Then the downtime is properly scheduled

@critical
Scenario: recurrent downtime of next day of winter changing date
Given a downtime during all day on winter changing date is scheduled
And a downtime of next day of winter changing date
When recurrent downtime is applied
Then the downtime is properly scheduled

@critical
Scenario: realtime downtime of next day of winter changing date
Given a downtime during all day on winter changing date is scheduled
And a downtime of next day of winter changing date
When realtime downtime is applied
Then the downtime is properly scheduled
Loading

0 comments on commit 8b54153

Please sign in to comment.