Skip to content

Commit

Permalink
Merge pull request #873 from ktheory/fix-cfn-validation-error
Browse files Browse the repository at this point in the history
Fix stubbing errors with 'query' protocol
  • Loading branch information
trevorrowe committed Jul 21, 2015
2 parents 3728049 + d1ab862 commit 0143200
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions aws-sdk-core/lib/aws-sdk-core/stubbing/protocols/query.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@ def stub_data(api, operation, data)
end

def stub_error(error_code)
http_resp = Seahorse::Client::Http::Response.new
http_resp.status_code = 400
http_resp.body = <<-XML.strip
<ErrorResponse>
<Error>
<Code>#{error_code}</Code>
<Message>stubbed-response-error-message</Message>
</Error>
</ErrorResponse>
XML
http_resp
end

private
Expand Down

0 comments on commit 0143200

Please sign in to comment.