r\iothub_endpoint_storage_container
: Fix file_name_format
Schema
#14458
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
file_name_format
should not have default value set tofalse
, instead it should have aValidateFunc
same as the nestedendpoint
property iniothub
.terraform-provider-azurerm/internal/services/iothub/iothub_resource.go
Lines 279 to 283 in d966a79
Test result:
$ TF_ACC=1 go test -v ./internal/services/iothub -run=TestAccIotHubEndpointStorageContainer_ -timeout 60m -ldflags="-X=github.com/hashicorp/terraform-provider-azurerm/version.ProviderVersion=acc"
=== RUN TestAccIotHubEndpointStorageContainer_basic
=== PAUSE TestAccIotHubEndpointStorageContainer_basic
=== RUN TestAccIotHubEndpointStorageContainer_requiresImport
=== PAUSE TestAccIotHubEndpointStorageContainer_requiresImport
=== CONT TestAccIotHubEndpointStorageContainer_basic
=== CONT TestAccIotHubEndpointStorageContainer_requiresImport
--- PASS: TestAccIotHubEndpointStorageContainer_basic (556.70s)
--- PASS: TestAccIotHubEndpointStorageContainer_requiresImport (597.94s)
PASS
ok github.com/hashicorp/terraform-provider-azurerm/internal/services/iothub 598.822s