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

s3_bucket_notification: Fix not create bucket field when import #978

Merged

Conversation

kjmkznr
Copy link
Contributor

@kjmkznr kjmkznr commented Jun 27, 2017

Fixes #895

$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSS3BucketNotification_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -run=TestAccAWSS3BucketNotification_ -timeout 120m
=== RUN   TestAccAWSS3BucketNotification_importBasic
--- PASS: TestAccAWSS3BucketNotification_importBasic (117.69s)
PASS
ok      github.com/terraform-providers/terraform-provider-aws/aws       117.704s
$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSS3Bucket_Notification'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -run=TestAccAWSS3Bucket_Notification -timeout 120m
=== RUN   TestAccAWSS3Bucket_Notification
--- PASS: TestAccAWSS3Bucket_Notification (190.11s)
=== RUN   TestAccAWSS3Bucket_NotificationWithoutFilter
--- PASS: TestAccAWSS3Bucket_NotificationWithoutFilter (70.96s)
PASS
ok      github.com/terraform-providers/terraform-provider-aws/aws       261.088s

@radeksimko radeksimko added the bug Addresses a defect in current functionality. label Jun 30, 2017
@radeksimko
Copy link
Member

Hi @kjmkznr
would you mind also modifying acceptance tests to reflect this bugfix? At the moment the field is being ignored there, which is likely the reason this bug was actually not discovered by a test failure.

See all the ImportStateVerifyIgnore in https://github.com/terraform-providers/terraform-provider-aws/blob/master/aws/import_aws_s3_bucket_notification_test.go - I think they can all (3) go away.

Thanks.

@radeksimko radeksimko added the waiting-response Maintainers are waiting on response from community or contributor. label Jun 30, 2017
@kjmkznr
Copy link
Contributor Author

kjmkznr commented Jul 3, 2017

@radeksimko
Thanks comment.
Fix import acceptance tests.

bucket attribute in ImportStateVerifyIgnore, It is probably my mistake that...

@radeksimko radeksimko removed the waiting-response Maintainers are waiting on response from community or contributor. label Jul 3, 2017
Copy link
Member

@radeksimko radeksimko left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks

@radeksimko radeksimko merged commit a39f0bb into hashicorp:master Jul 3, 2017
@kjmkznr kjmkznr deleted the b-s3-bucket-notification-import branch November 25, 2018 12:41
@ghost
Copy link

ghost commented Apr 2, 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. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

import aws_s3_bucket_notification not creating 'bucket' field
2 participants