@@ -8,15 +8,31 @@ Feature: Storage Management
88 Given a valid "apiKeyAuth" key in the system
99 And a valid "appKeyAuth" key in the system
1010 And an instance of "StorageManagement" API
11- And new "UpsertSyncConfig" request
12- And body with value {"data" : {"attributes" : {"aws" : {"aws_account_id" : "123456789012" , "destination_bucket_name" : "my-inventory-bucket" , "destination_bucket_region" : "us-east-1" , "destination_prefix" : "logs/" }, "azure" : {"client_id" : "11111111-1111-1111-1111-111111111111" , "container" : "inventory-container" , "resource_group" : "my-resource-group" , "storage_account" : "mystorageaccount" , "subscription_id" : "33333333-3333-3333-3333-333333333333" , "tenant_id" : "22222222-2222-2222-2222-222222222222" }, "gcp" : {"destination_bucket_name" : "my-inventory-reports" , "project_id" : "my-gcp-project" , "service_account_email" : "reader@my-gcp-project.iam.gserviceaccount.com" , "source_bucket_name" : "my-monitored-bucket" }}, "id" : "aws" , "type" : "cloud_provider" }}
11+
12+ @generated @skip @team:DataDog/storage-management
13+ Scenario : Delete a Storage Management configuration returns "No Content" response
14+ Given new "DeleteSyncConfig" request
15+ And request contains "id" parameter from "REPLACE.ME"
16+ When the request is sent
17+ Then the response status is 204 No Content
18+
19+ @generated @skip @team:DataDog/storage-management
20+ Scenario : Delete a Storage Management configuration returns "Not Found" response
21+ Given new "DeleteSyncConfig" request
22+ And request contains "id" parameter from "REPLACE.ME"
23+ When the request is sent
24+ Then the response status is 404 Not Found
1325
1426 @generated @skip @team:DataDog/storage-management
1527 Scenario : Enable Storage Management for a bucket returns "Bad Request" response
28+ Given new "UpsertSyncConfig" request
29+ And body with value {"data" : {"attributes" : {"aws" : {"aws_account_id" : "123456789012" , "destination_bucket_name" : "my-inventory-bucket" , "destination_bucket_region" : "us-east-1" , "destination_prefix" : "logs/" }, "azure" : {"client_id" : "11111111-1111-1111-1111-111111111111" , "container" : "inventory-container" , "resource_group" : "my-resource-group" , "storage_account" : "mystorageaccount" , "subscription_id" : "33333333-3333-3333-3333-333333333333" , "tenant_id" : "22222222-2222-2222-2222-222222222222" }, "gcp" : {"destination_bucket_name" : "my-inventory-reports" , "project_id" : "my-gcp-project" , "service_account_email" : "reader@my-gcp-project.iam.gserviceaccount.com" , "source_bucket_name" : "my-monitored-bucket" }}, "id" : "aws" , "type" : "cloud_provider" }}
1630 When the request is sent
1731 Then the response status is 400 Bad Request
1832
1933 @generated @skip @team:DataDog/storage-management
2034 Scenario : Enable Storage Management for a bucket returns "OK" response
35+ Given new "UpsertSyncConfig" request
36+ And body with value {"data" : {"attributes" : {"aws" : {"aws_account_id" : "123456789012" , "destination_bucket_name" : "my-inventory-bucket" , "destination_bucket_region" : "us-east-1" , "destination_prefix" : "logs/" }, "azure" : {"client_id" : "11111111-1111-1111-1111-111111111111" , "container" : "inventory-container" , "resource_group" : "my-resource-group" , "storage_account" : "mystorageaccount" , "subscription_id" : "33333333-3333-3333-3333-333333333333" , "tenant_id" : "22222222-2222-2222-2222-222222222222" }, "gcp" : {"destination_bucket_name" : "my-inventory-reports" , "project_id" : "my-gcp-project" , "service_account_email" : "reader@my-gcp-project.iam.gserviceaccount.com" , "source_bucket_name" : "my-monitored-bucket" }}, "id" : "aws" , "type" : "cloud_provider" }}
2137 When the request is sent
2238 Then the response status is 200 OK
0 commit comments