-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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_app_configuration
- retry checkNameAvailability
to make sure delete is finished, add stateWait to confirm key/feature is created
#21750
azurerm_app_configuration
- retry checkNameAvailability
to make sure delete is finished, add stateWait to confirm key/feature is created
#21750
Conversation
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.
------- Stdout: -------
=== RUN TestAccAppConfiguration_softDeleteRecovery
=== PAUSE TestAccAppConfiguration_softDeleteRecovery
=== CONT TestAccAppConfiguration_softDeleteRecovery
testcase.go:110: Step 4/5 error: Error running apply: exit status 1
Error: waiting for the Configuration Store Configuration Store (Subscription: "*******"
Resource Group Name: "acctestRG-appconfig-230511054705781851"
Configuration Store Name: "testaccappconf230511054705781851") Name Available: timeout while waiting for state to become 'Available' (last state: 'Unavailable', timeout: 29m59.517047832s)
with azurerm_app_configuration.test,
on terraform_plugin_test.tf line 22, in resource "azurerm_app_configuration" "test":
22: resource "azurerm_app_configuration" "test" {
--- FAIL: TestAccAppConfiguration_softDeleteRecovery (1892.83s)
FAIL
…m into add_app_conf_checkNameAvailability
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.
I'm getting a test failure:
------- Stdout: -------
=== RUN TestAccAppConfigurationKey_basicVault
=== PAUSE TestAccAppConfigurationKey_basicVault
=== CONT TestAccAppConfigurationKey_basicVault
testcase.go:110: Step 1/2 error: Error running apply: exit status 1
Error: Provider produced inconsistent result after apply
When applying changes to azurerm_app_configuration_key.test, provider
"provider[\"registry.terraform.io/hashicorp/azurerm\"]" produced an
unexpected new value: Root resource was present, but now absent.
This is a bug in the provider, which should be reported in the provider's own
issue tracker.
--- FAIL: TestAccAppConfigurationKey_basicVault (409.06s)
FAIL
Need to fix tests |
azurerm_app_configuration
- retry checkNameAvailability to fix TestAccAppConfiguration_softDeletePurgeThenRecreate
azurerm_app_configuration
- retry checkNameAvailability
to make sure delete is finished, add stateWait to confirm key/feature is created
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.
Can you please add a test for azurerm_app_configuration_feature
and azurerm_app_configuration_key
to validate that the wait functions after creation is actually needed?
internal/services/appconfiguration/app_configuration_feature_resource.go
Outdated
Show resolved
Hide resolved
internal/services/appconfiguration/app_configuration_feature_resource.go
Outdated
Show resolved
Hide resolved
internal/services/appconfiguration/app_configuration_key_resource.go
Outdated
Show resolved
Hide resolved
Hi @stephybun, thanks for reviewing this. I think it is hard to validate wait function is needed, for the |
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.
Thanks @teowa LGTM 🌻
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
resolves #21939
state.WaitForStateContext
to fixRoot resource was present, but now absent
error ofazurerm_app_configuration_key/feature
.state.WaitForStateContext
to retrycheckNameAvailability
accoding toazurerm_app_configuration
- support for theencrption
,local_auth_enabled
,public_network_access_enabled
,purge_protection_enabled
,andsoft_delete_retention_days
properties #17714 (comment).