Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
AWS::SES | topic lifecycle tests (aws, sns)
Expected(200) <=> Actual(400 Bad Request)
request => {:chunk_size=>1048576, :connect_timeout=>60, :debug_request=>true, :debug_response=>true, :headers=>{"User-Agent"=>"fog/1.15.0", "Content-Type"=>"application/x-www-form-urlencoded", "Host"=>"sqs.us-east-1.amazonaws.com:443"}, :idempotent=>nil, :instrumentor_name=>"excon", :middlewares=>[Excon::Middleware::ResponseParser, Excon::Middleware::Expects, Excon::Middleware::Idempotent, Excon::Middleware::Instrumentor, Excon::Middleware::Mock], :mock=>true, :nonblock=>true, :omit_default_port=>false, :read_timeout=>60, :retry_limit=>4, :ssl_verify_peer=>true, :tcp_nodelay=>false, :uri_parser=>URI, :write_timeout=>60, :host=>"sqs.us-east-1.amazonaws.com", :path=>"/065873908207/fog_subscription_tests", :port=>"443", :query=>nil, :scheme=>"https", :user=>nil, :password=>nil, :__construction_args=>{:host=>"sqs.us-east-1.amazonaws.com", :path=>"/", :port=>"443", :query=>nil, :scheme=>"https", :user=>nil, :password=>nil, :debug_response=>true, :headers=>{"User-Agent"=>"fog/1.15.0"}}, :body=>"AWSAccessKeyId=_removed_&Action=SetQueueAttributes&Attribute.Name=Policy&Attribute.Value=%7B%22Id%22%3A%22arn%3Aaws%3Asns%3Aus-east-1%3A065873908207%3Afog_subscription_tests%22%2C%22Statement%22%3A%7B%22Action%22%3A%22sqs%3ASendMessage%22%2C%22Condition%22%3A%7B%22StringEquals%22%3A%7B%22aws%3ASourceArn%22%3A%22arn%3Aaws%3Asns%3Aus-east-1%3A065873908207%3Afog_subscription_tests%22%7D%7D%2C%22Effect%22%3A%22Allow%22%2C%22Principal%22%3A%7B%22AWS%22%3A%22%2A%22%7D%2C%22Resource%22%3A%22arn%3Aaws%3Asqs%3Aus-east-1%3A065873908207%3Afog_subscription_tests%22%2C%22Sid%22%3A%22arn%3Aaws%3Asns%3Aus-east-1%3A065873908207%3Afog_subscription_tests%2Bsqs%3ASendMessage%22%7D%2C%22Version%22%3A%222009-02-07%22%7D&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2013-09-17T17%3A26%3A18Z&Version=2009-02-01&Signature=IW2gof2hmp3kQSZIJCsvZdA8DXZeL55o%2B5hU8m/Tx4I%3D", :expects=>200, :response_block=>#<Proc:0x007fbafb568ed0@/Users/gabe/work/libraries/ruby/gems/fog/lib/fog/xml/sax_parser_connection.rb:30 (lambda)>, :retries_remaining=>4, :method=>:post, :captures=>{:headers=>{}}}
response => #<Excon::Response:0x007fbafb411208 @data={:body=>"<?xml version=\"1.0\"?><ErrorResponse xmlns=\"http://queue.amazonaws.com/doc/2009-02-01/\"><Error><Type>Sender</Type><Code>InvalidAttributeValue</Code><Message>Invalid value for the parameter Policy.</Message><Detail/></Error><RequestId>47d9c353-dae1-5732-bf78-89e148186685</RequestId></ErrorResponse>", :headers=>{"x-amzn-RequestId"=>"47d9c353-dae1-5732-bf78-89e148186685", "Content-Type"=>"text/xml", "Content-Length"=>"297"}, :status=>400, :remote_ip=>"176.32.101.27"}, @body="<?xml version=\"1.0\"?><ErrorResponse xmlns=\"http://queue.amazonaws.com/doc/2009-02-01/\"><Error><Type>Sender</Type><Code>InvalidAttributeValue</Code><Message>Invalid value for the parameter Policy.</Message><Detail/></Error><RequestId>47d9c353-dae1-5732-bf78-89e148186685</RequestId></ErrorResponse>", @headers={"x-amzn-RequestId"=>"47d9c353-dae1-5732-bf78-89e148186685", "Content-Type"=>"text/xml", "Content-Length"=>"297"}, @status=400, @remote_ip="176.32.101.27"> (Excon::Errors::BadRequest)
/Users/gabe/work/libraries/ruby/gems/fog/vendor/bundle/gems/excon-0.25.3/lib/excon/middlewares/expects.rb:10:in `response_call'
/Users/gabe/work/libraries/ruby/gems/fog/vendor/bundle/gems/excon-0.25.3/lib/excon/middlewares/response_parser.rb:8:in `response_call'
/Users/gabe/work/libraries/ruby/gems/fog/vendor/bundle/gems/excon-0.25.3/lib/excon/connection.rb:349:in `response'
/Users/gabe/work/libraries/ruby/gems/fog/vendor/bundle/gems/excon-0.25.3/lib/excon/connection.rb:247:in `request'
/Users/gabe/work/libraries/ruby/gems/fog/lib/fog/xml/sax_parser_connection.rb:36:in `request'
/Users/gabe/work/libraries/ruby/gems/fog/lib/fog/core/deprecated/connection.rb:18:in `request'
/Users/gabe/work/libraries/ruby/gems/fog/lib/fog/aws/sqs.rb:142:in `request'
/Users/gabe/work/libraries/ruby/gems/fog/lib/fog/aws/requests/sqs/set_queue_attributes.rb:26:in `set_queue_attributes'
/Users/gabe/work/libraries/ruby/gems/fog/tests/aws/requests/sns/subscription_tests.rb:7:in `block in <top (required)>'
/Users/gabe/work/libraries/ruby/gems/fog/vendor/bundle/gems/shindo-0.3.6/lib/shindo.rb:79:in `instance_eval'
/Users/gabe/work/libraries/ruby/gems/fog/vendor/bundle/gems/shindo-0.3.6/lib/shindo.rb:79:in `tests'
/Users/gabe/work/libraries/ruby/gems/fog/vendor/bundle/gems/shindo-0.3.6/lib/shindo.rb:38:in `initialize'
/Users/gabe/work/libraries/ruby/gems/fog/vendor/bundle/gems/shindo-0.3.6/lib/shindo.rb:13:in `new'
/Users/gabe/work/libraries/ruby/gems/fog/vendor/bundle/gems/shindo-0.3.6/lib/shindo.rb:13:in `tests'
/Users/gabe/work/libraries/ruby/gems/fog/tests/aws/requests/sns/subscription_tests.rb:1:in `<top (required)>'
/Users/gabe/work/libraries/ruby/gems/fog/vendor/bundle/gems/shindo-0.3.6/lib/shindo/bin.rb:61:in `load'
/Users/gabe/work/libraries/ruby/gems/fog/vendor/bundle/gems/shindo-0.3.6/lib/shindo/bin.rb:61:in `block (2 levels) in run_in_thread'
/Users/gabe/work/libraries/ruby/gems/fog/vendor/bundle/gems/shindo-0.3.6/lib/shindo/bin.rb:58:in `each'
/Users/gabe/work/libraries/ruby/gems/fog/vendor/bundle/gems/shindo-0.3.6/lib/shindo/bin.rb:58:in `block in run_in_thread'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.