New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
azurerm_security_center_subscription_pricing
- reset to Free
tier during deletion & add existing check
#21437
azurerm_security_center_subscription_pricing
- reset to Free
tier during deletion & add existing check
#21437
Conversation
… during deletion Signed-off-by: ziyeqf <51212351+ziyeqf@users.noreply.github.com>
Signed-off-by: ziyeqf <51212351+ziyeqf@users.noreply.github.com>
Signed-off-by: ziyeqf <51212351+ziyeqf@users.noreply.github.com>
d02f768
to
162fcca
Compare
Signed-off-by: ziyeqf <51212351+ziyeqf@users.noreply.github.com>
Hi @tombuildsstuff, I have updated this PR to use a feature block to control whether to reset to free tier, it might be more acceptable. Could you please take another look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems like a bugfix, as it should have always reset to free? as such we can just make the change & call out the breaking change in the changelog without the features block toggle?
this seems like a safe/reasonable exception to making a breaking change? WDYT?
This reverts commit a4e8d2f.
Thanks, I agreed with that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @katbyte, the existing check has also been added together and the tests failed because of that. To pass the tests it need manually set these printing tier to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test should be resetting it to free?
// reset pricing tier to free after all tests.
data := acceptance.BuildTestData(t, "azurerm_security_center_subscription_pricing", "test")
data.ResourceTestSkipCheckDestroyed(t, []acceptance.TestStep{
{
Config: SecurityCenterSubscriptionPricingResource{}.tier("Free", "VirtualMachines"),
},
})
sounds like that may be broken and needing fixing?
Signed-off-by: ziyeqf <51212351+ziyeqf@users.noreply.github.com>
Signed-off-by: ziyeqf <51212351+ziyeqf@users.noreply.github.com>
This reverts commit 6606bd6.
Signed-off-by: ziyeqf <51212351+ziyeqf@users.noreply.github.com>
Signed-off-by: ziyeqf <51212351+ziyeqf@users.noreply.github.com>
This reverts commit 9b68d7f.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good now! thanks
LGTM 🌩️
kindly ping for this PR has not been merged. |
It will be reset to
Free
tier since the resource could not be completely deleted. We may need to point it out in change log.Test