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

tests/resource/aws_cloudtrail: Remove troublesome slash prefix #10229

Merged
merged 1 commit into from
Oct 4, 2019

Conversation

nywilken
Copy link
Contributor

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" comments, they generate extra noise for pull request followers and do not help prioritize the request

Release note for CHANGELOG:

none

During testing of the S3 bucket sweeper it was found that the test changed in the PR was creating a S3 key that had an extra slash at the beginning. This key causes issues when when trying to delete the bucket object "nothing gets deleted" causing the s3_bucket sweeper to error out.

Acceptance test after change

TF_ACC=1 go test ./aws -v -parallel 20 -run=TestAccAWSCloudTrail/Trail/basic -timeout 120m
=== RUN   TestAccAWSCloudTrailServiceAccount_basic
=== PAUSE TestAccAWSCloudTrailServiceAccount_basic
=== RUN   TestAccAWSCloudTrailServiceAccount_Region
=== PAUSE TestAccAWSCloudTrailServiceAccount_Region
=== RUN   TestAccAWSCloudTrail
=== RUN   TestAccAWSCloudTrail/Trail
=== RUN   TestAccAWSCloudTrail/Trail/basic
--- PASS: TestAccAWSCloudTrail (72.62s)
    --- PASS: TestAccAWSCloudTrail/Trail (72.62s)
        --- PASS: TestAccAWSCloudTrail/Trail/basic (72.62s)
=== CONT  TestAccAWSCloudTrailServiceAccount_basic
=== CONT  TestAccAWSCloudTrailServiceAccount_Region
--- PASS: TestAccAWSCloudTrailServiceAccount_Region (15.04s)
--- PASS: TestAccAWSCloudTrailServiceAccount_basic (15.12s)
PASS
ok      github.com/terraform-providers/terraform-provider-aws/aws       87.776s

@nywilken nywilken requested a review from a team September 24, 2019 19:24
@ghost ghost added size/XS Managed by automation to categorize the size of a PR. service/cloudtrail Issues and PRs that pertain to the cloudtrail service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Sep 24, 2019
Acceptance test after change
```
TF_ACC=1 go test ./aws -v -parallel 20 -run=TestAccAWSCloudTrail/Trail/basic -timeout 120m
=== RUN   TestAccAWSCloudTrailServiceAccount_basic
=== PAUSE TestAccAWSCloudTrailServiceAccount_basic
=== RUN   TestAccAWSCloudTrailServiceAccount_Region
=== PAUSE TestAccAWSCloudTrailServiceAccount_Region
=== RUN   TestAccAWSCloudTrail
=== RUN   TestAccAWSCloudTrail/Trail
=== RUN   TestAccAWSCloudTrail/Trail/basic
--- PASS: TestAccAWSCloudTrail (72.62s)
    --- PASS: TestAccAWSCloudTrail/Trail (72.62s)
        --- PASS: TestAccAWSCloudTrail/Trail/basic (72.62s)
=== CONT  TestAccAWSCloudTrailServiceAccount_basic
=== CONT  TestAccAWSCloudTrailServiceAccount_Region
--- PASS: TestAccAWSCloudTrailServiceAccount_Region (15.04s)
--- PASS: TestAccAWSCloudTrailServiceAccount_basic (15.12s)
PASS
ok      github.com/terraform-providers/terraform-provider-aws/aws       87.776s
```
@nywilken nywilken force-pushed the td-aws_cloudtrail-prefix-cleanup branch from 16a1f83 to 7d2c8f1 Compare September 24, 2019 22:52
@ewbankkit
Copy link
Contributor

Copy link
Contributor

@aeschright aeschright left a comment

Choose a reason for hiding this comment

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

👍

--- PASS: TestAccAWSCloudTrail (33.11s)
    --- PASS: TestAccAWSCloudTrail/Trail (33.11s)
        --- PASS: TestAccAWSCloudTrail/Trail/basic (33.11s)
--- PASS: TestAccAWSCloudTrailServiceAccount_basic (11.46s)
--- PASS: TestAccAWSCloudTrailServiceAccount_Region (11.53s)

@aeschright aeschright merged commit 7cf9a52 into master Oct 4, 2019
@aeschright aeschright deleted the td-aws_cloudtrail-prefix-cleanup branch October 4, 2019 16:56
@ghost
Copy link

ghost commented Nov 4, 2019

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 Nov 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/cloudtrail Issues and PRs that pertain to the cloudtrail service. size/XS Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants