provider/aws: Add regression test for #5891
This commit is contained in:
parent
0194cfda0a
commit
5210e1127e
|
@ -45,6 +45,9 @@ func testAccCheckAWSAPIGatewayIntegrationResponseAttributes(conf *apigateway.Int
|
||||||
if *conf.ResponseTemplates["application/xml"] != "#set($inputRoot = $input.path('$'))\n{ }" {
|
if *conf.ResponseTemplates["application/xml"] != "#set($inputRoot = $input.path('$'))\n{ }" {
|
||||||
return fmt.Errorf("wrong ResponseTemplate for application/xml")
|
return fmt.Errorf("wrong ResponseTemplate for application/xml")
|
||||||
}
|
}
|
||||||
|
if conf.SelectionPattern == nil || *conf.SelectionPattern != ".*" {
|
||||||
|
return fmt.Errorf("wrong SelectionPattern (expected .*)")
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -164,6 +167,7 @@ resource "aws_api_gateway_integration_response" "test" {
|
||||||
resource_id = "${aws_api_gateway_resource.test.id}"
|
resource_id = "${aws_api_gateway_resource.test.id}"
|
||||||
http_method = "${aws_api_gateway_method.test.http_method}"
|
http_method = "${aws_api_gateway_method.test.http_method}"
|
||||||
status_code = "${aws_api_gateway_method_response.error.status_code}"
|
status_code = "${aws_api_gateway_method_response.error.status_code}"
|
||||||
|
selection_pattern = ".*"
|
||||||
|
|
||||||
response_templates = {
|
response_templates = {
|
||||||
"application/json" = ""
|
"application/json" = ""
|
||||||
|
|
Loading…
Reference in New Issue