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/provider: Remove hardcoded aws_spot_fleet_request resource valid_until timestamps #10783

Merged
merged 1 commit into from
Nov 15, 2019

Conversation

bflad
Copy link
Contributor

@bflad bflad commented Nov 7, 2019

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

Fixes errors in the acceptance testing due to the hardcoded timestamp that now in the past:

--- FAIL: TestAccAWSAppautoScalingPolicy_spotFleetRequest (608.94s)
    testing.go:615: Step 0 error: errors during apply:

        Error: Error requesting spot fleet: Error creating Spot fleet request, retrying: InvalidSpotFleetRequestConfig: Parameter: SpotFleetRequestConfig.ValidUntil is invalid.

Output from acceptance testing:

--- PASS: TestAccAWSAppautoScalingPolicy_spotFleetRequest (65.36s)

--- PASS: TestAccAWSAppautoScalingTarget_spotFleetRequest (69.39s)

--- PASS: TestAccAWSAppautoscalingScheduledAction_SpotFleet (71.95s)

--- PASS: TestAccAWSSpotFleetRequest_associatePublicIpAddress (216.48s)
--- PASS: TestAccAWSSpotFleetRequest_basic (206.35s)
--- PASS: TestAccAWSSpotFleetRequest_changePriceForcesNewRequest (533.57s)
--- PASS: TestAccAWSSpotFleetRequest_diversifiedAllocation (345.03s)
--- PASS: TestAccAWSSpotFleetRequest_fleetType (257.81s)
--- PASS: TestAccAWSSpotFleetRequest_iamInstanceProfileArn (214.58s)
--- PASS: TestAccAWSSpotFleetRequest_instanceInterruptionBehavior (270.14s)
--- PASS: TestAccAWSSpotFleetRequest_LaunchSpecification_EbsBlockDevice_KmsKeyId (164.61s)
--- PASS: TestAccAWSSpotFleetRequest_LaunchSpecification_RootBlockDevice_KmsKeyId (163.22s)
--- PASS: TestAccAWSSpotFleetRequest_lowestPriceAzInGivenList (343.26s)
--- PASS: TestAccAWSSpotFleetRequest_lowestPriceAzOrSubnetInRegion (262.21s)
--- PASS: TestAccAWSSpotFleetRequest_lowestPriceSubnetInGivenList (270.21s)
--- PASS: TestAccAWSSpotFleetRequest_multipleInstancePools (342.22s)
--- PASS: TestAccAWSSpotFleetRequest_multipleInstanceTypesInSameAz (268.54s)
--- PASS: TestAccAWSSpotFleetRequest_multipleInstanceTypesInSameSubnet (271.32s)
--- PASS: TestAccAWSSpotFleetRequest_overriddingSpotPrice (343.62s)
--- PASS: TestAccAWSSpotFleetRequest_placementTenancyAndGroup (57.47s)
--- PASS: TestAccAWSSpotFleetRequest_updateExcessCapacityTerminationPolicy (462.71s)
--- PASS: TestAccAWSSpotFleetRequest_updateTargetCapacity (739.95s)
--- PASS: TestAccAWSSpotFleetRequest_withEBSDisk (207.57s)
--- PASS: TestAccAWSSpotFleetRequest_WithELBs (267.87s)
--- PASS: TestAccAWSSpotFleetRequest_withoutSpotPrice (249.80s)
--- PASS: TestAccAWSSpotFleetRequest_withTags (248.02s)
--- PASS: TestAccAWSSpotFleetRequest_WithTargetGroups (355.43s)
--- PASS: TestAccAWSSpotFleetRequest_withWeightedCapacity (268.46s)

…d_until timestamps

Fixes errors in the acceptance testing due to the hardcoded timestamp that now in the past:

