Skip to content

Commit c05071f

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 125ab459 of spec repo
1 parent 0885056 commit c05071f

6 files changed

+11
-36
lines changed

.apigentools-info

+4-4
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": "2025-03-25 18:26:27.178711",
8-
"spec_repo_commit": "b25d7c85"
7+
"regenerated": "2025-03-26 20:17:00.910273",
8+
"spec_repo_commit": "125ab459"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-03-25 18:26:27.193950",
13-
"spec_repo_commit": "b25d7c85"
12+
"regenerated": "2025-03-26 20:17:00.926403",
13+
"spec_repo_commit": "125ab459"
1414
}
1515
}
1616
}

examples/v2_action-connection_CreateActionConnection.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ async fn main() {
2525
))),
2626
AWSIntegrationType::AWS,
2727
))),
28-
"Cassette Connection DELETE_ME".to_string(),
28+
"Cassette Connection exampleactionconnection".to_string(),
2929
),
3030
ActionConnectionDataType::ACTION_CONNECTION,
3131
));

examples/v2_action-connection_DeleteActionConnection.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ use datadog_api_client::datadogV2::api_action_connection::ActionConnectionAPI;
55

66
#[tokio::main]
77
async fn main() {
8+
// there is a valid "action_connection" in the system
9+
let action_connection_data_id = std::env::var("ACTION_CONNECTION_DATA_ID").unwrap();
810
let configuration = datadog::Configuration::new();
911
let api = ActionConnectionAPI::with_config(configuration);
1012
let resp = api
11-
.delete_action_connection("connection_id".to_string())
13+
.delete_action_connection(action_connection_data_id.clone())
1214
.await;
1315
if let Ok(value) = resp {
1416
println!("{:#?}", value);

examples/v2_action-connection_DeleteActionConnection_2142905164.rs

-20
This file was deleted.

tests/scenarios/features/v2/action_connection.feature

+2-9
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Feature: Action Connection
2424
@team:DataDog/workflow-automation-dev
2525
Scenario: Create a new Action Connection returns "Successfully created Action Connection" response
2626
Given new "CreateActionConnection" request
27-
And body with value {"data":{"type":"action_connection","attributes":{"name":"Cassette Connection DELETE_ME","integration":{"type":"AWS","credentials":{"type":"AWSAssumeRole","role":"MyRoleUpdated","account_id":"123456789123"}}}}}
27+
And body with value {"data":{"type":"action_connection","attributes":{"name":"Cassette Connection {{ unique_lower_alnum }}","integration":{"type":"AWS","credentials":{"type":"AWSAssumeRole","role":"MyRoleUpdated","account_id":"123456789123"}}}}}
2828
When the request is sent
2929
Then the response status is 201 Successfully created Action Connection
3030

@@ -36,20 +36,13 @@ Feature: Action Connection
3636
Then the response status is 404 Not Found
3737

3838
@team:DataDog/workflow-automation-dev
39-
Scenario: Delete an existing Action Connection returns "Successfully deleted Action Connection" response
39+
Scenario: Delete an existing Action Connection returns "The resource was deleted successfully." response
4040
Given there is a valid "action_connection" in the system
4141
And new "DeleteActionConnection" request
4242
And request contains "connection_id" parameter from "action_connection.data.id"
4343
When the request is sent
4444
Then the response status is 204 The resource was deleted successfully.
4545

46-
@generated @skip @team:DataDog/workflow-automation-dev
47-
Scenario: Delete an existing Action Connection returns "The resource was deleted successfully." response
48-
Given new "DeleteActionConnection" request
49-
And request contains "connection_id" parameter from "REPLACE.ME"
50-
When the request is sent
51-
Then the response status is 204 The resource was deleted successfully.
52-
5346
@team:DataDog/workflow-automation-dev
5447
Scenario: Get an existing Action Connection returns "Bad Request" response
5548
Given new "GetActionConnection" request

tests/scenarios/features/v2/given.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"parameters": [
44
{
55
"name": "body",
6-
"value": "{\n \"data\": {\n \"type\": \"action_connection\",\n \"attributes\": {\n \"name\": \"Cassette Connection DELETE\",\n \"integration\": {\n \"type\": \"AWS\",\n \"credentials\": {\n \"type\": \"AWSAssumeRole\",\n \"role\": \"MyRole\",\n \"account_id\": \"123456789123\"\n }\n }\n }\n }\n}"
6+
"value": "{\n \"data\": {\n \"type\": \"action_connection\",\n \"attributes\": {\n \"name\": \"Cassette Connection {{ unique_lower_alnum }}\",\n \"integration\": {\n \"type\": \"AWS\",\n \"credentials\": {\n \"type\": \"AWSAssumeRole\",\n \"role\": \"MyRole\",\n \"account_id\": \"123456789123\"\n }\n }\n }\n }\n}"
77
}
88
],
99
"step": "there is a valid \"action_connection\" in the system",

0 commit comments

Comments
 (0)