Skip to content

Commit

Permalink
run sub pricing tests sequentially
Browse files Browse the repository at this point in the history
  • Loading branch information
stephybun committed Oct 22, 2024
1 parent cd3f8e6 commit 7c7c824
Showing 1 changed file with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,21 @@ func TestAccSecurityCenterSubscriptionPricing_cloudPosture(t *testing.T) {
"basic": testAccSecurityCenterSubscriptionPricing_cloudPostureExtension,
"standardToFree": testAccSecurityCenterSubscriptionPricing_cloudPostureExtensionStandardToFreeExtensions,
"freeToStandard": testAccSecurityCenterSubscriptionPricing_cloudPostureExtensionFreeToStandardDisabledExtensions,
"subplan": testAccSecurityCenterSubscriptionPricing_storageAccountSubplan,
"defender": testAccSecurityCenterSubscriptionPricing_storageAccountDefender,
},
})
}

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_storage(t *testing.T) {

Check failure on line 65 in internal/services/securitycenter/security_center_subscription_pricing_resource_test.go

View workflow job for this annotation

GitHub Actions / golint

commentFormatting: put a space between `//` and comment text (gocritic)
// // 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")
Expand Down

0 comments on commit 7c7c824

Please sign in to comment.