Skip to content

Commit 16cf2b7

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Include rule ID in request body of all integration tests (#1637)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent b5f0280 commit 16cf2b7

File tree

11 files changed

+88
-86
lines changed

11 files changed

+88
-86
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2024-06-04 15:12:37.086064",
8-
"spec_repo_commit": "60183db6"
7+
"regenerated": "2024-06-05 15:00:50.431480",
8+
"spec_repo_commit": "8e7244ae"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-06-04 15:12:37.103928",
13-
"spec_repo_commit": "60183db6"
12+
"regenerated": "2024-06-05 15:00:50.449984",
13+
"spec_repo_commit": "8e7244ae"
1414
}
1515
}
1616
}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2024-04-23T17:57:50.511Z"
1+
"2024-05-28T19:38:08.047Z"

cassettes/v2/CSM-Threats_3156990395/Update-a-CSM-Threats-Agent-rule-returns-Bad-Request-response_400928944/recording.har

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"entries": [
1010
{
11-
"_id": "a99541b697ee701869d771100ce6c3b9",
11+
"_id": "f62fa329b7d7f3c439455f1d7d83ff69",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
@@ -32,17 +32,17 @@
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"description\":\"My Agent rule\",\"enabled\":true,\"expression\":\"exec.file.name == \\\"sh\\\"\",\"name\":\"testupdateacsmthreatsagentrulereturnsbadrequestresponse1713895070\"},\"type\":\"agent_rule\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"description\":\"My Agent rule\",\"enabled\":true,\"expression\":\"exec.file.name == \\\"sh\\\"\",\"name\":\"testupdateacsmthreatsagentrulereturnsbadrequestresponse1716925088\"},\"type\":\"agent_rule\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/agent_rules"
3939
},
4040
"response": {
41-
"bodySize": 464,
41+
"bodySize": 520,
4242
"content": {
4343
"mimeType": "application/json",
44-
"size": 464,
45-
"text": "{\"data\":{\"id\":\"rgf-aao-lo8\",\"type\":\"agent_rule\",\"attributes\":{\"category\":\"Process Activity\",\"creationDate\":1713895070561,\"creator\":{\"name\":\"\",\"handle\":\"[email protected]\"},\"defaultRule\":false,\"description\":\"My Agent rule\",\"enabled\":true,\"expression\":\"exec.file.name == \\\"sh\\\"\",\"filters\":[\"os == \\\"linux\\\"\"],\"name\":\"testupdateacsmthreatsagentrulereturnsbadrequestresponse1713895070\",\"updateDate\":1713895070561,\"updater\":{\"name\":\"\",\"handle\":\"[email protected]\"}}}}"
44+
"size": 520,
45+
"text": "{\"data\":{\"id\":\"0wn-l36-875\",\"type\":\"agent_rule\",\"attributes\":{\"category\":\"Process Activity\",\"creationDate\":1716925088306,\"creator\":{\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"defaultRule\":false,\"description\":\"My Agent rule\",\"enabled\":true,\"expression\":\"exec.file.name == \\\"sh\\\"\",\"filters\":[\"os == \\\"linux\\\"\"],\"name\":\"testupdateacsmthreatsagentrulereturnsbadrequestresponse1716925088\",\"updateDate\":1716925088306,\"updater\":{\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -57,11 +57,11 @@
5757
"status": 200,
5858
"statusText": "OK"
5959
},
60-
"startedDateTime": "2024-04-23T17:57:50.514Z",
61-
"time": 505
60+
"startedDateTime": "2024-05-28T19:38:08.254Z",
61+
"time": 648
6262
},
6363
{
64-
"_id": "7a6b4c77c3fbeb488042a0914546aa3d",
64+
"_id": "093c028966a7d4d4e415092f0a75ee45",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
@@ -85,17 +85,17 @@
8585
"postData": {
8686
"mimeType": "application/json",
8787
"params": [],
88-
"text": "{\"data\":{\"attributes\":{\"description\":\"Test Agent rule\",\"enabled\":true,\"expression\":\"open.file.path = sh\"},\"id\":\"abc-123-xyz\",\"type\":\"agent_rule\"}}"
88+
"text": "{\"data\":{\"attributes\":{\"description\":\"Test Agent rule\",\"enabled\":true,\"expression\":\"open.file.path = sh\"},\"id\":\"0wn-l36-875\",\"type\":\"agent_rule\"}}"
8989
},
9090
"queryString": [],
91-
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/agent_rules/rgf-aao-lo8"
91+
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/agent_rules/0wn-l36-875"
9292
},
9393
"response": {
94-
"bodySize": 47,
94+
"bodySize": 211,
9595
"content": {
9696
"mimeType": "application/json",
97-
"size": 47,
98-
"text": "{\"errors\":[{\"title\":\"failed to update rule\"}]}\n"
97+
"size": 211,
98+
"text": "{\"errors\":[\"input_validation_error(Field 'expression' is invalid: rule `testupdateacsmthreatsagentrulereturnsbadrequestresponse1716925088` error: syntax error `1:18: unexpected token \\\"sh\\\" (expected \\\"~\\\")`)\"]}"
9999
},
100100
"cookies": [],
101101
"headers": [
@@ -104,17 +104,17 @@
104104
"value": "application/json"
105105
}
106106
],
107-
"headersSize": 216,
107+
"headersSize": 217,
108108
"httpVersion": "HTTP/1.1",
109109
"redirectURL": "",
110110
"status": 400,
111111
"statusText": "Bad Request"
112112
},
113-
"startedDateTime": "2024-04-23T17:57:51.025Z",
114-
"time": 69
113+
"startedDateTime": "2024-05-28T19:38:08.909Z",
114+
"time": 164
115115
},
116116
{
117-
"_id": "afa7a7d1c1caefb9f520649fb1c00360",
117+
"_id": "3fee0144947347d25c7babbbf617da0b",
118118
"_order": 0,
119119
"cache": {},
120120
"request": {
@@ -131,7 +131,7 @@
131131
"httpVersion": "HTTP/1.1",
132132
"method": "DELETE",
133133
"queryString": [],
134-
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/agent_rules/rgf-aao-lo8"
134+
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/agent_rules/0wn-l36-875"
135135
},
136136
"response": {
137137
"bodySize": 0,
@@ -152,8 +152,8 @@
152152
"status": 204,
153153
"statusText": "No Content"
154154
},
155-
"startedDateTime": "2024-04-23T17:57:51.101Z",
156-
"time": 372
155+
"startedDateTime": "2024-05-28T19:38:09.079Z",
156+
"time": 403
157157
}
158158
],
159159
"pages": [],
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2024-04-23T17:57:52.935Z"
1+
"2024-05-28T19:38:09.490Z"

