From 6535fa509992001e56d0a35c03d67321b37149bb Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 4 Apr 2025 16:57:43 +0000 Subject: [PATCH] Regenerate client from commit da94868e of spec repo --- .apigentools-info | 8 +- .../CreateActionConnection.java | 2 +- .../DeleteActionConnection.java | 5 +- .../DeleteActionConnection_2142905164.java | 25 ------ ...ection_returns_Bad_Request_response.freeze | 2 +- ..._created_Action_Connection_response.freeze | 2 +- ...ly_created_Action_Connection_response.json | 10 +-- ...nnection_returns_Not_Found_response.freeze | 2 +- ...e_was_deleted_successfully_response.freeze | 1 + ...rce_was_deleted_successfully_response.json | 79 +++++++++++++++++++ ...ection_returns_Bad_Request_response.freeze | 2 +- ...nnection_returns_Not_Found_response.freeze | 2 +- ...ully_get_Action_Connection_response.freeze | 2 +- ...sfully_get_Action_Connection_response.json | 2 +- ...ection_returns_Bad_Request_response.freeze | 2 +- ...nnection_returns_Not_Found_response.freeze | 2 +- ..._updated_Action_Connection_response.freeze | 2 +- ...ly_updated_Action_Connection_response.json | 2 +- .../client/v2/api/action_connection.feature | 11 +-- .../com/datadog/api/client/v2/api/given.json | 2 +- 20 files changed, 108 insertions(+), 57 deletions(-) delete mode 100644 examples/v2/action-connection/DeleteActionConnection_2142905164.java create mode 100644 src/test/resources/cassettes/features/v2/Delete_an_existing_Action_Connection_returns_The_resource_was_deleted_successfully_response.freeze create mode 100644 src/test/resources/cassettes/features/v2/Delete_an_existing_Action_Connection_returns_The_resource_was_deleted_successfully_response.json diff --git a/.apigentools-info b/.apigentools-info index 03e263bf479..21473e9d43a 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2025-04-04 12:49:29.243722", - "spec_repo_commit": "73e22797" + "regenerated": "2025-04-04 16:55:47.238517", + "spec_repo_commit": "da94868e" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2025-04-04 12:49:29.261107", - "spec_repo_commit": "73e22797" + "regenerated": "2025-04-04 16:55:47.254022", + "spec_repo_commit": "da94868e" } } } \ No newline at end of file diff --git a/examples/v2/action-connection/CreateActionConnection.java b/examples/v2/action-connection/CreateActionConnection.java index ba3ebb320f5..dd3c0e17a85 100644 --- a/examples/v2/action-connection/CreateActionConnection.java +++ b/examples/v2/action-connection/CreateActionConnection.java @@ -27,7 +27,7 @@ public static void main(String[] args) { .type(ActionConnectionDataType.ACTION_CONNECTION) .attributes( new ActionConnectionAttributes() - .name("Cassette Connection DELETE_ME") + .name("Cassette Connection exampleactionconnection") .integration( new ActionConnectionIntegration( new AWSIntegration() diff --git a/examples/v2/action-connection/DeleteActionConnection.java b/examples/v2/action-connection/DeleteActionConnection.java index 82c29b140fe..6f4055325f4 100644 --- a/examples/v2/action-connection/DeleteActionConnection.java +++ b/examples/v2/action-connection/DeleteActionConnection.java @@ -9,8 +9,11 @@ public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); ActionConnectionApi apiInstance = new ActionConnectionApi(defaultClient); + // there is a valid "action_connection" in the system + String ACTION_CONNECTION_DATA_ID = System.getenv("ACTION_CONNECTION_DATA_ID"); + try { - apiInstance.deleteActionConnection("connection_id"); + apiInstance.deleteActionConnection(ACTION_CONNECTION_DATA_ID); } catch (ApiException e) { System.err.println("Exception when calling ActionConnectionApi#deleteActionConnection"); System.err.println("Status code: " + e.getCode()); diff --git a/examples/v2/action-connection/DeleteActionConnection_2142905164.java b/examples/v2/action-connection/DeleteActionConnection_2142905164.java deleted file mode 100644 index 36251908ae8..00000000000 --- a/examples/v2/action-connection/DeleteActionConnection_2142905164.java +++ /dev/null @@ -1,25 +0,0 @@ -// Delete an existing Action Connection returns "Successfully deleted Action Connection" response - -import com.datadog.api.client.ApiClient; -import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.ActionConnectionApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = ApiClient.getDefaultApiClient(); - ActionConnectionApi apiInstance = new ActionConnectionApi(defaultClient); - - // there is a valid "action_connection" in the system - String ACTION_CONNECTION_DATA_ID = System.getenv("ACTION_CONNECTION_DATA_ID"); - - try { - apiInstance.deleteActionConnection(ACTION_CONNECTION_DATA_ID); - } catch (ApiException e) { - System.err.println("Exception when calling ActionConnectionApi#deleteActionConnection"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} diff --git a/src/test/resources/cassettes/features/v2/Create_a_new_Action_Connection_returns_Bad_Request_response.freeze b/src/test/resources/cassettes/features/v2/Create_a_new_Action_Connection_returns_Bad_Request_response.freeze index 43f3dbf1ff4..653ba51ef7f 100644 --- a/src/test/resources/cassettes/features/v2/Create_a_new_Action_Connection_returns_Bad_Request_response.freeze +++ b/src/test/resources/cassettes/features/v2/Create_a_new_Action_Connection_returns_Bad_Request_response.freeze @@ -1 +1 @@ -2025-01-06T22:02:35.383Z \ No newline at end of file +2025-03-26T20:24:59.622Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Create_a_new_Action_Connection_returns_Successfully_created_Action_Connection_response.freeze b/src/test/resources/cassettes/features/v2/Create_a_new_Action_Connection_returns_Successfully_created_Action_Connection_response.freeze index e63d0f654be..60f03f8f10d 100644 --- a/src/test/resources/cassettes/features/v2/Create_a_new_Action_Connection_returns_Successfully_created_Action_Connection_response.freeze +++ b/src/test/resources/cassettes/features/v2/Create_a_new_Action_Connection_returns_Successfully_created_Action_Connection_response.freeze @@ -1 +1 @@ -2025-01-06T22:02:35.598Z \ No newline at end of file +2025-03-26T20:24:59.727Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Create_a_new_Action_Connection_returns_Successfully_created_Action_Connection_response.json b/src/test/resources/cassettes/features/v2/Create_a_new_Action_Connection_returns_Successfully_created_Action_Connection_response.json index b5ec7e2c469..dca4ceff029 100644 --- a/src/test/resources/cassettes/features/v2/Create_a_new_Action_Connection_returns_Successfully_created_Action_Connection_response.json +++ b/src/test/resources/cassettes/features/v2/Create_a_new_Action_Connection_returns_Successfully_created_Action_Connection_response.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"data\":{\"attributes\":{\"integration\":{\"credentials\":{\"account_id\":\"123456789123\",\"role\":\"MyRoleUpdated\",\"type\":\"AWSAssumeRole\"},\"type\":\"AWS\"},\"name\":\"Cassette Connection DELETE_ME\"},\"type\":\"action_connection\"}}" + "json": "{\"data\":{\"attributes\":{\"integration\":{\"credentials\":{\"account_id\":\"123456789123\",\"role\":\"MyRoleUpdated\",\"type\":\"AWSAssumeRole\"},\"type\":\"AWS\"},\"name\":\"Cassette Connection testcreateanewactionconnectionreturnssuccessfullycreatedactionconnectionresponse1743020699\"},\"type\":\"action_connection\"}}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"db41b6cb-ef93-45bd-9857-548e9474737c\",\"type\":\"action_connection\",\"attributes\":{\"integration\":{\"credentials\":{\"account_id\":\"123456789123\",\"role\":\"MyRoleUpdated\",\"external_id\":\"c6f62d439f14423b963e4dd4246af4a7\",\"principal_id\":\"464622532012\",\"type\":\"AWSAssumeRole\"},\"type\":\"AWS\"},\"name\":\"Cassette Connection DELETE_ME\"}}}", + "body": "{\"data\":{\"id\":\"67aa2f61-266d-48d1-a1ee-cf7c3acc6b20\",\"type\":\"action_connection\",\"attributes\":{\"integration\":{\"credentials\":{\"account_id\":\"123456789123\",\"external_id\":\"70f4660c99684420821b0c13a67eb4d1\",\"principal_id\":\"464622532012\",\"role\":\"MyRoleUpdated\",\"type\":\"AWSAssumeRole\"},\"type\":\"AWS\"},\"name\":\"Cassette Connection testcreateanewactionconnectionreturnssuccessfullycreatedactionconnectionresponse1743020699\"}}}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -27,13 +27,13 @@ "timeToLive": { "unlimited": true }, - "id": "143d1c35-6301-e638-823f-d266922b4a2b" + "id": "04556392-bb7b-98ed-b374-d36633910050" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v2/actions/connections/db41b6cb-ef93-45bd-9857-548e9474737c", + "path": "/api/v2/actions/connections/67aa2f61-266d-48d1-a1ee-cf7c3acc6b20", "keepAlive": false, "secure": true }, @@ -48,6 +48,6 @@ "timeToLive": { "unlimited": true }, - "id": "bf4a6792-05b2-4047-13ab-b319f5aac56c" + "id": "7561c857-b479-1fb9-a517-18620d730ba3" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Delete_an_existing_Action_Connection_returns_Not_Found_response.freeze b/src/test/resources/cassettes/features/v2/Delete_an_existing_Action_Connection_returns_Not_Found_response.freeze index 2dc54861f2f..9cd9bc12bd6 100644 --- a/src/test/resources/cassettes/features/v2/Delete_an_existing_Action_Connection_returns_Not_Found_response.freeze +++ b/src/test/resources/cassettes/features/v2/Delete_an_existing_Action_Connection_returns_Not_Found_response.freeze @@ -1 +1 @@ -2025-01-06T22:02:36.467Z \ No newline at end of file +2025-03-26T20:25:00.311Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Delete_an_existing_Action_Connection_returns_The_resource_was_deleted_successfully_response.freeze b/src/test/resources/cassettes/features/v2/Delete_an_existing_Action_Connection_returns_The_resource_was_deleted_successfully_response.freeze new file mode 100644 index 00000000000..24d47f126f5 --- /dev/null +++ b/src/test/resources/cassettes/features/v2/Delete_an_existing_Action_Connection_returns_The_resource_was_deleted_successfully_response.freeze @@ -0,0 +1 @@ +2025-03-26T20:25:00.458Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Delete_an_existing_Action_Connection_returns_The_resource_was_deleted_successfully_response.json b/src/test/resources/cassettes/features/v2/Delete_an_existing_Action_Connection_returns_The_resource_was_deleted_successfully_response.json new file mode 100644 index 00000000000..3618e11d7a9 --- /dev/null +++ b/src/test/resources/cassettes/features/v2/Delete_an_existing_Action_Connection_returns_The_resource_was_deleted_successfully_response.json @@ -0,0 +1,79 @@ +[ + { + "httpRequest": { + "body": { + "type": "JSON", + "json": "{\"data\":{\"attributes\":{\"integration\":{\"credentials\":{\"account_id\":\"123456789123\",\"role\":\"MyRole\",\"type\":\"AWSAssumeRole\"},\"type\":\"AWS\"},\"name\":\"Cassette Connection testdeleteanexistingactionconnectionreturnstheresourcewasdeletedsuccessfullyresponse1743020700\"},\"type\":\"action_connection\"}}" + }, + "headers": {}, + "method": "POST", + "path": "/api/v2/actions/connections", + "keepAlive": false, + "secure": true + }, + "httpResponse": { + "body": "{\"data\":{\"id\":\"c3c3d83b-c495-4c1b-bb1d-592825d21db0\",\"type\":\"action_connection\",\"attributes\":{\"integration\":{\"credentials\":{\"account_id\":\"123456789123\",\"external_id\":\"6183670d1ceb4278808cf2df9aa03a07\",\"principal_id\":\"464622532012\",\"role\":\"MyRole\",\"type\":\"AWSAssumeRole\"},\"type\":\"AWS\"},\"name\":\"Cassette Connection testdeleteanexistingactionconnectionreturnstheresourcewasdeletedsuccessfullyresponse1743020700\"}}}", + "headers": { + "Content-Type": [ + "application/vnd.api+json" + ] + }, + "statusCode": 201, + "reasonPhrase": "Created" + }, + "times": { + "remainingTimes": 1 + }, + "timeToLive": { + "unlimited": true + }, + "id": "d622b652-bd44-a22d-1527-2fe726a42d5a" + }, + { + "httpRequest": { + "headers": {}, + "method": "DELETE", + "path": "/api/v2/actions/connections/c3c3d83b-c495-4c1b-bb1d-592825d21db0", + "keepAlive": false, + "secure": true + }, + "httpResponse": { + "headers": {}, + "statusCode": 204, + "reasonPhrase": "No Content" + }, + "times": { + "remainingTimes": 1 + }, + "timeToLive": { + "unlimited": true + }, + "id": "67294d8d-49a4-c8c6-e910-111ce63e8aeb" + }, + { + "httpRequest": { + "headers": {}, + "method": "DELETE", + "path": "/api/v2/actions/connections/c3c3d83b-c495-4c1b-bb1d-592825d21db0", + "keepAlive": false, + "secure": true + }, + "httpResponse": { + "body": "{\"errors\":[{\"title\":\"Generic Error\",\"detail\":\"error deleting connection: rpc error: code = NotFound desc = connection not found\"}]}", + "headers": { + "Content-Type": [ + "application/vnd.api+json" + ] + }, + "statusCode": 404, + "reasonPhrase": "Not Found" + }, + "times": { + "remainingTimes": 1 + }, + "timeToLive": { + "unlimited": true + }, + "id": "67294d8d-49a4-c8c6-e910-111ce63e8aec" + } +] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_an_existing_Action_Connection_returns_Bad_Request_response.freeze b/src/test/resources/cassettes/features/v2/Get_an_existing_Action_Connection_returns_Bad_Request_response.freeze index aa65c8678f0..b323866c793 100644 --- a/src/test/resources/cassettes/features/v2/Get_an_existing_Action_Connection_returns_Bad_Request_response.freeze +++ b/src/test/resources/cassettes/features/v2/Get_an_existing_Action_Connection_returns_Bad_Request_response.freeze @@ -1 +1 @@ -2025-01-06T22:02:37.403Z \ No newline at end of file +2025-03-26T20:25:01.150Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_an_existing_Action_Connection_returns_Not_Found_response.freeze b/src/test/resources/cassettes/features/v2/Get_an_existing_Action_Connection_returns_Not_Found_response.freeze index b2ef949344a..be36983c46d 100644 --- a/src/test/resources/cassettes/features/v2/Get_an_existing_Action_Connection_returns_Not_Found_response.freeze +++ b/src/test/resources/cassettes/features/v2/Get_an_existing_Action_Connection_returns_Not_Found_response.freeze @@ -1 +1 @@ -2025-01-06T22:02:37.563Z \ No newline at end of file +2025-03-26T20:25:01.247Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_an_existing_Action_Connection_returns_Successfully_get_Action_Connection_response.freeze b/src/test/resources/cassettes/features/v2/Get_an_existing_Action_Connection_returns_Successfully_get_Action_Connection_response.freeze index 4b2a54697d5..9c5616fdf6c 100644 --- a/src/test/resources/cassettes/features/v2/Get_an_existing_Action_Connection_returns_Successfully_get_Action_Connection_response.freeze +++ b/src/test/resources/cassettes/features/v2/Get_an_existing_Action_Connection_returns_Successfully_get_Action_Connection_response.freeze @@ -1 +1 @@ -2025-01-06T22:02:37.743Z \ No newline at end of file +2025-03-26T20:25:01.398Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_an_existing_Action_Connection_returns_Successfully_get_Action_Connection_response.json b/src/test/resources/cassettes/features/v2/Get_an_existing_Action_Connection_returns_Successfully_get_Action_Connection_response.json index 3a39ae7db38..5299bd1221e 100644 --- a/src/test/resources/cassettes/features/v2/Get_an_existing_Action_Connection_returns_Successfully_get_Action_Connection_response.json +++ b/src/test/resources/cassettes/features/v2/Get_an_existing_Action_Connection_returns_Successfully_get_Action_Connection_response.json @@ -8,7 +8,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"cb460d51-3c88-4e87-adac-d47131d0423d\",\"type\":\"action_connection\",\"attributes\":{\"integration\":{\"credentials\":{\"account_id\":\"123456789123\",\"role\":\"MyRoleUpdated\",\"external_id\":\"909b33b1242748cfbef42f20011e2fa0\",\"principal_id\":\"464622532012\",\"type\":\"AWSAssumeRole\"},\"type\":\"AWS\"},\"name\":\"Cassette Connection\"}}}", + "body": "{\"data\":{\"id\":\"cb460d51-3c88-4e87-adac-d47131d0423d\",\"type\":\"action_connection\",\"attributes\":{\"integration\":{\"credentials\":{\"account_id\":\"123456789123\",\"external_id\":\"909b33b1242748cfbef42f20011e2fa0\",\"principal_id\":\"464622532012\",\"role\":\"MyRoleUpdated\",\"type\":\"AWSAssumeRole\"},\"type\":\"AWS\"},\"name\":\"Cassette Connection\"}}}", "headers": { "Content-Type": [ "application/vnd.api+json" diff --git a/src/test/resources/cassettes/features/v2/Update_an_existing_Action_Connection_returns_Bad_Request_response.freeze b/src/test/resources/cassettes/features/v2/Update_an_existing_Action_Connection_returns_Bad_Request_response.freeze index fe27ab93ad5..1c43067312a 100644 --- a/src/test/resources/cassettes/features/v2/Update_an_existing_Action_Connection_returns_Bad_Request_response.freeze +++ b/src/test/resources/cassettes/features/v2/Update_an_existing_Action_Connection_returns_Bad_Request_response.freeze @@ -1 +1 @@ -2025-01-06T22:02:38.001Z \ No newline at end of file +2025-03-26T20:25:01.521Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_an_existing_Action_Connection_returns_Not_Found_response.freeze b/src/test/resources/cassettes/features/v2/Update_an_existing_Action_Connection_returns_Not_Found_response.freeze index c89c4afae65..e95caeaacc3 100644 --- a/src/test/resources/cassettes/features/v2/Update_an_existing_Action_Connection_returns_Not_Found_response.freeze +++ b/src/test/resources/cassettes/features/v2/Update_an_existing_Action_Connection_returns_Not_Found_response.freeze @@ -1 +1 @@ -2025-01-06T22:02:38.092Z \ No newline at end of file +2025-03-26T20:25:01.625Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_an_existing_Action_Connection_returns_Successfully_updated_Action_Connection_response.freeze b/src/test/resources/cassettes/features/v2/Update_an_existing_Action_Connection_returns_Successfully_updated_Action_Connection_response.freeze index b602ce06d7f..9439445bd75 100644 --- a/src/test/resources/cassettes/features/v2/Update_an_existing_Action_Connection_returns_Successfully_updated_Action_Connection_response.freeze +++ b/src/test/resources/cassettes/features/v2/Update_an_existing_Action_Connection_returns_Successfully_updated_Action_Connection_response.freeze @@ -1 +1 @@ -2025-01-06T22:02:38.186Z \ No newline at end of file +2025-03-26T20:25:01.719Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_an_existing_Action_Connection_returns_Successfully_updated_Action_Connection_response.json b/src/test/resources/cassettes/features/v2/Update_an_existing_Action_Connection_returns_Successfully_updated_Action_Connection_response.json index 16b83c93f46..4c1996a94d9 100644 --- a/src/test/resources/cassettes/features/v2/Update_an_existing_Action_Connection_returns_Successfully_updated_Action_Connection_response.json +++ b/src/test/resources/cassettes/features/v2/Update_an_existing_Action_Connection_returns_Successfully_updated_Action_Connection_response.json @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"cb460d51-3c88-4e87-adac-d47131d0423d\",\"type\":\"action_connection\",\"attributes\":{\"integration\":{\"credentials\":{\"account_id\":\"123456789123\",\"role\":\"MyRoleUpdated\",\"external_id\":\"909b33b1242748cfbef42f20011e2fa0\",\"principal_id\":\"464622532012\",\"type\":\"AWSAssumeRole\"},\"type\":\"AWS\"},\"name\":\"Cassette Connection\"}}}", + "body": "{\"data\":{\"id\":\"cb460d51-3c88-4e87-adac-d47131d0423d\",\"type\":\"action_connection\",\"attributes\":{\"integration\":{\"credentials\":{\"account_id\":\"123456789123\",\"external_id\":\"909b33b1242748cfbef42f20011e2fa0\",\"principal_id\":\"464622532012\",\"role\":\"MyRoleUpdated\",\"type\":\"AWSAssumeRole\"},\"type\":\"AWS\"},\"name\":\"Cassette Connection\"}}}", "headers": { "Content-Type": [ "application/vnd.api+json" diff --git a/src/test/resources/com/datadog/api/client/v2/api/action_connection.feature b/src/test/resources/com/datadog/api/client/v2/api/action_connection.feature index f379fc1a003..3189007fbcd 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/action_connection.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/action_connection.feature @@ -24,7 +24,7 @@ Feature: Action Connection @team:DataDog/workflow-automation-dev Scenario: Create a new Action Connection returns "Successfully created Action Connection" response Given new "CreateActionConnection" request - 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"}}}}} + 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"}}}}} When the request is sent Then the response status is 201 Successfully created Action Connection @@ -36,20 +36,13 @@ Feature: Action Connection Then the response status is 404 Not Found @team:DataDog/workflow-automation-dev - Scenario: Delete an existing Action Connection returns "Successfully deleted Action Connection" response + Scenario: Delete an existing Action Connection returns "The resource was deleted successfully." response Given there is a valid "action_connection" in the system And new "DeleteActionConnection" request And request contains "connection_id" parameter from "action_connection.data.id" When the request is sent Then the response status is 204 The resource was deleted successfully. - @generated @skip @team:DataDog/workflow-automation-dev - Scenario: Delete an existing Action Connection returns "The resource was deleted successfully." response - Given new "DeleteActionConnection" request - And request contains "connection_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 204 The resource was deleted successfully. - @team:DataDog/workflow-automation-dev Scenario: Get an existing Action Connection returns "Bad Request" response Given new "GetActionConnection" request diff --git a/src/test/resources/com/datadog/api/client/v2/api/given.json b/src/test/resources/com/datadog/api/client/v2/api/given.json index 58dfa331fa5..3355eda9ed4 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/given.json +++ b/src/test/resources/com/datadog/api/client/v2/api/given.json @@ -3,7 +3,7 @@ "parameters": [ { "name": "body", - "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}" + "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}" } ], "step": "there is a valid \"action_connection\" in the system",