@@ -12,21 +12,21 @@ Feature: AWS Integration
12
12
@generated @skip @team:DataDog/cloud-integrations
13
13
Scenario : Create an AWS integration returns "Bad Request" response
14
14
Given new "CreateAWSAccount" request
15
- 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" }
15
+ 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" ], "extended_resource_collection_enabled" : true, " filter_tags" : ["$KEY:$VALUE" ], "host_tags" : ["$KEY:$VALUE" ], "metrics_collection_enabled" : false, "resource_collection_enabled" : true, "role_name" : "DatadogAWSIntegrationRole" }
16
16
When the request is sent
17
17
Then the response status is 400 Bad Request
18
18
19
19
@generated @skip @team:DataDog/cloud-integrations
20
20
Scenario : Create an AWS integration returns "Conflict Error" response
21
21
Given new "CreateAWSAccount" request
22
- 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" }
22
+ 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" ], "extended_resource_collection_enabled" : true, " filter_tags" : ["$KEY:$VALUE" ], "host_tags" : ["$KEY:$VALUE" ], "metrics_collection_enabled" : false, "resource_collection_enabled" : true, "role_name" : "DatadogAWSIntegrationRole" }
23
23
When the request is sent
24
24
Then the response status is 409 Conflict Error
25
25
26
26
@team:DataDog/cloud-integrations
27
27
Scenario : Create an AWS integration returns "OK" response
28
28
Given new "CreateAWSAccount" request
29
- And body with value {"account_id" : "{{ timestamp(" now") }}00" , "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" }
29
+ And body with value {"account_id" : "{{ timestamp(" now") }}00" , "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, "extended_resource_collection_enabled " : true, "role_name" : "DatadogAWSIntegrationRole" }
30
30
When the request is sent
31
31
Then the response status is 200 OK
32
32
@@ -97,14 +97,14 @@ Feature: AWS Integration
97
97
@generated @skip @team:DataDog/cloud-integrations
98
98
Scenario : Generate a new external ID returns "Bad Request" response
99
99
Given new "CreateNewAWSExternalID" request
100
- 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" }
100
+ 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" ], "extended_resource_collection_enabled" : true, " filter_tags" : ["$KEY:$VALUE" ], "host_tags" : ["$KEY:$VALUE" ], "metrics_collection_enabled" : false, "resource_collection_enabled" : true, "role_name" : "DatadogAWSIntegrationRole" }
101
101
When the request is sent
102
102
Then the response status is 400 Bad Request
103
103
104
104
@generated @skip @team:DataDog/cloud-integrations
105
105
Scenario : Generate a new external ID returns "OK" response
106
106
Given new "CreateNewAWSExternalID" request
107
- 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" }
107
+ 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" ], "extended_resource_collection_enabled" : true, " filter_tags" : ["$KEY:$VALUE" ], "host_tags" : ["$KEY:$VALUE" ], "metrics_collection_enabled" : false, "resource_collection_enabled" : true, "role_name" : "DatadogAWSIntegrationRole" }
108
108
When the request is sent
109
109
Then the response status is 200 OK
110
110
@@ -169,22 +169,22 @@ Feature: AWS Integration
169
169
@generated @skip @team:DataDog/cloud-integrations
170
170
Scenario : Update an AWS integration returns "Bad Request" response
171
171
Given new "UpdateAWSAccount" request
172
- 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" }
172
+ 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" ], "extended_resource_collection_enabled" : true, " filter_tags" : ["$KEY:$VALUE" ], "host_tags" : ["$KEY:$VALUE" ], "metrics_collection_enabled" : false, "resource_collection_enabled" : true, "role_name" : "DatadogAWSIntegrationRole" }
173
173
When the request is sent
174
174
Then the response status is 400 Bad Request
175
175
176
176
@generated @skip @team:DataDog/cloud-integrations
177
177
Scenario : Update an AWS integration returns "Conflict Error" response
178
178
Given new "UpdateAWSAccount" request
179
- 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" }
179
+ 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" ], "extended_resource_collection_enabled" : true, " filter_tags" : ["$KEY:$VALUE" ], "host_tags" : ["$KEY:$VALUE" ], "metrics_collection_enabled" : false, "resource_collection_enabled" : true, "role_name" : "DatadogAWSIntegrationRole" }
180
180
When the request is sent
181
181
Then the response status is 409 Conflict Error
182
182
183
183
@team:DataDog/cloud-integrations
184
184
Scenario : Update an AWS integration returns "OK" response
185
185
Given there is a valid "aws_account" in the system
186
186
And new "UpdateAWSAccount" request
187
- And body with value {"account_id" : "{{ timestamp(" now") }}00" , "account_specific_namespace_rules" : {"auto_scaling" : false}, "cspm_resource_collection_enabled" : false, "excluded_regions" : ["us-east-1" , "us-west-2" ], "filter_tags" : ["$KEY:$VALUE" ], "host_tags" : ["$KEY:$VALUE" ], "metrics_collection_enabled" : true, "resource_collection_enabled " : true, "role_name" : "DatadogAWSIntegrationRole" }
187
+ And body with value {"account_id" : "{{ timestamp(" now") }}00" , "account_specific_namespace_rules" : {"auto_scaling" : false}, "cspm_resource_collection_enabled" : false, "excluded_regions" : ["us-east-1" , "us-west-2" ], "filter_tags" : ["$KEY:$VALUE" ], "host_tags" : ["$KEY:$VALUE" ], "metrics_collection_enabled" : true, "extended_resource_collection_enabled " : true, "role_name" : "DatadogAWSIntegrationRole" }
188
188
And request contains "account_id" parameter with value "{{ timestamp(" now") }}00"
189
189
And request contains "role_name" parameter with value "DatadogAWSIntegrationRole"
190
190
When the request is sent
0 commit comments