@@ -107,21 +107,21 @@ Feature: Cloud Cost Management
107107 @generated @skip @team:DataDog/cloud-cost-management
108108 Scenario : Create or update a budget returns "Bad Request" response
109109 Given new "UpsertBudget" request
110- And body with value {"data" : {"attributes" : {"costs" : {"actual" : null, "amount" : null, "forecast" : null, "ootb_forecast" : null}, "costs_unit" : {"id" : 42}, "created_at" : 1738258683590, "created_by" : "00000000-0a0a-0a0a-aaa0-00000000000a" , "end_month" : 202502, "entries" : [{"costs" : {"actual" : null, "amount" : null, "custom_forecast" : null, "forecast" : null, "ootb_forecast" : null}, "tag_filters" : [{}]}], "metrics_query" : "aws.cost.amortized{service:ec2} by {service}" , "name" : "my budget" , "org_id" : 123, "start_month" : 202501, "total_amount" : 1000, "updated_at" : 1738258683590, "updated_by" : "00000000-0a0a-0a0a-aaa0-00000000000a" }, "id" : "00000000-0a0a-0a0a-aaa0-00000000000a" , "type" : "" }}
110+ And body with value {"data" : {"attributes" : {"costs" : {"actual" : null, "amount" : null, "forecast" : null, "ootb_forecast" : null}, "costs_unit" : {"id" : 42}, "created_at" : 1738258683590, "created_by" : "00000000-0a0a-0a0a-aaa0-00000000000a" , "end_month" : 202502, "entries" : [{"costs" : {"actual" : null, "amount" : null, "custom_forecast" : null, "forecast" : null, "ootb_forecast" : null}, "tag_filters" : [{}]}], "metrics_query" : "aws.cost.amortized{service:ec2} by {service}" , "name" : "my budget" , "org_id" : 123, "start_month" : 202501, "total_amount" : 1000, "updated_at" : 1738258683590, "updated_by" : "00000000-0a0a-0a0a-aaa0-00000000000a" }, "id" : "00000000-0a0a-0a0a-aaa0-00000000000a" , "type" : "" }, "meta" : { "error" : "" } }
111111 When the request is sent
112112 Then the response status is 400 Bad Request
113113
114114 @generated @skip @team:DataDog/cloud-cost-management
115115 Scenario : Create or update a budget returns "Not Found" response
116116 Given new "UpsertBudget" request
117- And body with value {"data" : {"attributes" : {"costs" : {"actual" : null, "amount" : null, "forecast" : null, "ootb_forecast" : null}, "costs_unit" : {"id" : 42}, "created_at" : 1738258683590, "created_by" : "00000000-0a0a-0a0a-aaa0-00000000000a" , "end_month" : 202502, "entries" : [{"costs" : {"actual" : null, "amount" : null, "custom_forecast" : null, "forecast" : null, "ootb_forecast" : null}, "tag_filters" : [{}]}], "metrics_query" : "aws.cost.amortized{service:ec2} by {service}" , "name" : "my budget" , "org_id" : 123, "start_month" : 202501, "total_amount" : 1000, "updated_at" : 1738258683590, "updated_by" : "00000000-0a0a-0a0a-aaa0-00000000000a" }, "id" : "00000000-0a0a-0a0a-aaa0-00000000000a" , "type" : "" }}
117+ And body with value {"data" : {"attributes" : {"costs" : {"actual" : null, "amount" : null, "forecast" : null, "ootb_forecast" : null}, "costs_unit" : {"id" : 42}, "created_at" : 1738258683590, "created_by" : "00000000-0a0a-0a0a-aaa0-00000000000a" , "end_month" : 202502, "entries" : [{"costs" : {"actual" : null, "amount" : null, "custom_forecast" : null, "forecast" : null, "ootb_forecast" : null}, "tag_filters" : [{}]}], "metrics_query" : "aws.cost.amortized{service:ec2} by {service}" , "name" : "my budget" , "org_id" : 123, "start_month" : 202501, "total_amount" : 1000, "updated_at" : 1738258683590, "updated_by" : "00000000-0a0a-0a0a-aaa0-00000000000a" }, "id" : "00000000-0a0a-0a0a-aaa0-00000000000a" , "type" : "" }, "meta" : { "error" : "" } }
118118 When the request is sent
119119 Then the response status is 404 Not Found
120120
121121 @generated @skip @team:DataDog/cloud-cost-management
122122 Scenario : Create or update a budget returns "OK" response
123123 Given new "UpsertBudget" request
124- And body with value {"data" : {"attributes" : {"costs" : {"actual" : null, "amount" : null, "forecast" : null, "ootb_forecast" : null}, "costs_unit" : {"id" : 42}, "created_at" : 1738258683590, "created_by" : "00000000-0a0a-0a0a-aaa0-00000000000a" , "end_month" : 202502, "entries" : [{"costs" : {"actual" : null, "amount" : null, "custom_forecast" : null, "forecast" : null, "ootb_forecast" : null}, "tag_filters" : [{}]}], "metrics_query" : "aws.cost.amortized{service:ec2} by {service}" , "name" : "my budget" , "org_id" : 123, "start_month" : 202501, "total_amount" : 1000, "updated_at" : 1738258683590, "updated_by" : "00000000-0a0a-0a0a-aaa0-00000000000a" }, "id" : "00000000-0a0a-0a0a-aaa0-00000000000a" , "type" : "" }}
124+ And body with value {"data" : {"attributes" : {"costs" : {"actual" : null, "amount" : null, "forecast" : null, "ootb_forecast" : null}, "costs_unit" : {"id" : 42}, "created_at" : 1738258683590, "created_by" : "00000000-0a0a-0a0a-aaa0-00000000000a" , "end_month" : 202502, "entries" : [{"costs" : {"actual" : null, "amount" : null, "custom_forecast" : null, "forecast" : null, "ootb_forecast" : null}, "tag_filters" : [{}]}], "metrics_query" : "aws.cost.amortized{service:ec2} by {service}" , "name" : "my budget" , "org_id" : 123, "start_month" : 202501, "total_amount" : 1000, "updated_at" : 1738258683590, "updated_by" : "00000000-0a0a-0a0a-aaa0-00000000000a" }, "id" : "00000000-0a0a-0a0a-aaa0-00000000000a" , "type" : "" }, "meta" : { "error" : "" } }
125125 When the request is sent
126126 Then the response status is 200 OK
127127
0 commit comments