Skip to content

Commit

Permalink
Use 'testAccErrorCheckSkipMessagesContaining' for GovCloud errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed May 10, 2021
1 parent aa92f24 commit 8193667
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions aws/resource_aws_lb_listener_rule_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -517,10 +517,6 @@ func TestAccAWSLBListenerRule_priority(t *testing.T) {
}

func TestAccAWSLBListenerRule_cognito(t *testing.T) {
if testAccGetPartition() == "aws-us-gov" {
t.Skip("LB Listener Rule action type 'authenticate-cognito' type is not supported in GovCloud partition")
}

var conf elbv2.Rule
key := tlsRsaPrivateKeyPem(2048)
certificate := tlsRsaX509SelfSignedCertificatePem(key, "example.com")
Expand Down
1 change: 1 addition & 0 deletions aws/resource_aws_lb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ func init() {
func testAccErrorCheckSkipELBv2(t *testing.T) resource.ErrorCheckFunc {
return testAccErrorCheckSkipMessagesContaining(t,
"ValidationError: Type must be one of: 'application, network'",
"ValidationError: Action type 'authenticate-cognito' must be one of 'redirect,fixed-response,forward,authenticate-oidc'",
)
}

Expand Down

0 comments on commit 8193667

Please sign in to comment.