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

Detect changes to cloud storage object when using source field. #789

Merged

Conversation

rosbo
Copy link
Contributor

@rosbo rosbo commented Nov 24, 2017

Fixes #788

Detect changes to the file when using the source field whether the local file content is updated or the file stored on GCP is updated outside of Terraform.

cc/ @rodcloutier

@rosbo rosbo requested a review from danawillow November 24, 2017 23:07
@rosbo
Copy link
Contributor Author

rosbo commented Nov 24, 2017

--- PASS: TestAccGoogleStorageObject_content (4.83s)
--- PASS: TestAccGoogleStorageObject_withContentCharacteristics (5.54s)
--- PASS: TestAccGoogleStorageObject_basic (5.62s)
--- PASS: TestAccGoogleStorageObject_storageClass (5.86s)
--- PASS: TestAccGoogleStorageObject_recreate (13.09s)
--- PASS: TestAccGoogleStorageObject_cacheControl (13.86s)

Copy link
Contributor

@danawillow danawillow left a comment

Choose a reason for hiding this comment

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

Looks good. I think this is probably a surprising enough change to merit a note in the changelog, too.

Check: testAccCheckGoogleStorageObject(bucketName, objectName, data_md5),
},
resource.TestStep{
PreConfig: func() {
updateName := testFile.Name() + ".update"
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: you can move this out of this block so you can use it for line 61

@rosbo rosbo merged commit a9fd5fd into hashicorp:master Nov 28, 2017
@rosbo rosbo deleted the cloud-storage-object-change-detection-improved branch November 28, 2017 00:25
modular-magician added a commit to modular-magician/terraform-provider-google that referenced this pull request Sep 27, 2019
@ghost
Copy link

ghost commented Mar 30, 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 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Detect changes to cloud storage object using source field.
2 participants