Bug#907443: libdancer-perl: Make autopkgtests proxy-safe

Steve Langasek steve.langasek at canonical.com
Tue Aug 28 06:12:56 BST 2018


Package: libdancer-perl
Version: 1.3400+dfsg-1
Severity: minor
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu cosmic ubuntu-patch

Dear maintainers,

The libdancer-perl autopkgtests fail on Ubuntu's infrastructure because they
try to access the configured proxy instead of talking directly to the local
test server:

[...]
t/02_request/20_body.t .............................. 
1..2
# Selected 127.0.0.11:37639
not ok 1 - req is success

#   Failed test 'req is success'
#   at t/02_request/20_body.t line 30.
not ok 2 - raw_data is OK

#   Failed test 'raw_data is OK'
#   at t/02_request/20_body.t line 31.
#          got: '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
# <html><head>
# <meta http-equiv="Content-Type" CONTENT="text/html; charset=utf-8">
# <title>ERROR: The requested URL could not be retrieved</title>
# <style type="text/css"><!-- 
#  /*
#  Stylesheet for Squid Error pages
#  Adapted from design by Free CSS Templates
#  http://www.freecsstemplates.org
#  Released for free under a Creative Commons Attribution 2.5 License
[...]
# '
#     expected: 'foo=bar&bar=baz'
# Looks like you failed 2 tests of 2.
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/2 subtests 
[...]

  (http://autopkgtest.ubuntu.com/packages/libd/libdancer-perl/cosmic/amd64)

Connections to 127.0.0.11:37639 should of course not go through a remote
squid proxy.

The attached patch has been uploaded to Ubuntu, allowing the autopkgtests to
now pass there.  Please consider applying this patch in Debian as well.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                   https://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org
-------------- next part --------------
diff -Nru libdancer-perl-1.3400+dfsg/debian/tests/pkg-perl/smoke-env libdancer-perl-1.3400+dfsg/debian/tests/pkg-perl/smoke-env
--- libdancer-perl-1.3400+dfsg/debian/tests/pkg-perl/smoke-env	1969-12-31 16:00:00.000000000 -0800
+++ libdancer-perl-1.3400+dfsg/debian/tests/pkg-perl/smoke-env	2018-08-27 21:36:22.000000000 -0700
@@ -0,0 +1,2 @@
+http_proxy=
+https_proxy=


More information about the pkg-perl-maintainers mailing list