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/datasets.feature
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -14,21 +14,21 @@ Feature: Datasets
14
14
@generated@skip@team:DataDog/aaa-granular-access
15
15
Scenario: Create a dataset returns "Bad Request" response
16
16
Given new "CreateDataset" request
17
-
And body with value {"data": {"attributes": {"created_at": null, "name": "Security Audit Dataset", "principals": ["role:86245fce-0a4e-11f0-92bd-da7ad0900002"], "product_filters": [{"filters": ["@application.id:ABCD"], "product": "logs"}]}, "id": "123e4567-e89b-12d3-a456-426614174000", "type": "dataset"}}
17
+
And body with value {"data": {"attributes": {"name": "Security Audit Dataset", "principals": ["role:86245fce-0a4e-11f0-92bd-da7ad0900002"], "product_filters": [{"filters": ["@application.id:ABCD"], "product": "logs"}]}, "type": "dataset"}}
18
18
When the request is sent
19
19
Then the response status is 400 Bad Request
20
20
21
21
@generated@skip@team:DataDog/aaa-granular-access
22
22
Scenario: Create a dataset returns "Conflict" response
23
23
Given new "CreateDataset" request
24
-
And body with value {"data": {"attributes": {"created_at": null, "name": "Security Audit Dataset", "principals": ["role:86245fce-0a4e-11f0-92bd-da7ad0900002"], "product_filters": [{"filters": ["@application.id:ABCD"], "product": "logs"}]}, "id": "123e4567-e89b-12d3-a456-426614174000", "type": "dataset"}}
24
+
And body with value {"data": {"attributes": {"name": "Security Audit Dataset", "principals": ["role:86245fce-0a4e-11f0-92bd-da7ad0900002"], "product_filters": [{"filters": ["@application.id:ABCD"], "product": "logs"}]}, "type": "dataset"}}
25
25
When the request is sent
26
26
Then the response status is 409 Conflict
27
27
28
28
@generated@skip@team:DataDog/aaa-granular-access
29
29
Scenario: Create a dataset returns "OK" response
30
30
Given new "CreateDataset" request
31
-
And body with value {"data": {"attributes": {"created_at": null, "name": "Security Audit Dataset", "principals": ["role:86245fce-0a4e-11f0-92bd-da7ad0900002"], "product_filters": [{"filters": ["@application.id:ABCD"], "product": "logs"}]}, "id": "123e4567-e89b-12d3-a456-426614174000", "type": "dataset"}}
31
+
And body with value {"data": {"attributes": {"name": "Security Audit Dataset", "principals": ["role:86245fce-0a4e-11f0-92bd-da7ad0900002"], "product_filters": [{"filters": ["@application.id:ABCD"], "product": "logs"}]}, "type": "dataset"}}
32
32
When the request is sent
33
33
Then the response status is 200 OK
34
34
@@ -57,23 +57,23 @@ Feature: Datasets
57
57
Scenario: Edit a dataset returns "Bad Request" response
58
58
Given new "UpdateDataset" request
59
59
And request contains "dataset_id" parameter from "REPLACE.ME"
60
-
And body with value {"data": {"attributes": {"created_at": null, "name": "Security Audit Dataset", "principals": ["role:86245fce-0a4e-11f0-92bd-da7ad0900002"], "product_filters": [{"filters": ["@application.id:ABCD"], "product": "logs"}]}, "id": "123e4567-e89b-12d3-a456-426614174000", "type": "dataset"}}
60
+
And body with value {"data": {"attributes": {"name": "Security Audit Dataset", "principals": ["role:86245fce-0a4e-11f0-92bd-da7ad0900002"], "product_filters": [{"filters": ["@application.id:ABCD"], "product": "logs"}]}, "type": "dataset"}}
61
61
When the request is sent
62
62
Then the response status is 400 Bad Request
63
63
64
64
@generated@skip@team:DataDog/aaa-granular-access
65
65
Scenario: Edit a dataset returns "Not Found" response
66
66
Given new "UpdateDataset" request
67
67
And request contains "dataset_id" parameter from "REPLACE.ME"
68
-
And body with value {"data": {"attributes": {"created_at": null, "name": "Security Audit Dataset", "principals": ["role:86245fce-0a4e-11f0-92bd-da7ad0900002"], "product_filters": [{"filters": ["@application.id:ABCD"], "product": "logs"}]}, "id": "123e4567-e89b-12d3-a456-426614174000", "type": "dataset"}}
68
+
And body with value {"data": {"attributes": {"name": "Security Audit Dataset", "principals": ["role:86245fce-0a4e-11f0-92bd-da7ad0900002"], "product_filters": [{"filters": ["@application.id:ABCD"], "product": "logs"}]}, "type": "dataset"}}
69
69
When the request is sent
70
70
Then the response status is 404 Not Found
71
71
72
72
@generated@skip@team:DataDog/aaa-granular-access
73
73
Scenario: Edit a dataset returns "OK" response
74
74
Given new "UpdateDataset" request
75
75
And request contains "dataset_id" parameter from "REPLACE.ME"
76
-
And body with value {"data": {"attributes": {"created_at": null, "name": "Security Audit Dataset", "principals": ["role:86245fce-0a4e-11f0-92bd-da7ad0900002"], "product_filters": [{"filters": ["@application.id:ABCD"], "product": "logs"}]}, "id": "123e4567-e89b-12d3-a456-426614174000", "type": "dataset"}}
76
+
And body with value {"data": {"attributes": {"name": "Security Audit Dataset", "principals": ["role:86245fce-0a4e-11f0-92bd-da7ad0900002"], "product_filters": [{"filters": ["@application.id:ABCD"], "product": "logs"}]}, "type": "dataset"}}
0 commit comments