From cd3f8e65709db809eb75b7ad9cc971f353f084c0 Mon Sep 17 00:00:00 2001 From: Steph Date: Tue, 22 Oct 2024 11:19:05 +0200 Subject: [PATCH] run subscription pricing tests for storage sequentially --- ...ty_center_subscription_pricing_resource_test.go | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/internal/services/securitycenter/security_center_subscription_pricing_resource_test.go b/internal/services/securitycenter/security_center_subscription_pricing_resource_test.go index 0402c4eabc22..7316d38e8284 100644 --- a/internal/services/securitycenter/security_center_subscription_pricing_resource_test.go +++ b/internal/services/securitycenter/security_center_subscription_pricing_resource_test.go @@ -60,6 +60,16 @@ func TestAccSecurityCenterSubscriptionPricing_cloudPosture(t *testing.T) { }) } +func TestAccSecurityCenterSubscriptionPricing_storage(t *testing.T) { + // These tests will change pricing tier of cloud posture + acceptance.RunTestsInSequence(t, map[string]map[string]func(t *testing.T){ + "securityCenterSubscriptionPricing": { + "subplan": testAccSecurityCenterSubscriptionPricing_storageAccountSubplan, + "defender": testAccSecurityCenterSubscriptionPricing_storageAccountDefender, + }, + }) +} + func TestAccSecurityCenterSubscriptionPricing_update(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_security_center_subscription_pricing", "test") r := SecurityCenterSubscriptionPricingResource{} @@ -92,7 +102,7 @@ func TestAccSecurityCenterSubscriptionPricing_cosmosDbs(t *testing.T) { }) } -func TestAccSecurityCenterSubscriptionPricing_storageAccountSubplan(t *testing.T) { +func testAccSecurityCenterSubscriptionPricing_storageAccountSubplan(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_security_center_subscription_pricing", "test") r := SecurityCenterSubscriptionPricingResource{} @@ -109,7 +119,7 @@ func TestAccSecurityCenterSubscriptionPricing_storageAccountSubplan(t *testing.T }) } -func TestAccSecurityCenterSubscriptionPricing_storageAccountDefender(t *testing.T) { +func testAccSecurityCenterSubscriptionPricing_storageAccountDefender(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_security_center_subscription_pricing", "test") r := SecurityCenterSubscriptionPricingResource{}