Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"2025-10-14T20:06:56.512Z"
Original file line number Diff line number Diff line change
@@ -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"
}
}
25 changes: 9 additions & 16 deletions features/v2/cloud_cost_management.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down