cassettes/v2/CSM-Threats_3156990395/Update-a-Cloud-Workload-Security-Agent-rule-returns-Bad-Request-response_1212149568/recording.har

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"entries": [
1010
{
11-
"_id": "b3eba028608a40da1192a0f517604940",
11+
"_id": "a135c5ab5ca5e21838b2ea5530f3a5c9",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
@@ -26,23 +26,23 @@
2626
"value": "application/json"
2727
}
2828
],
29-
"headersSize": 626,
29+
"headersSize": 625,
3030
"httpVersion": "HTTP/1.1",
3131
"method": "POST",
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"description\":\"My Agent rule\",\"enabled\":true,\"expression\":\"exec.file.name == \\\"sh\\\"\",\"name\":\"testupdateacloudworkloadsecurityagentrulereturnsbadrequestresponse1713895072\"},\"type\":\"agent_rule\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"description\":\"My Agent rule\",\"enabled\":true,\"expression\":\"exec.file.name == \\\"sh\\\"\",\"name\":\"testupdateacloudworkloadsecurityagentrulereturnsbadrequestresponse1716925089\"},\"type\":\"agent_rule\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/security_monitoring/cloud_workload_security/agent_rules"
3939
},
4040
"response": {
41-
"bodySize": 644,
41+
"bodySize": 696,
4242
"content": {
4343
"mimeType": "application/json",
44-
"size": 644,
45-
"text": "{\"data\":{\"id\":\"1su-fqy-sjj\",\"attributes\":{\"version\":1,\"name\":\"testupdateacloudworkloadsecurityagentrulereturnsbadrequestresponse1713895072\",\"description\":\"My Agent rule\",\"expression\":\"exec.file.name == \\\"sh\\\"\",\"category\":\"Process Activity\",\"creationAuthorUuId\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"creationDate\":1713895073105,\"updateAuthorUuId\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"updateDate\":1713895073105,\"filters\":[\"os == \\\"linux\\\"\"],\"actions\":[],\"agentConstraint\":\"\",\"enabled\":true,\"defaultRule\":false,\"creator\":{\"name\":null,\"handle\":\"[email protected]\"},\"updater\":{\"name\":null,\"handle\":\"[email protected]\"}},\"type\":\"agent_rule\"}}\n"
44+
"size": 696,
45+
"text": "{\"data\":{\"id\":\"qdg-dfm-kku\",\"attributes\":{\"version\":1,\"name\":\"testupdateacloudworkloadsecurityagentrulereturnsbadrequestresponse1716925089\",\"description\":\"My Agent rule\",\"expression\":\"exec.file.name == \\\"sh\\\"\",\"category\":\"Process Activity\",\"creationAuthorUuId\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"creationDate\":1716925089625,\"updateAuthorUuId\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"updateDate\":1716925089625,\"filters\":[\"os == \\\"linux\\\"\"],\"actions\":[],\"agentConstraint\":\"\",\"defaultRule\":false,\"enabled\":true,\"creator\":{\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"updater\":{\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}},\"type\":\"agent_rule\"}}\n"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -57,15 +57,15 @@
5757
"status": 200,
5858
"statusText": "OK"
5959
},
60-
"startedDateTime": "2024-04-23T17:57:52.941Z",
61-
"time": 209
60+
"startedDateTime": "2024-05-28T19:38:09.492Z",
61+
"time": 165
6262
},
6363
{
64-
"_id": "fc3a0e05fde83b13d3546bff3703a77e",
64+
"_id": "f29f2542be39334fdc8b2ad205b681c8",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
68-
"bodySize": 127,
68+
"bodySize": 146,
6969
"cookies": [],
7070
"headers": [
7171
{
@@ -85,17 +85,17 @@
8585
"postData": {
8686
"mimeType": "application/json",
8787
"params": [],
88-
"text": "{\"data\":{\"attributes\":{\"description\":\"Test Agent rule\",\"enabled\":true,\"expression\":\"open.file.path = sh\"},\"type\":\"agent_rule\"}}"
88+
"text": "{\"data\":{\"attributes\":{\"description\":\"Test Agent rule\",\"enabled\":true,\"expression\":\"open.file.path = sh\"},\"id\":\"qdg-dfm-kku\",\"type\":\"agent_rule\"}}"
8989
},
9090
"queryString": [],
91-
"url": "https://api.datadoghq.com/api/v2/security_monitoring/cloud_workload_security/agent_rules/1su-fqy-sjj"
91+
"url": "https://api.datadoghq.com/api/v2/security_monitoring/cloud_workload_security/agent_rules/qdg-dfm-kku"
9292
},
9393
"response": {
9494
"bodySize": 223,
9595
"content": {
9696
"mimeType": "application/json",
9797
"size": 223,
98-
"text": "{\"errors\":[\"input_validation_error(Field 'expression' is invalid: rule `testupdateacloudworkloadsecurityagentrulereturnsbadrequestresponse1713895072` error: syntax error `1:18: unexpected token \\\"sh\\\" (expected \\\"~\\\")`)\"]}\n"
98+
"text": "{\"errors\":[\"input_validation_error(Field 'expression' is invalid: rule `testupdateacloudworkloadsecurityagentrulereturnsbadrequestresponse1716925089` error: syntax error `1:18: unexpected token \\\"sh\\\" (expected \\\"~\\\")`)\"]}\n"
9999
},
100100
"cookies": [],
101101
"headers": [
@@ -110,11 +110,11 @@
110110
"status": 400,
111111
"statusText": "Bad Request"
112112
},
113-
"startedDateTime": "2024-04-23T17:57:53.160Z",
114-
"time": 147
113+
"startedDateTime": "2024-05-28T19:38:09.662Z",
114+
"time": 252
115115
},
116116
{
117-
"_id": "cafb04cf3a107fe88db957c0413163b9",
117+
"_id": "12b5b1ee2dbbabf1ccfc539561fe7778",
118118
"_order": 0,
119119
"cache": {},
120120
"request": {
@@ -127,11 +127,11 @@
127127
"value": "*/*"
128128
}
129129
],
130-
"headersSize": 574,
130+
"headersSize": 573,
131131
"httpVersion": "HTTP/1.1",
132132
"method": "DELETE",
133133
"queryString": [],
134-
"url": "https://api.datadoghq.com/api/v2/security_monitoring/cloud_workload_security/agent_rules/1su-fqy-sjj"
134+
"url": "https://api.datadoghq.com/api/v2/security_monitoring/cloud_workload_security/agent_rules/qdg-dfm-kku"
135135
},
136136
"response": {
137137
"bodySize": 0,
@@ -147,8 +147,8 @@
147147
"status": 204,
148148
"statusText": "No Content"
149149
},
150-
"startedDateTime": "2024-04-23T17:57:53.321Z",
151-
"time": 149
150+
"startedDateTime": "2024-05-28T19:38:09.918Z",
151+
"time": 134
152152
}
153153
],
154154
"pages": [],
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2024-04-23T17:57:53.479Z"
1+
"2024-05-28T19:38:10.057Z"

