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

data-source/aws_ebs_snapshot: Fix most_recent ordering and add covering acceptance test #6414

Merged
merged 2 commits into from
Nov 13, 2018

Conversation

bflad
Copy link
Contributor

@bflad bflad commented Nov 9, 2018

Unfortunately the most_recent functionality of the aws_ebs_snapshot data source was missing an acceptance test with multiple EBS snapshots so this was broken in version 1.43.0 and 1.43.1

Reference: #6321 (comment)

Changes proposed in this pull request:

  • data-source/aws_ebs_snapshot: Fix most_recent ordering
  • resource/aws_ebs_snapshot: Allow retries for SnapshotCreationPerVolumeRateExceeded errors on creation (discovered during development of TestAccAWSEbsSnapshotDataSource_MostRecent)

Output from acceptance testing:

--- PASS: TestAccAWSEBSSnapshot_withDescription (26.62s)
--- PASS: TestAccAWSEbsSnapshotDataSource_basic (28.90s)
--- PASS: TestAccAWSEbsSnapshotDataSource_Filter (43.31s)
--- PASS: TestAccAWSEBSSnapshot_withKms (67.28s)
--- PASS: TestAccAWSEbsSnapshotDataSource_MostRecent (68.51s)
--- PASS: TestAccAWSEBSSnapshot_basic (85.15s)

bflad added 2 commits November 9, 2018 16:21
…meRateExceeded` errors on creation

Found via acceptance testing:

```
--- FAIL: TestAccAWSEbsSnapshotDataSource_MostRecent (27.42s)
    testing.go:538: Step 0 error: Error applying: 1 error occurred:
        	* aws_ebs_snapshot.test: 1 error occurred:
        	* aws_ebs_snapshot.test: SnapshotCreationPerVolumeRateExceeded: The maximum per volume CreateSnapshot request rate has been exceeded. Use an increasing or variable sleep interval between requests.
```

```
--- PASS: TestAccAWSEBSSnapshot_withDescription (26.62s)
--- PASS: TestAccAWSEbsSnapshotDataSource_basic (28.90s)
--- PASS: TestAccAWSEbsSnapshotDataSource_Filter (43.31s)
--- PASS: TestAccAWSEBSSnapshot_withKms (67.28s)
--- PASS: TestAccAWSEbsSnapshotDataSource_MostRecent (68.51s)
--- PASS: TestAccAWSEBSSnapshot_basic (85.15s)
```
…ng acceptance test

Also refactors the testing to be region agnostic.

```
--- PASS: TestAccAWSEbsSnapshotDataSource_basic (28.90s)
--- PASS: TestAccAWSEbsSnapshotDataSource_Filter (43.31s)
--- PASS: TestAccAWSEbsSnapshotDataSource_MostRecent (68.51s)
```
@bflad bflad added bug Addresses a defect in current functionality. regression Pertains to a degraded workflow resulting from an upstream patch or internal enhancement. service/ec2 Issues and PRs that pertain to the ec2 service. labels Nov 9, 2018
@bflad bflad added this to the v1.44.0 milestone Nov 9, 2018
@bflad bflad requested a review from a team November 9, 2018 21:27
@ghost ghost added the size/M Managed by automation to categorize the size of a PR. label Nov 9, 2018
@ghost ghost added the tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. label Nov 9, 2018
Copy link
Member

@mbfrahry mbfrahry left a comment

Choose a reason for hiding this comment

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

LGTM

@bflad bflad merged commit ecadfe0 into master Nov 13, 2018
@bflad bflad deleted the b-aws_ebs_snapshot-most_recent branch November 13, 2018 15:15
bflad added a commit that referenced this pull request Nov 13, 2018
@bflad
Copy link
Contributor Author

bflad commented Nov 15, 2018

This has been released in version 1.44.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

@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. regression Pertains to a degraded workflow resulting from an upstream patch or internal enhancement. service/ec2 Issues and PRs that pertain to the ec2 service. size/M 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.

2 participants