diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 961406c151ed..9f43840f7549 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -75610,7 +75610,7 @@ paths: appKeyAuth: [] - AuthZ: - cloud_cost_management_read - summary: Get ruleset + summary: Get a tag pipeline ruleset tags: - Cloud Cost Management patch: diff --git a/cassettes/v2/Cloud-Cost-Management_4135329986/Get-a-tag-pipeline-ruleset-returns-OK-response_535969270/frozen.json b/cassettes/v2/Cloud-Cost-Management_4135329986/Get-a-tag-pipeline-ruleset-returns-OK-response_535969270/frozen.json new file mode 100644 index 000000000000..9c65f4210a23 --- /dev/null +++ b/cassettes/v2/Cloud-Cost-Management_4135329986/Get-a-tag-pipeline-ruleset-returns-OK-response_535969270/frozen.json @@ -0,0 +1 @@ +"2025-10-14T20:06:56.512Z" diff --git a/cassettes/v2/Cloud-Cost-Management_4135329986/Get-a-tag-pipeline-ruleset-returns-OK-response_535969270/recording.har b/cassettes/v2/Cloud-Cost-Management_4135329986/Get-a-tag-pipeline-ruleset-returns-OK-response_535969270/recording.har new file mode 100644 index 000000000000..277fdeb34b17 --- /dev/null +++ b/cassettes/v2/Cloud-Cost-Management_4135329986/Get-a-tag-pipeline-ruleset-returns-OK-response_535969270/recording.har @@ -0,0 +1,57 @@ +{ + "log": { + "_recordingName": "Cloud Cost Management/Get a tag pipeline ruleset returns \"OK\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "d502db10e146bbbf5c757d491d382757", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + } + ], + "headersSize": 555, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/tags/enrichment/a1e9de9b-b88e-41c6-a0cd-cc0ebd7092de" + }, + "response": { + "bodySize": 1416, + "content": { + "mimeType": "application/vnd.api+json", + "size": 1416, + "text": "{\"data\":{\"id\":\"a1e9de9b-b88e-41c6-a0cd-cc0ebd7092de\",\"type\":\"ruleset\",\"attributes\":{\"created\":{\"seconds\":1753803214,\"nanos\":75009000},\"enabled\":false,\"last_modified_user_uuid\":\"4acae75b-78ac-11ef-9c0d-e6936f49688e\",\"modified\":{\"seconds\":1753803214,\"nanos\":75009000},\"name\":\"EVP Cost Tags\",\"position\":1,\"processing_status\":\"done\",\"rules\":[{\"name\":\"EVP Cost Tags\",\"enabled\":true,\"query\":null,\"mapping\":null,\"reference_table\":{\"table_name\":\"evp_cost_tags\",\"source_keys\":[\"pod_name\"],\"field_pairs\":[{\"input_column\":\"cost_service\",\"output_key\":\"cost_service\"},{\"input_column\":\"cogs\",\"output_key\":\"cogs\"},{\"input_column\":\"cost_team\",\"output_key\":\"cost_team\"},{\"input_column\":\"cost_product\",\"output_key\":\"cost_product\"},{\"input_column\":\"subscription\",\"output_key\":\"subscription\"},{\"input_column\":\"cost_group\",\"output_key\":\"cost_group\"},{\"input_column\":\"cost_subservice\",\"output_key\":\"cost_subservice\"},{\"input_column\":\"cost_customer\",\"output_key\":\"cost_customer\"},{\"input_column\":\"cost_isolation_id\",\"output_key\":\"cost_isolation_id\"}],\"case_insensitivity\":false,\"if_not_exists\":false},\"metadata\":null},{\"name\":\"Load balancer runtimecosts-team\",\"enabled\":true,\"query\":{\"query\":\"dd-frontend-service:evp_* OR dd-frontend-service:logs_*\",\"addition\":{\"key\":\"runtimecosts-team\",\"value\":\"event-platform\"},\"if_not_exists\":true,\"case_insensitivity\":false},\"mapping\":null,\"reference_table\":null,\"metadata\":null}],\"version\":3588223}}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 672, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-10-14T20:06:56.516Z", + "time": 686 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/features/v2/cloud_cost_management.feature b/features/v2/cloud_cost_management.feature index ba6cdda25c33..d141b80f7ba8 100644 --- a/features/v2/cloud_cost_management.feature +++ b/features/v2/cloud_cost_management.feature @@ -262,6 +262,15 @@ Feature: Cloud Cost Management When the request is sent Then the response status is 200 OK + @replay-only @team:DataDog/cloud-cost-management + Scenario: Get a tag pipeline ruleset returns "OK" response + Given new "GetTagPipelinesRuleset" request + And request contains "ruleset_id" parameter with value "a1e9de9b-b88e-41c6-a0cd-cc0ebd7092de" + When the request is sent + Then the response status is 200 OK + And the response "data.type" is equal to "ruleset" + And the response "data.attributes.name" is equal to "EVP Cost Tags" + @replay-only @team:DataDog/cloud-cost-management Scenario: Get cost AWS CUR config returns "OK" response Given new "GetCostAWSCURConfig" request @@ -288,22 +297,6 @@ Feature: Cloud Cost Management When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/cloud-cost-management - Scenario: Get ruleset returns "OK" response - Given new "GetTagPipelinesRuleset" request - And request contains "ruleset_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 200 OK - - @replay-only @team:DataDog/cloud-cost-management - Scenario: Get tag pipeline ruleset returns "OK" response - Given new "GetTagPipelinesRuleset" request - And request contains "ruleset_id" parameter with value "ee10c3ff-312f-464c-b4f6-46adaa6d00a1" - When the request is sent - Then the response status is 200 OK - And the response "data.type" is equal to "ruleset" - And the response "data.attributes.name" is equal to "New Ruleset" - @replay-only @team:DataDog/cloud-cost-management Scenario: List Cloud Cost Management AWS CUR configs returns "OK" response Given new "ListCostAWSCURConfigs" request