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_security_group: Remove hardcoded us-east-1 handling #16036

Merged
merged 1 commit into from
Nov 11, 2020

Conversation

bflad
Copy link
Contributor

@bflad bflad commented Nov 5, 2020

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" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Reference: #8316
Reference: #15737
Reference: #15791

Release note for CHANGELOG:

NONE

Previously in AWS GovCloud (US):

=== RUN   TestAccAWSSecurityGroup_defaultEgressClassic
TestAccAWSSecurityGroup_defaultEgressClassic: provider_test.go:184: [{0 error configuring Terraform AWS Provider: error validating provider credentials: error calling sts:GetCallerIdentity: InvalidClientTokenId: The security token included in the request is invalid.
  status code: 403, request id: 80bb55a7-5ac8-46b6-8c39-cf4f09bb4cd5  []}]
--- FAIL: TestAccAWSSecurityGroup_defaultEgressClassic (0.50s)

=== RUN   TestAccAWSSecurityGroup_ingressWithCidrAndSGsClassic
TestAccAWSSecurityGroup_ingressWithCidrAndSGsClassic: provider_test.go:184: [{0 error configuring Terraform AWS Provider: error validating provider credentials: error calling sts:GetCallerIdentity: InvalidClientTokenId: The security token included in the request is invalid.
  status code: 403, request id: 9909088a-dd37-40db-8774-2ea613dd1b3d  []}]
--- FAIL: TestAccAWSSecurityGroup_ingressWithCidrAndSGsClassic (0.50s)

Output from acceptance testing in AWS Commercial:

--- PASS: TestAccAWSSecurityGroup_defaultEgressClassic (12.50s)
--- PASS: TestAccAWSSecurityGroup_ingressWithCidrAndSGsClassic (14.84s)

Output from acceptance testing in AWS GovCloud (US):

--- SKIP: TestAccAWSSecurityGroup_defaultEgressClassic (2.90s)
--- SKIP: TestAccAWSSecurityGroup_ingressWithCidrAndSGsClassic (2.90s)

Reference: #8316
Reference: #15737
Reference: #15791

Previously in AWS GovCloud (US):

```
=== RUN   TestAccAWSSecurityGroup_defaultEgressClassic
TestAccAWSSecurityGroup_defaultEgressClassic: provider_test.go:184: [{0 error configuring Terraform AWS Provider: error validating provider credentials: error calling sts:GetCallerIdentity: InvalidClientTokenId: The security token included in the request is invalid.
  status code: 403, request id: 80bb55a7-5ac8-46b6-8c39-cf4f09bb4cd5  []}]
--- FAIL: TestAccAWSSecurityGroup_defaultEgressClassic (0.50s)

=== RUN   TestAccAWSSecurityGroup_ingressWithCidrAndSGsClassic
TestAccAWSSecurityGroup_ingressWithCidrAndSGsClassic: provider_test.go:184: [{0 error configuring Terraform AWS Provider: error validating provider credentials: error calling sts:GetCallerIdentity: InvalidClientTokenId: The security token included in the request is invalid.
  status code: 403, request id: 9909088a-dd37-40db-8774-2ea613dd1b3d  []}]
--- FAIL: TestAccAWSSecurityGroup_ingressWithCidrAndSGsClassic (0.50s)
```

Output from acceptance testing in AWS Commercial:

```
--- PASS: TestAccAWSSecurityGroup_defaultEgressClassic (12.50s)
--- PASS: TestAccAWSSecurityGroup_ingressWithCidrAndSGsClassic (14.84s)
```

Output from acceptance testing in AWS GovCloud (US):

```
--- SKIP: TestAccAWSSecurityGroup_defaultEgressClassic (2.90s)
--- SKIP: TestAccAWSSecurityGroup_ingressWithCidrAndSGsClassic (2.90s)
```
@bflad bflad added the technical-debt Addresses areas of the codebase that need refactoring or redesign. label Nov 5, 2020
@bflad bflad requested a review from a team as a code owner November 5, 2020 01:03
@ghost ghost added size/M Managed by automation to categorize the size of a PR. 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 5, 2020
@YakDriver YakDriver self-assigned this Nov 10, 2020
@YakDriver
Copy link
Member

Looking good in commercial:

