diff --git a/aws/resource_aws_lb_listener_rule_test.go b/aws/resource_aws_lb_listener_rule_test.go index 78afe17f3a4..5711ff6ac48 100644 --- a/aws/resource_aws_lb_listener_rule_test.go +++ b/aws/resource_aws_lb_listener_rule_test.go @@ -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") diff --git a/aws/resource_aws_lb_test.go b/aws/resource_aws_lb_test.go index df9ebf31efb..122281d19d3 100644 --- a/aws/resource_aws_lb_test.go +++ b/aws/resource_aws_lb_test.go @@ -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'", ) }