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: features/v2/test_optimization.feature
+64Lines changed: 64 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,38 @@ Feature: Test Optimization
33
33
When the request is sent
34
34
Then the response status is 404 Not Found
35
35
36
+
@generated@skip@team:DataDog/ci-app-backend
37
+
Scenario: Get Flaky Tests Management policies returns "Bad Request" response
38
+
Given operation "GetFlakyTestsManagementPolicies" enabled
39
+
And new "GetFlakyTestsManagementPolicies" request
40
+
And body with value {"data": {"attributes": {"repository_id": "github.com/datadog/shopist"}, "type": "test_optimization_get_flaky_tests_management_policies_request"}}
41
+
When the request is sent
42
+
Then the response status is 400 Bad Request
43
+
44
+
@generated@skip@team:DataDog/ci-app-backend
45
+
Scenario: Get Flaky Tests Management policies returns "Not Found" response
46
+
Given operation "GetFlakyTestsManagementPolicies" enabled
47
+
And new "GetFlakyTestsManagementPolicies" request
48
+
And body with value {"data": {"attributes": {"repository_id": "github.com/datadog/shopist"}, "type": "test_optimization_get_flaky_tests_management_policies_request"}}
49
+
When the request is sent
50
+
Then the response status is 404 Not Found
51
+
52
+
@generated@skip@team:DataDog/ci-app-backend
53
+
Scenario: Get Flaky Tests Management policies returns "OK" response
54
+
Given operation "GetFlakyTestsManagementPolicies" enabled
55
+
And new "GetFlakyTestsManagementPolicies" request
56
+
And body with value {"data": {"attributes": {"repository_id": "github.com/datadog/shopist"}, "type": "test_optimization_get_flaky_tests_management_policies_request"}}
57
+
When the request is sent
58
+
Then the response status is 200 OK
59
+
60
+
@skip@team:DataDog/ci-app-backend
61
+
Scenario: Get Flaky Tests Management policies with empty repository_id returns bad request
62
+
Given operation "GetFlakyTestsManagementPolicies" enabled
63
+
And new "GetFlakyTestsManagementPolicies" request
64
+
And body with value {"data": {"attributes": {"repository_id": ""}, "type": "test_optimization_get_flaky_tests_management_policies_request"}}
65
+
When the request is sent
66
+
Then the response status is 400 Bad Request
67
+
36
68
@generated@skip@team:DataDog/ci-app-backend
37
69
Scenario: Get Test Optimization service settings returns "Bad Request" response
38
70
Given operation "GetTestOptimizationServiceSettings" enabled
0 commit comments