1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
Description: Silly workaround for some AWS DNS tests
I'm pretty sure this is not a correct solution but
I couldn't figure out why do I need to call Fog::DNS[:aws]
to avoid getting NoMethodError when
Fog::DNS::AWS.hosted_zone_for_alias_target is called...
Author: Miguel Landaeta <nomadium@debian.org>
Forwarded: no
Last-Update: 2015-09-26
--- ruby-fog-aws-0.7.6.orig/tests/requests/dns/change_resource_record_sets_tests.rb
+++ ruby-fog-aws-0.7.6/tests/requests/dns/change_resource_record_sets_tests.rb
@@ -1,6 +1,7 @@
Shindo.tests('Fog::DNS[:aws] | change_resource_record_sets', ['aws', 'dns']) do
tests('success') do
test('#elb_hosted_zone_mapping from DNS name') do
+ Fog::DNS[:aws] # why upstream doesn't need to do this?
zone_id = Fog::DNS::AWS.hosted_zone_for_alias_target('arbitrary-sub-domain.eu-west-1.elb.amazonaws.com')
zone_id == Fog::DNS::AWS.elb_hosted_zone_mapping['eu-west-1']
end
|