@@ -43,6 +43,30 @@ Feature: On-Call
4343 When the request is sent
4444 Then the response status is 201 Created
4545
46+ @generated @skip @team:DataDog/on-call
47+ Scenario : Create email notification channel for user returns "Bad Request" response
48+ Given new "CreateUserEmailNotificationChannel" request
49+ And request contains "user_id" parameter from "REPLACE.ME"
50+ And body with value {
"data" : {
"attributes" : {
"active" : true,
"address" :
"[email protected] " ,
"alias" :
"" ,
"blocked" : false,
"created_at" :
"2024-04-16T23:38:50.388642Z" ,
"formats" : [
"html" ],
"modified_at" :
"2024-04-16T23:38:50.388642Z" },
"id" :
"45cd9fe5-dd96-42ad-83de-2242ea9f6efd" ,
"type" :
"emails" }}
51+ When the request is sent
52+ Then the response status is 400 Bad Request
53+
54+ @generated @skip @team:DataDog/on-call
55+ Scenario : Create email notification channel for user returns "Created" response
56+ Given new "CreateUserEmailNotificationChannel" request
57+ And request contains "user_id" parameter from "REPLACE.ME"
58+ And body with value {
"data" : {
"attributes" : {
"active" : true,
"address" :
"[email protected] " ,
"alias" :
"" ,
"blocked" : false,
"created_at" :
"2024-04-16T23:38:50.388642Z" ,
"formats" : [
"html" ],
"modified_at" :
"2024-04-16T23:38:50.388642Z" },
"id" :
"45cd9fe5-dd96-42ad-83de-2242ea9f6efd" ,
"type" :
"emails" }}
59+ When the request is sent
60+ Then the response status is 201 Created
61+
62+ @generated @skip @team:DataDog/on-call
63+ Scenario : Create email notification channel for user returns "Not Found" response
64+ Given new "CreateUserEmailNotificationChannel" request
65+ And request contains "user_id" parameter from "REPLACE.ME"
66+ And body with value {
"data" : {
"attributes" : {
"active" : true,
"address" :
"[email protected] " ,
"alias" :
"" ,
"blocked" : false,
"created_at" :
"2024-04-16T23:38:50.388642Z" ,
"formats" : [
"html" ],
"modified_at" :
"2024-04-16T23:38:50.388642Z" },
"id" :
"45cd9fe5-dd96-42ad-83de-2242ea9f6efd" ,
"type" :
"emails" }}
67+ When the request is sent
68+ Then the response status is 404 Not Found
69+
4670 @team:DataDog/on-call
4771 Scenario : Delete On-Call escalation policy returns "No Content" response
4872 Given new "DeleteOnCallEscalationPolicy" request
@@ -77,6 +101,30 @@ Feature: On-Call
77101 When the request is sent
78102 Then the response status is 404 Not Found
79103
104+ @generated @skip @team:DataDog/on-call
105+ Scenario : Delete email notification channel returns "Bad Request" response
106+ Given new "DeleteUserEmailNotificationChannel" request
107+ And request contains "user_id" parameter from "REPLACE.ME"
108+ And request contains "email_id" parameter from "REPLACE.ME"
109+ When the request is sent
110+ Then the response status is 400 Bad Request
111+
112+ @generated @skip @team:DataDog/on-call
113+ Scenario : Delete email notification channel returns "No Content" response
114+ Given new "DeleteUserEmailNotificationChannel" request
115+ And request contains "user_id" parameter from "REPLACE.ME"
116+ And request contains "email_id" parameter from "REPLACE.ME"
117+ When the request is sent
118+ Then the response status is 204 No Content
119+
120+ @generated @skip @team:DataDog/on-call
121+ Scenario : Delete email notification channel returns "Not Found" response
122+ Given new "DeleteUserEmailNotificationChannel" request
123+ And request contains "user_id" parameter from "REPLACE.ME"
124+ And request contains "email_id" parameter from "REPLACE.ME"
125+ When the request is sent
126+ Then the response status is 404 Not Found
127+
80128 @generated @skip @team:DataDog/on-call
81129 Scenario : Get On-Call escalation policy returns "Bad Request" response
82130 Given new "GetOnCallEscalationPolicy" request
@@ -126,6 +174,30 @@ Feature: On-Call
126174 When the request is sent
127175 Then the response status is 200 OK
128176
177+ @generated @skip @team:DataDog/on-call
178+ Scenario : Get email notification channel returns "Bad Request" response
179+ Given new "GetUserEmailNotificationChannel" request
180+ And request contains "user_id" parameter from "REPLACE.ME"
181+ And request contains "email_id" parameter from "REPLACE.ME"
182+ When the request is sent
183+ Then the response status is 400 Bad Request
184+
185+ @generated @skip @team:DataDog/on-call
186+ Scenario : Get email notification channel returns "Not Found" response
187+ Given new "GetUserEmailNotificationChannel" request
188+ And request contains "user_id" parameter from "REPLACE.ME"
189+ And request contains "email_id" parameter from "REPLACE.ME"
190+ When the request is sent
191+ Then the response status is 404 Not Found
192+
193+ @generated @skip @team:DataDog/on-call
194+ Scenario : Get email notification channel returns "OK" response
195+ Given new "GetUserEmailNotificationChannel" request
196+ And request contains "user_id" parameter from "REPLACE.ME"
197+ And request contains "email_id" parameter from "REPLACE.ME"
198+ When the request is sent
199+ Then the response status is 200 OK
200+
129201 @generated @skip @team:DataDog/on-call
130202 Scenario : Get team on-call users returns "Bad Request" response
131203 Given new "GetTeamOnCallUsers" request
@@ -243,3 +315,30 @@ Feature: On-Call
243315 And body with value {"data" : { "id" : "{{ schedule.data.id }}" , "attributes" : {"layers" : [{"id" : "{{ schedule.data.relationships.layers.data[0].id }}" , "effective_date" : "{{ timeISO('now - 10d') }}" , "end_date" : "{{ timeISO('now + 10d') }}" , "interval" : {"seconds" : 3600}, "members" : [{"user" : {"id" : "{{user.data.id}}" }}], "name" : "Layer 1" , "restrictions" : [{"end_day" : "friday" , "end_time" : "17:00:00" , "start_day" : "monday" , "start_time" : "09:00:00" }], "rotation_start" : "{{ timeISO('now - 5d') }}" }], "name" : "{{ unique }}" , "time_zone" : "America/New_York" }, "relationships" : {"teams" : {"data" : [{"id" : "{{dd_team.data.id}}" , "type" : "teams" }]}}, "type" : "schedules" }}
244316 When the request is sent
245317 Then the response status is 200 OK
318+
319+ @generated @skip @team:DataDog/on-call
320+ Scenario : Update email notification channel returns "Bad Request" response
321+ Given new "UpdateUserEmailNotificationChannel" request
322+ And request contains "user_id" parameter from "REPLACE.ME"
323+ And request contains "email_id" parameter from "REPLACE.ME"
324+ And body with value {
"data" : {
"attributes" : {
"active" : true,
"address" :
"[email protected] " ,
"alias" :
"" ,
"blocked" : false,
"created_at" :
"2024-04-16T23:38:50.388642Z" ,
"formats" : [
"html" ],
"modified_at" :
"2024-04-16T23:38:50.388642Z" },
"id" :
"45cd9fe5-dd96-42ad-83de-2242ea9f6efd" ,
"type" :
"emails" }}
325+ When the request is sent
326+ Then the response status is 400 Bad Request
327+
328+ @generated @skip @team:DataDog/on-call
329+ Scenario : Update email notification channel returns "Not Found" response
330+ Given new "UpdateUserEmailNotificationChannel" request
331+ And request contains "user_id" parameter from "REPLACE.ME"
332+ And request contains "email_id" parameter from "REPLACE.ME"
333+ And body with value {
"data" : {
"attributes" : {
"active" : true,
"address" :
"[email protected] " ,
"alias" :
"" ,
"blocked" : false,
"created_at" :
"2024-04-16T23:38:50.388642Z" ,
"formats" : [
"html" ],
"modified_at" :
"2024-04-16T23:38:50.388642Z" },
"id" :
"45cd9fe5-dd96-42ad-83de-2242ea9f6efd" ,
"type" :
"emails" }}
334+ When the request is sent
335+ Then the response status is 404 Not Found
336+
337+ @generated @skip @team:DataDog/on-call
338+ Scenario : Update email notification channel returns "OK" response
339+ Given new "UpdateUserEmailNotificationChannel" request
340+ And request contains "user_id" parameter from "REPLACE.ME"
341+ And request contains "email_id" parameter from "REPLACE.ME"
342+ And body with value {
"data" : {
"attributes" : {
"active" : true,
"address" :
"[email protected] " ,
"alias" :
"" ,
"blocked" : false,
"created_at" :
"2024-04-16T23:38:50.388642Z" ,
"formats" : [
"html" ],
"modified_at" :
"2024-04-16T23:38:50.388642Z" },
"id" :
"45cd9fe5-dd96-42ad-83de-2242ea9f6efd" ,
"type" :
"emails" }}
343+ When the request is sent
344+ Then the response status is 200 OK
0 commit comments