[Pkg-freeipa-devel] [Git][freeipa-team/python-kdcproxy][master] 2 commits: rules: Set a local http_proxy to avoid accessing network. (Closes: #833000)
Timo Aaltonen
gitlab at salsa.debian.org
Thu May 3 10:32:57 BST 2018
Timo Aaltonen pushed to branch master at FreeIPA packaging / python-kdcproxy
Commits:
5d1807d3 by Timo Aaltonen at 2016-10-27T10:18:32+03:00
rules: Set a local http_proxy to avoid accessing network. (Closes: #833000)
- - - - -
eee67da8 by Timo Aaltonen at 2016-10-27T13:25:02+03:00
releasing package python-kdcproxy version 0.3.2-4
- - - - -
3 changed files:
- debian/changelog
- + debian/patches/workaround-mock-bug.diff
- debian/rules
Changes:
=====================================
debian/changelog
=====================================
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+python-kdcproxy (0.3.2-4) unstable; urgency=medium
+
+ * rules: Set a local http_proxy to avoid accessing network.
+ (Closes: #833000)
+
+ -- Timo Aaltonen <tjaalton at debian.org> Thu, 27 Oct 2016 10:18:34 +0300
+
python-kdcproxy (0.3.2-3) unstable; urgency=medium
* control: Add libkrb5-3 to build-depends.
=====================================
debian/patches/workaround-mock-bug.diff
=====================================
--- /dev/null
+++ b/debian/patches/workaround-mock-bug.diff
@@ -0,0 +1,22 @@
+https://github.com/testing-cabal/mock/issues/323
+
+--- a/tests.py
++++ b/tests.py
+@@ -79,7 +79,7 @@ class KDCProxyWSGITests(unittest.TestCas
+ self.assertEqual(r.text, 'Method not allowed (GET).')
+
+ @mock.patch('socket.getaddrinfo', return_value=addrinfo)
+- @mock.patch('socket.socket', autospec=True)
++ @mock.patch('socket.socket')
+ def test_post_asreq(self, m_socket, m_getaddrinfo):
+ response = self.post(KDCProxyCodecTests.asreq1)
+ self.assert_response(response)
+@@ -92,7 +92,7 @@ class KDCProxyWSGITests(unittest.TestCas
+ )
+
+ @mock.patch('socket.getaddrinfo', return_value=addrinfo)
+- @mock.patch('socket.socket', autospec=True)
++ @mock.patch('socket.socket')
+ def test_post_kpasswd(self, m_socket, m_getaddrinfo):
+ response = self.post(KDCProxyCodecTests.kpasswdreq)
+ self.assert_response(response)
=====================================
debian/rules
=====================================
--- a/debian/rules
+++ b/debian/rules
@@ -11,4 +11,4 @@ override_dh_auto_install:
rm -rf debian/python*-kdcproxy/usr/lib/python*/dist-packages/kdcproxy-*.egg-info
override_dh_auto_test:
- tox --sitepackages -e py27,py35
+ http_proxy='http://127.0.0.1:9/' tox --sitepackages -e py27,py35
View it on GitLab: https://salsa.debian.org/freeipa-team/python-kdcproxy/compare/759240b2e72b41c2a3409bbc974cd5fccad6adbc...eee67da8159b0b0f8e099462306d739dffd1a8fb
---
View it on GitLab: https://salsa.debian.org/freeipa-team/python-kdcproxy/compare/759240b2e72b41c2a3409bbc974cd5fccad6adbc...eee67da8159b0b0f8e099462306d739dffd1a8fb
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-freeipa-devel/attachments/20180503/54a065cc/attachment-0001.html>
More information about the Pkg-freeipa-devel
mailing list