From 17fa38b0d6391059a1b36ebc2303b765727c91f1 Mon Sep 17 00:00:00 2001 From: Rachel Pinsker Date: Thu, 15 Aug 2024 08:55:53 -0700 Subject: [PATCH] [go sdk] [budgets] Fix billing test for budget configuration update --- internal/billing_test.go | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/internal/billing_test.go b/internal/billing_test.go index 87414c04a..6c8fd71fa 100644 --- a/internal/billing_test.go +++ b/internal/billing_test.go @@ -123,7 +123,8 @@ func TestMwsAccBudgets(t *testing.T) { BudgetId: created.Budget.BudgetConfigurationId, Budget: billing.UpdateBudgetConfigurationBudget{ - DisplayName: RandomName("go-sdk-updated-"), + BudgetConfigurationId: created.Budget.BudgetConfigurationId, + DisplayName: RandomName("go-sdk-updated-"), Filter: &billing.BudgetConfigurationFilter{ Tags: []billing.BudgetConfigurationFilterTagClause{ { @@ -136,16 +137,12 @@ func TestMwsAccBudgets(t *testing.T) { }}, AlertConfigurations: []billing.AlertConfiguration{ { - TimePeriod: billing.AlertConfigurationTimePeriodMonth, - QuantityType: billing.AlertConfigurationQuantityTypeListPriceDollarsUsd, - TriggerType: billing.AlertConfigurationTriggerTypeCumulativeSpendingExceeded, - QuantityThreshold: "50", - ActionConfigurations: []billing.ActionConfiguration{ - { - ActionType: billing.ActionConfigurationTypeEmailNotification, - Target: "admin@example.com", - }, - }, + AlertConfigurationId: created.Budget.AlertConfigurations[0].AlertConfigurationId, + TimePeriod: billing.AlertConfigurationTimePeriodMonth, + QuantityType: billing.AlertConfigurationQuantityTypeListPriceDollarsUsd, + TriggerType: billing.AlertConfigurationTriggerTypeCumulativeSpendingExceeded, + QuantityThreshold: "50", + ActionConfigurations: created.Budget.AlertConfigurations[0].ActionConfigurations, }, }, },