Skip to content

Commit e07a760

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
[OnCall] replacing connection name with unique name (#2304)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 8ae967e commit e07a760

File tree

26 files changed

+99
-49
lines changed

26 files changed

+99
-49
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-04-04 12:49:25.614589",
8-
"spec_repo_commit": "73e22797"
7+
"regenerated": "2025-04-04 16:55:51.112810",
8+
"spec_repo_commit": "da94868e"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-04-04 12:49:25.630699",
13-
"spec_repo_commit": "73e22797"
12+
"regenerated": "2025-04-04 16:55:51.129680",
13+
"spec_repo_commit": "da94868e"
1414
}
1515
}
1616
}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-01-06T22:02:35.383Z
1+
2025-03-26T20:24:59.622Z

cassettes/features/v2/action_connection/Create-a-new-Action-Connection-returns-Bad-Request-response.yml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-01-06T22:02:35.598Z
1+
2025-03-26T20:24:59.727Z

cassettes/features/v2/action_connection/Create-a-new-Action-Connection-returns-Successfully-created-Action-Connection-response.yml

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-01-06T22:02:36.467Z
1+
2025-03-26T20:25:00.311Z

cassettes/features/v2/action_connection/Delete-an-existing-Action-Connection-returns-Not-Found-response.yml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2025-03-26T20:25:00.458Z

cassettes/features/v2/action_connection/Delete-an-existing-Action-Connection-returns-The-resource-was-deleted-successfully-response.yml

+61
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-01-06T22:02:37.403Z
1+
2025-03-26T20:25:01.150Z

cassettes/features/v2/action_connection/Get-an-existing-Action-Connection-returns-Bad-Request-response.yml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-01-06T22:02:37.563Z
1+
2025-03-26T20:25:01.247Z

cassettes/features/v2/action_connection/Get-an-existing-Action-Connection-returns-Not-Found-response.yml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-01-06T22:02:37.743Z
1+
2025-03-26T20:25:01.398Z

cassettes/features/v2/action_connection/Get-an-existing-Action-Connection-returns-Successfully-get-Action-Connection-response.yml

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-01-06T22:02:38.001Z
1+
2025-03-26T20:25:01.521Z

cassettes/features/v2/action_connection/Update-an-existing-Action-Connection-returns-Bad-Request-response.yml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-01-06T22:02:38.092Z
1+
2025-03-26T20:25:01.625Z

cassettes/features/v2/action_connection/Update-an-existing-Action-Connection-returns-Not-Found-response.yml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-01-06T22:02:38.186Z
1+
2025-03-26T20:25:01.719Z

cassettes/features/v2/action_connection/Update-an-existing-Action-Connection-returns-Successfully-updated-Action-Connection-response.yml

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/v2/action-connection/CreateActionConnection.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
data: DatadogAPIClient::V2::ActionConnectionData.new({
88
type: DatadogAPIClient::V2::ActionConnectionDataType::ACTION_CONNECTION,
99
attributes: DatadogAPIClient::V2::ActionConnectionAttributes.new({
10-
name: "Cassette Connection DELETE_ME",
10+
name: "Cassette Connection exampleactionconnection",
1111
integration: DatadogAPIClient::V2::AWSIntegration.new({
1212
type: DatadogAPIClient::V2::AWSIntegrationType::AWS,
1313
credentials: DatadogAPIClient::V2::AWSAssumeRole.new({

examples/v2/action-connection/DeleteActionConnection.rb

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@
22

33
require "datadog_api_client"
44
api_instance = DatadogAPIClient::V2::ActionConnectionAPI.new
5-
api_instance.delete_action_connection("connection_id")
5+
6+
# there is a valid "action_connection" in the system
7+
ACTION_CONNECTION_DATA_ID = ENV["ACTION_CONNECTION_DATA_ID"]
8+
api_instance.delete_action_connection(ACTION_CONNECTION_DATA_ID)

examples/v2/action-connection/DeleteActionConnection_2142905164.rb

-8
This file was deleted.

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

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)