-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
Apigateway resource, probable bug in https://github.com/k1LoW/awspec/blob/master/lib/awspec/type/apigateway.rb#L34 #523
Comments
@RamanVaskevich1984 , can you please provide references about I found this document that provides
The code seems to be wrong, specially because:
def has_integration_path?(path)
check_existence
self.api_resources.each do |resource|
next if resource.resource_methods.nil?
resource.resource_methods.each do |_, method|
if method.method_integration.http_method == 'AWS'
aws_path = method.method_integration.uri.match(%r{(\/[^\?]+)\??.*$}).captures[0] # Matches for ARN type path
return resource if aws_path == path
end
uri = Addressable::URI.parse(method.method_integration.uri)
return resource if uri.path == path
end
end
nil
end On the other hand, Can you please shed some light on this @RamanVaskevich1984 ? |
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: