Skip to content

Commit

Permalink
Regenerate client from commit 89f9f50d of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Oct 31, 2023
1 parent fe83325 commit 9ef6db2
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2023-10-30 20:47:57.387992",
"spec_repo_commit": "98cfa2fd"
"regenerated": "2023-10-31 12:29:54.930344",
"spec_repo_commit": "89f9f50d"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2023-10-30 20:47:57.405469",
"spec_repo_commit": "98cfa2fd"
"regenerated": "2023-10-31 12:29:54.949289",
"spec_repo_commit": "89f9f50d"
}
}
}
1 change: 0 additions & 1 deletion examples/v1/aws-integration/CreateAWSAccount.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
account_id="123456789012",
account_specific_namespace_rules=dict(
auto_scaling=False,
opswork=False,
),
cspm_resource_collection_enabled=True,
excluded_regions=[
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2023-10-30T20:37:07.199Z
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
interactions:
- request:
body: '{"account_id":"123456789012","account_specific_namespace_rules":{"auto_scaling":false},"cspm_resource_collection_enabled":true,"excluded_regions":["us-east-1","us-west-2"],"filter_tags":["$KEY:$VALUE"],"host_tags":["$KEY:$VALUE"],"metrics_collection_enabled":false,"resource_collection_enabled":true,"role_name":"DatadogAWSIntegrationRole"}'
headers:
accept:
- application/json
content-type:
- application/json
method: POST
uri: https://api.datadoghq.com/api/v1/integration/aws
response:
body:
string: '{"external_id":"240b016c46fe4ceb95ac0232da138c88"}
'
headers:
content-type:
- application/json
status:
code: 200
message: OK
- request:
body: '{"account_id":"123456789012","role_name":"DatadogAWSIntegrationRole"}'
headers:
accept:
- application/json
content-type:
- application/json
method: DELETE
uri: https://api.datadoghq.com/api/v1/integration/aws
response:
body:
string: '{}
'
headers:
content-type:
- application/json
status:
code: 200
message: OK
version: 1
4 changes: 2 additions & 2 deletions tests/v1/features/aws_integration.feature
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ Feature: AWS Integration
When the request is sent
Then the response status is 409 Conflict Error

@generated @skip @team:DataDog/cloud-integrations
@team:DataDog/cloud-integrations
Scenario: Create an AWS integration returns "OK" response
Given new "CreateAWSAccount" request
And body with value {"account_id": "123456789012", "account_specific_namespace_rules": {"auto_scaling": false, "opswork": false}, "cspm_resource_collection_enabled": true, "excluded_regions": ["us-east-1", "us-west-2"], "filter_tags": ["$KEY:$VALUE"], "host_tags": ["$KEY:$VALUE"], "metrics_collection_enabled": false, "resource_collection_enabled": true, "role_name": "DatadogAWSIntegrationRole"}
And body with value {"account_id": "123456789012", "account_specific_namespace_rules": {"auto_scaling": false}, "cspm_resource_collection_enabled": true, "excluded_regions": ["us-east-1", "us-west-2"], "filter_tags": ["$KEY:$VALUE"], "host_tags": ["$KEY:$VALUE"], "metrics_collection_enabled": false, "resource_collection_enabled": true, "role_name": "DatadogAWSIntegrationRole"}
When the request is sent
Then the response status is 200 OK

Expand Down
8 changes: 7 additions & 1 deletion tests/v1/features/undo.json
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,13 @@
"tag": "AWS Integration",
"undo": {
"operationId": "DeleteAWSAccount",
"parameters": [],
"parameters": [
{
"name": "body",
"origin": "request",
"template": "{\"account_id\": \"{{account_id}}\", \"role_name\": \"{{role_name}}\"}"
}
],
"type": "unsafe"
}
},
Expand Down

0 comments on commit 9ef6db2

Please sign in to comment.