Skip to content

Commit 966ffe7

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
agentless: fix CreateAwsOnDemandTask test (#2691)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 44c2ca8 commit 966ffe7

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

.generated-info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"spec_repo_commit": "c3b2b7d",
3-
"generated": "2025-08-25 10:17:47.852"
2+
"spec_repo_commit": "55aea96",
3+
"generated": "2025-08-25 15:33:33.236"
44
}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2025-03-05T15:30:09.058Z"
1+
"2025-08-24T22:41:50.537Z"

cassettes/v2/Agentless-Scanning_730042230/Post-an-AWS-on-demand-task-returns-AWS-on-demand-task-created-successfully-response_4123559007/recording.har

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"entries": [
1010
{
11-
"_id": "00ab1d14e32568fbf9c3515f72084164",
11+
"_id": "22e692ec011856ae6a7be829dfef8419",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 127,
15+
"bodySize": 114,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -32,17 +32,17 @@
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"arn\":\"arn:aws:lambda:eu-west-3:376334461865:function:This-Is-An-Api-Spec-Test\"},\"type\":\"aws_resource\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"arn\":\"arn:aws:lambda:us-west-2:123456789012:function:my-function\"},\"type\":\"aws_resource\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/agentless_scanning/ondemand/aws"
3939
},
4040
"response": {
41-
"bodySize": 232,
41+
"bodySize": 219,
4242
"content": {
4343
"mimeType": "application/vnd.api+json",
44-
"size": 232,
45-
"text": "{\"data\":{\"id\":\"aaa12247-2b39-4b70-a2fd-a804840e17f5\",\"type\":\"aws_resource\",\"attributes\":{\"arn\":\"arn:aws:lambda:eu-west-3:376334461865:function:This-Is-An-Api-Spec-Test\",\"created_at\":\"2025-03-05T15:30:09.129732Z\",\"status\":\"QUEUED\"}}}"
44+
"size": 219,
45+
"text": "{\"data\":{\"id\":\"20fa1c5c-0f03-4db7-b1d9-e360226bb786\",\"type\":\"aws_resource\",\"attributes\":{\"arn\":\"arn:aws:lambda:us-west-2:123456789012:function:my-function\",\"created_at\":\"2025-08-24T22:41:51.043274Z\",\"status\":\"QUEUED\"}}}"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -51,14 +51,14 @@
5151
"value": "application/vnd.api+json"
5252
}
5353
],
54-
"headersSize": 660,
54+
"headersSize": 659,
5555
"httpVersion": "HTTP/1.1",
5656
"redirectURL": "",
5757
"status": 201,
5858
"statusText": "Created"
5959
},
60-
"startedDateTime": "2025-03-05T15:30:09.060Z",
61-
"time": 88
60+
"startedDateTime": "2025-08-24T22:41:50.542Z",
61+
"time": 480
6262
}
6363
],
6464
"pages": [],

features/v2/agentless_scanning.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,10 @@ Feature: Agentless Scanning
123123
@team:DataDog/k9-agentless
124124
Scenario: Post an AWS on demand task returns "AWS on demand task created successfully." response
125125
Given new "CreateAwsOnDemandTask" request
126-
And body with value {"data": {"attributes": {"arn": "arn:aws:lambda:eu-west-3:376334461865:function:This-Is-An-Api-Spec-Test"}, "type": "aws_resource"}}
126+
And body with value {"data": {"attributes": {"arn": "arn:aws:lambda:us-west-2:123456789012:function:my-function"}, "type": "aws_resource"}}
127127
When the request is sent
128128
Then the response status is 201 AWS on demand task created successfully
129-
And the response "data.attributes.arn" is equal to "arn:aws:lambda:eu-west-3:376334461865:function:This-Is-An-Api-Spec-Test"
129+
And the response "data.attributes.arn" is equal to "arn:aws:lambda:us-west-2:123456789012:function:my-function"
130130
And the response "data.attributes.status" is equal to "QUEUED"
131131

132132
@team:DataDog/k9-agentless

0 commit comments

Comments
 (0)