cassettes/v2/CSM-Threats_3156990395/Update-a-Cloud-Workload-Security-Agent-rule-returns-Not-Found-response_2338204855/recording.har

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"entries": [
1010
{
11-
"_id": "2b54221f717931ce25c6f8724fba4f74",
11+
"_id": "7edac9ea36b8deb46f4ba1e4b54dd869",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 132,
15+
"bodySize": 151,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -26,13 +26,13 @@
2626
"value": "application/json"
2727
}
2828
],
29-
"headersSize": 639,
29+
"headersSize": 638,
3030
"httpVersion": "HTTP/1.1",
3131
"method": "PATCH",
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"description\":\"Test Agent rule\",\"enabled\":true,\"expression\":\"exec.file.name == \\\"sh\\\"\"},\"type\":\"agent_rule\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"description\":\"Test Agent rule\",\"enabled\":true,\"expression\":\"exec.file.name == \\\"sh\\\"\"},\"id\":\"abc-123-xyz\",\"type\":\"agent_rule\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/security_monitoring/cloud_workload_security/agent_rules/abc-123-xyz"
@@ -51,14 +51,14 @@
5151
"value": "application/json"
5252
}
5353
],
54-
"headersSize": 653,
54+
"headersSize": 654,
5555
"httpVersion": "HTTP/1.1",
5656
"redirectURL": "",
5757
"status": 404,
5858
"statusText": "Not Found"
5959
},
60-
"startedDateTime": "2024-04-23T17:57:53.488Z",
61-
"time": 142
60+
"startedDateTime": "2024-05-28T19:38:10.060Z",
61+
"time": 154
6262
}
6363
],
6464
"pages": [],
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2024-04-23T17:57:53.638Z"
1+
"2024-05-28T19:38:10.219Z"

0 commit comments

Comments
 (0)