```
--- FAIL: TestAccAWSAppautoScalingPolicy_spotFleetRequest (608.94s)
    testing.go:615: Step 0 error: errors during apply:

        Error: Error requesting spot fleet: Error creating Spot fleet request, retrying: InvalidSpotFleetRequestConfig: Parameter: SpotFleetRequestConfig.ValidUntil is invalid.
```

Output from acceptance testing:

```
--- PASS: TestAccAWSAppautoScalingPolicy_spotFleetRequest (65.36s)

--- PASS: TestAccAWSAppautoScalingTarget_spotFleetRequest (69.39s)

--- PASS: TestAccAWSAppautoscalingScheduledAction_SpotFleet (71.95s)

--- PASS: TestAccAWSSpotFleetRequest_associatePublicIpAddress (216.48s)
--- PASS: TestAccAWSSpotFleetRequest_basic (206.35s)
--- PASS: TestAccAWSSpotFleetRequest_changePriceForcesNewRequest (533.57s)
--- PASS: TestAccAWSSpotFleetRequest_diversifiedAllocation (345.03s)
--- PASS: TestAccAWSSpotFleetRequest_fleetType (257.81s)
--- PASS: TestAccAWSSpotFleetRequest_iamInstanceProfileArn (214.58s)
--- PASS: TestAccAWSSpotFleetRequest_instanceInterruptionBehavior (270.14s)
--- PASS: TestAccAWSSpotFleetRequest_LaunchSpecification_EbsBlockDevice_KmsKeyId (164.61s)
--- PASS: TestAccAWSSpotFleetRequest_LaunchSpecification_RootBlockDevice_KmsKeyId (163.22s)
--- PASS: TestAccAWSSpotFleetRequest_lowestPriceAzInGivenList (343.26s)
--- PASS: TestAccAWSSpotFleetRequest_lowestPriceAzOrSubnetInRegion (262.21s)
--- PASS: TestAccAWSSpotFleetRequest_lowestPriceSubnetInGivenList (270.21s)
--- PASS: TestAccAWSSpotFleetRequest_multipleInstancePools (342.22s)
--- PASS: TestAccAWSSpotFleetRequest_multipleInstanceTypesInSameAz (268.54s)
--- PASS: TestAccAWSSpotFleetRequest_multipleInstanceTypesInSameSubnet (271.32s)
--- PASS: TestAccAWSSpotFleetRequest_overriddingSpotPrice (343.62s)
--- PASS: TestAccAWSSpotFleetRequest_placementTenancyAndGroup (57.47s)
--- PASS: TestAccAWSSpotFleetRequest_updateExcessCapacityTerminationPolicy (462.71s)
--- PASS: TestAccAWSSpotFleetRequest_updateTargetCapacity (739.95s)
--- PASS: TestAccAWSSpotFleetRequest_withEBSDisk (207.57s)
--- PASS: TestAccAWSSpotFleetRequest_WithELBs (267.87s)
--- PASS: TestAccAWSSpotFleetRequest_withoutSpotPrice (249.80s)
--- PASS: TestAccAWSSpotFleetRequest_withTags (248.02s)
--- PASS: TestAccAWSSpotFleetRequest_WithTargetGroups (355.43s)
--- PASS: TestAccAWSSpotFleetRequest_withWeightedCapacity (268.46s)
```
@bflad bflad requested a review from a team November 7, 2019 10:53
@ghost ghost added size/XL Managed by automation to categorize the size of a PR. service/applicationautoscaling service/ec2 Issues and PRs that pertain to the ec2 service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Nov 7, 2019
Copy link
Contributor

@gdavison gdavison 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 added this to the v2.37.0 milestone Nov 15, 2019
@bflad bflad merged commit 5c0dbeb into master Nov 15, 2019
@bflad bflad deleted the t-remove-hardcoded-timestamps branch November 15, 2019 00:08
@ghost
Copy link

ghost commented Nov 18, 2019

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

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@ghost
Copy link

ghost commented Dec 15, 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 Dec 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/ec2 Issues and PRs that pertain to the ec2 service. size/XL 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