--- PASS: TestAccAWSSecurityGroupRule_ExpectInvalidTypeError (8.33s)
--- PASS: TestAccAWSSecurityGroupRule_ExpectInvalidCIDR (12.24s)
--- PASS: TestAccAWSSecurityGroupRule_EgressDescription (49.43s)
--- PASS: TestAccAWSSecurityGroupRule_Egress (51.44s)
--- PASS: TestAccAWSSecurityGroupRule_IngressDescription (51.79s)
--- PASS: TestAccAWSSecurityGroupRule_Issue5310 (51.82s)
--- PASS: TestProtocolForValue (0.58s)
--- PASS: TestProtocolStateFunc (0.67s)
--- PASS: TestResourceAwsSecurityGroupIPPermGather (0.24s)
--- PASS: TestResourceAwsSecurityGroupExpandCollapseRules (0.32s)
--- PASS: TestAccAWSSecurityGroupRule_Ingress_VPC (53.95s)
--- PASS: TestAccAWSSecurityGroupRule_Ingress_Source_With_Account_Id (54.77s)
--- PASS: TestAccAWSSecurityGroupRule_SelfSource (55.02s)
--- PASS: TestAccAWSSecurityGroupRule_Ingress_Classic (55.45s)
--- PASS: TestAccAWSSecurityGroupRule_MultiIngress (55.77s)
--- PASS: TestAccAWSSecurityGroupRule_Ingress_Ipv6 (56.13s)
--- PASS: TestAccAWSSecurityGroupRule_Ingress_Protocol (60.00s)
--- PASS: TestAccAWSSecurityGroupRule_PartialMatching_Source (60.34s)
--- PASS: TestAccAWSSecurityGroupRule_SelfReference (61.76s)
--- PASS: TestAccAWSSecurityGroupRule_PrefixListEgress (70.76s)
--- PASS: TestAccAWSSecurityGroupRule_PartialMatching_basic (75.20s)
--- PASS: TestAccAWSSecurityGroupRule_IngressDescription_updates (92.74s)
--- PASS: TestAccAWSSecurityGroupRule_EgressDescription_updates (94.44s)
--- PASS: TestAccAWSSecurityGroupRule_MultipleRuleSearching_AllProtocolCrash (45.74s)
--- PASS: TestAccAWSSecurityGroupRule_Description_AllPorts_NonZeroPorts (89.97s)
--- PASS: TestAccAWSSecurityGroupRule_Description_AllPorts (94.91s)
--- PASS: TestAccAWSSecurityGroup_sourceSecurityGroup (55.76s)
--- PASS: TestAccAWSSecurityGroup_allowAll (59.88s)
--- PASS: TestAccAWSSecurityGroup_basic (60.43s)
--- PASS: TestAccAWSSecurityGroup_IPRangeAndSecurityGroupWithSameRules (62.52s)
--- SKIP: TestAccAWSSecurityGroup_defaultEgressClassic (0.00s)
--- PASS: TestAccAWSSecurityGroup_namePrefix (51.87s)
--- PASS: TestAccAWSSecurityGroup_IPRangesWithSameRules (68.37s)
--- PASS: TestAccAWSSecurityGroup_ipv6 (63.43s)
--- PASS: TestAccAWSSecurityGroup_ruleGathering (73.58s)
--- PASS: TestAccAWSSecurityGroup_self (59.44s)
--- PASS: TestAccAWSSecurityGroup_invalidCIDRBlock (16.83s)
--- SKIP: TestAccAWSSecurityGroup_ingressWithCidrAndSGsClassic (0.00s)
--- PASS: TestAccAWSSecurityGroupRule_Race (148.35s)
--- PASS: TestAccAWSSecurityGroup_vpcProtoNumIngress (57.36s)
--- PASS: TestAccAWSSecurityGroup_vpc (62.26s)
--- PASS: TestAccAWSSecurityGroup_vpcNegOneIngress (62.63s)
--- PASS: TestAccAWSSecurityGroup_generatedName (52.14s)
--- PASS: TestAccAWSSecurityGroup_multiIngress (64.33s)
--- PASS: TestAccAWSSecurityGroup_drift (48.67s)
--- PASS: TestAccAWSSecurityGroup_defaultEgressVPC (55.33s)
--- PASS: TestAccAWSSecurityGroup_driftComplex (50.47s)
--- PASS: TestAccAWSSecurityGroup_CIDRandGroups (48.41s)
--- PASS: TestAccAWSSecurityGroup_egressConfigMode (127.68s)
--- PASS: TestAccAWSSecurityGroup_ingressWithCidrAndSGsVPC (50.11s)
--- PASS: TestAccAWSSecurityGroup_ingressConfigMode (132.00s)
--- PASS: TestAccAWSSecurityGroupRule_MultiDescription (143.37s)
--- PASS: TestAccAWSSecurityGroup_ipv4andipv6Egress (45.87s)
--- PASS: TestAccAWSSecurityGroup_change (95.76s)
--- PASS: TestAccAWSSecurityGroup_failWithDiffMismatch (46.10s)
--- PASS: TestAccAWSSecurityGroup_egressWithPrefixList (58.94s)
--- PASS: TestAccAWSSecurityGroup_ingressWithPrefixList (55.81s)
--- PASS: TestAccAWSSecurityGroup_tags (91.50s)
--- PASS: TestAccAWSSecurityGroup_ruleLimitCidrBlockExceededAppend (55.96s)
--- PASS: TestAccAWSSecurityGroup_rulesDropOnError (50.01s)
--- PASS: TestAccAWSSecurityGroup_ruleDescription (113.36s)
--- PASS: TestAccAWSSecurityGroup_ruleLimitExceededAppend (69.64s)
--- PASS: TestAccAWSSecurityGroup_ruleLimitExceededPrepend (63.28s)
--- PASS: TestAccAWSSecurityGroup_ruleLimitExceededAllNew (62.47s)
--- PASS: TestAccAWSSecurityGroup_forceRevokeRulesFalse (688.44s)
--- PASS: TestAccAWSSecurityGroup_forceRevokeRulesTrue (705.62s)

Copy link
Member

@YakDriver YakDriver left a comment

Choose a reason for hiding this comment

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

Looks fantastic!

GovCloud:

--- SKIP: TestAccAWSSecurityGroup_defaultEgressClassic (2.76s)
--- SKIP: TestAccAWSSecurityGroup_ingressWithCidrAndSGsClassic (2.64s)

@YakDriver YakDriver added the partition/aws-us-gov Pertains to the aws-us-gov partition. label Nov 11, 2020
@bflad bflad added this to the v3.15.0 milestone Nov 11, 2020
@bflad bflad merged commit feee86f into master Nov 11, 2020
@bflad bflad deleted the t-aws_security_group-ec2-classic branch November 11, 2020 00:49
@ghost
Copy link

ghost commented Nov 12, 2020

This has been released in version 3.15.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 11, 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 as resolved and limited conversation to collaborators Dec 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
partition/aws-us-gov Pertains to the aws-us-gov partition. service/ec2 Issues and PRs that pertain to the ec2 service. size/M Managed by automation to categorize the size of a PR. technical-debt Addresses areas of the codebase that need refactoring or redesign. 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