Skip to content

Commit

Permalink
run subscription pricing tests for storage sequentially
Browse files Browse the repository at this point in the history
  • Loading branch information
stephybun committed Oct 22, 2024
1 parent 84e12a8 commit cd3f8e6
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down Expand Up @@ -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{}

Expand All @@ -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{}

Expand Down

0 comments on commit cd3f8e6

Please sign in to comment.