You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/v1/features/downtimes.feature
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -115,11 +115,13 @@ Feature: Downtimes
115
115
@team:DataDog/monitor-app
116
116
Scenario: Schedule a downtime returns "OK" response
117
117
Given new "CreateDowntime" request
118
-
And body with value {"message": "{{ unique }}", "start": {{ timestamp("now") }}, "timezone": "Etc/UTC", "scope": ["test:{{ unique_lower_alnum }}"], "recurrence": {"type": "weeks", "period": 1, "week_days": ["Mon", "Tue", "Wed", "Thu", "Fri"], "until_date": {{ timestamp("now + 21d")}} }}
118
+
And body with value {"message": "{{ unique }}", "start": {{ timestamp("now") }}, "timezone": "Etc/UTC", "scope": ["test:{{ unique_lower_alnum }}"], "recurrence": {"type": "weeks", "period": 1, "week_days": ["Mon", "Tue", "Wed", "Thu", "Fri"], "until_date": {{ timestamp("now + 21d")}} }, "notify_end_states": ["alert", "no data", "warn"], "notify_end_types": ["canceled", "expired"]}
119
119
When the request is sent
120
120
Then the response status is 200 OK
121
121
And the response "message" is equal to "{{ unique }}"
122
122
And the response "active" is equal to true
123
+
And the response "notify_end_states" array contains value "alert"
124
+
And the response "notify_end_types" array contains value "canceled"
123
125
124
126
@team:DataDog/monitor-app
125
127
Scenario: Schedule a downtime until date
@@ -192,7 +194,9 @@ Feature: Downtimes
192
194
Given there is a valid "downtime" in the system
193
195
And new "UpdateDowntime" request
194
196
And request contains "downtime_id" parameter from "downtime.id"
195
-
And body with value {"message": "{{ unique}}-updated", "mute_first_recovery_notification": true}
197
+
And body with value {"message": "{{ unique}}-updated", "mute_first_recovery_notification": true, "notify_end_states": ["alert", "no data", "warn"], "notify_end_types": ["canceled", "expired"]}
196
198
When the request is sent
197
199
Then the response status is 200 OK
198
200
And the response "message" is equal to "{{ unique }}-updated"
201
+
And the response "notify_end_states" array contains value "alert"
202
+
And the response "notify_end_types" array contains value "canceled"
0 commit comments