Skip to content

Commit db063a3

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

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
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:23:09.001"
2+
"spec_repo_commit": "55aea96",
3+
"generated": "2025-08-25 15:38:48.512"
44
}

examples/v2_agentless-scanning_CreateAwsOnDemandTask.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use datadog_api_client::datadogV2::model::AwsOnDemandType;
1111
async fn main() {
1212
let body = AwsOnDemandCreateRequest::new(AwsOnDemandCreateData::new(
1313
AwsOnDemandCreateAttributes::new(
14-
"arn:aws:lambda:eu-west-3:376334461865:function:This-Is-An-Api-Spec-Test".to_string(),
14+
"arn:aws:lambda:us-west-2:123456789012:function:my-function".to_string(),
1515
),
1616
AwsOnDemandType::AWS_RESOURCE,
1717
));
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-03-05T15:30:09.058Z
1+
2025-08-24T22:41:50.537Z

tests/scenarios/cassettes/v2/agentless_scanning/Post-an-AWS-on-demand-task-returns-AWS-on-demand-task-created-successfully-response.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"request": {
55
"body": {
6-
"string": "{\"data\":{\"attributes\":{\"arn\":\"arn:aws:lambda:eu-west-3:376334461865:function:This-Is-An-Api-Spec-Test\"},\"type\":\"aws_resource\"}}",
6+
"string": "{\"data\":{\"attributes\":{\"arn\":\"arn:aws:lambda:us-west-2:123456789012:function:my-function\"},\"type\":\"aws_resource\"}}",
77
"encoding": null
88
},
99
"headers": {
@@ -19,7 +19,7 @@
1919
},
2020
"response": {
2121
"body": {
22-
"string": "{\"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\"}}}",
22+
"string": "{\"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\"}}}",
2323
"encoding": null
2424
},
2525
"headers": {
@@ -32,7 +32,7 @@
3232
"message": "Created"
3333
}
3434
},
35-
"recorded_at": "Wed, 05 Mar 2025 15:30:09 GMT"
35+
"recorded_at": "Sun, 24 Aug 2025 22:41:50 GMT"
3636
}
3737
],
3838
"recorded_with": "VCR 6.0.0"

tests/scenarios/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)