Skip to content
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_storage_blob - source is no longer ForceNew / azurerm_storage_object_replication - rules.x. source_container_name and rules.x. destination_container_name are no longer ForceNew #27394

Merged
merged 2 commits into from
Sep 19, 2024

Conversation

mbfrahry
Copy link
Member

This PR has various test fixes for storage that include removing ForceNew from certain attributes, adding 404 checks, and Retryable Errors.

@@ -207,13 +207,6 @@ func TestAccStorageShare_accessTierStandard(t *testing.T) {
),
},
data.ImportStep(),
{
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TestAccStorageShare_accessTierStandard had a step removed as we're checking if access tier can be updated twice but once you change it, it takes forever to change again. I added a RetryableError but it takes an unknown amount of time to be updatable again so it's worth removing that second update.

@@ -66,14 +66,12 @@ func resourceStorageObjectReplication() *pluginsdk.Resource {
"source_container_name": {
Type: pluginsdk.TypeString,
Required: true,
ForceNew: true,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These ForceNews aren't needed anymore. I checked to make sure that it didn't cause issues with this resource by updating them to different things and Azure accepted them just fine

storage_share_id = azurerm_storage_share.test.id


content_type = "test_content_type"
content_encoding = "test_encoding"
content_disposition = "test_content_disposition"
content_md5 = "1234567890abcdef1234567890abcdef"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This attribute can't be updated and we use it in another test so it should be ok to remove here

Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 💾

@mbfrahry mbfrahry changed the title tests - fixes for storage azurerm_storage_blob - source is no longer ForceNew / azurerm_storage_object_replication - rules.x. source_container_name and rules.x. destination_container_name are no longer ForceNew Sep 19, 2024
@mbfrahry mbfrahry merged commit c197c2e into main Sep 19, 2024
35 checks passed
@mbfrahry mbfrahry deleted the t-straoge branch September 19, 2024 21:05
@github-actions github-actions bot added this to the v4.3.0 milestone Sep 19, 2024
mbfrahry added a commit that referenced this pull request Sep 19, 2024
Copy link

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.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants