[DRE-commits] [ruby-fog-aws] 03/04: Add patch to work around an issue with AWS DNS tests

Miguel Landaeta nomadium at moszumanska.debian.org
Sun Sep 27 04:04:26 UTC 2015


This is an automated email from the git hooks/post-receive script.

nomadium pushed a commit to branch master
in repository ruby-fog-aws.

commit 2595b1c36f488cf4f7721d15b514f961ac11abb5
Author: Miguel Landaeta <nomadium at debian.org>
Date:   Sun Sep 27 00:26:58 2015 -0300

    Add patch to work around an issue with AWS DNS tests
---
 debian/changelog                                      |  3 ++-
 .../patches/03-workaround-aws-dns-service-tests.patch | 19 +++++++++++++++++++
 debian/patches/series                                 |  1 +
 3 files changed, 22 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 5572c6f..45d6c2c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,8 +2,9 @@ ruby-fog-aws (0.7.6-1) UNRELEASED; urgency=medium
 
   * New upstream release.
   * Wrap ruby-fog-aws binary package dependencies list.
+  * Add patch d/p/03-workaround-aws-dns-service-tests.patch.
 
- -- Miguel Landaeta <nomadium at debian.org>  Sun, 27 Sep 2015 00:25:19 -0300
+ -- Miguel Landaeta <nomadium at debian.org>  Sun, 27 Sep 2015 00:26:39 -0300
 
 ruby-fog-aws (0.7.0-1) unstable; urgency=medium
 
diff --git a/debian/patches/03-workaround-aws-dns-service-tests.patch b/debian/patches/03-workaround-aws-dns-service-tests.patch
new file mode 100644
index 0000000..0362440
--- /dev/null
+++ b/debian/patches/03-workaround-aws-dns-service-tests.patch
@@ -0,0 +1,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 at 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
diff --git a/debian/patches/series b/debian/patches/series
index 78af513..5a4f1d8 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 01-dont-use-rubygems-to-run-tests.patch
 02-use-rubyzip-1.0-apis-for-tests.patch
+03-workaround-aws-dns-service-tests.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-fog-aws.git



More information about the Pkg-ruby-extras-commits mailing list