1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/aws/requests
Matthew O'Riordan 602f7d3355 Support for required EvaluateTargetHealth for ALIAS records
Note an error was being raised when using the old API about EvaluateTargetHealth being missing.

```
Excon::Errors::BadRequest: Expected(200) <=> Actual(400 Bad Request)
  response => #<Excon::Response:0x007fde3baf66a0 @data={:body=>"<?xml version=\"1.0\"?>\n<ErrorResponse xmlns=\"https://route53.amazonaws.com/doc/2013-04-01/\"><Error><Type>Sender</Type><Code>InvalidInput</Code><Message>Invalid XML ; cvc-complex-type.2.4.b: The content of element 'AliasTarget' is not complete. One of '{&quot;https://route53.amazonaws.com/doc/2013-04-01/&quot;:EvaluateTargetHealth}' is expected.</Message></Error><RequestId>f141b55c-f726-11e3-b2ac-73337c63db62</RequestId></ErrorResponse>", :headers=>{"x-amzn-RequestId"=>"f141b55c-f726-11e3-b2ac-73337c63db62", "Content-Type"=>"text/xml", "Content-Length"=>"438", "Date"=>"Wed, 18 Jun 2014 20:27:17 GMT"}, :status=>400, :remote_ip=>"72.21.214.31", :local_port=>60240, :local_address=>"192.168.1.85"}, @body="<?xml version=\"1.0\"?>\n<ErrorResponse xmlns=\"https://route53.amazonaws.com/doc/2013-04-01/\"><Error><Type>Sender</Type><Code>InvalidInput</Code><Message>Invalid XML ; cvc-complex-type.2.4.b: The content of element 'AliasTarget' is not complete. One of '{&quot;https://route53.amazonaws.com/doc/2013-04-01/&quot;:EvaluateTargetHealth}' is expected.</Message></Error><RequestId>f141b55c-f726-11e3-b2ac-73337c63db62</RequestId></ErrorResponse>", @headers={"x-amzn-RequestId"=>"f141b55c-f726-11e3-b2ac-73337c63db62", "Content-Type"=>"text/xml", "Content-Length"=>"438", "Date"=>"Wed, 18 Jun 2014 20:27:17 GMT"}, @status=400, @remote_ip="72.21.214.31", @local_port=60240, @local_address="192.168.1.85">
	from /gems/ruby-2.0.0-p353/gems/excon-0.37.0/lib/excon/middlewares/expects.rb:6:in `response_call'
	from /gems/ruby-2.0.0-p353/gems/excon-0.37.0/lib/excon/middlewares/response_parser.rb:26:in `response_call'
	from /gems/ruby-2.0.0-p353/gems/excon-0.37.0/lib/excon/connection.rb:402:in `response'
	from /gems/ruby-2.0.0-p353/gems/excon-0.37.0/lib/excon/connection.rb:272:in `request'
	from /gems/ruby-2.0.0-p353/gems/fog-1.22.1/lib/fog/xml/sax_parser_connection.rb:35:in `request'
	from /gems/ruby-2.0.0-p353/gems/fog-1.22.1/lib/fog/xml.rb:21:in `request'
	from /gems/ruby-2.0.0-p353/gems/fog-1.22.1/lib/fog/aws/dns.rb:126:in `request'
	from /gems/ruby-2.0.0-p353/gems/fog-1.22.1/lib/fog/aws/requests/dns/change_resource_record_sets.rb:120:in `change_resource_record_sets'
```
2014-06-18 23:32:57 +01:00
..
auto_scaling Replace deprecated Hash methods 2014-05-26 16:22:08 +01:00
beanstalk
cdn
cloud_formation
cloud_watch Replace deprecated Hash methods 2014-05-26 16:22:08 +01:00
compute Merge pull request #2979 from gregburek/aws-sg-mock 2014-06-06 15:14:43 -05:00
data_pipeline Add support for tags for Data Pipeline 2014-06-03 16:45:44 -04:00
dns Support for required EvaluateTargetHealth for ALIAS records 2014-06-18 23:32:57 +01:00
dynamodb
elasticache Standardise on collection methods 2014-05-26 16:22:07 +01:00
elb fix for 1.8.7 2014-06-06 11:04:50 -04:00
emr
glacier
iam Replace deprecated Hash methods 2014-05-26 16:22:08 +01:00
rds Replace deprecated Hash methods 2014-05-26 16:22:08 +01:00
redshift Remove trailing blank lines 2014-05-26 14:35:26 +01:00
ses Replace deprecated Hash methods 2014-05-26 16:22:08 +01:00
simpledb Replace deprecated Hash methods 2014-05-26 16:22:08 +01:00
sns
sqs Replace deprecated Hash methods 2014-05-26 16:22:08 +01:00
storage Replace deprecated Hash methods 2014-05-26 16:22:08 +01:00
sts