Diff of the two buildlogs: -- --- b1/build.log 2020-05-27 15:52:47.878341423 +0000 +++ b2/build.log 2020-05-27 15:56:49.897526676 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Wed May 27 03:49:39 -12 2020 -I: pbuilder-time-stamp: 1590594579 +I: Current time: Thu May 28 05:52:59 +14 2020 +I: pbuilder-time-stamp: 1590594779 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/buster-reproducible-base.tgz] I: copying local configuration @@ -17,7 +17,7 @@ I: Extracting source gpgv: unknown type of key resource 'trustedkeys.kbx' gpgv: keyblock resource '/root/.gnupg/trustedkeys.kbx': General error -gpgv: Signature made Sun Jan 13 05:38:25 2019 -12 +gpgv: Signature made Mon Jan 14 07:38:25 2019 +14 gpgv: using RSA key 58B66D48736BE93B052DE6729C5C99EB05BD750A gpgv: Can't check signature: No public key dpkg-source: warning: failed to verify signature on ./ruby-rest-client_2.0.2-3.1.dsc @@ -30,6 +30,170 @@ dpkg-source: info: applying proxy-proof-tests.patch I: using fakeroot in build. I: Installing the build-deps +I: user script /srv/workspace/pbuilder/13595/tmp/hooks/D01_modify_environment starting +debug: Running on opi2a. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +Removing 'diversion of /bin/sh to /bin/sh.distrib by dash' +Adding 'diversion of /bin/sh to /bin/sh.distrib by bash' +Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash' +Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash' +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/13595/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/13595/tmp/hooks/D02_print_environment starting +I: set + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="0" [2]="3" [3]="1" [4]="release" [5]="arm-unknown-linux-gnueabihf") + BASH_VERSION='5.0.3(1)-release' + BUILDDIR=/build + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=armhf + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=4' + DIRSTACK=() + DISTRIBUTION= + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=arm + HOST_ARCH=armhf + IFS=' + ' + INVOCATION_ID=20f15b2f3df24f26be4f938b5c962f79 + LANG=C + LANGUAGE=it_CH:it + LC_ALL=C + MACHTYPE=arm-unknown-linux-gnueabihf + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnueabihf + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=13595 + PS4='+ ' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/tmp.Ubitrsbs8e/pbuilderrc_OKRw --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/buster-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.Ubitrsbs8e/b2 --logfile b2/build.log ruby-rest-client_2.0.2-3.1.dsc' + SUDO_GID=114 + SUDO_UID=109 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://10.0.0.15:8000/ +I: uname -a + Linux i-capture-the-hostname 4.19.0-9-armmp-lpae #1 SMP Debian 4.19.118-2 (2020-04-29) armv7l GNU/Linux +I: ls -l /bin + total 3328 + -rwxr-xr-x 1 root root 767656 Apr 18 2019 bash + -rwxr-xr-x 3 root root 26052 Jul 11 2019 bunzip2 + -rwxr-xr-x 3 root root 26052 Jul 11 2019 bzcat + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzcmp -> bzdiff + -rwxr-xr-x 1 root root 2227 Jul 11 2019 bzdiff + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzegrep -> bzgrep + -rwxr-xr-x 1 root root 4877 Jun 25 2019 bzexe + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzfgrep -> bzgrep + -rwxr-xr-x 1 root root 3641 Jul 11 2019 bzgrep + -rwxr-xr-x 3 root root 26052 Jul 11 2019 bzip2 + -rwxr-xr-x 1 root root 9636 Jul 11 2019 bzip2recover + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzless -> bzmore + -rwxr-xr-x 1 root root 1297 Jul 11 2019 bzmore + -rwxr-xr-x 1 root root 22432 Mar 1 2019 cat + -rwxr-xr-x 1 root root 38868 Mar 1 2019 chgrp + -rwxr-xr-x 1 root root 38836 Mar 1 2019 chmod + -rwxr-xr-x 1 root root 42972 Mar 1 2019 chown + -rwxr-xr-x 1 root root 88376 Mar 1 2019 cp + -rwxr-xr-x 1 root root 75516 Jan 18 2019 dash + -rwxr-xr-x 1 root root 71648 Mar 1 2019 date + -rwxr-xr-x 1 root root 51212 Mar 1 2019 dd + -rwxr-xr-x 1 root root 55672 Mar 1 2019 df + -rwxr-xr-x 1 root root 88444 Mar 1 2019 dir + -rwxr-xr-x 1 root root 54872 Jan 10 2019 dmesg + lrwxrwxrwx 1 root root 8 Sep 27 2018 dnsdomainname -> hostname + lrwxrwxrwx 1 root root 8 Sep 27 2018 domainname -> hostname + -rwxr-xr-x 1 root root 22364 Mar 1 2019 echo + -rwxr-xr-x 1 root root 28 Jan 8 2019 egrep + -rwxr-xr-x 1 root root 18260 Mar 1 2019 false + -rwxr-xr-x 1 root root 28 Jan 8 2019 fgrep + -rwxr-xr-x 1 root root 47356 Jan 10 2019 findmnt + -rwsr-xr-x 1 root root 21980 Apr 23 09:38 fusermount + -rwxr-xr-x 1 root root 124508 Jan 8 2019 grep + -rwxr-xr-x 2 root root 2345 Jan 6 2019 gunzip + -rwxr-xr-x 1 root root 6375 Jan 6 2019 gzexe + -rwxr-xr-x 1 root root 64232 Jan 6 2019 gzip + -rwxr-xr-x 1 root root 13784 Sep 27 2018 hostname + -rwxr-xr-x 1 root root 43044 Mar 1 2019 ln + -rwxr-xr-x 1 root root 34932 Jul 27 2018 login + -rwxr-xr-x 1 root root 88444 Mar 1 2019 ls + -rwxr-xr-x 1 root root 67036 Jan 10 2019 lsblk + -rwxr-xr-x 1 root root 47168 Mar 1 2019 mkdir + -rwxr-xr-x 1 root root 43040 Mar 1 2019 mknod + -rwxr-xr-x 1 root root 26552 Mar 1 2019 mktemp + -rwxr-xr-x 1 root root 26024 Jan 10 2019 more + -rwsr-xr-x 1 root root 34268 Jan 10 2019 mount + -rwxr-xr-x 1 root root 9688 Jan 10 2019 mountpoint + -rwxr-xr-x 1 root root 84284 Mar 1 2019 mv + lrwxrwxrwx 1 root root 8 Sep 27 2018 nisdomainname -> hostname + lrwxrwxrwx 1 root root 14 Feb 15 2019 pidof -> /sbin/killall5 + -rwxr-xr-x 1 root root 22416 Mar 1 2019 pwd + lrwxrwxrwx 1 root root 4 Apr 18 2019 rbash -> bash + -rwxr-xr-x 1 root root 26504 Mar 1 2019 readlink + -rwxr-xr-x 1 root root 42968 Mar 1 2019 rm + -rwxr-xr-x 1 root root 26496 Mar 1 2019 rmdir + -rwxr-xr-x 1 root root 14136 Jan 22 2019 run-parts + -rwxr-xr-x 1 root root 76012 Dec 23 2018 sed + lrwxrwxrwx 1 root root 4 May 28 05:53 sh -> bash + lrwxrwxrwx 1 root root 4 May 27 22:27 sh.distrib -> dash + -rwxr-xr-x 1 root root 22384 Mar 1 2019 sleep + -rwxr-xr-x 1 root root 51124 Mar 1 2019 stty + -rwsr-xr-x 1 root root 42472 Jan 10 2019 su + -rwxr-xr-x 1 root root 22392 Mar 1 2019 sync + -rwxr-xr-x 1 root root 283324 Apr 24 2019 tar + -rwxr-xr-x 1 root root 9808 Jan 22 2019 tempfile + -rwxr-xr-x 1 root root 63464 Mar 1 2019 touch + -rwxr-xr-x 1 root root 18260 Mar 1 2019 true + -rwxr-xr-x 1 root root 9636 Apr 23 09:38 ulockmgr_server + -rwsr-xr-x 1 root root 21976 Jan 10 2019 umount + -rwxr-xr-x 1 root root 22380 Mar 1 2019 uname + -rwxr-xr-x 2 root root 2345 Jan 6 2019 uncompress + -rwxr-xr-x 1 root root 88444 Mar 1 2019 vdir + -rwxr-xr-x 1 root root 21980 Jan 10 2019 wdctl + -rwxr-xr-x 1 root root 946 Jan 22 2019 which + lrwxrwxrwx 1 root root 8 Sep 27 2018 ypdomainname -> hostname + -rwxr-xr-x 1 root root 1983 Jan 6 2019 zcat + -rwxr-xr-x 1 root root 1677 Jan 6 2019 zcmp + -rwxr-xr-x 1 root root 5879 Jan 6 2019 zdiff + -rwxr-xr-x 1 root root 29 Jan 6 2019 zegrep + -rwxr-xr-x 1 root root 29 Jan 6 2019 zfgrep + -rwxr-xr-x 1 root root 2080 Jan 6 2019 zforce + -rwxr-xr-x 1 root root 7584 Jan 6 2019 zgrep + -rwxr-xr-x 1 root root 2205 Jan 6 2019 zless + -rwxr-xr-x 1 root root 1841 Jan 6 2019 zmore + -rwxr-xr-x 1 root root 4552 Jan 6 2019 znew +I: user script /srv/workspace/pbuilder/13595/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -254,7 +418,7 @@ Get: 169 http://deb.debian.org/debian buster/main armhf ruby-rspec all 3.8.0c0e1m0s0-1 [7620 B] Get: 170 http://deb.debian.org/debian buster/main armhf ruby-typhoeus all 1.3.1-1 [35.4 kB] Get: 171 http://deb.debian.org/debian buster/main armhf ruby-webmock all 3.4.2-1 [60.2 kB] -Fetched 43.3 MB in 5s (8185 kB/s) +Fetched 43.3 MB in 7s (6120 kB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libbsd0:armhf. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 18932 files and directories currently installed.) @@ -970,7 +1134,7 @@ fakeroot is already the newest version (1.23-1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/ruby-rest-client-2.0.2/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b +I: Running cd /build/ruby-rest-client-2.0.2/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b dpkg-buildpackage: info: source package ruby-rest-client dpkg-buildpackage: info: source version 2.0.2-3.1 dpkg-buildpackage: info: source distribution unstable @@ -1008,22 +1172,22 @@ install -d /build/ruby-rest-client-2.0.2/debian/ruby-rest-client/usr/bin install -D -m755 /build/ruby-rest-client-2.0.2/bin/restclient /build/ruby-rest-client-2.0.2/debian/ruby-rest-client/usr/bin/restclient install -d /build/ruby-rest-client-2.0.2/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby +install -D -m644 /build/ruby-rest-client-2.0.2/lib/rest-client.rb /build/ruby-rest-client-2.0.2/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/rest-client.rb install -D -m644 /build/ruby-rest-client-2.0.2/lib/rest_client.rb /build/ruby-rest-client-2.0.2/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/rest_client.rb +install -D -m644 /build/ruby-rest-client-2.0.2/lib/restclient.rb /build/ruby-rest-client-2.0.2/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient.rb install -D -m644 /build/ruby-rest-client-2.0.2/lib/restclient/abstract_response.rb /build/ruby-rest-client-2.0.2/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/abstract_response.rb -install -D -m644 /build/ruby-rest-client-2.0.2/lib/restclient/params_array.rb /build/ruby-rest-client-2.0.2/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/params_array.rb -install -D -m644 /build/ruby-rest-client-2.0.2/lib/restclient/response.rb /build/ruby-rest-client-2.0.2/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/response.rb +install -D -m644 /build/ruby-rest-client-2.0.2/lib/restclient/request.rb /build/ruby-rest-client-2.0.2/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/request.rb +install -D -m644 /build/ruby-rest-client-2.0.2/lib/restclient/version.rb /build/ruby-rest-client-2.0.2/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/version.rb install -D -m644 /build/ruby-rest-client-2.0.2/lib/restclient/utils.rb /build/ruby-rest-client-2.0.2/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/utils.rb -install -D -m644 /build/ruby-rest-client-2.0.2/lib/restclient/raw_response.rb /build/ruby-rest-client-2.0.2/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/raw_response.rb +install -D -m644 /build/ruby-rest-client-2.0.2/lib/restclient/response.rb /build/ruby-rest-client-2.0.2/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/response.rb +install -D -m644 /build/ruby-rest-client-2.0.2/lib/restclient/resource.rb /build/ruby-rest-client-2.0.2/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/resource.rb install -D -m644 /build/ruby-rest-client-2.0.2/lib/restclient/platform.rb /build/ruby-rest-client-2.0.2/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/platform.rb -install -D -m644 /build/ruby-rest-client-2.0.2/lib/restclient/payload.rb /build/ruby-rest-client-2.0.2/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/payload.rb install -D -m644 /build/ruby-rest-client-2.0.2/lib/restclient/exceptions.rb /build/ruby-rest-client-2.0.2/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/exceptions.rb -install -D -m644 /build/ruby-rest-client-2.0.2/lib/restclient/version.rb /build/ruby-rest-client-2.0.2/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/version.rb -install -D -m644 /build/ruby-rest-client-2.0.2/lib/restclient/windows.rb /build/ruby-rest-client-2.0.2/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/windows.rb -install -D -m644 /build/ruby-rest-client-2.0.2/lib/restclient/request.rb /build/ruby-rest-client-2.0.2/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/request.rb -install -D -m644 /build/ruby-rest-client-2.0.2/lib/restclient/resource.rb /build/ruby-rest-client-2.0.2/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/resource.rb install -D -m644 /build/ruby-rest-client-2.0.2/lib/restclient/windows/root_certs.rb /build/ruby-rest-client-2.0.2/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/windows/root_certs.rb -install -D -m644 /build/ruby-rest-client-2.0.2/lib/rest-client.rb /build/ruby-rest-client-2.0.2/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/rest-client.rb -install -D -m644 /build/ruby-rest-client-2.0.2/lib/restclient.rb /build/ruby-rest-client-2.0.2/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient.rb +install -D -m644 /build/ruby-rest-client-2.0.2/lib/restclient/raw_response.rb /build/ruby-rest-client-2.0.2/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/raw_response.rb +install -D -m644 /build/ruby-rest-client-2.0.2/lib/restclient/payload.rb /build/ruby-rest-client-2.0.2/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/payload.rb +install -D -m644 /build/ruby-rest-client-2.0.2/lib/restclient/windows.rb /build/ruby-rest-client-2.0.2/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/windows.rb +install -D -m644 /build/ruby-rest-client-2.0.2/lib/restclient/params_array.rb /build/ruby-rest-client-2.0.2/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/params_array.rb Rewriting shebang line of /build/ruby-rest-client-2.0.2/debian/ruby-rest-client/usr/bin/restclient ┌──────────────────────────────────────────────────────────────────────────────┐ @@ -1046,368 +1210,368 @@ RUBYLIB=/build/ruby-rest-client-2.0.2/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby:. GEM_PATH=debian/ruby-rest-client/usr/share/rubygems-integration/all:/var/lib/gems/2.5.0:/usr/lib/arm-linux-gnueabihf/rubygems-integration/2.5.0:/usr/share/rubygems-integration/2.5.0:/usr/share/rubygems-integration/all ruby2.5 -S rake -f debian/ruby-tests.rake /usr/bin/ruby2.5 /usr/bin/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation -Randomized with seed 49070 +Randomized with seed 63418 -RestClient::ParamsArray - .new - accepts various types of containers - rejects various invalid input +RestClient::Payload + A multipart Payload + should use standard enctype as default content-type + should not escape parameters names + should handle hash in hash parameters + should correctly format hex boundary + should ignore the name attribute when it's not set + should form properly separated multipart data + should detect optional (original) content type and filename + should not error on close if stream already closed + should form properly separated multipart data + streamed payloads + should properly determine the size of file payloads + should properly determine the size of other kinds of streaming payloads + Payload generation + should recognize file payloads that can be streamed + should recognize multipart params + should be multipart if forced + should recognize nested multipart payloads in hashes + should recognize standard urlencoded params + should recognize other payloads that can be streamed + should handle deeply nested multipart + should return data if no of the above + shouldn't treat hashes as streameable + should recognize nested multipart payloads in arrays + Base Payload + should reset stream after to_s + A regular Payload + should escape parameters + should use standard enctype as default content-type + should properly handle hashes as parameter + should handle attributes inside an array inside an hash + should not close if stream already closed + should form properly use symbols as parameters + should properly handle arrays as repeated parameters + should handle arrays inside a hash inside a hash + should form properly encoded params + should handle many attributes inside a hash + +RestClient::Exception + sets the exception message to ErrorMessage + returns a 'message' equal to the class name if the message is not set, because 'message' should not be nil + contains exceptions in RestClient + returns the 'message' that was set RestClient::Utils .encode_query_string - handles null and empty values - handles nested hashes - handles deep nesting - handles nested ParamsArrays - handles simple hashes handles nested nulls handles simple arrays + handles simple hashes + handles deep nesting handles multiple fields with the same name using ParamsArray - .cgi_parse_header - parses headers + handles nested hashes + handles null and empty values + handles nested ParamsArrays .get_encoding_from_headers - returns nil on failures handles various charsets + returns nil on failures assumes no encoding by default for text + .cgi_parse_header + parses headers -RestClient::RawResponse - behaves like string - exposes a Tempfile +RestClient + logging + displays the log to stderr + append the log to the requested filename + uses << if the log is not a string + displays the log to stdout + API + HEAD + DELETE + PATCH + PUT + POST + OPTIONS + GET + version + has a version ~> 2.0.0.alpha + +RestClient::Request + can use a block to process response + closes payload if not nil + params for GET requests + adds GET params when params are present in URL + manage params for get requests + encodes nested GET params RestClient::Response - behaves like string accepts nil strings and sets it to empty for the case of HEAD - cookie processing - should correctly deal with multiple cookies [one Set-Cookie header with multiple cookies] - should correctly deal with multiple cookies [multiple Set-Cookie headers] - should correctly deal with one Set-Cookie header with one cookie inside - header processing - test headers and raw headers - handles multiple headers by joining with comma + behaves like string redirection + doesn't follow a 307 when the request is a post + allows for manual following of redirects follows a redirection when the request is a head - follows a redirection when the request is a get - doesn't follow a 301 when the request is a post - handles redirects with relative paths + doesn't follow a 302 when the request is a post + handles redirects with relative path and query string + follows a redirection when the request is a post and result is a 303 follows no more than 10 redirections before raising error - allows for manual following of redirects - doesn't follow a redirection when the request is a put follow a redirection when the request is a get and the response is in the 30x range - doesn't follow a 307 when the request is a post - follows a redirection and keep the cookies - follows a redirection when the request is a post and result is a 303 + handles redirects with relative paths + follows no more than max_redirects redirections, if specified + follows a redirection when the request is a get keeps redirection history - follows a redirection and keep the parameters respects cookie domains on redirect - follows no more than max_redirects redirections, if specified - doesn't follow a 302 when the request is a post - handles redirects with relative path and query string + follows a redirection and keep the parameters + follows a redirection and keep the cookies + doesn't follow a 301 when the request is a post + doesn't follow a redirection when the request is a put exceptions processing - should throw an exception for other codes should return itself for normal codes + should throw an exception for other codes + cookie processing + should correctly deal with one Set-Cookie header with one cookie inside + should correctly deal with multiple cookies [multiple Set-Cookie headers] + should correctly deal with multiple cookies [one Set-Cookie header with multiple cookies] + header processing + handles multiple headers by joining with comma + test headers and raw headers -RestClient - a simple request with gzipped content - a 404 - a simple request - charset parsing - handles windows-1252 - handles utf-8 - defaults to the default encoding - handles binary - handles euc-jp - handles invalid encoding - leaves images as binary - -RestClient::RequestFailed - shows the status code in the message - http_code convenience method for fetching the code as an integer - stores the http response on the exception - http_body convenience method for fetching the body (decoding when necessary) +backwards compatibility + subclasses timeout from RestClient::RequestTimeout, RequestFailed, EWR + aliases old names for HTTP 413, 414, 416 + subclasses NotFound from RequestFailed, ExceptionWithResponse + aliases RestClient::NotFound as ResourceNotFound -RestClient::Resource - the block should be overrideable in ruby 1.9 syntax - can instantiate with no user/password - the block should be overrideable - concatenates urls, using no slash if the first url ends with a slash - offers subresources via [] - concatenates urls, using no slash if the second url starts with a slash - passes a given block to subresources - concatenates urls, inserting a slash when it needs one - transports options to subresources - is backwards compatible with previous constructor - concatenates even non-string urls, :posts + 1 => 'posts/1' - prints its url with to_s - block - can use block when creating the resource - can use block when executing the resource - execution block override resource block - Resource delegation - HEAD - POST - DELETE - GET - PUT - overrides resource headers - PATCH +RestClient::ServerBrokeConnection + should have a default message of 'Server broke connection' RestClient::AbstractResponse - doesn't escape cookies - extract strange cookies - extracts cookies from response headers fetches the headers fetches the numeric response code - can access the net http result directly has a nice description + extracts cookies from response headers + extract strange cookies + doesn't escape cookies + can access the net http result directly #return! - should raise an error on a redirection after non-GET/HEAD requests - should gracefully handle 302 redirect with no location header - should return the response itself on 200-codes should follow 302 redirect + should return the response itself on 200-codes + should gracefully handle 302 redirect with no location header should raise RequestFailed on unknown codes - .beautify_headers - leaves set-cookie headers as array - beautifies the headers by turning the keys to symbols - joins multiple header values by comma - beautifies the headers by turning the values to strings instead of one-element arrays + should raise an error on a redirection after non-GET/HEAD requests .cookie_jar extracts cookies into cookie jar handles cookies when URI scheme is implicit + .beautify_headers + beautifies the headers by turning the values to strings instead of one-element arrays + beautifies the headers by turning the keys to symbols + joins multiple header values by comma + leaves set-cookie headers as array + +RestClient::RawResponse + behaves like string + exposes a Tempfile RestClient::Request - class method execute wraps constructor - transmits the request with Net::HTTP - set urlencoded content_type header on hash payloads + catches Net::ReadTimeout and raises RestClient's ReadTimeout + rejects or warns with contradictory cookie options + catches Errno::ETIMEDOUT and raise the more informative ReadTimeout + uses correct error message for ReadTimeout catches Net::OpenTimeout and raises RestClient's OpenTimeout - assumes default domain and path for cookies set by hash + does not escape or unescape cookies + should still return a response object for 204 No Content responses catches Timeout::Error and raise the more informative ReadTimeout - executes by constructing the Net::HTTP object, headers, and payload and calling transmit - rejects or warns with contradictory cookie options - accept */* mimetype - strips the charset from the response content type - catches Net::ReadTimeout and raises RestClient's ReadTimeout rejects cookie values containing invalid characters - catches OpenSSL::SSL::SSLError and raise it back without more informative message + rejects cookie names containing invalid characters warns when overriding existing headers via payload - uses credentials in the url in preference to netrc - should still return a response object for 204 No Content responses + does not warn when overriding user header with header derived from payload if those header values were identical catches EOFError and shows the more informative ServerBrokeConnection - uses correct error message for OpenTimeout - uses netrc credentials correctly formats cookies provided to the constructor - catches Errno::ETIMEDOUT and raise the more informative ReadTimeout - uses correct error message for ReadTimeout - determines the Net::HTTP class to instantiate by the method name - doesn't classify successful requests as failed - does not warn when overriding user header with header derived from payload if those header values were identical - processes a successful result IPv6: executes by constructing the Net::HTTP object, headers, and payload and calling transmit - rejects cookie names containing invalid characters - does not escape or unescape cookies + determines the Net::HTTP class to instantiate by the method name does not warn for a normal looking payload + uses credentials in the url in preference to netrc + uses correct error message for OpenTimeout + executes by constructing the Net::HTTP object, headers, and payload and calling transmit + assumes default domain and path for cookies set by hash + class method execute wraps constructor + set urlencoded content_type header on hash payloads + accept */* mimetype + strips the charset from the response content type strips out cookies set for a different domain name + processes a successful result + catches OpenSSL::SSL::SSLError and raise it back without more informative message + doesn't classify successful requests as failed + transmits the request with Net::HTTP + uses netrc credentials + exception + raises Unauthorized when the response is 401 + raises ResourceNotFound when the response is 404 + raises RequestFailed otherwise + payloads + should accept string payloads + should accept streaming IO payloads .normalize_url - adds http:// to the front of resources specified in the syntax example.com/resource raises with invalid URI does not add http:// to the front of capital HTTP resources + does not add http:// to the front of https resources + adds http:// to the front of resources specified in the syntax example.com/resource adds http:// to resources containing a colon does not add http:// to the front of capital HTTPS resources - does not add http:// to the front of https resources header symbols converts header symbols from :content_type to 'Content-Type' + converts accept from extension(s) to real content-type(s) converts header values to strings only convert symbols in header converts content-type from extension to real content-type - converts accept from extension(s) to real content-type(s) + raw response + should read the response into a binary-mode tempfile block usage returns what asked to - user - password - overrides URL user/pass with explicit options - extracts the username and password when parsing http://user:password@example.com/ - extracts with escaping the username and password when parsing http://user:password@example.com/ - doesn't overwrite user and password (which may have already been set by the Resource constructor) if there is no user/password in the url - uses the username and password from the URL - process_url_params - should handle basic URL params - should handle ParamsArray objects - should combine with & when URL params already exist - should handle complex nested URL params per Rack / Rails conventions - constructor - should reject valid URIs with no hostname - should reject invalid URIs - compression - decodes an uncompressed result body by passing it straight through - ingores gzip for empty bodies - decodes a gzip body - decodes a deflated body - doesn't fail for nil bodies timeout - deprecated: disable timeout by setting it to -1 + supersedes :timeout with open/read_timeout + deprecated: warns when disabling timeout by setting it to -1 sets read_timeout - disable timeout by setting it to nil does not set timeouts if not specified - sets both timeouts with :timeout - supersedes :timeout with open/read_timeout + disable timeout by setting it to nil sets open_timeout - deprecated: warns when disabling timeout by setting it to -1 - payloads - should accept string payloads - should accept streaming IO payloads - user headers - merges user headers with the default headers - prefers the user header when the same header exists in the defaults - converts user headers to string before calling CGI::unescape which fails on non string values + sets both timeouts with :timeout + deprecated: disable timeout by setting it to -1 ssl - should not set the ssl_ca_path if it is not provided - should by default set the ssl_cert_store if no CA info is provided - should default to not having an ssl_ca_path - should not set the ssl_client_cert if it is not provided + should set the ssl_ca_file if provided should not set net.verify_mode to OpenSSL::SSL::VERIFY_NONE if verify_ssl is true + should default to not having an ssl_ca_file + should not set the ssl_ca_path if it is not provided should default to not having an ssl_client_key - should set the ssl_ciphers if provided - should set the ssl_version if provided - should not set the ssl_ca_file if it is not provided - should set net.verify_mode to OpenSSL::SSL::VERIFY_PEER if verify_ssl is true + should not set the ssl_verify_callback by default + should not set the ssl_client_cert if it is not provided + should not set the ssl_ciphers if set to nil + should have expected values for VERIFY_PEER and VERIFY_NONE + uses SSL when the URI refers to a https address should default to not having an ssl_client_cert should set the ssl_client_cert if provided + should set the ssl_cert_store if provided should set net.verify_mode to OpenSSL::SSL::VERIFY_PEER if verify_ssl is not given + should not set the ssl_ca_file if it is not provided + should set net.verify_mode to OpenSSL::SSL::VERIFY_NONE if verify_ssl is false should set the ssl_verify_callback if passed - uses SSL when the URI refers to a https address - should set the ssl_cert_store if provided - should have expected values for VERIFY_PEER and VERIFY_NONE + should set net.verify_mode to OpenSSL::SSL::VERIFY_PEER if verify_ssl is true + should set the ssl_client_key if provided + should not set the ssl_cert_store if it is set falsy + should set the ssl_version if provided + should set the ssl_ciphers if provided should not set the ssl_client_key if it is not provided - should set net.verify_mode to the passed value if verify_ssl is an OpenSSL constant - should not set the ssl_verify_callback by default should default to verifying ssl certificates - should default to not having an ssl_ca_file - should set the ssl_ca_file if provided - should set net.verify_mode to OpenSSL::SSL::VERIFY_NONE if verify_ssl is false - should not set the ssl_ciphers if set to nil + should set net.verify_mode to the passed value if verify_ssl is an OpenSSL constant + should by default set the ssl_cert_store if no CA info is provided should set the ssl_ca_path if provided - should set the ssl_client_key if provided - should not set the ssl_cert_store if it is set falsy + should default to not having an ssl_ca_path should not set the ssl_version if not provided proxy disables proxy on a per-request basis - creates a proxy class if a proxy url is given creates a non-proxy class if a proxy url is not given - creates a proxy class with the correct address if a IPv6 proxy url is given - sets proxy on a per-request basis overrides global proxy with per-request proxy overrides proxy from environment - payload - converts a hash payload to urlencoded data - accepts nested hashes in payload - passes non-hash payloads straight through - sends nil payloads - exception - raises ResourceNotFound when the response is 404 - raises RequestFailed otherwise - raises Unauthorized when the response is 401 - logging - logs a response with a nil Content-type - logs a post request with a large payload - logs a response with a nil body - logs input headers as a hash - logs a get request - logs a post request with a small payload - logs a response including the status code, content type, and result body size in bytes - does not log request password - raw response - should read the response into a binary-mode tempfile + creates a proxy class if a proxy url is given + creates a proxy class with the correct address if a IPv6 proxy url is given + sets proxy on a per-request basis + process_url_params + should handle complex nested URL params per Rack / Rails conventions + should handle ParamsArray objects + should handle basic URL params + should combine with & when URL params already exist + constructor + should reject invalid URIs + should reject valid URIs with no hostname + user headers + prefers the user header when the same header exists in the defaults + converts user headers to string before calling CGI::unescape which fails on non string values + merges user headers with the default headers credentials sets up the credentials prior to the request setup credentials when there's a user - does not attempt to send any credentials if user is nil does not attempt to send credentials if Authorization header is set + does not attempt to send any credentials if user is nil + compression + decodes a deflated body + doesn't fail for nil bodies + ingores gzip for empty bodies + decodes an uncompressed result body by passing it straight through + decodes a gzip body + logging + logs a post request with a small payload + logs a response with a nil body + logs a response including the status code, content type, and result body size in bytes + logs a response with a nil Content-type + logs a get request + logs a post request with a large payload + does not log request password + logs input headers as a hash + user - password + doesn't overwrite user and password (which may have already been set by the Resource constructor) if there is no user/password in the url + uses the username and password from the URL + extracts the username and password when parsing http://user:password@example.com/ + extracts with escaping the username and password when parsing http://user:password@example.com/ + overrides URL user/pass with explicit options + payload + sends nil payloads + converts a hash payload to urlencoded data + passes non-hash payloads straight through + accepts nested hashes in payload RestClient::NotFound also has the http response attached stores the body on the response of the exception -RestClient::Exception - sets the exception message to ErrorMessage - returns a 'message' equal to the class name if the message is not set, because 'message' should not be nil - contains exceptions in RestClient - returns the 'message' that was set - -RestClient::Payload - A multipart Payload - should form properly separated multipart data - should not error on close if stream already closed - should form properly separated multipart data - should detect optional (original) content type and filename - should correctly format hex boundary - should handle hash in hash parameters - should ignore the name attribute when it's not set - should use standard enctype as default content-type - should not escape parameters names - streamed payloads - should properly determine the size of file payloads - should properly determine the size of other kinds of streaming payloads - A regular Payload - should handle attributes inside an array inside an hash - should escape parameters - should not close if stream already closed - should form properly use symbols as parameters - should form properly encoded params - should properly handle arrays as repeated parameters - should properly handle hashes as parameter - should use standard enctype as default content-type - should handle many attributes inside a hash - should handle arrays inside a hash inside a hash - Payload generation - should recognize multipart params - shouldn't treat hashes as streameable - should recognize nested multipart payloads in hashes - should handle deeply nested multipart - should recognize nested multipart payloads in arrays - should be multipart if forced - should recognize standard urlencoded params - should return data if no of the above - should recognize other payloads that can be streamed - should recognize file payloads that can be streamed - Base Payload - should reset stream after to_s +RestClient::ParamsArray + .new + rejects various invalid input + accepts various types of containers RestClient - logging - uses << if the log is not a string - append the log to the requested filename - displays the log to stderr - displays the log to stdout - version - has a version ~> 2.0.0.alpha - API - GET - OPTIONS + a 404 + a simple request with gzipped content + a simple request + charset parsing + handles binary + handles utf-8 + leaves images as binary + handles euc-jp + handles windows-1252 + handles invalid encoding + defaults to the default encoding + +RestClient::Resource + the block should be overrideable + concatenates urls, using no slash if the second url starts with a slash + passes a given block to subresources + is backwards compatible with previous constructor + transports options to subresources + offers subresources via [] + concatenates even non-string urls, :posts + 1 => 'posts/1' + concatenates urls, using no slash if the first url ends with a slash + can instantiate with no user/password + concatenates urls, inserting a slash when it needs one + prints its url with to_s + the block should be overrideable in ruby 1.9 syntax + block + execution block override resource block + can use block when executing the resource + can use block when creating the resource + Resource delegation HEAD - PATCH DELETE + overrides resource headers PUT + GET + PATCH POST -RestClient::ServerBrokeConnection - should have a default message of 'Server broke connection' - -backwards compatibility - aliases old names for HTTP 413, 414, 416 - aliases RestClient::NotFound as ResourceNotFound - subclasses timeout from RestClient::RequestTimeout, RequestFailed, EWR - subclasses NotFound from RequestFailed, ExceptionWithResponse - -RestClient::Request - closes payload if not nil - can use a block to process response - params for GET requests - encodes nested GET params - adds GET params when params are present in URL - manage params for get requests +RestClient::RequestFailed + http_code convenience method for fetching the code as an integer + shows the status code in the message + stores the http response on the exception + http_body convenience method for fetching the body (decoding when necessary) -Finished in 2.35 seconds (files took 6.36 seconds to load) +Finished in 3.18 seconds (files took 5.35 seconds to load) 284 examples, 0 failures -Randomized with seed 49070 +Randomized with seed 63418 ┌──────────────────────────────────────────────────────────────────────────────┐ @@ -1440,12 +1604,14 @@ dpkg-source --after-build . dpkg-buildpackage: info: binary-only upload (no source included) I: copying local configuration +I: user script /srv/workspace/pbuilder/13595/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/13595/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/28533 and its subdirectories -I: Current time: Wed May 27 03:52:43 -12 2020 -I: pbuilder-time-stamp: 1590594763 +I: removing directory /srv/workspace/pbuilder/13595 and its subdirectories +I: Current time: Thu May 28 05:56:45 +14 2020 +I: pbuilder-time-stamp: 1590595005