Diff of the two buildlogs: -- --- b1/build.log 2021-07-21 07:46:01.895366888 +0000 +++ b2/build.log 2021-07-21 07:51:10.351857208 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Tue Jul 20 19:39:16 -12 2021 -I: pbuilder-time-stamp: 1626853156 +I: Current time: Wed Jul 21 21:46:11 +14 2021 +I: pbuilder-time-stamp: 1626853571 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bullseye-reproducible-base.tgz] I: copying local configuration @@ -16,8 +16,8 @@ I: copying [./ruby-rest-client_2.1.0-1.debian.tar.xz] I: Extracting source gpgv: unknown type of key resource 'trustedkeys.kbx' -gpgv: keyblock resource '/tmp/dpkg-verify-sig.D5um2XcM/trustedkeys.kbx': General error -gpgv: Signature made Wed Jan 13 08:23:43 2021 -12 +gpgv: keyblock resource '/tmp/dpkg-verify-sig.Btsokh1V/trustedkeys.kbx': General error +gpgv: Signature made Thu Jan 14 10:23:43 2021 +14 gpgv: using RSA key FEDEC1CB337BCF509F43C2243914B532F4DFBE99 gpgv: Can't check signature: No public key dpkg-source: warning: failed to verify signature on ./ruby-rest-client_2.1.0-1.dsc @@ -30,135 +30,169 @@ dpkg-source: info: applying proxy-proof-tests.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/16331/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/3278/tmp/hooks/D01_modify_environment starting +debug: Running on jtx1a. +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/3278/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/3278/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='armhf' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=3' - DISTRIBUTION='' - HOME='/root' - HOST_ARCH='armhf' + 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]="1" [2]="4" [3]="1" [4]="release" [5]="arm-unknown-linux-gnueabihf") + BASH_VERSION='5.1.4(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,-fixfilepath 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='dd0bab5067884f3eb88c2aa1022da905' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='16331' - PS1='# ' - PS2='> ' + INVOCATION_ID=01e0504aa8c8438e819740f53e3dfa45 + 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=3278 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/tmp.Kr6qg3FIwa/pbuilderrc_vHwb --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.Kr6qg3FIwa/b1 --logfile b1/build.log ruby-rest-client_2.1.0-1.dsc' - SUDO_GID='113' - SUDO_UID='107' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://10.0.0.15:8000/' + 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.Kr6qg3FIwa/pbuilderrc_rxXi --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.Kr6qg3FIwa/b2 --logfile b2/build.log --extrapackages usrmerge ruby-rest-client_2.1.0-1.dsc' + SUDO_GID=114 + SUDO_UID=108 + 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 cbxi4a 5.10.0-7-armmp #1 SMP Debian 5.10.40-1 (2021-05-28) armv7l GNU/Linux + Linux i-capture-the-hostname 5.10.0-7-arm64 #1 SMP Debian 5.10.40-1 (2021-05-28) aarch64 GNU/Linux I: ls -l /bin total 3580 - -rwxr-xr-x 1 root root 816764 Jun 21 14:26 bash - -rwxr-xr-x 3 root root 26052 Jul 20 2020 bunzip2 - -rwxr-xr-x 3 root root 26052 Jul 20 2020 bzcat - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzcmp -> bzdiff - -rwxr-xr-x 1 root root 2225 Jul 20 2020 bzdiff - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzegrep -> bzgrep - -rwxr-xr-x 1 root root 4877 Sep 4 2019 bzexe - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzfgrep -> bzgrep - -rwxr-xr-x 1 root root 3775 Jul 20 2020 bzgrep - -rwxr-xr-x 3 root root 26052 Jul 20 2020 bzip2 - -rwxr-xr-x 1 root root 9636 Jul 20 2020 bzip2recover - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzless -> bzmore - -rwxr-xr-x 1 root root 1297 Jul 20 2020 bzmore - -rwxr-xr-x 1 root root 26668 Sep 22 2020 cat - -rwxr-xr-x 1 root root 43104 Sep 22 2020 chgrp - -rwxr-xr-x 1 root root 38984 Sep 22 2020 chmod - -rwxr-xr-x 1 root root 43112 Sep 22 2020 chown - -rwxr-xr-x 1 root root 92616 Sep 22 2020 cp - -rwxr-xr-x 1 root root 75524 Dec 10 2020 dash - -rwxr-xr-x 1 root root 75880 Sep 22 2020 date - -rwxr-xr-x 1 root root 55436 Sep 22 2020 dd - -rwxr-xr-x 1 root root 59912 Sep 22 2020 df - -rwxr-xr-x 1 root root 96764 Sep 22 2020 dir - -rwxr-xr-x 1 root root 55012 Feb 7 02:38 dmesg - lrwxrwxrwx 1 root root 8 Nov 6 2019 dnsdomainname -> hostname - lrwxrwxrwx 1 root root 8 Nov 6 2019 domainname -> hostname - -rwxr-xr-x 1 root root 22508 Sep 22 2020 echo - -rwxr-xr-x 1 root root 28 Nov 9 2020 egrep - -rwxr-xr-x 1 root root 22496 Sep 22 2020 false - -rwxr-xr-x 1 root root 28 Nov 9 2020 fgrep - -rwxr-xr-x 1 root root 47492 Feb 7 02:38 findmnt - -rwsr-xr-x 1 root root 26076 Feb 26 04:12 fusermount - -rwxr-xr-x 1 root root 124508 Nov 9 2020 grep - -rwxr-xr-x 2 root root 2346 Mar 2 11:30 gunzip - -rwxr-xr-x 1 root root 6376 Mar 2 11:30 gzexe - -rwxr-xr-x 1 root root 64212 Mar 2 11:30 gzip - -rwxr-xr-x 1 root root 13784 Nov 6 2019 hostname - -rwxr-xr-x 1 root root 43180 Sep 22 2020 ln - -rwxr-xr-x 1 root root 35068 Feb 7 2020 login - -rwxr-xr-x 1 root root 96764 Sep 22 2020 ls - -rwxr-xr-x 1 root root 99940 Feb 7 02:38 lsblk - -rwxr-xr-x 1 root root 51408 Sep 22 2020 mkdir - -rwxr-xr-x 1 root root 43184 Sep 22 2020 mknod - -rwxr-xr-x 1 root root 30780 Sep 22 2020 mktemp - -rwxr-xr-x 1 root root 34408 Feb 7 02:38 more - -rwsr-xr-x 1 root root 34400 Feb 7 02:38 mount - -rwxr-xr-x 1 root root 9824 Feb 7 02:38 mountpoint - -rwxr-xr-x 1 root root 88524 Sep 22 2020 mv - lrwxrwxrwx 1 root root 8 Nov 6 2019 nisdomainname -> hostname - lrwxrwxrwx 1 root root 14 Apr 18 03:38 pidof -> /sbin/killall5 - -rwxr-xr-x 1 root root 26652 Sep 22 2020 pwd - lrwxrwxrwx 1 root root 4 Jun 21 14:26 rbash -> bash - -rwxr-xr-x 1 root root 30740 Sep 22 2020 readlink - -rwxr-xr-x 1 root root 43104 Sep 22 2020 rm - -rwxr-xr-x 1 root root 30732 Sep 22 2020 rmdir - -rwxr-xr-x 1 root root 14144 Sep 27 2020 run-parts - -rwxr-xr-x 1 root root 76012 Dec 22 2018 sed - lrwxrwxrwx 1 root root 4 Jul 17 21:28 sh -> dash - -rwxr-xr-x 1 root root 22532 Sep 22 2020 sleep - -rwxr-xr-x 1 root root 55360 Sep 22 2020 stty - -rwsr-xr-x 1 root root 46704 Feb 7 02:38 su - -rwxr-xr-x 1 root root 22532 Sep 22 2020 sync - -rwxr-xr-x 1 root root 340872 Feb 16 21:55 tar - -rwxr-xr-x 1 root root 9808 Sep 27 2020 tempfile - -rwxr-xr-x 1 root root 67696 Sep 22 2020 touch - -rwxr-xr-x 1 root root 22496 Sep 22 2020 true - -rwxr-xr-x 1 root root 9636 Feb 26 04:12 ulockmgr_server - -rwsr-xr-x 1 root root 22108 Feb 7 02:38 umount - -rwxr-xr-x 1 root root 22520 Sep 22 2020 uname - -rwxr-xr-x 2 root root 2346 Mar 2 11:30 uncompress - -rwxr-xr-x 1 root root 96764 Sep 22 2020 vdir - -rwxr-xr-x 1 root root 38512 Feb 7 02:38 wdctl - lrwxrwxrwx 1 root root 8 Nov 6 2019 ypdomainname -> hostname - -rwxr-xr-x 1 root root 1984 Mar 2 11:30 zcat - -rwxr-xr-x 1 root root 1678 Mar 2 11:30 zcmp - -rwxr-xr-x 1 root root 5880 Mar 2 11:30 zdiff - -rwxr-xr-x 1 root root 29 Mar 2 11:30 zegrep - -rwxr-xr-x 1 root root 29 Mar 2 11:30 zfgrep - -rwxr-xr-x 1 root root 2081 Mar 2 11:30 zforce - -rwxr-xr-x 1 root root 7585 Mar 2 11:30 zgrep - -rwxr-xr-x 1 root root 2206 Mar 2 11:30 zless - -rwxr-xr-x 1 root root 1842 Mar 2 11:30 zmore - -rwxr-xr-x 1 root root 4553 Mar 2 11:30 znew -I: user script /srv/workspace/pbuilder/16331/tmp/hooks/D02_print_environment finished + -rwxr-xr-x 1 root root 816764 Jun 22 16:26 bash + -rwxr-xr-x 3 root root 26052 Jul 21 2020 bunzip2 + -rwxr-xr-x 3 root root 26052 Jul 21 2020 bzcat + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzcmp -> bzdiff + -rwxr-xr-x 1 root root 2225 Jul 21 2020 bzdiff + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzegrep -> bzgrep + -rwxr-xr-x 1 root root 4877 Sep 5 2019 bzexe + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzfgrep -> bzgrep + -rwxr-xr-x 1 root root 3775 Jul 21 2020 bzgrep + -rwxr-xr-x 3 root root 26052 Jul 21 2020 bzip2 + -rwxr-xr-x 1 root root 9636 Jul 21 2020 bzip2recover + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzless -> bzmore + -rwxr-xr-x 1 root root 1297 Jul 21 2020 bzmore + -rwxr-xr-x 1 root root 26668 Sep 23 2020 cat + -rwxr-xr-x 1 root root 43104 Sep 23 2020 chgrp + -rwxr-xr-x 1 root root 38984 Sep 23 2020 chmod + -rwxr-xr-x 1 root root 43112 Sep 23 2020 chown + -rwxr-xr-x 1 root root 92616 Sep 23 2020 cp + -rwxr-xr-x 1 root root 75524 Dec 11 2020 dash + -rwxr-xr-x 1 root root 75880 Sep 23 2020 date + -rwxr-xr-x 1 root root 55436 Sep 23 2020 dd + -rwxr-xr-x 1 root root 59912 Sep 23 2020 df + -rwxr-xr-x 1 root root 96764 Sep 23 2020 dir + -rwxr-xr-x 1 root root 55012 Feb 8 04:38 dmesg + lrwxrwxrwx 1 root root 8 Nov 8 2019 dnsdomainname -> hostname + lrwxrwxrwx 1 root root 8 Nov 8 2019 domainname -> hostname + -rwxr-xr-x 1 root root 22508 Sep 23 2020 echo + -rwxr-xr-x 1 root root 28 Nov 10 2020 egrep + -rwxr-xr-x 1 root root 22496 Sep 23 2020 false + -rwxr-xr-x 1 root root 28 Nov 10 2020 fgrep + -rwxr-xr-x 1 root root 47492 Feb 8 04:38 findmnt + -rwsr-xr-x 1 root root 26076 Feb 27 06:12 fusermount + -rwxr-xr-x 1 root root 124508 Nov 10 2020 grep + -rwxr-xr-x 2 root root 2346 Mar 3 13:30 gunzip + -rwxr-xr-x 1 root root 6376 Mar 3 13:30 gzexe + -rwxr-xr-x 1 root root 64212 Mar 3 13:30 gzip + -rwxr-xr-x 1 root root 13784 Nov 8 2019 hostname + -rwxr-xr-x 1 root root 43180 Sep 23 2020 ln + -rwxr-xr-x 1 root root 35068 Feb 8 2020 login + -rwxr-xr-x 1 root root 96764 Sep 23 2020 ls + -rwxr-xr-x 1 root root 99940 Feb 8 04:38 lsblk + -rwxr-xr-x 1 root root 51408 Sep 23 2020 mkdir + -rwxr-xr-x 1 root root 43184 Sep 23 2020 mknod + -rwxr-xr-x 1 root root 30780 Sep 23 2020 mktemp + -rwxr-xr-x 1 root root 34408 Feb 8 04:38 more + -rwsr-xr-x 1 root root 34400 Feb 8 04:38 mount + -rwxr-xr-x 1 root root 9824 Feb 8 04:38 mountpoint + -rwxr-xr-x 1 root root 88524 Sep 23 2020 mv + lrwxrwxrwx 1 root root 8 Nov 8 2019 nisdomainname -> hostname + lrwxrwxrwx 1 root root 14 Apr 19 05:38 pidof -> /sbin/killall5 + -rwxr-xr-x 1 root root 26652 Sep 23 2020 pwd + lrwxrwxrwx 1 root root 4 Jun 22 16:26 rbash -> bash + -rwxr-xr-x 1 root root 30740 Sep 23 2020 readlink + -rwxr-xr-x 1 root root 43104 Sep 23 2020 rm + -rwxr-xr-x 1 root root 30732 Sep 23 2020 rmdir + -rwxr-xr-x 1 root root 14144 Sep 28 2020 run-parts + -rwxr-xr-x 1 root root 76012 Dec 23 2018 sed + lrwxrwxrwx 1 root root 4 Jul 21 21:47 sh -> bash + lrwxrwxrwx 1 root root 4 Jul 19 23:27 sh.distrib -> dash + -rwxr-xr-x 1 root root 22532 Sep 23 2020 sleep + -rwxr-xr-x 1 root root 55360 Sep 23 2020 stty + -rwsr-xr-x 1 root root 46704 Feb 8 04:38 su + -rwxr-xr-x 1 root root 22532 Sep 23 2020 sync + -rwxr-xr-x 1 root root 340872 Feb 17 23:55 tar + -rwxr-xr-x 1 root root 9808 Sep 28 2020 tempfile + -rwxr-xr-x 1 root root 67696 Sep 23 2020 touch + -rwxr-xr-x 1 root root 22496 Sep 23 2020 true + -rwxr-xr-x 1 root root 9636 Feb 27 06:12 ulockmgr_server + -rwsr-xr-x 1 root root 22108 Feb 8 04:38 umount + -rwxr-xr-x 1 root root 22520 Sep 23 2020 uname + -rwxr-xr-x 2 root root 2346 Mar 3 13:30 uncompress + -rwxr-xr-x 1 root root 96764 Sep 23 2020 vdir + -rwxr-xr-x 1 root root 38512 Feb 8 04:38 wdctl + lrwxrwxrwx 1 root root 8 Nov 8 2019 ypdomainname -> hostname + -rwxr-xr-x 1 root root 1984 Mar 3 13:30 zcat + -rwxr-xr-x 1 root root 1678 Mar 3 13:30 zcmp + -rwxr-xr-x 1 root root 5880 Mar 3 13:30 zdiff + -rwxr-xr-x 1 root root 29 Mar 3 13:30 zegrep + -rwxr-xr-x 1 root root 29 Mar 3 13:30 zfgrep + -rwxr-xr-x 1 root root 2081 Mar 3 13:30 zforce + -rwxr-xr-x 1 root root 7585 Mar 3 13:30 zgrep + -rwxr-xr-x 1 root root 2206 Mar 3 13:30 zless + -rwxr-xr-x 1 root root 1842 Mar 3 13:30 zmore + -rwxr-xr-x 1 root root 4553 Mar 3 13:30 znew +I: user script /srv/workspace/pbuilder/3278/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -364,7 +398,7 @@ Get: 144 http://deb.debian.org/debian bullseye/main armhf ruby-rspec-mocks all 3.9.0c2e2m1s3-2 [81.4 kB] Get: 145 http://deb.debian.org/debian bullseye/main armhf ruby-rspec all 3.9.0c2e2m1s3-2 [8348 B] Get: 146 http://deb.debian.org/debian bullseye/main armhf ruby-webmock all 3.8.3-1 [64.3 kB] -Fetched 43.0 MB in 5s (9076 kB/s) +Fetched 43.0 MB in 4s (9619 kB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package bsdextrautils. (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 ... 19398 files and directories currently installed.) @@ -972,8 +1006,45 @@ Writing extended state information... Building tag database... -> Finished parsing the build-deps +Reading package lists... +Building dependency tree... +Reading state information... +The following additional packages will be installed: + libfile-find-rule-perl libnumber-compare-perl libtext-glob-perl +The following NEW packages will be installed: + libfile-find-rule-perl libnumber-compare-perl libtext-glob-perl usrmerge +0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. +Need to get 59.5 kB of archives. +After this operation, 157 kB of additional disk space will be used. +Get:1 http://deb.debian.org/debian bullseye/main armhf libnumber-compare-perl all 0.03-1.1 [6956 B] +Get:2 http://deb.debian.org/debian bullseye/main armhf libtext-glob-perl all 0.11-1 [8888 B] +Get:3 http://deb.debian.org/debian bullseye/main armhf libfile-find-rule-perl all 0.34-1 [30.6 kB] +Get:4 http://deb.debian.org/debian bullseye/main armhf usrmerge all 25 [13.0 kB] +debconf: delaying package configuration, since apt-utils is not installed +Fetched 59.5 kB in 0s (1048 kB/s) +Selecting previously unselected package libnumber-compare-perl. +(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 ... 26888 files and directories currently installed.) +Preparing to unpack .../libnumber-compare-perl_0.03-1.1_all.deb ... +Unpacking libnumber-compare-perl (0.03-1.1) ... +Selecting previously unselected package libtext-glob-perl. +Preparing to unpack .../libtext-glob-perl_0.11-1_all.deb ... +Unpacking libtext-glob-perl (0.11-1) ... +Selecting previously unselected package libfile-find-rule-perl. +Preparing to unpack .../libfile-find-rule-perl_0.34-1_all.deb ... +Unpacking libfile-find-rule-perl (0.34-1) ... +Selecting previously unselected package usrmerge. +Preparing to unpack .../archives/usrmerge_25_all.deb ... +Unpacking usrmerge (25) ... +Setting up libtext-glob-perl (0.11-1) ... +Setting up libnumber-compare-perl (0.03-1.1) ... +Setting up libfile-find-rule-perl (0.34-1) ... +Setting up usrmerge (25) ... +The system has been successfully converted. +Processing triggers for man-db (2.9.4-2) ... +Not building database; man-db/auto-update is not 'true'. I: Building the package -I: Running cd /build/ruby-rest-client-2.1.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../ruby-rest-client_2.1.0-1_source.changes +hostname: Name or service not known +I: Running cd /build/ruby-rest-client-2.1.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../ruby-rest-client_2.1.0-1_source.changes dpkg-buildpackage: info: source package ruby-rest-client dpkg-buildpackage: info: source version 2.1.0-1 dpkg-buildpackage: info: source distribution unstable @@ -1012,22 +1083,22 @@ install -d /build/ruby-rest-client-2.1.0/debian/ruby-rest-client/usr/bin install -D -m755 /build/ruby-rest-client-2.1.0/bin/restclient /build/ruby-rest-client-2.1.0/debian/ruby-rest-client/usr/bin/restclient install -d /build/ruby-rest-client-2.1.0/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby -install -D -m644 /build/ruby-rest-client-2.1.0/lib/restclient.rb /build/ruby-rest-client-2.1.0/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient.rb -install -D -m644 /build/ruby-rest-client-2.1.0/lib/restclient/platform.rb /build/ruby-rest-client-2.1.0/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/platform.rb +install -D -m644 /build/ruby-rest-client-2.1.0/lib/rest-client.rb /build/ruby-rest-client-2.1.0/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/rest-client.rb +install -D -m644 /build/ruby-rest-client-2.1.0/lib/rest_client.rb /build/ruby-rest-client-2.1.0/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/rest_client.rb install -D -m644 /build/ruby-rest-client-2.1.0/lib/restclient/params_array.rb /build/ruby-rest-client-2.1.0/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/params_array.rb -install -D -m644 /build/ruby-rest-client-2.1.0/lib/restclient/request.rb /build/ruby-rest-client-2.1.0/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/request.rb +install -D -m644 /build/ruby-rest-client-2.1.0/lib/restclient/response.rb /build/ruby-rest-client-2.1.0/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/response.rb +install -D -m644 /build/ruby-rest-client-2.1.0/lib/restclient/version.rb /build/ruby-rest-client-2.1.0/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/version.rb install -D -m644 /build/ruby-rest-client-2.1.0/lib/restclient/raw_response.rb /build/ruby-rest-client-2.1.0/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/raw_response.rb +install -D -m644 /build/ruby-rest-client-2.1.0/lib/restclient/platform.rb /build/ruby-rest-client-2.1.0/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/platform.rb install -D -m644 /build/ruby-rest-client-2.1.0/lib/restclient/windows/root_certs.rb /build/ruby-rest-client-2.1.0/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/windows/root_certs.rb -install -D -m644 /build/ruby-rest-client-2.1.0/lib/restclient/utils.rb /build/ruby-rest-client-2.1.0/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/utils.rb -install -D -m644 /build/ruby-rest-client-2.1.0/lib/restclient/response.rb /build/ruby-rest-client-2.1.0/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/response.rb -install -D -m644 /build/ruby-rest-client-2.1.0/lib/restclient/abstract_response.rb /build/ruby-rest-client-2.1.0/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/abstract_response.rb install -D -m644 /build/ruby-rest-client-2.1.0/lib/restclient/payload.rb /build/ruby-rest-client-2.1.0/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/payload.rb +install -D -m644 /build/ruby-rest-client-2.1.0/lib/restclient/exceptions.rb /build/ruby-rest-client-2.1.0/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/exceptions.rb install -D -m644 /build/ruby-rest-client-2.1.0/lib/restclient/windows.rb /build/ruby-rest-client-2.1.0/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/windows.rb install -D -m644 /build/ruby-rest-client-2.1.0/lib/restclient/resource.rb /build/ruby-rest-client-2.1.0/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/resource.rb -install -D -m644 /build/ruby-rest-client-2.1.0/lib/restclient/exceptions.rb /build/ruby-rest-client-2.1.0/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/exceptions.rb -install -D -m644 /build/ruby-rest-client-2.1.0/lib/restclient/version.rb /build/ruby-rest-client-2.1.0/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/version.rb -install -D -m644 /build/ruby-rest-client-2.1.0/lib/rest_client.rb /build/ruby-rest-client-2.1.0/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/rest_client.rb -install -D -m644 /build/ruby-rest-client-2.1.0/lib/rest-client.rb /build/ruby-rest-client-2.1.0/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/rest-client.rb +install -D -m644 /build/ruby-rest-client-2.1.0/lib/restclient/utils.rb /build/ruby-rest-client-2.1.0/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/utils.rb +install -D -m644 /build/ruby-rest-client-2.1.0/lib/restclient/request.rb /build/ruby-rest-client-2.1.0/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/request.rb +install -D -m644 /build/ruby-rest-client-2.1.0/lib/restclient/abstract_response.rb /build/ruby-rest-client-2.1.0/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient/abstract_response.rb +install -D -m644 /build/ruby-rest-client-2.1.0/lib/restclient.rb /build/ruby-rest-client-2.1.0/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby/restclient.rb Rewriting shebang line of /build/ruby-rest-client-2.1.0/debian/ruby-rest-client/usr/bin/restclient ┌──────────────────────────────────────────────────────────────────────────────┐ @@ -1050,305 +1121,341 @@ RUBYLIB=/build/ruby-rest-client-2.1.0/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby:. GEM_PATH=/build/ruby-rest-client-2.1.0/debian/ruby-rest-client/usr/share/rubygems-integration/all:/build/ruby-rest-client-2.1.0/debian/.debhelper/generated/_source/home/.local/share/gem/ruby/2.7.0:/var/lib/gems/2.7.0:/usr/local/lib/ruby/gems/2.7.0:/usr/lib/ruby/gems/2.7.0:/usr/lib/arm-linux-gnueabihf/ruby/gems/2.7.0:/usr/share/rubygems-integration/2.7.0:/usr/share/rubygems-integration/all:/usr/lib/arm-linux-gnueabihf/rubygems-integration/2.7.0 ruby2.7 -S rake -f debian/ruby-tests.rake /usr/bin/ruby2.7 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.9.3/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.9.2/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.9.2/exe/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation -Randomized with seed 9218 +Randomized with seed 51927 -RestClient::Response +RestClient::RawResponse behaves like string - accepts nil strings and sets it to empty for the case of HEAD - logging - uses the request's logger - 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] - exceptions processing - should throw an exception for other codes - should return itself for normal codes - header processing - test headers and raw headers - handles multiple headers by joining with comma - redirection - follows a redirection and keep the parameters - follows a redirection and keep the cookies - follows a redirection when the request is a get - doesn't follow a 301 when the request is a post - doesn't follow a 307 when the request is a post - handles redirects with relative paths - follows no more than 10 redirections before raising error - keeps redirection history - follow a redirection when the request is a get and the response is in the 30x range - follows a redirection when the request is a post and result is a 303 - handles redirects with relative path and query string - respects cookie domains on redirect - doesn't follow a 302 when the request is a post - doesn't follow a redirection when the request is a put - follows a redirection when the request is a head - follows no more than max_redirects redirections, if specified - allows for manual following of redirects - -RestClient::Request - closes payload if not nil - can use a block to process response - params for GET requests - manage params for get requests - adds GET params when params are present in URL - encodes nested GET params - -RestClient::ParamsArray - .new - rejects various invalid input - accepts various types of containers - -RestClient::AbstractResponse - can access the net http result directly - extract strange cookies - extracts cookies from response headers - has a nice description - fetches the headers - doesn't escape cookies - fetches the numeric response code - .beautify_headers - beautifies the headers by turning the keys to symbols - leaves set-cookie headers as array - joins multiple header values by comma - beautifies the headers by turning the values to strings instead of one-element arrays - #return! - should gracefully handle 302 redirect with no location header - should return the response itself on 200-codes - should raise an error on a redirection after non-GET/HEAD requests - should follow 302 redirect - should raise RequestFailed on unknown codes - .cookie_jar - extracts cookies into cookie jar - handles cookies when URI scheme is implicit + includes AbstractResponse + exposes a Tempfile RestClient::Request timeouts raises OpenTimeout when it hits an open timeout -RestClient::Payload - A regular Payload - should handle many attributes inside a hash - should properly handle arrays as repeated parameters - should handle arrays inside a hash inside a hash - should form properly use symbols as parameters - should use standard enctype as default content-type - should form properly encoded params - should handle attributes inside an array inside an hash - should not close if stream already closed - should properly handle hashes as parameter - should escape parameters - Base Payload - should reset stream after to_s - streamed payloads - should properly determine the size of other kinds of streaming payloads - should have a closed? method - should properly determine the size of file payloads - Payload generation - shouldn't treat hashes as streameable - should handle non-multipart payload wrapped in ParamsArray - should recognize other payloads that can be streamed - should recognize multipart payload wrapped in ParamsArray - should return data if no of the above - should recognize file payloads that can be streamed - should recognize standard urlencoded params - should recognize nested multipart payloads in hashes - should recognize multipart params - should be multipart if forced - should handle deeply nested multipart - should pass through Payload::Base and subclasses unchanged - should recognize nested multipart payloads in arrays - A multipart Payload - should ignore the name attribute when it's not set - should detect optional (original) content type and filename - should handle hash in hash parameters - should not error on close if stream already closed - should form properly separated multipart data - should correctly format hex boundary - should form properly separated multipart data - should use standard enctype as default content-type - should not escape parameters names - -RestClient - API +RestClient::Resource + concatenates urls, inserting a slash when it needs one + the block should be overrideable in ruby 1.9 syntax + offers subresources via [] + prints its url with to_s + the block should be overrideable + transports options to subresources + concatenates urls, using no slash if the first url ends with a slash + concatenates even non-string urls, :posts + 1 => 'posts/1' + concatenates urls, using no slash if the second url starts with a slash + passes a given block to subresources + can instantiate with no user/password + is backwards compatible with previous constructor + Resource delegation GET - POST PUT PATCH + POST + overrides resource headers HEAD DELETE - OPTIONS - version - has a version > 2.0.0.alpha, < 3.0 - logging - append the log to the requested filename - displays the log to stderr - displays the log to stdout - uses << if the log is not a string + block + execution block override resource block + can use block when creating the resource + can use block when executing the resource -RestClient::RawResponse - includes AbstractResponse - behaves like string - exposes a Tempfile +RestClient::ServerBrokeConnection + should have a default message of 'Server broke connection' + +RestClient::RequestFailed + http_code convenience method for fetching the code as an integer + stores the http response on the exception + shows the status code in the message + http_body convenience method for fetching the body (decoding when necessary) RestClient::Request - does not escape or unescape cookies - rejects cookie values containing invalid characters - rejects or warns with contradictory cookie options catches Errno::ETIMEDOUT and raise the more informative ReadTimeout - set urlencoded content_type header on hash payloads - catches Timeout::Error and raise the more informative ReadTimeout - class method execute wraps constructor + rejects cookie names containing invalid characters + rejects or warns with contradictory cookie options doesn't classify successful requests as failed - uses correct error message for ReadTimeout - catches Net::OpenTimeout and raises RestClient's OpenTimeout + does not escape or unescape cookies + warns when overriding existing headers via payload catches Net::ReadTimeout and raises RestClient's ReadTimeout - IPv6: executes by constructing the Net::HTTP object, headers, and payload and calling transmit - should still return a response object for 204 No Content responses strips the charset from the response content type - rejects cookie names containing invalid characters - accept */* mimetype + uses credentials in the url in preference to netrc + IPv6: executes by constructing the Net::HTTP object, headers, and payload and calling transmit transmits the request with Net::HTTP - uses correct error message for OpenTimeout + catches OpenSSL::SSL::SSLError and raise it back without more informative message + does not warn for a normal looking payload + assumes default domain and path for cookies set by hash + should still return a response object for 204 No Content responses + uses correct error message for ReadTimeout + strips out cookies set for a different domain name processes a successful result executes by constructing the Net::HTTP object, headers, and payload and calling transmit - determines the Net::HTTP class to instantiate by the method name + class method execute wraps constructor + catches Timeout::Error and raise the more informative ReadTimeout + catches Net::OpenTimeout and raises RestClient's OpenTimeout + uses correct error message for OpenTimeout correctly formats cookies provided to the constructor - strips out cookies set for a different domain name - assumes default domain and path for cookies set by hash - warns when overriding existing headers via payload catches EOFError and shows the more informative ServerBrokeConnection - does not warn for a normal looking payload - catches OpenSSL::SSL::SSLError and raise it back without more informative message + rejects cookie values containing invalid characters + set urlencoded content_type header on hash payloads does not warn when overriding user header with header derived from payload if those header values were identical - uses credentials in the url in preference to netrc + determines the Net::HTTP class to instantiate by the method name uses netrc credentials - block usage - returns what asked to + accept */* mimetype + user - password + extracts the username and password when parsing http://user:password@example.com/ + overrides URL user/pass with explicit options + 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 logging + logs a response with a nil body + logs a response with a nil Content-type logs a response including the status code, content type, and result body size in bytes + logs a post request with a small payload logs a post request with a large payload - logs a response with a nil body - does not log request password logs a get request logs to a passed logger, if provided - logs a post request with a small payload + does not log request password logs input headers as a hash - logs a response with a nil Content-type - timeout - deprecated: warns when disabling timeout by setting it to -1 - sets both timeouts with :timeout - does not set timeouts if not specified - sets read_timeout - disable timeout by setting it to nil - supersedes :timeout with open/read_timeout - sets open_timeout - deprecated: disable timeout by setting it to -1 + proxy + overrides proxy from environment + 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 + creates a non-proxy class if a proxy url is not given + sets proxy on a per-request basis + overrides global proxy with per-request proxy + disables proxy on a per-request basis ssl - 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 default to not having an ssl_client_key - should set the ssl_cert_store if provided - should by default set the ssl_cert_store if no CA info is provided - should not set the ssl_cert_store if it is set falsy - should set net.verify_mode to OpenSSL::SSL::VERIFY_PEER if verify_ssl is not given - should not set the ssl_client_key if it is not provided - should set the ssl_client_key if provided - should default to not having an ssl_ca_file - 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 not set the ssl_client_cert if it is not provided - should set net.verify_mode to OpenSSL::SSL::VERIFY_NONE if verify_ssl is false - should not set the ssl_ca_file if it is not provided + should set the ssl_ca_file if provided + should not set the ssl_version if not provided + should set net.verify_mode to OpenSSL::SSL::VERIFY_PEER if verify_ssl is true + uses SSL when the URI refers to a https address should set the ssl_ca_path if provided + should not set the ssl_ca_file if it is not provided should set the ssl_ciphers if provided - should set the ssl_verify_callback if passed + should not set the ssl_client_key if it is not provided + should default to not having an ssl_ca_file + should have expected values for VERIFY_PEER and VERIFY_NONE + should set the ssl_client_key if provided should default to verifying ssl certificates - should not set the ssl_ca_path if it is not provided - should not set the ssl_verify_callback by default - should set the ssl_ca_file if provided - should set net.verify_mode to OpenSSL::SSL::VERIFY_PEER if verify_ssl is true - should not set the ssl_version if not provided - should set the ssl_version if provided should default to not having an ssl_ca_path + should set the ssl_verify_callback if passed + should not set the ssl_client_cert if it is not provided + should set net.verify_mode to OpenSSL::SSL::VERIFY_PEER if verify_ssl is not given + should set net.verify_mode to OpenSSL::SSL::VERIFY_NONE if verify_ssl is false should set the ssl_client_cert if provided should not set net.verify_mode to OpenSSL::SSL::VERIFY_NONE if verify_ssl is true - user - password - uses the username and password from the URL - extracts with escaping the username and password when parsing http://user:password@example.com/ - overrides URL user/pass with explicit options - 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 - extracts the username and password when parsing http://user:password@example.com/ + should default to not having an ssl_client_key + should set the ssl_cert_store if provided + should set net.verify_mode to the passed value if verify_ssl is an OpenSSL constant + should set the ssl_version if provided + should not set the ssl_cert_store if it is set falsy + should not set the ssl_ciphers if set to nil + should not set the ssl_verify_callback by default + 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 + timeout + deprecated: warns when disabling timeout by setting it to -1 + sets read_timeout + sets both timeouts with :timeout + sets open_timeout + disable timeout by setting it to nil + does not set timeouts if not specified + deprecated: disable timeout by setting it to -1 + supersedes :timeout with open/read_timeout 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 - constructor - should reject invalid URIs - should reject valid URIs with no hostname - .normalize_url - adds http:// to resources containing a colon - does not add http:// to the front of capital HTTP resources - 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 HTTPS resources - does not add http:// to the front of https resources + setup credentials when there's a user + header symbols + converts header symbols from :content_type to 'Content-Type' + converts content-type from extension to real content-type + converts header values to strings + only convert symbols in header + converts accept from extension(s) to real content-type(s) + raw response + should read the response into a binary-mode tempfile + payload + converts a hash payload to urlencoded data + accepts nested hashes in payload + passes non-hash payloads straight through + sends nil payloads payloads should accept streaming IO payloads should accept string payloads - raw response - should read the response into a binary-mode tempfile user headers + converts user headers to string before calling CGI::unescape which fails on non string values 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 - proxy - creates a proxy class with the correct address if a IPv6 proxy url is given - overrides proxy from environment - overrides global proxy with per-request proxy - creates a proxy class if a proxy url is given - disables proxy on a per-request basis - sets proxy on a per-request basis - creates a non-proxy class if a proxy url is not given + .normalize_url + does not add http:// to the front of https resources + adds http:// to the front of resources specified in the syntax example.com/resource + does not add http:// to the front of capital HTTPS resources + adds http:// to resources containing a colon + raises with invalid URI + does not add http:// to the front of capital HTTP resources process_url_params - should handle basic 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 - header symbols - converts accept from extension(s) to real content-type(s) - converts header symbols from :content_type to 'Content-Type' - only convert symbols in header - converts header values to strings - converts content-type from extension to real content-type + should handle complex nested URL params per Rack / Rails conventions + block usage + returns what asked to exception - raises ResourceNotFound when the response is 404 - raises Unauthorized when the response is 401 raises RequestFailed otherwise - payload - sends nil payloads - passes non-hash payloads straight through - converts a hash payload to urlencoded data - accepts nested hashes in payload + raises Unauthorized when the response is 401 + raises ResourceNotFound when the response is 404 + constructor + should reject valid URIs with no hostname + should reject invalid URIs + +RestClient::Exception + returns a 'message' equal to the class name if the message is not set, because 'message' should not be nil + sets the exception message to ErrorMessage + contains exceptions in RestClient + returns the 'message' that was set + +RestClient + a simple request + a 404 + charset parsing + leaves images as binary + handles binary + handles euc-jp + handles windows-1252 + handles utf-8 + defaults to the default encoding + handles invalid encoding + +RestClient::ParamsArray + .new + rejects various invalid input + accepts various types of containers + +RestClient::AbstractResponse + fetches the numeric response code + fetches the headers + extracts cookies from response headers + can access the net http result directly + doesn't escape cookies + has a nice description + extract strange cookies + .cookie_jar + handles cookies when URI scheme is implicit + extracts cookies into cookie jar + .beautify_headers + beautifies the headers by turning the keys to symbols + leaves set-cookie headers as array + joins multiple header values by comma + beautifies the headers by turning the values to strings instead of one-element arrays + #return! + should raise RequestFailed on unknown codes + should raise an error on a redirection after non-GET/HEAD requests + should return the response itself on 200-codes + should gracefully handle 302 redirect with no location header + should follow 302 redirect + +RestClient::Payload + Base Payload + should reset stream after to_s + Payload generation + should recognize other payloads that can be streamed + shouldn't treat hashes as streameable + should recognize file payloads that can be streamed + should pass through Payload::Base and subclasses unchanged + should recognize nested multipart payloads in arrays + should handle deeply nested multipart + should recognize multipart payload wrapped in ParamsArray + should recognize nested multipart payloads in hashes + should return data if no of the above + should handle non-multipart payload wrapped in ParamsArray + should recognize standard urlencoded params + should recognize multipart params + should be multipart if forced + A regular Payload + should use standard enctype as default content-type + should escape parameters + should handle arrays inside a hash inside a hash + should properly handle hashes as parameter + should form properly use symbols as parameters + should properly handle arrays as repeated parameters + should form properly encoded params + should handle attributes inside an array inside an hash + should handle many attributes inside a hash + should not close if stream already closed + A multipart Payload + should handle hash in hash parameters + should not error on close if stream already closed + should not escape parameters names + should detect optional (original) content type and filename + should form properly separated multipart data + should correctly format hex boundary + should use standard enctype as default content-type + should ignore the name attribute when it's not set + should form properly separated multipart data + streamed payloads + should properly determine the size of other kinds of streaming payloads + should have a closed? method + should properly determine the size of file payloads RestClient::Utils .encode_query_string - handles simple arrays + handles deep nesting handles null and empty values - handles nested ParamsArrays handles multiple fields with the same name using ParamsArray - handles deep nesting + handles simple arrays + handles nested ParamsArrays handles simple hashes handles nested hashes handles nested nulls + .cgi_parse_header + parses headers .get_encoding_from_headers assumes no encoding by default for text - returns nil on failures handles various charsets - .cgi_parse_header - parses headers + returns nil on failures + +RestClient::Response + accepts nil strings and sets it to empty for the case of HEAD + behaves like string + logging + uses the request's logger + exceptions processing + should return itself for normal codes + should throw an exception for other codes + cookie processing + should correctly deal with multiple cookies [multiple Set-Cookie headers] + should correctly deal with multiple cookies [one Set-Cookie header with multiple cookies] + should correctly deal with one Set-Cookie header with one cookie inside + redirection + handles redirects with relative paths + keeps redirection history + doesn't follow a 307 when the request is a post + follows a redirection and keep the cookies + allows for manual following of redirects + doesn't follow a 301 when the request is a post + doesn't follow a redirection when the request is a put + respects cookie domains on redirect + handles redirects with relative path and query string + follow a redirection when the request is a get and the response is in the 30x range + follows no more than max_redirects redirections, if specified + follows no more than 10 redirections before raising error + follows a redirection when the request is a head + follows a redirection when the request is a post and result is a 303 + follows a redirection when the request is a get + doesn't follow a 302 when the request is a post + follows a redirection and keep the parameters + header processing + handles multiple headers by joining with comma + test headers and raw headers + +RestClient::Request + closes payload if not nil + can use a block to process response + params for GET requests + adds GET params when params are present in URL + manage params for get requests + encodes nested GET params RestClient::NotFound stores the body on the response of the exception @@ -1356,67 +1463,31 @@ backwards compatibility subclasses NotFound from RequestFailed, ExceptionWithResponse + subclasses timeout from RestClient::RequestTimeout, RequestFailed, EWR aliases RestClient::NotFound as ResourceNotFound aliases old names for HTTP 413, 414, 416 - subclasses timeout from RestClient::RequestTimeout, RequestFailed, EWR -RestClient::Resource - is backwards compatible with previous constructor - concatenates urls, inserting a slash when it needs one - concatenates urls, using no slash if the second url starts with a slash - the block should be overrideable in ruby 1.9 syntax - concatenates even non-string urls, :posts + 1 => 'posts/1' - concatenates urls, using no slash if the first url ends with a slash - prints its url with to_s - transports options to subresources - can instantiate with no user/password - offers subresources via [] - the block should be overrideable - passes a given block to subresources - Resource delegation - POST - PATCH - overrides resource headers +RestClient + version + has a version > 2.0.0.alpha, < 3.0 + API + OPTIONS DELETE + GET HEAD + POST + PATCH PUT - GET - block - execution block override resource block - can use block when executing the resource - can use block when creating the resource - -RestClient::Exception - returns the 'message' that was set - 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 - -RestClient - a 404 - a simple request - charset parsing - handles utf-8 - handles binary - handles windows-1252 - handles invalid encoding - leaves images as binary - handles euc-jp - defaults to the default encoding - -RestClient::ServerBrokeConnection - should have a default message of 'Server broke connection' - -RestClient::RequestFailed - shows the status code in the message - http_body convenience method for fetching the body (decoding when necessary) - stores the http response on the exception - http_code convenience method for fetching the code as an integer + 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 -Finished in 8.52 seconds (files took 10.44 seconds to load) +Finished in 5.14 seconds (files took 2.14 seconds to load) 286 examples, 0 failures -Randomized with seed 9218 +Randomized with seed 51927 ┌──────────────────────────────────────────────────────────────────────────────┐ @@ -1451,12 +1522,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: including full source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/3278/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/3278/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/16331 and its subdirectories -I: Current time: Tue Jul 20 19:45:57 -12 2021 -I: pbuilder-time-stamp: 1626853557 +I: removing directory /srv/workspace/pbuilder/3278 and its subdirectories +I: Current time: Wed Jul 21 21:51:07 +14 2021 +I: pbuilder-time-stamp: 1626853867