tests/aws/requests/dns/dns_tests.rb in fog-1.22.1 vs tests/aws/requests/dns/dns_tests.rb in fog-1.23.0
- old
+ new
@@ -178,12 +178,13 @@
dns_name = elb["DNSName"]
# create an ALIAS record
host = @domain_name
alias_target = {
- :hosted_zone_id => hosted_zone_id,
- :dns_name => dns_name
+ :hosted_zone_id => hosted_zone_id,
+ :dns_name => dns_name,
+ :evaluate_target_health => false
}
resource_record = { :name => host, :type => 'A', :alias_target => alias_target }
resource_record_set = resource_record.merge(:action => 'CREATE')
change_batch = []
@@ -243,10 +244,10 @@
tests('create hosted zone using invalid domain name').raises(Excon::Errors::BadRequest) do
pending if Fog.mocking?
response = @r53_connection.create_hosted_zone('invalid-domain')
end
- tests('get hosted zone using invalid ID').raises(Excon::Errors::Forbidden) do
+ tests('get hosted zone using invalid ID').raises(Excon::Errors::NotFound) do
pending if Fog.mocking?
zone_id = 'dummy-id'
response = @r53_connection.get_hosted_zone(zone_id)
end