@@ -14,7 +14,6 @@ Feature: Service Level Objective Corrections
14
14
@skip @team:DataDog/slo-app
15
15
Scenario : Create an SLO correction returns "Bad Request" response
16
16
Given there is a valid "slo" in the system
17
- And operation "CreateSLOCorrection" enabled
18
17
And new "CreateSLOCorrection" request
19
18
And body with value {"data" : {"attributes" : {"category" : "Scheduled Maintenance" , "description" : "{{ unique }}" , "end" : {{ timestamp("now + 1h" ) }}, "start" : {{ timestamp("now" ) }}, "timezone" : "UTC" }, "type" : "correction" }}
20
19
When the request is sent
@@ -23,66 +22,58 @@ Feature: Service Level Objective Corrections
23
22
@team:DataDog/slo-app
24
23
Scenario : Create an SLO correction returns "OK" response
25
24
Given there is a valid "slo" in the system
26
- And operation "CreateSLOCorrection" enabled
27
25
And new "CreateSLOCorrection" request
28
26
And body with value {"data" : {"attributes" : {"category" : "Scheduled Maintenance" , "description" : "{{ unique }}" , "end" : {{ timestamp("now + 1h" ) }}, "slo_id" : "{{ slo.data[0].id }}" , "start" : {{ timestamp("now" ) }}, "timezone" : "UTC" }, "type" : "correction" }}
29
27
When the request is sent
30
28
Then the response status is 200 OK
31
29
32
30
@skip @team:DataDog/slo-app
33
31
Scenario : Create an SLO correction returns "SLO Not Found" response
34
- Given operation "CreateSLOCorrection" enabled
35
- And new "CreateSLOCorrection" request
32
+ Given new "CreateSLOCorrection" request
36
33
And body with value {"data" : {"attributes" : {"category" : "Scheduled Maintenance" , "description" : "{{ unique }}" , "end" : {{ timestamp("now + 1h" ) }}, "slo_id" : "sloId" , "start" : {{ timestamp("now" ) }}, "timezone" : "UTC" }, "type" : "correction" }}
37
34
When the request is sent
38
35
Then the response status is 404 SLO Not Found
39
36
40
37
@team:DataDog/slo-app
41
38
Scenario : Create an SLO correction with rrule returns "OK" response
42
39
Given there is a valid "slo" in the system
43
- And operation "CreateSLOCorrection" enabled
44
40
And new "CreateSLOCorrection" request
45
41
And body with value {"data" : {"attributes" : {"category" : "Scheduled Maintenance" , "description" : "{{ unique }}" , "slo_id" : "{{ slo.data[0].id }}" , "start" : {{ timestamp("now" ) }}, "duration" : 3600, "rrule" : "FREQ=DAILY;INTERVAL=10;COUNT=5" , "timezone" : "UTC" }, "type" : "correction" }}
46
42
When the request is sent
47
43
Then the response status is 200 OK
48
44
49
45
@generated @skip @team:DataDog/slo-app
50
46
Scenario : Delete an SLO correction returns "Not found" response
51
- Given operation "DeleteSLOCorrection" enabled
52
- And new "DeleteSLOCorrection" request
47
+ Given new "DeleteSLOCorrection" request
53
48
And request contains "slo_correction_id" parameter from "REPLACE.ME"
54
49
When the request is sent
55
50
Then the response status is 404 Not found
56
51
57
52
@generated @skip @team:DataDog/slo-app
58
53
Scenario : Delete an SLO correction returns "OK" response
59
- Given operation "DeleteSLOCorrection" enabled
60
- And new "DeleteSLOCorrection" request
54
+ Given new "DeleteSLOCorrection" request
61
55
And request contains "slo_correction_id" parameter from "REPLACE.ME"
62
56
When the request is sent
63
57
Then the response status is 204 OK
64
58
65
59
@team:DataDog/slo-app
66
60
Scenario : Get all SLO corrections returns "OK" response
67
- Given operation "ListSLOCorrection" enabled
68
- And there is a valid "slo" in the system
61
+ Given there is a valid "slo" in the system
69
62
And there is a valid "correction" for "slo"
70
63
And new "ListSLOCorrection" request
71
64
When the request is sent
72
65
Then the response status is 200 OK
73
66
74
67
@generated @skip @team:DataDog/slo-app
75
68
Scenario : Get an SLO correction for an SLO returns "Bad Request" response
76
- Given operation "GetSLOCorrection" enabled
77
- And new "GetSLOCorrection" request
69
+ Given new "GetSLOCorrection" request
78
70
And request contains "slo_correction_id" parameter from "REPLACE.ME"
79
71
When the request is sent
80
72
Then the response status is 400 Bad Request
81
73
82
74
@team:DataDog/slo-app
83
75
Scenario : Get an SLO correction for an SLO returns "OK" response
84
- Given operation "GetSLOCorrection" enabled
85
- And there is a valid "slo" in the system
76
+ Given there is a valid "slo" in the system
86
77
And there is a valid "correction" for "slo"
87
78
And new "GetSLOCorrection" request
88
79
And request contains "slo_correction_id" parameter from "correction.data.id"
@@ -91,8 +82,7 @@ Feature: Service Level Objective Corrections
91
82
92
83
@skip @team:DataDog/slo-app
93
84
Scenario : Update an SLO correction returns "Bad Request" response
94
- Given operation "UpdateSLOCorrection" enabled
95
- And there is a valid "slo" in the system
85
+ Given there is a valid "slo" in the system
96
86
And there is a valid "correction" for "slo"
97
87
And new "UpdateSLOCorrection" request
98
88
And request contains "slo_correction_id" parameter from "correction.data.id"
@@ -102,8 +92,7 @@ Feature: Service Level Objective Corrections
102
92
103
93
@generated @skip @team:DataDog/slo-app
104
94
Scenario : Update an SLO correction returns "Not Found" response
105
- Given operation "UpdateSLOCorrection" enabled
106
- And new "UpdateSLOCorrection" request
95
+ Given new "UpdateSLOCorrection" request
107
96
And request contains "slo_correction_id" parameter from "REPLACE.ME"
108
97
And body with value {"data" : {"attributes" : {"category" : "Scheduled Maintenance" , "duration" : 3600, "end" : 1600000000, "rrule" : "FREQ=DAILY;INTERVAL=10;COUNT=5" , "start" : 1600000000, "timezone" : "UTC" }, "type" : "correction" }}
109
98
When the request is sent
@@ -113,7 +102,6 @@ Feature: Service Level Objective Corrections
113
102
Scenario : Update an SLO correction returns "OK" response
114
103
Given there is a valid "slo" in the system
115
104
And there is a valid "correction" for "slo"
116
- And operation "UpdateSLOCorrection" enabled
117
105
And new "UpdateSLOCorrection" request
118
106
And request contains "slo_correction_id" parameter from "correction.data.id"
119
107
And body with value {"data" : {"attributes" : {"category" : "Deployment" , "description" : "{{ unique }}" , "end" : {{ timestamp("now + 1h" ) }}, "start" : {{ timestamp("now" ) }}, "timezone" : "UTC" }, "type" : "correction" }}
0 commit comments