@@ -72,10 +72,11 @@ Feature: AWS Integration
7272 When the request is sent
7373 Then the response status is 409 Conflict Error
7474
75- @generated @skip @ team:DataDog/cloud-integrations
75+ @team:DataDog/cloud-integrations
7676 Scenario : Delete an AWS integration returns "OK" response
77- Given new "DeleteAWSAccount" request
78- And body with value {"account_id" : "123456789012" , "role_name" : "DatadogAWSIntegrationRole" }
77+ Given there is a valid "aws_account" in the system
78+ And new "DeleteAWSAccount" request
79+ And body with value {"account_id" : "{{ timestamp(" now") }}00" , "role_name" : "DatadogAWSIntegrationRole" }
7980 When the request is sent
8081 Then the response status is 200 OK
8182
@@ -179,11 +180,12 @@ Feature: AWS Integration
179180 When the request is sent
180181 Then the response status is 409 Conflict Error
181182
182- @replay-only @skip-typescript @ team:DataDog/cloud-integrations
183+ @team:DataDog/cloud-integrations
183184 Scenario : Update an AWS integration returns "OK" response
184- Given new "UpdateAWSAccount" request
185- 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" : "datadog-role" }
186- And request contains "account_id" parameter with value "123456789012"
187- And request contains "role_name" parameter with value "datadog-role"
185+ Given there is a valid "aws_account" in the system
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" }
188+ And request contains "account_id" parameter with value "{{ timestamp(" now") }}00"
189+ And request contains "role_name" parameter with value "DatadogAWSIntegrationRole"
188190 When the request is sent
189191 Then the response status is 200 OK
0 commit comments