From e60a9520a2de2bdb61324c62321b49ed9002d123 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 4 Apr 2025 16:56:25 +0000 Subject: [PATCH] Regenerate client from commit da94868e of spec repo --- .apigentools-info | 8 +-- ...ection-returns-Bad-Request-response.frozen | 2 +- ...onnection-returns-Bad-Request-response.yml | 2 +- ...-created-Action-Connection-response.frozen | 2 +- ...lly-created-Action-Connection-response.yml | 12 ++-- ...nnection-returns-Not-Found-response.frozen | 2 +- ...-Connection-returns-Not-Found-response.yml | 2 +- ...e-was-deleted-successfully-response.frozen | 1 + ...urce-was-deleted-successfully-response.yml | 61 +++++++++++++++++++ ...ection-returns-Bad-Request-response.frozen | 2 +- ...onnection-returns-Bad-Request-response.yml | 2 +- ...nnection-returns-Not-Found-response.frozen | 2 +- ...-Connection-returns-Not-Found-response.yml | 2 +- ...ully-get-Action-Connection-response.frozen | 2 +- ...ssfully-get-Action-Connection-response.yml | 4 +- ...ection-returns-Bad-Request-response.frozen | 2 +- ...onnection-returns-Bad-Request-response.yml | 2 +- ...nnection-returns-Not-Found-response.frozen | 2 +- ...-Connection-returns-Not-Found-response.yml | 2 +- ...-updated-Action-Connection-response.frozen | 2 +- ...lly-updated-Action-Connection-response.yml | 4 +- .../CreateActionConnection.rb | 2 +- .../DeleteActionConnection.rb | 5 +- .../DeleteActionConnection_2142905164.rb | 8 --- features/v2/action_connection.feature | 11 +--- features/v2/given.json | 2 +- 26 files changed, 99 insertions(+), 49 deletions(-) create mode 100644 cassettes/features/v2/action_connection/Delete-an-existing-Action-Connection-returns-The-resource-was-deleted-successfully-response.frozen create mode 100644 cassettes/features/v2/action_connection/Delete-an-existing-Action-Connection-returns-The-resource-was-deleted-successfully-response.yml delete mode 100644 examples/v2/action-connection/DeleteActionConnection_2142905164.rb diff --git a/.apigentools-info b/.apigentools-info index d29fb5b8388e..bde48cf05dfc 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:25.614589", - "spec_repo_commit": "73e22797" + "regenerated": "2025-04-04 16:55:51.112810", + "spec_repo_commit": "da94868e" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2025-04-04 12:49:25.630699", - "spec_repo_commit": "73e22797" + "regenerated": "2025-04-04 16:55:51.129680", + "spec_repo_commit": "da94868e" } } } \ No newline at end of file diff --git a/cassettes/features/v2/action_connection/Create-a-new-Action-Connection-returns-Bad-Request-response.frozen b/cassettes/features/v2/action_connection/Create-a-new-Action-Connection-returns-Bad-Request-response.frozen index 43f3dbf1ff42..653ba51ef7f5 100644 --- a/cassettes/features/v2/action_connection/Create-a-new-Action-Connection-returns-Bad-Request-response.frozen +++ b/cassettes/features/v2/action_connection/Create-a-new-Action-Connection-returns-Bad-Request-response.frozen @@ -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/cassettes/features/v2/action_connection/Create-a-new-Action-Connection-returns-Bad-Request-response.yml b/cassettes/features/v2/action_connection/Create-a-new-Action-Connection-returns-Bad-Request-response.yml index a6c78b83f570..e0c1c07b8a05 100644 --- a/cassettes/features/v2/action_connection/Create-a-new-Action-Connection-returns-Bad-Request-response.yml +++ b/cassettes/features/v2/action_connection/Create-a-new-Action-Connection-returns-Bad-Request-response.yml @@ -1,5 +1,5 @@ http_interactions: -- recorded_at: Mon, 06 Jan 2025 22:02:35 GMT +- recorded_at: Wed, 26 Mar 2025 20:24:59 GMT request: body: encoding: UTF-8 diff --git a/cassettes/features/v2/action_connection/Create-a-new-Action-Connection-returns-Successfully-created-Action-Connection-response.frozen b/cassettes/features/v2/action_connection/Create-a-new-Action-Connection-returns-Successfully-created-Action-Connection-response.frozen index e63d0f654bef..60f03f8f10dc 100644 --- a/cassettes/features/v2/action_connection/Create-a-new-Action-Connection-returns-Successfully-created-Action-Connection-response.frozen +++ b/cassettes/features/v2/action_connection/Create-a-new-Action-Connection-returns-Successfully-created-Action-Connection-response.frozen @@ -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/cassettes/features/v2/action_connection/Create-a-new-Action-Connection-returns-Successfully-created-Action-Connection-response.yml b/cassettes/features/v2/action_connection/Create-a-new-Action-Connection-returns-Successfully-created-Action-Connection-response.yml index bacb59119559..72fd5e2f2c0e 100644 --- a/cassettes/features/v2/action_connection/Create-a-new-Action-Connection-returns-Successfully-created-Action-Connection-response.yml +++ b/cassettes/features/v2/action_connection/Create-a-new-Action-Connection-returns-Successfully-created-Action-Connection-response.yml @@ -1,10 +1,10 @@ http_interactions: -- recorded_at: Mon, 06 Jan 2025 22:02:35 GMT +- recorded_at: Wed, 26 Mar 2025 20:24:59 GMT request: body: encoding: UTF-8 string: '{"data":{"attributes":{"integration":{"credentials":{"account_id":"123456789123","role":"MyRoleUpdated","type":"AWSAssumeRole"},"type":"AWS"},"name":"Cassette - Connection DELETE_ME"},"type":"action_connection"}}' + Connection testcreateanewactionconnectionreturnssuccessfullycreatedactionconnectionresponse1743020699"},"type":"action_connection"}}' headers: Accept: - application/json @@ -15,22 +15,22 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"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"}}}' + string: '{"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 status: code: 201 message: Created -- recorded_at: Mon, 06 Jan 2025 22:02:35 GMT +- recorded_at: Wed, 26 Mar 2025 20:24:59 GMT request: body: null headers: Accept: - '*/*' method: DELETE - uri: https://api.datadoghq.com/api/v2/actions/connections/db41b6cb-ef93-45bd-9857-548e9474737c + uri: https://api.datadoghq.com/api/v2/actions/connections/67aa2f61-266d-48d1-a1ee-cf7c3acc6b20 response: body: encoding: UTF-8 diff --git a/cassettes/features/v2/action_connection/Delete-an-existing-Action-Connection-returns-Not-Found-response.frozen b/cassettes/features/v2/action_connection/Delete-an-existing-Action-Connection-returns-Not-Found-response.frozen index 2dc54861f2fd..9cd9bc12bd6b 100644 --- a/cassettes/features/v2/action_connection/Delete-an-existing-Action-Connection-returns-Not-Found-response.frozen +++ b/cassettes/features/v2/action_connection/Delete-an-existing-Action-Connection-returns-Not-Found-response.frozen @@ -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/cassettes/features/v2/action_connection/Delete-an-existing-Action-Connection-returns-Not-Found-response.yml b/cassettes/features/v2/action_connection/Delete-an-existing-Action-Connection-returns-Not-Found-response.yml index b47374563cf0..cdf9be702f5e 100644 --- a/cassettes/features/v2/action_connection/Delete-an-existing-Action-Connection-returns-Not-Found-response.yml +++ b/cassettes/features/v2/action_connection/Delete-an-existing-Action-Connection-returns-Not-Found-response.yml @@ -1,5 +1,5 @@ http_interactions: -- recorded_at: Mon, 06 Jan 2025 22:02:36 GMT +- recorded_at: Wed, 26 Mar 2025 20:25:00 GMT request: body: null headers: diff --git a/cassettes/features/v2/action_connection/Delete-an-existing-Action-Connection-returns-The-resource-was-deleted-successfully-response.frozen b/cassettes/features/v2/action_connection/Delete-an-existing-Action-Connection-returns-The-resource-was-deleted-successfully-response.frozen new file mode 100644 index 000000000000..24d47f126f54 --- /dev/null +++ b/cassettes/features/v2/action_connection/Delete-an-existing-Action-Connection-returns-The-resource-was-deleted-successfully-response.frozen @@ -0,0 +1 @@ +2025-03-26T20:25:00.458Z \ No newline at end of file diff --git a/cassettes/features/v2/action_connection/Delete-an-existing-Action-Connection-returns-The-resource-was-deleted-successfully-response.yml b/cassettes/features/v2/action_connection/Delete-an-existing-Action-Connection-returns-The-resource-was-deleted-successfully-response.yml new file mode 100644 index 000000000000..6330225fd194 --- /dev/null +++ b/cassettes/features/v2/action_connection/Delete-an-existing-Action-Connection-returns-The-resource-was-deleted-successfully-response.yml @@ -0,0 +1,61 @@ +http_interactions: +- recorded_at: Wed, 26 Mar 2025 20:25:00 GMT + request: + body: + encoding: UTF-8 + string: '{"data":{"attributes":{"integration":{"credentials":{"account_id":"123456789123","role":"MyRole","type":"AWSAssumeRole"},"type":"AWS"},"name":"Cassette + Connection testdeleteanexistingactionconnectionreturnstheresourcewasdeletedsuccessfullyresponse1743020700"},"type":"action_connection"}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + method: POST + uri: https://api.datadoghq.com/api/v2/actions/connections + response: + body: + encoding: UTF-8 + string: '{"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 + status: + code: 201 + message: Created +- recorded_at: Wed, 26 Mar 2025 20:25:00 GMT + request: + body: null + headers: + Accept: + - '*/*' + method: DELETE + uri: https://api.datadoghq.com/api/v2/actions/connections/c3c3d83b-c495-4c1b-bb1d-592825d21db0 + response: + body: + encoding: UTF-8 + string: '' + headers: {} + status: + code: 204 + message: No Content +- recorded_at: Wed, 26 Mar 2025 20:25:00 GMT + request: + body: null + headers: + Accept: + - '*/*' + method: DELETE + uri: https://api.datadoghq.com/api/v2/actions/connections/c3c3d83b-c495-4c1b-bb1d-592825d21db0 + response: + body: + encoding: UTF-8 + string: '{"errors":[{"title":"Generic Error","detail":"error deleting connection: + rpc error: code = NotFound desc = connection not found"}]}' + headers: + Content-Type: + - application/vnd.api+json + status: + code: 404 + message: Not Found +recorded_with: VCR 6.0.0 diff --git a/cassettes/features/v2/action_connection/Get-an-existing-Action-Connection-returns-Bad-Request-response.frozen b/cassettes/features/v2/action_connection/Get-an-existing-Action-Connection-returns-Bad-Request-response.frozen index aa65c8678f07..b323866c7935 100644 --- a/cassettes/features/v2/action_connection/Get-an-existing-Action-Connection-returns-Bad-Request-response.frozen +++ b/cassettes/features/v2/action_connection/Get-an-existing-Action-Connection-returns-Bad-Request-response.frozen @@ -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/cassettes/features/v2/action_connection/Get-an-existing-Action-Connection-returns-Bad-Request-response.yml b/cassettes/features/v2/action_connection/Get-an-existing-Action-Connection-returns-Bad-Request-response.yml index 08b383355203..43f715f3a036 100644 --- a/cassettes/features/v2/action_connection/Get-an-existing-Action-Connection-returns-Bad-Request-response.yml +++ b/cassettes/features/v2/action_connection/Get-an-existing-Action-Connection-returns-Bad-Request-response.yml @@ -1,5 +1,5 @@ http_interactions: -- recorded_at: Mon, 06 Jan 2025 22:02:37 GMT +- recorded_at: Wed, 26 Mar 2025 20:25:01 GMT request: body: null headers: diff --git a/cassettes/features/v2/action_connection/Get-an-existing-Action-Connection-returns-Not-Found-response.frozen b/cassettes/features/v2/action_connection/Get-an-existing-Action-Connection-returns-Not-Found-response.frozen index b2ef949344a7..be36983c46d7 100644 --- a/cassettes/features/v2/action_connection/Get-an-existing-Action-Connection-returns-Not-Found-response.frozen +++ b/cassettes/features/v2/action_connection/Get-an-existing-Action-Connection-returns-Not-Found-response.frozen @@ -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/cassettes/features/v2/action_connection/Get-an-existing-Action-Connection-returns-Not-Found-response.yml b/cassettes/features/v2/action_connection/Get-an-existing-Action-Connection-returns-Not-Found-response.yml index 1163a24835ff..fe91e22b7748 100644 --- a/cassettes/features/v2/action_connection/Get-an-existing-Action-Connection-returns-Not-Found-response.yml +++ b/cassettes/features/v2/action_connection/Get-an-existing-Action-Connection-returns-Not-Found-response.yml @@ -1,5 +1,5 @@ http_interactions: -- recorded_at: Mon, 06 Jan 2025 22:02:37 GMT +- recorded_at: Wed, 26 Mar 2025 20:25:01 GMT request: body: null headers: diff --git a/cassettes/features/v2/action_connection/Get-an-existing-Action-Connection-returns-Successfully-get-Action-Connection-response.frozen b/cassettes/features/v2/action_connection/Get-an-existing-Action-Connection-returns-Successfully-get-Action-Connection-response.frozen index 4b2a54697d5d..9c5616fdf6cd 100644 --- a/cassettes/features/v2/action_connection/Get-an-existing-Action-Connection-returns-Successfully-get-Action-Connection-response.frozen +++ b/cassettes/features/v2/action_connection/Get-an-existing-Action-Connection-returns-Successfully-get-Action-Connection-response.frozen @@ -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/cassettes/features/v2/action_connection/Get-an-existing-Action-Connection-returns-Successfully-get-Action-Connection-response.yml b/cassettes/features/v2/action_connection/Get-an-existing-Action-Connection-returns-Successfully-get-Action-Connection-response.yml index a39817b43802..74830cae3410 100644 --- a/cassettes/features/v2/action_connection/Get-an-existing-Action-Connection-returns-Successfully-get-Action-Connection-response.yml +++ b/cassettes/features/v2/action_connection/Get-an-existing-Action-Connection-returns-Successfully-get-Action-Connection-response.yml @@ -1,5 +1,5 @@ http_interactions: -- recorded_at: Mon, 06 Jan 2025 22:02:37 GMT +- recorded_at: Wed, 26 Mar 2025 20:25:01 GMT request: body: null headers: @@ -10,7 +10,7 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"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 + string: '{"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: diff --git a/cassettes/features/v2/action_connection/Update-an-existing-Action-Connection-returns-Bad-Request-response.frozen b/cassettes/features/v2/action_connection/Update-an-existing-Action-Connection-returns-Bad-Request-response.frozen index fe27ab93ad5a..1c43067312a8 100644 --- a/cassettes/features/v2/action_connection/Update-an-existing-Action-Connection-returns-Bad-Request-response.frozen +++ b/cassettes/features/v2/action_connection/Update-an-existing-Action-Connection-returns-Bad-Request-response.frozen @@ -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/cassettes/features/v2/action_connection/Update-an-existing-Action-Connection-returns-Bad-Request-response.yml b/cassettes/features/v2/action_connection/Update-an-existing-Action-Connection-returns-Bad-Request-response.yml index a80ee525bc7f..dbd59cbe17e3 100644 --- a/cassettes/features/v2/action_connection/Update-an-existing-Action-Connection-returns-Bad-Request-response.yml +++ b/cassettes/features/v2/action_connection/Update-an-existing-Action-Connection-returns-Bad-Request-response.yml @@ -1,5 +1,5 @@ http_interactions: -- recorded_at: Mon, 06 Jan 2025 22:02:38 GMT +- recorded_at: Wed, 26 Mar 2025 20:25:01 GMT request: body: encoding: UTF-8 diff --git a/cassettes/features/v2/action_connection/Update-an-existing-Action-Connection-returns-Not-Found-response.frozen b/cassettes/features/v2/action_connection/Update-an-existing-Action-Connection-returns-Not-Found-response.frozen index c89c4afae655..e95caeaacc39 100644 --- a/cassettes/features/v2/action_connection/Update-an-existing-Action-Connection-returns-Not-Found-response.frozen +++ b/cassettes/features/v2/action_connection/Update-an-existing-Action-Connection-returns-Not-Found-response.frozen @@ -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/cassettes/features/v2/action_connection/Update-an-existing-Action-Connection-returns-Not-Found-response.yml b/cassettes/features/v2/action_connection/Update-an-existing-Action-Connection-returns-Not-Found-response.yml index dae17bab021a..fbe86fa22578 100644 --- a/cassettes/features/v2/action_connection/Update-an-existing-Action-Connection-returns-Not-Found-response.yml +++ b/cassettes/features/v2/action_connection/Update-an-existing-Action-Connection-returns-Not-Found-response.yml @@ -1,5 +1,5 @@ http_interactions: -- recorded_at: Mon, 06 Jan 2025 22:02:38 GMT +- recorded_at: Wed, 26 Mar 2025 20:25:01 GMT request: body: encoding: UTF-8 diff --git a/cassettes/features/v2/action_connection/Update-an-existing-Action-Connection-returns-Successfully-updated-Action-Connection-response.frozen b/cassettes/features/v2/action_connection/Update-an-existing-Action-Connection-returns-Successfully-updated-Action-Connection-response.frozen index b602ce06d7fe..9439445bd751 100644 --- a/cassettes/features/v2/action_connection/Update-an-existing-Action-Connection-returns-Successfully-updated-Action-Connection-response.frozen +++ b/cassettes/features/v2/action_connection/Update-an-existing-Action-Connection-returns-Successfully-updated-Action-Connection-response.frozen @@ -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/cassettes/features/v2/action_connection/Update-an-existing-Action-Connection-returns-Successfully-updated-Action-Connection-response.yml b/cassettes/features/v2/action_connection/Update-an-existing-Action-Connection-returns-Successfully-updated-Action-Connection-response.yml index b12f822450b4..17693ae0cc58 100644 --- a/cassettes/features/v2/action_connection/Update-an-existing-Action-Connection-returns-Successfully-updated-Action-Connection-response.yml +++ b/cassettes/features/v2/action_connection/Update-an-existing-Action-Connection-returns-Successfully-updated-Action-Connection-response.yml @@ -1,5 +1,5 @@ http_interactions: -- recorded_at: Mon, 06 Jan 2025 22:02:38 GMT +- recorded_at: Wed, 26 Mar 2025 20:25:01 GMT request: body: encoding: UTF-8 @@ -15,7 +15,7 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"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 + string: '{"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: diff --git a/examples/v2/action-connection/CreateActionConnection.rb b/examples/v2/action-connection/CreateActionConnection.rb index 5b0355e7d471..b242f639d601 100644 --- a/examples/v2/action-connection/CreateActionConnection.rb +++ b/examples/v2/action-connection/CreateActionConnection.rb @@ -7,7 +7,7 @@ data: DatadogAPIClient::V2::ActionConnectionData.new({ type: DatadogAPIClient::V2::ActionConnectionDataType::ACTION_CONNECTION, attributes: DatadogAPIClient::V2::ActionConnectionAttributes.new({ - name: "Cassette Connection DELETE_ME", + name: "Cassette Connection exampleactionconnection", integration: DatadogAPIClient::V2::AWSIntegration.new({ type: DatadogAPIClient::V2::AWSIntegrationType::AWS, credentials: DatadogAPIClient::V2::AWSAssumeRole.new({ diff --git a/examples/v2/action-connection/DeleteActionConnection.rb b/examples/v2/action-connection/DeleteActionConnection.rb index 850fc6068322..b44de63aff80 100644 --- a/examples/v2/action-connection/DeleteActionConnection.rb +++ b/examples/v2/action-connection/DeleteActionConnection.rb @@ -2,4 +2,7 @@ require "datadog_api_client" api_instance = DatadogAPIClient::V2::ActionConnectionAPI.new -api_instance.delete_action_connection("connection_id") + +# there is a valid "action_connection" in the system +ACTION_CONNECTION_DATA_ID = ENV["ACTION_CONNECTION_DATA_ID"] +api_instance.delete_action_connection(ACTION_CONNECTION_DATA_ID) diff --git a/examples/v2/action-connection/DeleteActionConnection_2142905164.rb b/examples/v2/action-connection/DeleteActionConnection_2142905164.rb deleted file mode 100644 index ab2ceba88b0a..000000000000 --- a/examples/v2/action-connection/DeleteActionConnection_2142905164.rb +++ /dev/null @@ -1,8 +0,0 @@ -# Delete an existing Action Connection returns "Successfully deleted Action Connection" response - -require "datadog_api_client" -api_instance = DatadogAPIClient::V2::ActionConnectionAPI.new - -# there is a valid "action_connection" in the system -ACTION_CONNECTION_DATA_ID = ENV["ACTION_CONNECTION_DATA_ID"] -api_instance.delete_action_connection(ACTION_CONNECTION_DATA_ID) diff --git a/features/v2/action_connection.feature b/features/v2/action_connection.feature index f379fc1a003e..3189007fbcd1 100644 --- a/features/v2/action_connection.feature +++ b/features/v2/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/features/v2/given.json b/features/v2/given.json index 58dfa331fa5f..3355eda9ed47 100644 --- a/features/v2/given.json +++ b/features/v2/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",