Skip to content

Commit 8dfdd83

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

File tree

6 files changed

+12
-41
lines changed

6 files changed

+12
-41
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:16.433113",
8-
"spec_repo_commit": "b25d7c85"
7+
"regenerated": "2025-03-26 20:17:01.005220",
8+
"spec_repo_commit": "125ab459"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-03-25 18:26:16.449884",
13-
"spec_repo_commit": "b25d7c85"
12+
"regenerated": "2025-03-26 20:17:01.021317",
13+
"spec_repo_commit": "125ab459"
1414
}
1515
}
1616
}

examples/v2/action-connection/CreateActionConnection.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static void main(String[] args) {
2727
.type(ActionConnectionDataType.ACTION_CONNECTION)
2828
.attributes(
2929
new ActionConnectionAttributes()
30-
.name("Cassette Connection DELETE_ME")
30+
.name("Cassette Connection exampleactionconnection")
3131
.integration(
3232
new ActionConnectionIntegration(
3333
new AWSIntegration()

examples/v2/action-connection/DeleteActionConnection.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ public static void main(String[] args) {
99
ApiClient defaultClient = ApiClient.getDefaultApiClient();
1010
ActionConnectionApi apiInstance = new ActionConnectionApi(defaultClient);
1111

12+
// there is a valid "action_connection" in the system
13+
String ACTION_CONNECTION_DATA_ID = System.getenv("ACTION_CONNECTION_DATA_ID");
14+
1215
try {
13-
apiInstance.deleteActionConnection("connection_id");
16+
apiInstance.deleteActionConnection(ACTION_CONNECTION_DATA_ID);
1417
} catch (ApiException e) {
1518
System.err.println("Exception when calling ActionConnectionApi#deleteActionConnection");
1619
System.err.println("Status code: " + e.getCode());

examples/v2/action-connection/DeleteActionConnection_2142905164.java

-25
This file was deleted.

src/test/resources/com/datadog/api/client/v2/api/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

src/test/resources/com/datadog/api/client/v2/api/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)