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_account' - Support for 'blob_properties' 'cors_rule' #5425

Merged
merged 5 commits into from
Feb 14, 2020

Conversation

jackbatzner
Copy link
Contributor

This PR adds the ability to set cors_rule's for blob's on the storage account. This will resolve #19

The one question I have is around the Azure Go Storage SDK vs. Giovanni Storage SDK. I chose to use the Azure Go Storage SDK. Do we want to use this or Giovanni?

Let me know and I can update if needed

=== RUN TestAccAzureRMStorageAccount_blobProperties
=== PAUSE TestAccAzureRMStorageAccount_blobProperties
=== CONT TestAccAzureRMStorageAccount_blobProperties
--- PASS: TestAccAzureRMStorageAccount_blobProperties (156.69s)
PASS
ok github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/storage/tests 156.958s

@jackbatzner jackbatzner changed the title Provide ability to set 'cors_rule' for blob properties 'azurerm_storage_account' - Support for 'cors_rule' Jan 16, 2020
@jackbatzner jackbatzner changed the title 'azurerm_storage_account' - Support for 'cors_rule' 'azurerm_storage_account' - Support for 'blob_properties' 'cors_rule' Jan 19, 2020
@tombuildsstuff
Copy link
Contributor

tombuildsstuff commented Feb 11, 2020

@Brunhil sorry this has sat for a while / thanks for rebasing this - will take a look now.. first thing tomorrow

Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

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

hey @Brunhil

Thanks for this PR - apologies for the delayed review here! I've taken a look through and left a few comments inline, since there's some matching changes needed outside of the scope of this PR (but related) I hope you don't mind but I'm going to push a commit to fix up these comments & the other changes.

Thanks!

@tombuildsstuff tombuildsstuff modified the milestones: v2.0.0, v1.44.0 Feb 12, 2020
@jackbatzner
Copy link
Contributor Author

@tombuildsstuff thanks for reviewing this!

@tombuildsstuff
Copy link
Contributor

Ignoring a couple of failing tests (which I've run locally and are also fine)

Screenshot 2020-02-12 at 15 58 06

 $ TF_ACC=1 go test -v ./azurerm/internal/services/storage/tests/ -timeout=60m -run=TestAccAzureRMStorageBlob_blockFromInlineContent
=== RUN   TestAccAzureRMStorageBlob_blockFromInlineContent
=== PAUSE TestAccAzureRMStorageBlob_blockFromInlineContent
=== CONT  TestAccAzureRMStorageBlob_blockFromInlineContent
--- PASS: TestAccAzureRMStorageBlob_blockFromInlineContent (143.69s)
PASS
ok  	github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/storage/tests	143.743s
=== RUN   TestAccAzureRMStorageBlob_blockEmptyAccessTier
=== PAUSE TestAccAzureRMStorageBlob_blockEmptyAccessTier
=== CONT  TestAccAzureRMStorageBlob_blockEmptyAccessTier
--- PASS: TestAccAzureRMStorageBlob_blockEmptyAccessTier (222.18s)
PASS
ok  	github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/storage/tests	222.224s

@tombuildsstuff tombuildsstuff modified the milestones: v1.44.0, v2.0.0 Feb 12, 2020
@tombuildsstuff tombuildsstuff merged commit 5245871 into hashicorp:master Feb 14, 2020
tombuildsstuff added a commit that referenced this pull request Feb 14, 2020
@ghost
Copy link

ghost commented Feb 24, 2020

This has been released in version 2.0.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azurerm" {
    version = "~> 2.0.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Mar 15, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 15, 2020
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.

AzureRM provider doesn't support setting CORS for blob storage
2 participants