You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Probably there is a bug in apigateway resource type code https://github.com/k1LoW/awspec/blob/master/lib/awspec/type/apigateway.rb#L34.
According to AWS design there is no http_method for integration like 'AWS'.
'AWS' can be one of integration types for aws_api_gateway_integration.
That causes an error when running apigateway resource kitchen tests for:
have_integration_path
have_integration_method.
The text was updated successfully, but these errors were encountered:
@RamanVaskevich1984 , can you please provide references about AWS not being an integration method?
I found this document that provides AWS as one of the available integration methods:
Represents an HTTP, HTTP_PROXY, AWS, AWS_PROXY, or Mock integration.
The code seems to be wrong, specially because:
Doesn't check for other possibilities of integration methods;
Seems to be mixing the concepts of http_method and method_integration as described in the SDK page.
defhas_integration_path?(path)check_existenceself.api_resources.eachdo |resource|
nextifresource.resource_methods.nil?resource.resource_methods.eachdo |_,method|
ifmethod.method_integration.http_method == 'AWS'aws_path=method.method_integration.uri.match(%r{(\/[^\?]+)\??.*$}).captures[0]# Matches for ARN type pathreturnresourceifaws_path == pathenduri=Addressable::URI.parse(method.method_integration.uri)returnresourceifuri.path == pathendendnilend
On the other hand, AWS is used in stub response from the AWS API (lib/awspec/stub/apigateway.rb), but I don't have an API Gateway available for validating the response neither the theory about how this is suppose to work.
Probably there is a bug in apigateway resource type code https://github.com/k1LoW/awspec/blob/master/lib/awspec/type/apigateway.rb#L34.
According to AWS design there is no http_method for integration like 'AWS'.
'AWS' can be one of integration types for aws_api_gateway_integration.
That causes an error when running apigateway resource kitchen tests for:
have_integration_path
have_integration_method.
The text was updated successfully, but these errors were encountered: