[Debian-ha-commits] [fence-agents] 03/09: Disable Internet access during build (Closes: #849336)
Valentin Vidic
vvidic-guest at moszumanska.debian.org
Sun Dec 3 19:52:12 UTC 2017
This is an automated email from the git hooks/post-receive script.
vvidic-guest pushed a commit to branch master
in repository fence-agents.
commit f95d02b3daee7f86f9f717321565a7686d53e0f3
Author: Valentin Vidic <Valentin.Vidic at CARNet.hr>
Date: Sun Dec 3 19:22:03 2017 +0100
Disable Internet access during build (Closes: #849336)
Agents try to resolve and access hostname 'test', use
127.0.0.1 instead.
Disable testing for ovh as it tries to access SOAP service
on www.ovh.com.
---
debian/patches/disable-network-access | 16 ++++++++++++++++
debian/patches/series | 1 +
debian/rules | 4 ++++
3 files changed, 21 insertions(+)
diff --git a/debian/patches/disable-network-access b/debian/patches/disable-network-access
new file mode 100644
index 0000000..32eef8e
--- /dev/null
+++ b/debian/patches/disable-network-access
@@ -0,0 +1,16 @@
+--- a/fence/agents/Makefile.am
++++ b/fence/agents/Makefile.am
+@@ -36,11 +36,11 @@
+ FENCE_TEST_ARGS = \
+ login=test\n\
+ passwd=test\n\
+-ipaddr=test\n\
++ipaddr=127.0.0.1\n\
+ port=1\n\
+ managed=1\n\
+ devices=test\n\
+-session_url=http://test\n\
++session_url=http://127.0.0.1\n\
+ email=test at test.te
+
+ manual/fence_ack_manual: manual/fence_ack_manual.in
diff --git a/debian/patches/series b/debian/patches/series
index 64db21d..bf3cfd5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
reproducible
remove-fence_amt_ws
+disable-network-access
diff --git a/debian/rules b/debian/rules
index 54ccb32..4db4be0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -42,6 +42,10 @@ endif
PYTHONPATH=debian/tmp/usr/share/fence $$agent --help >/dev/null || exit; \
done
+override_dh_auto_test:
+ # disable testing for ovh as it tries to access SOAP service on www.ovh.com
+ dh_auto_test -- TEST_TARGET_SKIP=ovh/fence_ovh
+
override_dh_python2:
dh_python2
dh_python2 /usr/share/fence
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-ha/fence-agents.git
More information about the Debian-HA-Commits
mailing list