Diff of the two buildlogs: -- --- b1/build.log 2021-09-07 05:03:30.204149950 +0000 +++ b2/build.log 2021-09-07 05:04:36.713760994 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sun Oct 9 23:25:02 -12 2022 -I: pbuilder-time-stamp: 1665401102 +I: Current time: Tue Sep 7 19:03:33 +14 2021 +I: pbuilder-time-stamp: 1630991013 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-httparty_0.18.1-2.debian.tar.xz] I: Extracting source gpgv: unknown type of key resource 'trustedkeys.kbx' -gpgv: keyblock resource '/tmp/dpkg-verify-sig.U8vJmyim/trustedkeys.kbx': General error -gpgv: Signature made Tue Nov 17 00:22:57 2020 -12 +gpgv: keyblock resource '/tmp/dpkg-verify-sig.Qg3a8IQd/trustedkeys.kbx': General error +gpgv: Signature made Wed Nov 18 02:22:57 2020 +14 gpgv: using RSA key 9CCD6B319DBF8E40AB1ABD1A89AF82B739CD217A gpgv: Can't check signature: No public key dpkg-source: warning: failed to verify signature on ./ruby-httparty_0.18.1-2.dsc @@ -31,135 +31,169 @@ dpkg-source: info: applying no_pry_in_specs.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/30051/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/25494/tmp/hooks/D01_modify_environment starting +debug: Running on codethink16-arm64. +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/25494/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/25494/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='arm64' - DEBIAN_FRONTEND='noninteractive' + 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]="aarch64-unknown-linux-gnu") + 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=arm64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=8' - DISTRIBUTION='' - HOME='/var/lib/jenkins' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION= + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/var/lib/jenkins + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - 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='30051' - PS1='# ' - PS2='> ' + LANG=C + LANGUAGE=nl_BE:nl + LC_ALL=C + MACHTYPE=aarch64-unknown-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + 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=25494 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.VCHefkIOho/pbuilderrc_Drpo --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.VCHefkIOho/b1 --logfile b1/build.log ruby-httparty_0.18.1-2.dsc' - SUDO_GID='117' - SUDO_UID='110' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - USERNAME='root' - _='/usr/bin/systemd-run' - http_proxy='http://192.168.101.16:3128' + 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.VCHefkIOho/pbuilderrc_9ehS --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.VCHefkIOho/b2 --logfile b2/build.log ruby-httparty_0.18.1-2.dsc' + SUDO_GID=117 + SUDO_UID=110 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + USERNAME=root + _='I: set' + http_proxy=http://192.168.101.16:3128 I: uname -a - Linux codethink9-arm64 4.15.0-154-generic #161-Ubuntu SMP Fri Jul 30 13:01:15 UTC 2021 aarch64 GNU/Linux + Linux i-capture-the-hostname 4.15.0-154-generic #161-Ubuntu SMP Fri Jul 30 13:01:15 UTC 2021 aarch64 GNU/Linux I: ls -l /bin total 5252 - -rwxr-xr-x 1 root root 1282512 Aug 4 2021 bash - -rwxr-xr-x 3 root root 34808 Jul 20 2020 bunzip2 - -rwxr-xr-x 3 root root 34808 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 34808 Jul 20 2020 bzip2 - -rwxr-xr-x 1 root root 14264 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 39832 Sep 22 2020 cat - -rwxr-xr-x 1 root root 64512 Sep 22 2020 chgrp - -rwxr-xr-x 1 root root 60368 Sep 22 2020 chmod - -rwxr-xr-x 1 root root 64528 Sep 22 2020 chown - -rwxr-xr-x 1 root root 138896 Sep 22 2020 cp - -rwxr-xr-x 1 root root 129544 Dec 10 2020 dash - -rwxr-xr-x 1 root root 101384 Sep 22 2020 date - -rwxr-xr-x 1 root root 80984 Sep 22 2020 dd - -rwxr-xr-x 1 root root 89824 Sep 22 2020 df - -rwxr-xr-x 1 root root 143088 Sep 22 2020 dir - -rwxr-xr-x 1 root root 76152 Jul 28 2021 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 35632 Sep 22 2020 echo - -rwxr-xr-x 1 root root 28 Nov 9 2020 egrep - -rwxr-xr-x 1 root root 31512 Sep 22 2020 false - -rwxr-xr-x 1 root root 28 Nov 9 2020 fgrep - -rwxr-xr-x 1 root root 64856 Jul 28 2021 findmnt - -rwsr-xr-x 1 root root 34824 Feb 26 2021 fusermount - -rwxr-xr-x 1 root root 178400 Nov 9 2020 grep - -rwxr-xr-x 2 root root 2346 Mar 2 2021 gunzip - -rwxr-xr-x 1 root root 6376 Mar 2 2021 gzexe - -rwxr-xr-x 1 root root 93744 Mar 2 2021 gzip - -rwxr-xr-x 1 root root 18440 Nov 6 2019 hostname - -rwxr-xr-x 1 root root 68720 Sep 22 2020 ln - -rwxr-xr-x 1 root root 52720 Feb 7 2020 login - -rwxr-xr-x 1 root root 143088 Sep 22 2020 ls - -rwxr-xr-x 1 root root 161960 Jul 28 2021 lsblk - -rwxr-xr-x 1 root root 85200 Sep 22 2020 mkdir - -rwxr-xr-x 1 root root 68744 Sep 22 2020 mknod - -rwxr-xr-x 1 root root 43976 Sep 22 2020 mktemp - -rwxr-xr-x 1 root root 51368 Jul 28 2021 more - -rwsr-xr-x 1 root root 51360 Jul 28 2021 mount - -rwxr-xr-x 1 root root 14496 Jul 28 2021 mountpoint - -rwxr-xr-x 1 root root 134808 Sep 22 2020 mv - lrwxrwxrwx 1 root root 8 Nov 6 2019 nisdomainname -> hostname - lrwxrwxrwx 1 root root 14 Apr 18 2021 pidof -> /sbin/killall5 - -rwxr-xr-x 1 root root 35720 Sep 22 2020 pwd - lrwxrwxrwx 1 root root 4 Aug 4 2021 rbash -> bash - -rwxr-xr-x 1 root root 43872 Sep 22 2020 readlink - -rwxr-xr-x 1 root root 68592 Sep 22 2020 rm - -rwxr-xr-x 1 root root 43880 Sep 22 2020 rmdir - -rwxr-xr-x 1 root root 19208 Sep 27 2020 run-parts - -rwxr-xr-x 1 root root 114016 Dec 22 2018 sed - lrwxrwxrwx 1 root root 4 Sep 23 03:48 sh -> dash - -rwxr-xr-x 1 root root 35656 Sep 22 2020 sleep - -rwxr-xr-x 1 root root 72640 Sep 22 2020 stty - -rwsr-xr-x 1 root root 67776 Jul 28 2021 su - -rwxr-xr-x 1 root root 35672 Sep 22 2020 sync - -rwxr-xr-x 1 root root 535768 Feb 16 2021 tar - -rwxr-xr-x 1 root root 10568 Sep 27 2020 tempfile - -rwxr-xr-x 1 root root 89120 Sep 22 2020 touch - -rwxr-xr-x 1 root root 31512 Sep 22 2020 true - -rwxr-xr-x 1 root root 14264 Feb 26 2021 ulockmgr_server - -rwsr-xr-x 1 root root 30880 Jul 28 2021 umount - -rwxr-xr-x 1 root root 35640 Sep 22 2020 uname - -rwxr-xr-x 2 root root 2346 Mar 2 2021 uncompress - -rwxr-xr-x 1 root root 143088 Sep 22 2020 vdir - -rwxr-xr-x 1 root root 59584 Jul 28 2021 wdctl - lrwxrwxrwx 1 root root 8 Nov 6 2019 ypdomainname -> hostname - -rwxr-xr-x 1 root root 1984 Mar 2 2021 zcat - -rwxr-xr-x 1 root root 1678 Mar 2 2021 zcmp - -rwxr-xr-x 1 root root 5880 Mar 2 2021 zdiff - -rwxr-xr-x 1 root root 29 Mar 2 2021 zegrep - -rwxr-xr-x 1 root root 29 Mar 2 2021 zfgrep - -rwxr-xr-x 1 root root 2081 Mar 2 2021 zforce - -rwxr-xr-x 1 root root 7585 Mar 2 2021 zgrep - -rwxr-xr-x 1 root root 2206 Mar 2 2021 zless - -rwxr-xr-x 1 root root 1842 Mar 2 2021 zmore - -rwxr-xr-x 1 root root 4553 Mar 2 2021 znew -I: user script /srv/workspace/pbuilder/30051/tmp/hooks/D02_print_environment finished + -rwxr-xr-x 1 root root 1282512 Aug 5 10:25 bash + -rwxr-xr-x 3 root root 34808 Jul 21 2020 bunzip2 + -rwxr-xr-x 3 root root 34808 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 34808 Jul 21 2020 bzip2 + -rwxr-xr-x 1 root root 14264 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 39832 Sep 23 2020 cat + -rwxr-xr-x 1 root root 64512 Sep 23 2020 chgrp + -rwxr-xr-x 1 root root 60368 Sep 23 2020 chmod + -rwxr-xr-x 1 root root 64528 Sep 23 2020 chown + -rwxr-xr-x 1 root root 138896 Sep 23 2020 cp + -rwxr-xr-x 1 root root 129544 Dec 11 2020 dash + -rwxr-xr-x 1 root root 101384 Sep 23 2020 date + -rwxr-xr-x 1 root root 80984 Sep 23 2020 dd + -rwxr-xr-x 1 root root 89824 Sep 23 2020 df + -rwxr-xr-x 1 root root 143088 Sep 23 2020 dir + -rwxr-xr-x 1 root root 76152 Jul 29 09:09 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 35632 Sep 23 2020 echo + -rwxr-xr-x 1 root root 28 Nov 10 2020 egrep + -rwxr-xr-x 1 root root 31512 Sep 23 2020 false + -rwxr-xr-x 1 root root 28 Nov 10 2020 fgrep + -rwxr-xr-x 1 root root 64856 Jul 29 09:09 findmnt + -rwsr-xr-x 1 root root 34824 Feb 27 2021 fusermount + -rwxr-xr-x 1 root root 178400 Nov 10 2020 grep + -rwxr-xr-x 2 root root 2346 Mar 3 2021 gunzip + -rwxr-xr-x 1 root root 6376 Mar 3 2021 gzexe + -rwxr-xr-x 1 root root 93744 Mar 3 2021 gzip + -rwxr-xr-x 1 root root 18440 Nov 8 2019 hostname + -rwxr-xr-x 1 root root 68720 Sep 23 2020 ln + -rwxr-xr-x 1 root root 52720 Feb 8 2020 login + -rwxr-xr-x 1 root root 143088 Sep 23 2020 ls + -rwxr-xr-x 1 root root 161960 Jul 29 09:09 lsblk + -rwxr-xr-x 1 root root 85200 Sep 23 2020 mkdir + -rwxr-xr-x 1 root root 68744 Sep 23 2020 mknod + -rwxr-xr-x 1 root root 43976 Sep 23 2020 mktemp + -rwxr-xr-x 1 root root 51368 Jul 29 09:09 more + -rwsr-xr-x 1 root root 51360 Jul 29 09:09 mount + -rwxr-xr-x 1 root root 14496 Jul 29 09:09 mountpoint + -rwxr-xr-x 1 root root 134808 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 35720 Sep 23 2020 pwd + lrwxrwxrwx 1 root root 4 Aug 5 10:25 rbash -> bash + -rwxr-xr-x 1 root root 43872 Sep 23 2020 readlink + -rwxr-xr-x 1 root root 68592 Sep 23 2020 rm + -rwxr-xr-x 1 root root 43880 Sep 23 2020 rmdir + -rwxr-xr-x 1 root root 19208 Sep 28 2020 run-parts + -rwxr-xr-x 1 root root 114016 Dec 23 2018 sed + lrwxrwxrwx 1 root root 4 Sep 7 19:03 sh -> bash + lrwxrwxrwx 1 root root 4 Aug 21 23:25 sh.distrib -> dash + -rwxr-xr-x 1 root root 35656 Sep 23 2020 sleep + -rwxr-xr-x 1 root root 72640 Sep 23 2020 stty + -rwsr-xr-x 1 root root 67776 Jul 29 09:09 su + -rwxr-xr-x 1 root root 35672 Sep 23 2020 sync + -rwxr-xr-x 1 root root 535768 Feb 17 2021 tar + -rwxr-xr-x 1 root root 10568 Sep 28 2020 tempfile + -rwxr-xr-x 1 root root 89120 Sep 23 2020 touch + -rwxr-xr-x 1 root root 31512 Sep 23 2020 true + -rwxr-xr-x 1 root root 14264 Feb 27 2021 ulockmgr_server + -rwsr-xr-x 1 root root 30880 Jul 29 09:09 umount + -rwxr-xr-x 1 root root 35640 Sep 23 2020 uname + -rwxr-xr-x 2 root root 2346 Mar 3 2021 uncompress + -rwxr-xr-x 1 root root 143088 Sep 23 2020 vdir + -rwxr-xr-x 1 root root 59584 Jul 29 09:09 wdctl + lrwxrwxrwx 1 root root 8 Nov 8 2019 ypdomainname -> hostname + -rwxr-xr-x 1 root root 1984 Mar 3 2021 zcat + -rwxr-xr-x 1 root root 1678 Mar 3 2021 zcmp + -rwxr-xr-x 1 root root 5880 Mar 3 2021 zdiff + -rwxr-xr-x 1 root root 29 Mar 3 2021 zegrep + -rwxr-xr-x 1 root root 29 Mar 3 2021 zfgrep + -rwxr-xr-x 1 root root 2081 Mar 3 2021 zforce + -rwxr-xr-x 1 root root 7585 Mar 3 2021 zgrep + -rwxr-xr-x 1 root root 2206 Mar 3 2021 zless + -rwxr-xr-x 1 root root 1842 Mar 3 2021 zmore + -rwxr-xr-x 1 root root 4553 Mar 3 2021 znew +I: user script /srv/workspace/pbuilder/25494/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -371,7 +405,7 @@ Get: 152 http://deb.debian.org/debian bullseye/main arm64 ruby-simplecov-html all 0.12.3-1 [404 kB] Get: 153 http://deb.debian.org/debian bullseye/main arm64 ruby-simplecov all 0.19.1-1 [51.6 kB] Get: 154 http://deb.debian.org/debian bullseye/main arm64 ruby-webmock all 3.8.3-1 [64.3 kB] -Fetched 45.0 MB in 1s (39.5 MB/s) +Fetched 45.0 MB in 2s (22.8 MB/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 ... 19646 files and directories currently installed.) @@ -1012,7 +1046,8 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/ruby-httparty-0.18.1/ && 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-httparty_0.18.1-2_source.changes +hostname: Temporary failure in name resolution +I: Running cd /build/ruby-httparty-0.18.1/ && 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-httparty_0.18.1-2_source.changes dpkg-buildpackage: info: source package ruby-httparty dpkg-buildpackage: info: source version 0.18.1-2 dpkg-buildpackage: info: source distribution unstable @@ -1047,7 +1082,7 @@ dh_auto_install -O--buildsystem=ruby dh_ruby --install /build/ruby-httparty-0.18.1/debian/ruby-httparty dh_ruby --install -/usr/bin/ruby2.7 -S gem build --config-file /dev/null --verbose /tmp/d20221009-7141-8hoomh/gemspec +/usr/bin/ruby2.7 -S gem build --config-file /dev/null --verbose /tmp/d20210907-30126-1s7zllu/gemspec Failed to load /dev/null because it doesn't contain valid YAML hash WARNING: description and summary are identical WARNING: open-ended dependency on multi_xml (>= 0.5.2) is not recommended @@ -1058,7 +1093,7 @@ Name: httparty Version: 0.18.1 File: httparty-0.18.1.gem -/usr/bin/ruby2.7 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-httparty/usr/share/rubygems-integration/all /tmp/d20221009-7141-8hoomh/httparty-0.18.1.gem +/usr/bin/ruby2.7 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-httparty/usr/share/rubygems-integration/all /tmp/d20210907-30126-1s7zllu/httparty-0.18.1.gem Failed to load /dev/null because it doesn't contain valid YAML hash /build/ruby-httparty-0.18.1/debian/ruby-httparty/usr/share/rubygems-integration/all/gems/httparty-0.18.1/bin/httparty /build/ruby-httparty-0.18.1/debian/ruby-httparty/usr/share/rubygems-integration/all/gems/httparty-0.18.1/docs/README.md @@ -1125,333 +1160,583 @@ All examples were filtered out; ignoring {:focus=>true} -Randomized with seed 245 +Randomized with seed 26005 -HTTParty::HeadersProcessor - when only global headers are set - returns stringified global headers - when headers are dynamic - returns processed global and request specific headers - when global and request specific headers are set - returns merged global and request specific headers - when headers are not set at all - returns empty hash - when only request specific headers are set - returns stringified request specific headers +HTTParty::ResponseFragment + has access to delegators + access to fragment + +HTTParty::Request + SSL certificate verification + should work when using ssl_ca_file with a self-signed CA +# terminated with exception (report_on_exception is true): +/usr/lib/ruby/2.7.0/openssl/ssl.rb:486:in `accept': SSL_accept returned=1 errno=0 state=error: tlsv1 alert internal error (OpenSSL::SSL::SSLError) + from /usr/lib/ruby/2.7.0/openssl/ssl.rb:486:in `accept' + from /build/ruby-httparty-0.18.1/spec/support/ssl_test_server.rb:56:in `thread_main' + from /build/ruby-httparty-0.18.1/spec/support/ssl_test_server.rb:34:in `block (2 levels) in start' + should fail when using ssl_ca_file and the server uses a bogus hostname +# terminated with exception (report_on_exception is true): +/usr/lib/ruby/2.7.0/openssl/ssl.rb:486:in `accept': SSL_accept returned=1 errno=0 state=error: tlsv1 alert unknown ca (OpenSSL::SSL::SSLError) + from /usr/lib/ruby/2.7.0/openssl/ssl.rb:486:in `accept' + from /build/ruby-httparty-0.18.1/spec/support/ssl_test_server.rb:56:in `thread_main' + from /build/ruby-httparty-0.18.1/spec/support/ssl_test_server.rb:34:in `block (2 levels) in start' + should fail when using ssl_ca_path and the server uses a bogus hostname + should work when no trusted CA list is specified, even with a bogus hostname, when the verify option is set to true +# terminated with exception (report_on_exception is true): +/usr/lib/ruby/2.7.0/openssl/ssl.rb:486:in `accept': SSL_accept returned=1 errno=0 state=error: tlsv1 alert unknown ca (OpenSSL::SSL::SSLError) + from /usr/lib/ruby/2.7.0/openssl/ssl.rb:486:in `accept' + from /build/ruby-httparty-0.18.1/spec/support/ssl_test_server.rb:56:in `thread_main' + from /build/ruby-httparty-0.18.1/spec/support/ssl_test_server.rb:34:in `block (2 levels) in start' + should fail when using ssl_ca_file and the server uses an unrecognized certificate authority +# terminated with exception (report_on_exception is true): +/usr/lib/ruby/2.7.0/openssl/ssl.rb:486:in `accept': SSL_accept returned=1 errno=0 state=error: tlsv1 alert unknown ca (OpenSSL::SSL::SSLError) + from /usr/lib/ruby/2.7.0/openssl/ssl.rb:486:in `accept' + from /build/ruby-httparty-0.18.1/spec/support/ssl_test_server.rb:56:in `thread_main' + from /build/ruby-httparty-0.18.1/spec/support/ssl_test_server.rb:34:in `block (2 levels) in start' + should fail when using ssl_ca_path and the server uses an unrecognized certificate authority +# terminated with exception (report_on_exception is true): +/usr/lib/ruby/2.7.0/openssl/ssl.rb:486:in `accept': SSL_accept returned=1 errno=0 state=error: tlsv1 alert unknown ca (OpenSSL::SSL::SSLError) + from /usr/lib/ruby/2.7.0/openssl/ssl.rb:486:in `accept' + from /build/ruby-httparty-0.18.1/spec/support/ssl_test_server.rb:56:in `thread_main' + from /build/ruby-httparty-0.18.1/spec/support/ssl_test_server.rb:34:in `block (2 levels) in start' + should fail when no trusted CA list is specified, with a bogus hostname, by default + should provide the certificate used by the server via peer_cert + should work when using ssl_ca_path with a certificate authority + should work when no trusted CA list is specified, when the verify option is set to false + should work when using ssl_ca_file with a certificate authority +# terminated with exception (report_on_exception is true): +/usr/lib/ruby/2.7.0/openssl/ssl.rb:486:in `accept': SSL_accept returned=1 errno=0 state=error: tlsv1 alert unknown ca (OpenSSL::SSL::SSLError) + from /usr/lib/ruby/2.7.0/openssl/ssl.rb:486:in `accept' + from /build/ruby-httparty-0.18.1/spec/support/ssl_test_server.rb:56:in `thread_main' + from /build/ruby-httparty-0.18.1/spec/support/ssl_test_server.rb:34:in `block (2 levels) in start' + should fail when no trusted CA list is specified, by default + +HTTParty::Request::Body + #call + when params is hash + is expected to eq "people%5B%5D=Bob%20Jones&people%5B%5D=Mike%20Smith" + when params has file + is expected to eq "--------------------------c772861a5109d5ef\r\nContent-Disposition: form-data; name=\"user[avatar]\";...: form-data; name=\"user[enabled]\"\r\n\r\ntrue\r\n--------------------------c772861a5109d5ef--\r\n" + when passing multipart as an option + is expected to eq "--------------------------c772861a5109d5ef\r\nContent-Disposition: form-data; name=\"user[first_name...: form-data; name=\"user[enabled]\"\r\n\r\ntrue\r\n--------------------------c772861a5109d5ef--\r\n" + file object responds to original_filename + is expected to eq "--------------------------c772861a5109d5ef\r\nContent-Disposition: form-data; name=\"user[avatar]\";...: form-data; name=\"user[enabled]\"\r\n\r\ntrue\r\n--------------------------c772861a5109d5ef--\r\n" + when params is string + is expected to eq "name=Bob%20Jones" + #multipart? + when params does not respond to to_hash + is expected to equal false + when params responds to to_hash + when it contains file + is expected to equal true + when it does not contain a file + is expected to eq false + when force_multipart is true + is expected to equal true + +HTTParty::Parser + #parse + parses frozen strings + returns the unparsed body when the format is unsupported + returns nil for a 'null' body + returns nil for a nil body + returns nil for an empty body + parses ascii 8bit encoding + returns nil for a body with spaces only + does not raise exceptions for bodies with invalid encodings + ignores utf-8 bom + attempts to parse supported formats + #parse_supported_format + calls the parser for the given format + when a parsing method does not exist for the given format + raises a useful exception message for subclasses + raises an exception + .supported_formats + returns a unique set of supported formats represented by symbols + .supports_format? + returns true for a supported format + returns false for an unsupported format + .format_from_mimetype + returns nil when the mimetype is not supported + returns a symbol representing the format mimetype + .call + generates an HTTParty::Parser instance with the given body and format + calls #parse on the parser + .formats + returns the SupportedFormats constant + returns the SupportedFormats constant for subclasses + parsers + parses xml with MultiXml + parses csv with CSV + parses plain text by simply returning the body + parses json with JSON + parses html by simply returning the body + #supports_format? + utilizes the class method to determine if the format is supported + .SupportedFormats + returns a hash + +HTTParty::Error + #ancestors + is expected to include StandardError + HTTParty::DuplicateLocationHeader + #ancestors + is expected to include HTTParty::ResponseError + HTTParty::UnsupportedFormat + #ancestors + is expected to include HTTParty::Error + HTTParty::RedirectionTooDeep + #ancestors + is expected to include HTTParty::ResponseError + HTTParty::UnsupportedURIScheme + #ancestors + is expected to include HTTParty::Error + HTTParty::ResponseError + #ancestors + is expected to include HTTParty::Error + +HTTParty::Logger::LogstashFormatter + #format + formats a response to be compatible with Logstash + +HTTParty::HashConversions + .to_params + creates a params string from a hash + nested params + creates a params string from a hash + .normalize_param + value is a string + creates a params string + value is an empty array + creates a params string + value is an array + creates a params string + value is hash + creates a params string HTTParty::ConnectionAdapter + .call + generates an HTTParty::ConnectionAdapter instance with the given uri and options + calls #connection on the connection adapter + initialization + sets the options + raises an ArgumentError if the uri is a String + takes a URI as input + raises an ArgumentError if the uri is nil + also accepts an optional options hash + sets the uri #connection the resulting connection is expected to be an instance of Net::HTTP - when setting timeout - to 5 seconds - #write_timeout - is expected to eq 5 - #open_timeout - is expected to eq 5 - #read_timeout - is expected to eq 5 - and timeout is a string - doesn't set the timeout - when providing PEM certificates - when scheme is not https - has no PEM certificate - when scheme is https - will verify the certificate - uses the provided PEM certificate - when options include verify=false - should not verify the certificate - when options include verify_peer=false - should not verify the certificate - specifying ciphers - should set the ciphers on the connection + when max_retries is not set + doesn't set the max_retries + when not providing a proxy address + does not pass any proxy parameters to the connection + when timeout is set and open_timeout is set to 7 seconds + should override the timeout option + #read_timeout + is expected to eq 5 + #open_timeout + is expected to eq 7 + #write_timeout + is expected to eq 5 + when timeout is set and read_timeout is set to 6 seconds + should override the timeout option + #read_timeout + is expected to eq 6 + #write_timeout + is expected to eq 5 + #open_timeout + is expected to eq 5 + when timeout is not set and read_timeout is set to 6 seconds + should not set the open_timeout + should not set the write_timeout + #read_timeout + is expected to eq 6 + when providing a local bind address and port + #local_port + is expected to eq 12345 + #local_host + is expected to eq "127.0.0.1" when timeout is not set and write_timeout is set to 8 seconds should not set the read timeout should not set the open timeout #write_timeout is expected to eq 8 - when providing PKCS12 certificates + when setting max_retries + and max_retries is a string + doesn't set the max_retries + to 5 times + #max_retries + is expected to eq 5 + to 0 times + #max_retries + is expected to eq 0 + when providing PEM certificates when scheme is not https - has no PKCS12 certificate + has no PEM certificate when scheme is https + uses the provided PEM certificate will verify the certificate - uses the provided P12 certificate - when options include verify=false - should not verify the certificate when options include verify_peer=false should not verify the certificate + when options include verify=false + should not verify the certificate + when setting timeout + to 5 seconds + #write_timeout + is expected to eq 5 + #read_timeout + is expected to eq 5 + #open_timeout + is expected to eq 5 + and timeout is a string + doesn't set the timeout + when providing nil as proxy address + does pass nil proxy parameters to the connection, this forces to not use a proxy + is expected not to be a proxy + when timeout is not set and open_timeout is set to 7 seconds + should not set the write_timeout + should not set the read_timeout + #open_timeout + is expected to eq 7 when timeout is set and write_timeout is set to 8 seconds should override the timeout option #write_timeout is expected to eq 8 - when max_retries is not set - doesn't set the max_retries when dealing with IPv6 strips brackets from the address - when timeout is set and open_timeout is set to 7 seconds - should override the timeout option - #open_timeout - is expected to eq 7 - #read_timeout - is expected to eq 5 - #write_timeout - is expected to eq 5 + specifying ciphers + should set the ciphers on the connection when timeout is not set doesn't set the timeout - when debug_output - is set to $stderr - has debug output set - is not provided - does not set_debug_output - when providing proxy address and port - is expected to be a proxy - as well as proxy user and password - #proxy_pass - is expected to eq "pass" - #proxy_user - is expected to eq "user" - #proxy_address - is expected to eq "1.2.3.4" - #proxy_port - is expected to eq 8080 - when timeout is not set and open_timeout is set to 7 seconds - should not set the read_timeout - should not set the write_timeout - #open_timeout - is expected to eq 7 - when providing nil as proxy address - is expected not to be a proxy - does pass nil proxy parameters to the connection, this forces to not use a proxy - when uri port is not defined - falls back to 80 port on http - is expected to equal 80 - falls back to 443 port on https - is expected to equal 443 using port 80 is expected not to use ssl - when timeout is set and read_timeout is set to 6 seconds - should override the timeout option - #read_timeout - is expected to eq 6 - #write_timeout - is expected to eq 5 - #open_timeout - is expected to eq 5 - when providing a local bind address and port - #local_host - is expected to eq "127.0.0.1" - #local_port - is expected to eq 12345 when dealing with ssl + using port 443 for ssl + is expected to use ssl uses the system cert_store, by default is expected to use cert store # https scheme with default port is expected to use ssl - should use the specified cert store, when one is given - is expected to use cert store # when ssl version is set sets ssl version https scheme with non-standard port is expected to use ssl - using port 443 for ssl - is expected to use ssl - when timeout is not set and read_timeout is set to 6 seconds - should not set the write_timeout - should not set the open_timeout - #read_timeout - is expected to eq 6 - when not providing a proxy address - does not pass any proxy parameters to the connection - when setting max_retries - to 5 times - #max_retries - is expected to eq 5 - and max_retries is a string - doesn't set the max_retries - to 0 times - #max_retries - is expected to eq 0 - initialization - takes a URI as input - sets the options - also accepts an optional options hash - raises an ArgumentError if the uri is a String - raises an ArgumentError if the uri is nil - sets the uri - .call - generates an HTTParty::ConnectionAdapter instance with the given uri and options - calls #connection on the connection adapter + should use the specified cert store, when one is given + is expected to use cert store # + when uri port is not defined + falls back to 443 port on https + is expected to equal 443 + falls back to 80 port on http + is expected to equal 80 + when providing proxy address and port + is expected to be a proxy + #proxy_address + is expected to eq "1.2.3.4" + as well as proxy user and password + #proxy_user + is expected to eq "user" + #proxy_pass + is expected to eq "pass" + #proxy_port + is expected to eq 8080 + when providing PKCS12 certificates + when scheme is https + will verify the certificate + uses the provided P12 certificate + when options include verify=false + should not verify the certificate + when options include verify_peer=false + should not verify the certificate + when scheme is not https + has no PKCS12 certificate + when debug_output + is not provided + does not set_debug_output + is set to $stderr + has debug output set Net::HTTPHeader::DigestAuthenticator with an opaque value in the response header should set opaque with unspecified quality of protection (qop) - should not set qop + should set prefix + should set digest-uri should set username - should set response should not set cnonce + should set response should not set nonce-count - should set prefix + should not set qop + without a cookie value in the response header + should set empty cookie header array + with specified quality of protection (qop) + should set qop should set digest-uri - with multiple authenticate headers - should set nonce-count + should set cnonce should set username - should set prefix - should set digest-uri + should set nonce-count should set response + should set prefix + without an opaque valid in the response header + should not set opaque + with algorithm specified + should recognise algorithm was specified + should set the algorithm header + with multiple authenticate headers should set qop + should set response should set cnonce - with a cookie value in the response header - should set cookie header + should set digest-uri + should set username + should set nonce-count + should set prefix Net::HTTPHeader#digest_auth should set the authorization header - without a cookie value in the response header - should set empty cookie header array - without an opaque valid in the response header - should not set opaque + when quality of protection (qop) is unquoted + should still set qop with http basic auth response when net digest auth expected should not fail + with a cookie value in the response header + should set cookie header with md5-sess algorithm specified - should set the algorithm header should set response using md5-sess algorithm should recognise algorithm was specified - with algorithm specified should set the algorithm header - should recognise algorithm was specified - when quality of protection (qop) is unquoted - should still set qop - with specified quality of protection (qop) - should set digest-uri - should set nonce-count - should set qop - should set cnonce - should set prefix - should set username - should set response -HTTParty::HashConversions - .to_params - creates a params string from a hash - nested params - creates a params string from a hash - .normalize_param - value is an array - creates a params string - value is hash - creates a params string - value is a string - creates a params string - value is an empty array - creates a params string +HTTParty::HeadersProcessor + when headers are dynamic + returns processed global and request specific headers + when only request specific headers are set + returns stringified request specific headers + when only global headers are set + returns stringified global headers + when headers are not set at all + returns empty hash + when global and request specific headers are set + returns merged global and request specific headers -HTTParty::Response - does raise an error about itself when invoking a method that does not exist - should send missing methods to delegate - responds to parsed_response - returns response headers - responds to body - responds to response - returns a comma-delimited value when multiple values exist - response to request - responds to hash methods - responds to anything parsed_response responds to - allows headers to be accessed by mixed-case names in hash notation - responds to headers - responds to predicates - does raise an error about itself when using #method - #kind_of? - is expected to be truthy - is expected to be truthy - is expected to respond to #kind_of? with 1 argument - semantic methods for response codes - major codes - is success - is server error - is redirection - is client error - is information - for specific codes - responds to requested_range_not_satisfiable? - responds to gateway_timeout? - responds to request_time_out? - responds to multiple_choices? - responds to use_proxy? - responds to proxy_authentication_required? - responds to unsupported_media_type? - responds to see_other? - responds to partial_content? - responds to not_acceptable? - responds to bad_gateway? - responds to request_uri_too_long? - responds to bad_request? - responds to uri_too_long? - responds to multiple_choice? - responds to expectation_failed? - responds to length_required? - responds to conflict? - responds to precondition_failed? - responds to moved_permanently? - responds to not_modified? - responds to accepted? - responds to method_not_allowed? - responds to gateway_time_out? - responds to forbidden? - responds to ok? - responds to temporary_redirect? - responds to not_found? - responds to no_content? - responds to range_not_satisfiable? - responds to unauthorized? - responds to payment_required? - responds to non_authoritative_information? - responds to found? - responds to request_timeout? - responds to request_entity_too_large? - responds to service_unavailable? - responds to reset_content? - responds to not_implemented? - responds to payload_too_large? - responds to switch_protocol? - responds to internal_server_error? - responds to continue? - responds to created? - responds to version_not_supported? - responds to gone? - #tap - is possible to tap into a response - #is_a? - is expected to respond to #is_a? with 1 argument - is expected to be truthy - is expected to be truthy - response is array - should respond to array methods - should display the same as an array - should be able to iterate - should equal the string response object body - initialization - should set the Net::HTTP Response - should set code as an Integer - should set body - should set http_version - should set code - when raise_on is supplied - and response's status code is not in range - does not throw exception - and response's status code is in range - throws exception - #inspect - works +HTTParty + two child classes inheriting from one parent + doesn't modify the parent's default options + inherits default_options from the superclass + inherits default_cookies from the parent class + does not modify each others inherited attributes + should dup the proc on the child class + works with lambda values + doesn't modify hashes in the parent's default options + doesn't modify the parent's default cookies + head requests should follow redirects requesting HEAD only + should remain HEAD request across redirects, unless specified otherwise + #no_follow + sets the no_follow option to true + sets no_follow to false by default + default timeout + should support updating + should raise an exception if unsupported type provided + should support floats + should default to nil + debug_output + stores the given stream as a default_option + stores the $stderr stream by default + default params + should default to empty hash + should be able to be updated + cookies + should not be in the headers by default + should raise an ArgumentError if passed a non-Hash + should allow a cookie to be specified with a one-off request + when a cookie is set at the class level + should allow the class defaults to be overridden + should pass the proper cookies when requested multiple times + should include that cookie in the request + in a class with multiple methods that use different cookies + should not allow cookies used in one method to carry over into other methods headers - always equals itself - does not equal itself when not equivalent - does equal a hash - can initialize without headers - .underscore - works with all caps - works with titlecase - works with one capitalized word - marshalling - is expected to eq 200 + does not modify default_options when no arguments are passed + should be able to be updated + should be able to accept block as header value + merges class headers with request headers + should pass options as argument to header block value + overrides class headers with request headers + uses the class headers when sending a request + should default to empty hash + with cookies + utilizes the class-level cookies + doesnt modify default headers + adds cookies to the headers + adds optional cookies to the optional headers + when posting file + changes content-type headers to multipart/form-data + when headers passed as symbols + converts them to string + converts default headers to string + basic http authentication + should work + #ensure_method_maintained_across_redirects + should set maintain_method_across_redirects option if unspecified + should not set maintain_method_across_redirects option if value is present + uri_adapter + with Addressable::URI + handles international domains + with custom URI Adaptor + should process a request with a uri instance parsed from the uri_adapter + should set the uri_adapter + should raise an ArgumentError if uri_adapter doesn't implement parse method + grand parent with inherited callback + continues running the #inherited on the parent + connection_adapter + should set the connection_adapter + should not set the connection_adapter_options when not provided + should set the connection_adapter_options when provided + should process a request with a connection from the adapter + parser + should set parser options + does not validate format whe custom parser is a proc + should be able parse response with custom parser + raises UnsupportedFormat when the parser cannot handle the format + pkcs12 + should set the password + should set the p12 content + #get + should be able to get chunked html + should be able parse response type json automatically + should not get undefined method add_node for nil class for the following xml + should be able parse response type xml automatically + should return an empty body if stream_body option is turned on +[DEPRECATION] HTTParty will no longer override `response#nil?`. This functionality will be removed in future versions. Please, add explicit check `response.body.nil? || response.body.empty?`. For more info refer to: https://github.com/jnunemaker/httparty/issues/568 +/usr/share/rubygems-integration/all/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be.rb:69:in `match' + should parse empty response fine + should raise an InvalidURIError on URIs that can't be parsed at all + should accept webcal URIs + should be able parse response type csv automatically + should be able to get html + should accept http URIs + should accept https URIs + when streaming body + is expected to eq # + .disable_rails_query_string_format + sets the query string normalizer to HTTParty::Request::NON_RAILS_QUERY_STRING_NORMALIZER + digest http authentication + should work + #maintain_method_across_redirects + sets the maintain_method_across_redirects option to false + sets maintain_method_across_redirects to true by default + ssl_version + should set the ssl_version content + with multiple class definitions + should not run over each others options + .normalize_base_uri + should add http if not present for non ssl requests + should not treat uri's with a port of 4430 as ssl + should not modify the parameter + should add https if not present for ssl requests + should not remove https for ssl requests + #resend_on_redirect + sets resend_on_redirect option to false + sets resend_on_redirect to true by default + .follow_redirects + sets follow redirects to true by default + sets the follow_redirects option to false + base uri + should not modify the parameter during assignment + should have reader + should have writer + ciphers + should set the ciphers content + http_proxy + should set the proxy user and pass when they are provided + should set the address + with explicit override of automatic redirect handling + should fail with redirected PATCH + should fail with redirected GET + should fail with redirected MOVE + should fail with redirected PUT + should fail with redirected OPTIONS + should fail with redirected MKCOL + should fail with redirected COPY + should fail with redirected POST + should fail with redirected HEAD + should fail with redirected DELETE + pem + should set the pem content + should set the password + should set the password to nil if it's not provided + format + should allow plain + sets the default parser + should only print each format once with an exception + does not reset parser to the default parser + should allow csv + should not allow funky format + should allow xml + should allow json + .query_string_normalizer + sets the query_string_normalizer option + .raise_on + when parameters is an array + sets raise_on option + when parameters is a fixnum + sets raise_on option + +HTTParty::Logger::ApacheFormatter + #format + formats a response in a style that resembles apache's access log + when there is a parsed response + can handle the Content-Length header + +HTTParty::CookieHash + #to_cookie_string + should not include client side only cookies + should format the key/value pairs, delimited by semi-colons + should not include client side only cookies even when attributes use camal case + should not include SameSite attribute + should not mutate the hash + #add_cookies + with a string + should overwrite any existing key + should handle '=' within cookie value + should add new key/value pairs to the hash + should handle an empty cookie parameter + with other class + should error + with a hash + should add new key/value pairs to the hash + should overwrite any existing key + +HTTParty::Logger + .build + raises error when formatter exists + builds :curl style logger + defaults level to :info + defaults format to :apache + builds :logstash style logger + builds :custom style logger + +HTTParty::Logger::CurlFormatter + #format + formats a response in a style that resembles a -v curl + when response is logged + logs http version and response code + logs body + logs headers + when request is logged + and headers are not present + not log Headers + and headers are present + logs headers keys + logs Headers + when request raw_body is present + not logs request body + and request's option 'base_uri' is present + logs url + and query is present + logs Query + logs query params + and query is not present + not logs Query + and request's option 'base_uri' is not present + logs url HTTParty::Request [DEPRECATION] HTTParty will no longer override `response#nil?`. This functionality will be removed in future versions. Please, add explicit check `response.body.nil? || response.body.empty?`. For more info refer to: https://github.com/jnunemaker/httparty/issues/568 @@ -1460,116 +1745,166 @@ /usr/share/rubygems-integration/all/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be.rb:69:in `match' should not attempt to parse empty responses should not fail for missing mime type - options - should normalize base uri when specified as request option - should use basic auth when configured - should use body_stream when configured - digest_auth - should maintain cookies returned from a 401 response - should merge cookies from request and a 401 response - should not send credentials more than once - should be used when configured and the response is 401 - should not be used when configured and the response is 200 - a request that 300 redirects + ::NON_RAILS_QUERY_STRING_NORMALIZER + doesn't modify strings + when the query is an array + URI encodes array values + doesn't include brackets + when the query is a hash + correctly handles nil values + a request that 307 redirects infinitely should raise an exception once - should not make resulting request a get request if options[:maintain_method_across_redirects] is true + should be handled by MOVE transparently + should be handled by DELETE transparently + should be handled by PUT transparently should be handled by MKCOL transparently should handle multiple Set-Cookie headers between redirects + should be handled by HEAD transparently + should be handled by GET transparently + should be handled by COPY transparently + should keep cookies between redirects + should maintain method in resulting request + should update cookies with redirects should keep track of cookies between redirects - should be handled by PUT transparently - should be handled by OPTIONS transparently - should be handled by PATCH transparently - should make resulting request a get request if it not already should be handled by LOCK transparently + should maintain method in resulting request if options[:maintain_method_across_redirects] is false + should be handled by OPTIONS transparently + should maintain method in resulting request if options[:maintain_method_across_redirects] is true should be handled by POST transparently - should log the redirection should be handled by UNLOCK transparently - should be handled by DELETE transparently - should keep cookies between redirects + should be handled by PATCH transparently + should log the redirection + a request that returns 304 + should report 304 with a MOVE request + should report 304 with a OPTIONS request + should not log the redirection + should report 304 with a MKCOL request + should report 304 with a POST request + should report 304 with a PATCH request + should report 304 with a GET request + should be handled by LOCK transparently + should report 304 with a COPY request + should report 304 with a HEAD request + should report 304 with a DELETE request + should be handled by UNLOCK transparently + should report 304 with a PUT request + a request that 308 redirects + once + should be handled by LOCK transparently should be handled by MOVE transparently + should keep cookies between redirects + should update cookies with redirects + should be handled by POST transparently + should be handled by COPY transparently should be handled by GET transparently + should maintain method in resulting request if options[:maintain_method_across_redirects] is false + should be handled by OPTIONS transparently + should maintain method in resulting request if options[:maintain_method_across_redirects] is true + should handle multiple Set-Cookie headers between redirects + should be handled by PUT transparently + should be handled by PATCH transparently + should be handled by UNLOCK transparently + should log the redirection + should maintain method in resulting request should be handled by HEAD transparently - should be handled by COPY transparently - should update cookies with redirects - a request that 305 redirects + should be handled by DELETE transparently + should be handled by MKCOL transparently + should keep track of cookies between redirects infinitely should raise an exception + #send_authorization_header? + basic_auth + should send Authorization header when redirecting to a different port on the same host + should send Authorization header when redirecting to a relative path + should send Authorization header when redirecting to the same host + should not send Authorization header when redirecting to a different host + a request that 300 redirects once + should be handled by PATCH transparently + should be handled by GET transparently + should be handled by MOVE transparently + should be handled by LOCK transparently + should log the redirection + should be handled by PUT transparently + should not make resulting request a get request if options[:maintain_method_across_redirects] is true + should be handled by DELETE transparently + should be handled by MKCOL transparently + should keep track of cookies between redirects should update cookies with redirects + should be handled by COPY transparently + should handle multiple Set-Cookie headers between redirects + should keep cookies between redirects + should be handled by UNLOCK transparently + should make resulting request a get request if it not already + should be handled by OPTIONS transparently should be handled by POST transparently + should be handled by HEAD transparently + infinitely + should raise an exception + a request that 305 redirects + once should make resulting request a get request if it not already - should be handled by COPY transparently - should be handled by PUT transparently - should log the redirection + should be handled by LOCK transparently should be handled by OPTIONS transparently + should be handled by PATCH transparently + should be handled by DELETE transparently + should handle multiple Set-Cookie headers between redirects + should be handled by GET transparently should be handled by UNLOCK transparently - should be handled by MOVE transparently - should be handled by MKCOL transparently - should be handled by HEAD transparently + should be handled by COPY transparently should not make resulting request a get request if options[:maintain_method_across_redirects] is true - should be handled by DELETE transparently + should update cookies with redirects + should be handled by MOVE transparently + should log the redirection + should be handled by POST transparently should keep cookies between redirects - should be handled by PATCH transparently - should handle multiple Set-Cookie headers between redirects - should be handled by LOCK transparently + should be handled by HEAD transparently + should be handled by MKCOL transparently should keep track of cookies between redirects - should be handled by GET transparently + should be handled by PUT transparently + infinitely + should raise an exception initialization - sets parser to the optional parser sets connection_adapter to HTTParty::ConnectionAdapter - sets connection_adapter to the optional connection_adapter sets parser to HTTParty::Parser + sets parser to the optional parser + sets connection_adapter to the optional connection_adapter when basic authentication credentials provided in uri when basic auth options was set explicitly uses basic auth from url anyway when basic auth options wasn't set explicitly sets basic auth from uri when using a query string - when sending an array with only one element - sets correct query and it has an empty array sets correct query string - a request that 303 redirects - once - should be handled by MKCOL transparently - should be handled by PUT transparently - should be handled by POST transparently - should be handled by COPY transparently - should be handled by PATCH transparently - should make resulting request a get request if options[:maintain_method_across_redirects] is false - should be handled by HEAD transparently - should make resulting request a get request if options[:maintain_method_across_redirects] is true but options[:resend_on_redirect] is false - should be handled by GET transparently - should be handled by DELETE transparently - should make resulting request a get request if it not already - should log the redirection - should be handled by MOVE transparently - should be handled by LOCK transparently - should update cookies with redirects - should keep track of cookies between redirects - should keep cookies between redirects - should handle multiple Set-Cookie headers between redirects - should be handled by OPTIONS transparently - should not make resulting request a get request if options[:maintain_method_across_redirects] and options[:resend_on_redirect] is true - should be handled by UNLOCK transparently - infinitely - should raise an exception + when sending an array with only one element + sets correct query #format_from_mimetype - should handle application/vnd.api+json - should handle text/csv should handle text/xml - should handle application/xml + should handle text/javascript should handle application/hal+json + should handle text/csv + should handle application/xml returns nil when using a default parser - should handle application/csv - should handle text/javascript + should handle application/json should handle text/json should handle application/javascript - returns nil for an unrecognized mimetype - should handle application/json should handle text/comma-separated-values + should handle application/csv + returns nil for an unrecognized mimetype + should handle application/vnd.api+json + http + should get a connection from the connection_adapter + argument validation + should raise argument error if options method is not http accepted method + should raise argument error if digest_auth is not a hash + should raise RedirectionTooDeep error if limit is negative + should raise argument error if headers is not a hash + should raise argument error if http method is post and query is not hash + should raise argument error if basic_auth and digest_auth are both present + should raise argument error if basic_auth is not a hash #format request has been made returns format option @@ -1577,122 +1912,92 @@ request yet to be made returns format option returns nil format - ::NON_RAILS_QUERY_STRING_NORMALIZER - doesn't modify strings - when the query is a hash - correctly handles nil values - when the query is an array - doesn't include brackets - URI encodes array values - a request that 301 redirects + a request that 302 redirects + infinitely + should raise an exception once - should be handled by HEAD transparently - should be handled by OPTIONS transparently - should be handled by DELETE transparently - should log the redirection - should be handled by COPY transparently - should be handled by LOCK transparently - should be handled by UNLOCK transparently - should be handled by GET transparently - should handle multiple Set-Cookie headers between redirects should be handled by PATCH transparently should be handled by MOVE transparently - should be handled by PUT transparently should keep track of cookies between redirects - should update cookies with redirects - should not make resulting request a get request if options[:maintain_method_across_redirects] is true - should be handled by POST transparently - should make resulting request a get request if it not already should keep cookies between redirects + should be handled by HEAD transparently + should be handled by UNLOCK transparently + should be handled by PUT transparently + should not make resulting request a get request if options[:maintain_method_across_redirects] is true should be handled by MKCOL transparently + should update cookies with redirects + should be handled by GET transparently + should make resulting request a get request if it not already + should log the redirection + should handle multiple Set-Cookie headers between redirects + should be handled by DELETE transparently + should be handled by POST transparently + should be handled by OPTIONS transparently + should be handled by COPY transparently + should be handled by LOCK transparently + a request that 301 redirects infinitely should raise an exception - with POST http method - should raise argument error if query is not a hash - #uri - query strings - does not duplicate query string parameters when uri is called twice - does not append an ampersand when queries are embedded in paths - does not add an empty query string when default_params are blank - respects the query string normalization proc - when representing an array - returns a Rails style query string - redirects - returns correct path when the server sets the location header to a network-path reference - returns correct path when the server sets the location header to a filename - returns correct path when the server sets the location header to a full uri - location header is an absolute path - returns correct path when location has leading slash - returns the correct path when location has no leading slash - a request that 307 redirects once + should not make resulting request a get request if options[:maintain_method_across_redirects] is true + should be handled by MOVE transparently should be handled by LOCK transparently - should be handled by POST transparently - should be handled by UNLOCK transparently + should be handled by HEAD transparently + should update cookies with redirects + should be handled by PATCH transparently should be handled by GET transparently should be handled by MKCOL transparently - should be handled by MOVE transparently - should maintain method in resulting request - should keep track of cookies between redirects - should update cookies with redirects - should be handled by DELETE transparently - should maintain method in resulting request if options[:maintain_method_across_redirects] is false - should keep cookies between redirects should log the redirection - should handle multiple Set-Cookie headers between redirects - should maintain method in resulting request if options[:maintain_method_across_redirects] is true should be handled by PUT transparently - should be handled by HEAD transparently + should make resulting request a get request if it not already + should handle multiple Set-Cookie headers between redirects + should be handled by POST transparently + should be handled by UNLOCK transparently should be handled by COPY transparently + should keep track of cookies between redirects should be handled by OPTIONS transparently - should be handled by PATCH transparently - infinitely - should raise an exception - a request that 302 redirects + should be handled by DELETE transparently + should keep cookies between redirects + options + should normalize base uri when specified as request option + should use body_stream when configured + should use basic auth when configured + digest_auth + should not be used when configured and the response is 200 + should merge cookies from request and a 401 response + should not send credentials more than once + should be used when configured and the response is 401 + should maintain cookies returned from a 401 response + a request that 303 redirects infinitely should raise an exception once - should be handled by PATCH transparently - should be handled by PUT transparently + should be handled by HEAD transparently + should log the redirection + should be handled by UNLOCK transparently + should make resulting request a get request if options[:maintain_method_across_redirects] is true but options[:resend_on_redirect] is false + should keep track of cookies between redirects + should be handled by GET transparently should be handled by POST transparently + should be handled by MKCOL transparently should make resulting request a get request if it not already - should be handled by OPTIONS transparently + should be handled by DELETE transparently + should make resulting request a get request if options[:maintain_method_across_redirects] is false should handle multiple Set-Cookie headers between redirects - should be handled by GET transparently - should log the redirection + should update cookies with redirects should be handled by LOCK transparently - should keep cookies between redirects - should keep track of cookies between redirects - should not make resulting request a get request if options[:maintain_method_across_redirects] is true - should be handled by DELETE transparently + should be handled by OPTIONS transparently + should be handled by PUT transparently should be handled by COPY transparently + should not make resulting request a get request if options[:maintain_method_across_redirects] and options[:resend_on_redirect] is true + should be handled by PATCH transparently + should keep cookies between redirects should be handled by MOVE transparently - should be handled by MKCOL transparently - should be handled by HEAD transparently - should be handled by UNLOCK transparently - should update cookies with redirects - argument validation - should raise RedirectionTooDeep error if limit is negative - should raise argument error if basic_auth and digest_auth are both present - should raise argument error if basic_auth is not a hash - should raise argument error if http method is post and query is not hash - should raise argument error if headers is not a hash - should raise argument error if options method is not http accepted method - should raise argument error if digest_auth is not a hash - ::JSON_API_QUERY_STRING_NORMALIZER - doesn't modify strings - when the query is an array - URI encodes array values - doesn't include brackets - when the query is a hash - correctly handles nil values with Accept-Encoding header - should disable content decoding if present should disable content decoding if present and lowercase should disable content decoding if present + should disable content decoding if present #setup_raw_request - when query_string_normalizer is set - sets the body to the return value of the proc when mulipart when mulipart option is provided sets header Content-Type: multipart/form-data; boundary= @@ -1700,447 +2005,177 @@ sets header Content-Type: multipart/form-data; boundary= and header Content-Type is provided overwrites the header to: multipart/form-data; boundary= - a request that 308 redirects - once - should keep track of cookies between redirects - should be handled by MKCOL transparently - should be handled by PATCH transparently - should be handled by HEAD transparently - should be handled by POST transparently - should be handled by DELETE transparently - should be handled by OPTIONS transparently - should be handled by PUT transparently - should handle multiple Set-Cookie headers between redirects - should be handled by UNLOCK transparently - should be handled by LOCK transparently - should maintain method in resulting request if options[:maintain_method_across_redirects] is false - should update cookies with redirects - should maintain method in resulting request - should be handled by MOVE transparently - should be handled by COPY transparently - should maintain method in resulting request if options[:maintain_method_across_redirects] is true - should log the redirection - should keep cookies between redirects - should be handled by GET transparently - infinitely - should raise an exception + when query_string_normalizer is set + sets the body to the return value of the proc + with POST http method + should raise argument error if query is not a hash + #uri + query strings + does not append an ampersand when queries are embedded in paths + does not duplicate query string parameters when uri is called twice + does not add an empty query string when default_params are blank + respects the query string normalization proc + when representing an array + returns a Rails style query string + redirects + returns correct path when the server sets the location header to a filename + returns correct path when the server sets the location header to a full uri + returns correct path when the server sets the location header to a network-path reference + location header is an absolute path + returns correct path when location has leading slash + returns the correct path when location has no leading slash parsing responses + should handle utf-8 bom in json + should include any HTTP headers in the returned response should process response with a nil body should process utf-16 charset with big endian bom correctly - should assume utf-16 little endian if options has been chosen - should perform no encoding if the charset is not available - should handle utf-8 bom in json should handle xml automatically - should handle json automatically - should include any HTTP headers in the returned response - should handle utf-8 bom in xml should handle csv automatically + should perform no encoding if the charset is not available + should handle utf-8 bom in xml + should assume utf-16 little endian if options has been chosen should perform no encoding if the content type is specified but no charset is specified - when body has ascii-8bit encoding - processes charset in content type properly if it has a different case - processes charset in content type properly - processes quoted charset in content type properly - when stubed body is frozen - processes frozen body correctly + should handle json automatically + when assume_utf16_is_big_endian is true + processes stubbed frozen body correctly + should process utf-16 charset with little endian bom correctly with non-200 responses - parses response lazily so codes can be checked prior - should return a valid object for 5xx response should return a valid object for 4xx response + should return a valid object for 5xx response + parses response lazily so codes can be checked prior 3xx responses + calls block given to perform with each redirect (PENDING: Temporarily skipped with xit) + redirects including port + returns the HTTParty::Response when the 300 does not contain a location header + raises an error if redirect has duplicate location header + redirects if a 300 contains a relative location header + handles multiple redirects and relative location headers on different hosts redirects if a 300 contains a location header [DEPRECATION] HTTParty will no longer override `response#nil?`. This functionality will be removed in future versions. Please, add explicit check `response.body.nil? || response.body.empty?`. For more info refer to: https://github.com/jnunemaker/httparty/issues/568 /usr/share/rubygems-integration/all/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be.rb:69:in `match' returns a valid object for 304 not modified - raises an error if redirect has duplicate location header - returns the HTTParty::Response when the 300 does not contain a location header - handles multiple redirects and relative location headers on different hosts - redirects including port - redirects if a 300 contains a relative location header - calls block given to perform with each redirect (PENDING: Temporarily skipped with xit) - when assume_utf16_is_big_endian is true - should process utf-16 charset with little endian bom correctly - processes stubbed frozen body correctly - #send_authorization_header? - basic_auth - should send Authorization header when redirecting to a different port on the same host - should send Authorization header when redirecting to the same host - should not send Authorization header when redirecting to a different host - should send Authorization header when redirecting to a relative path - http - should get a connection from the connection_adapter - a request that returns 304 - should report 304 with a HEAD request - should report 304 with a COPY request - should report 304 with a PUT request - should be handled by UNLOCK transparently - should report 304 with a DELETE request - should report 304 with a GET request - should be handled by LOCK transparently - should report 304 with a MKCOL request - should not log the redirection - should report 304 with a PATCH request - should report 304 with a MOVE request - should report 304 with a OPTIONS request - should report 304 with a POST request + when body has ascii-8bit encoding + processes quoted charset in content type properly + processes charset in content type properly + processes charset in content type properly if it has a different case + when stubed body is frozen + processes frozen body correctly + ::JSON_API_QUERY_STRING_NORMALIZER + doesn't modify strings + when the query is an array + URI encodes array values + doesn't include brackets + when the query is a hash + correctly handles nil values -HTTParty - cookies - should not be in the headers by default - should raise an ArgumentError if passed a non-Hash - should allow a cookie to be specified with a one-off request - when a cookie is set at the class level - should include that cookie in the request - should pass the proper cookies when requested multiple times - should allow the class defaults to be overridden - in a class with multiple methods that use different cookies - should not allow cookies used in one method to carry over into other methods - uri_adapter - with Addressable::URI - handles international domains - with custom URI Adaptor - should process a request with a uri instance parsed from the uri_adapter - should raise an ArgumentError if uri_adapter doesn't implement parse method - should set the uri_adapter - http_proxy - should set the address - should set the proxy user and pass when they are provided - format - should allow csv - should not allow funky format - does not reset parser to the default parser - should allow json - sets the default parser - should only print each format once with an exception - should allow xml - should allow plain - connection_adapter - should not set the connection_adapter_options when not provided - should set the connection_adapter_options when provided - should process a request with a connection from the adapter - should set the connection_adapter - two child classes inheriting from one parent - doesn't modify the parent's default options - inherits default_options from the superclass - should dup the proc on the child class - works with lambda values - does not modify each others inherited attributes - doesn't modify the parent's default cookies - doesn't modify hashes in the parent's default options - inherits default_cookies from the parent class - ciphers - should set the ciphers content - .query_string_normalizer - sets the query_string_normalizer option - base uri - should have reader - should have writer - should not modify the parameter during assignment - default timeout - should support updating - should support floats - should default to nil - should raise an exception if unsupported type provided - .disable_rails_query_string_format - sets the query string normalizer to HTTParty::Request::NON_RAILS_QUERY_STRING_NORMALIZER - .raise_on - when parameters is an array - sets raise_on option - when parameters is a fixnum - sets raise_on option - debug_output - stores the given stream as a default_option - stores the $stderr stream by default - default params - should default to empty hash - should be able to be updated - .follow_redirects - sets follow redirects to true by default - sets the follow_redirects option to false - with multiple class definitions - should not run over each others options - #ensure_method_maintained_across_redirects - should not set maintain_method_across_redirects option if value is present - should set maintain_method_across_redirects option if unspecified - .normalize_base_uri - should not treat uri's with a port of 4430 as ssl - should add https if not present for ssl requests - should not modify the parameter - should not remove https for ssl requests - should add http if not present for non ssl requests - #get - should not get undefined method add_node for nil class for the following xml -[DEPRECATION] HTTParty will no longer override `response#nil?`. This functionality will be removed in future versions. Please, add explicit check `response.body.nil? || response.body.empty?`. For more info refer to: https://github.com/jnunemaker/httparty/issues/568 -/usr/share/rubygems-integration/all/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be.rb:69:in `match' - should parse empty response fine - should be able to get chunked html - should accept https URIs - should be able parse response type xml automatically - should be able parse response type csv automatically - should raise an InvalidURIError on URIs that can't be parsed at all - should accept http URIs - should be able to get html - should be able parse response type json automatically - should return an empty body if stream_body option is turned on - should accept webcal URIs - when streaming body - is expected to eq # - head requests should follow redirects requesting HEAD only - should remain HEAD request across redirects, unless specified otherwise - digest http authentication - should work - grand parent with inherited callback - continues running the #inherited on the parent - #maintain_method_across_redirects - sets the maintain_method_across_redirects option to false - sets maintain_method_across_redirects to true by default - pkcs12 - should set the password - should set the p12 content - #no_follow - sets no_follow to false by default - sets the no_follow option to true - #resend_on_redirect - sets resend_on_redirect to true by default - sets resend_on_redirect option to false - basic http authentication - should work - ssl_version - should set the ssl_version content - with explicit override of automatic redirect handling - should fail with redirected GET - should fail with redirected PUT - should fail with redirected COPY - should fail with redirected MKCOL - should fail with redirected POST - should fail with redirected DELETE - should fail with redirected OPTIONS - should fail with redirected HEAD - should fail with redirected PATCH - should fail with redirected MOVE +HTTParty::Response + responds to hash methods + returns a comma-delimited value when multiple values exist + response to request + responds to headers + does raise an error about itself when invoking a method that does not exist + does raise an error about itself when using #method + responds to response + responds to body + responds to parsed_response + should send missing methods to delegate + responds to anything parsed_response responds to + allows headers to be accessed by mixed-case names in hash notation + returns response headers + responds to predicates + #is_a? + is expected to be truthy + is expected to be truthy + is expected to respond to #is_a? with 1 argument + marshalling + is expected to eq 200 headers - should default to empty hash - does not modify default_options when no arguments are passed - should be able to accept block as header value - overrides class headers with request headers - uses the class headers when sending a request - should pass options as argument to header block value - should be able to be updated - merges class headers with request headers - when posting file - changes content-type headers to multipart/form-data - with cookies - doesnt modify default headers - adds cookies to the headers - adds optional cookies to the optional headers - utilizes the class-level cookies - when headers passed as symbols - converts default headers to string - converts them to string - pem - should set the password to nil if it's not provided - should set the pem content - should set the password - parser - should be able parse response with custom parser - should set parser options - does not validate format whe custom parser is a proc - raises UnsupportedFormat when the parser cannot handle the format - -HTTParty::Logger::LogstashFormatter - #format - formats a response to be compatible with Logstash - -HTTParty::Request::Body - #call - when params is hash - is expected to eq "people%5B%5D=Bob%20Jones&people%5B%5D=Mike%20Smith" - when params has file - is expected to eq "--------------------------c772861a5109d5ef\r\nContent-Disposition: form-data; name=\"user[avatar]\";...: form-data; name=\"user[enabled]\"\r\n\r\ntrue\r\n--------------------------c772861a5109d5ef--\r\n" - when passing multipart as an option - is expected to eq "--------------------------c772861a5109d5ef\r\nContent-Disposition: form-data; name=\"user[first_name...: form-data; name=\"user[enabled]\"\r\n\r\ntrue\r\n--------------------------c772861a5109d5ef--\r\n" - file object responds to original_filename - is expected to eq "--------------------------c772861a5109d5ef\r\nContent-Disposition: form-data; name=\"user[avatar]\";...: form-data; name=\"user[enabled]\"\r\n\r\ntrue\r\n--------------------------c772861a5109d5ef--\r\n" - when params is string - is expected to eq "name=Bob%20Jones" - #multipart? - when params responds to to_hash - when force_multipart is true - is expected to equal true - when it does not contain a file - is expected to eq false - when it contains file - is expected to equal true - when params does not respond to to_hash - is expected to equal false - -HTTParty::Logger - .build - raises error when formatter exists - builds :curl style logger - defaults level to :info - defaults format to :apache - builds :custom style logger - builds :logstash style logger - -HTTParty::Logger::CurlFormatter - #format - formats a response in a style that resembles a -v curl - when response is logged - logs http version and response code - logs body - logs headers - when request is logged - and request's option 'base_uri' is not present - logs url - when request raw_body is present - not logs request body - and query is not present - not logs Query - and query is present - logs query params - logs Query - and request's option 'base_uri' is present - logs url - and headers are present - logs Headers - logs headers keys - and headers are not present - not log Headers - -HTTParty::Logger::ApacheFormatter - #format - formats a response in a style that resembles apache's access log - when there is a parsed response - can handle the Content-Length header - -HTTParty::Error - HTTParty::RedirectionTooDeep - #ancestors - is expected to include HTTParty::ResponseError - HTTParty::ResponseError - #ancestors - is expected to include HTTParty::Error - HTTParty::UnsupportedFormat - #ancestors - is expected to include HTTParty::Error - HTTParty::UnsupportedURIScheme - #ancestors - is expected to include HTTParty::Error - HTTParty::DuplicateLocationHeader - #ancestors - is expected to include HTTParty::ResponseError - #ancestors - is expected to include StandardError - -HTTParty::Request - SSL certificate verification -# terminated with exception (report_on_exception is true): -/usr/lib/ruby/2.7.0/openssl/ssl.rb:486:in `accept': SSL_accept returned=1 errno=0 state=error: tlsv1 alert internal error (OpenSSL::SSL::SSLError) - from /usr/lib/ruby/2.7.0/openssl/ssl.rb:486:in `accept' - from /build/ruby-httparty-0.18.1/spec/support/ssl_test_server.rb:56:in `thread_main' - from /build/ruby-httparty-0.18.1/spec/support/ssl_test_server.rb:34:in `block (2 levels) in start' - should fail when using ssl_ca_file and the server uses a bogus hostname -# terminated with exception (report_on_exception is true): -/usr/lib/ruby/2.7.0/openssl/ssl.rb:486:in `accept': SSL_accept returned=1 errno=0 state=error: tlsv1 alert unknown ca (OpenSSL::SSL::SSLError) - from /usr/lib/ruby/2.7.0/openssl/ssl.rb:486:in `accept' - from /build/ruby-httparty-0.18.1/spec/support/ssl_test_server.rb:56:in `thread_main' - from /build/ruby-httparty-0.18.1/spec/support/ssl_test_server.rb:34:in `block (2 levels) in start' - should fail when no trusted CA list is specified, with a bogus hostname, by default - should work when using ssl_ca_path with a certificate authority - should work when using ssl_ca_file with a self-signed CA - should work when using ssl_ca_file with a certificate authority - should work when no trusted CA list is specified, even with a bogus hostname, when the verify option is set to true -# terminated with exception (report_on_exception is true): -/usr/lib/ruby/2.7.0/openssl/ssl.rb:486:in `accept': SSL_accept returned=1 errno=0 state=error: tlsv1 alert unknown ca (OpenSSL::SSL::SSLError) - from /usr/lib/ruby/2.7.0/openssl/ssl.rb:486:in `accept' - from /build/ruby-httparty-0.18.1/spec/support/ssl_test_server.rb:56:in `thread_main' - from /build/ruby-httparty-0.18.1/spec/support/ssl_test_server.rb:34:in `block (2 levels) in start' - should fail when using ssl_ca_path and the server uses a bogus hostname - should provide the certificate used by the server via peer_cert -# terminated with exception (report_on_exception is true): -/usr/lib/ruby/2.7.0/openssl/ssl.rb:486:in `accept': SSL_accept returned=1 errno=0 state=error: tlsv1 alert unknown ca (OpenSSL::SSL::SSLError) - from /usr/lib/ruby/2.7.0/openssl/ssl.rb:486:in `accept' - from /build/ruby-httparty-0.18.1/spec/support/ssl_test_server.rb:56:in `thread_main' - from /build/ruby-httparty-0.18.1/spec/support/ssl_test_server.rb:34:in `block (2 levels) in start' - should fail when no trusted CA list is specified, by default -# terminated with exception (report_on_exception is true): -/usr/lib/ruby/2.7.0/openssl/ssl.rb:486:in `accept': SSL_accept returned=1 errno=0 state=error: tlsv1 alert unknown ca (OpenSSL::SSL::SSLError) - from /usr/lib/ruby/2.7.0/openssl/ssl.rb:486:in `accept' - from /build/ruby-httparty-0.18.1/spec/support/ssl_test_server.rb:56:in `thread_main' - from /build/ruby-httparty-0.18.1/spec/support/ssl_test_server.rb:34:in `block (2 levels) in start' - should fail when using ssl_ca_path and the server uses an unrecognized certificate authority -# terminated with exception (report_on_exception is true): -/usr/lib/ruby/2.7.0/openssl/ssl.rb:486:in `accept': SSL_accept returned=1 errno=0 state=error: tlsv1 alert unknown ca (OpenSSL::SSL::SSLError) - from /usr/lib/ruby/2.7.0/openssl/ssl.rb:486:in `accept' - from /build/ruby-httparty-0.18.1/spec/support/ssl_test_server.rb:56:in `thread_main' - from /build/ruby-httparty-0.18.1/spec/support/ssl_test_server.rb:34:in `block (2 levels) in start' - should fail when using ssl_ca_file and the server uses an unrecognized certificate authority - should work when no trusted CA list is specified, when the verify option is set to false - -HTTParty::Parser - #supports_format? - utilizes the class method to determine if the format is supported - parsers - parses html by simply returning the body - parses json with JSON - parses csv with CSV - parses xml with MultiXml - parses plain text by simply returning the body - .SupportedFormats - returns a hash - .supported_formats - returns a unique set of supported formats represented by symbols - .format_from_mimetype - returns nil when the mimetype is not supported - returns a symbol representing the format mimetype - #parse_supported_format - calls the parser for the given format - when a parsing method does not exist for the given format - raises a useful exception message for subclasses - raises an exception - .supports_format? - returns false for an unsupported format - returns true for a supported format - #parse - parses frozen strings - returns nil for a 'null' body - returns nil for a nil body - returns nil for a body with spaces only - ignores utf-8 bom - attempts to parse supported formats - returns the unparsed body when the format is unsupported - does not raise exceptions for bodies with invalid encodings - parses ascii 8bit encoding - returns nil for an empty body - .formats - returns the SupportedFormats constant - returns the SupportedFormats constant for subclasses - .call - calls #parse on the parser - generates an HTTParty::Parser instance with the given body and format - -HTTParty::CookieHash - #to_cookie_string - should not mutate the hash - should not include SameSite attribute - should not include client side only cookies even when attributes use camal case - should not include client side only cookies - should format the key/value pairs, delimited by semi-colons - #add_cookies - with a hash - should add new key/value pairs to the hash - should overwrite any existing key - with other class - should error - with a string - should handle an empty cookie parameter - should overwrite any existing key - should add new key/value pairs to the hash - should handle '=' within cookie value - -HTTParty::ResponseFragment - has access to delegators - access to fragment + can initialize without headers + always equals itself + does equal a hash + does not equal itself when not equivalent + semantic methods for response codes + major codes + is success + is server error + is client error + is redirection + is information + for specific codes + responds to version_not_supported? + responds to payload_too_large? + responds to ok? + responds to uri_too_long? + responds to continue? + responds to moved_permanently? + responds to request_time_out? + responds to requested_range_not_satisfiable? + responds to use_proxy? + responds to service_unavailable? + responds to request_timeout? + responds to accepted? + responds to unsupported_media_type? + responds to payment_required? + responds to found? + responds to multiple_choices? + responds to gone? + responds to switch_protocol? + responds to range_not_satisfiable? + responds to length_required? + responds to no_content? + responds to request_uri_too_long? + responds to not_found? + responds to method_not_allowed? + responds to non_authoritative_information? + responds to multiple_choice? + responds to reset_content? + responds to precondition_failed? + responds to temporary_redirect? + responds to partial_content? + responds to see_other? + responds to request_entity_too_large? + responds to conflict? + responds to gateway_time_out? + responds to proxy_authentication_required? + responds to not_modified? + responds to gateway_timeout? + responds to forbidden? + responds to bad_request? + responds to expectation_failed? + responds to bad_gateway? + responds to not_acceptable? + responds to not_implemented? + responds to created? + responds to unauthorized? + responds to internal_server_error? + .underscore + works with one capitalized word + works with titlecase + works with all caps + initialization + should set code as an Integer + should set code + should set body + should set http_version + should set the Net::HTTP Response + when raise_on is supplied + and response's status code is not in range + does not throw exception + and response's status code is in range + throws exception + response is array + should equal the string response object body + should respond to array methods + should be able to iterate + should display the same as an array + #kind_of? + is expected to respond to #kind_of? with 1 argument + is expected to be truthy + is expected to be truthy + #inspect + works + #tap + is possible to tap into a response Pending: (Failures listed here are expected and do not affect your suite's status) @@ -2148,54 +2183,54 @@ # Temporarily skipped with xit # ./spec/httparty/request_spec.rb:641 -Top 10 slowest examples (1.13 seconds, 26.1% of total time): +Top 10 slowest examples (1.12 seconds, 32.0% of total time): HTTParty#get should be able parse response type xml automatically - 0.20603 seconds ./spec/httparty_spec.rb:906 + 0.27454 seconds ./spec/httparty_spec.rb:906 HTTParty::Request SSL certificate verification should work when using ssl_ca_file with a self-signed CA - 0.15001 seconds ./spec/httparty/ssl_spec.rb:33 - HTTParty::Request SSL certificate verification should work when using ssl_ca_file with a certificate authority - 0.14792 seconds ./spec/httparty/ssl_spec.rb:37 + 0.1421 seconds ./spec/httparty/ssl_spec.rb:33 HTTParty::Request SSL certificate verification should provide the certificate used by the server via peer_cert - 0.14451 seconds ./spec/httparty/ssl_spec.rb:74 - HTTParty::Request SSL certificate verification should work when no trusted CA list is specified, when the verify option is set to false - 0.14148 seconds ./spec/httparty/ssl_spec.rb:19 + 0.13593 seconds ./spec/httparty/ssl_spec.rb:74 + HTTParty::Request SSL certificate verification should work when using ssl_ca_file with a certificate authority + 0.13562 seconds ./spec/httparty/ssl_spec.rb:37 HTTParty::Request SSL certificate verification should work when no trusted CA list is specified, even with a bogus hostname, when the verify option is set to true - 0.13665 seconds ./spec/httparty/ssl_spec.rb:29 + 0.13495 seconds ./spec/httparty/ssl_spec.rb:29 + HTTParty::Request SSL certificate verification should work when no trusted CA list is specified, when the verify option is set to false + 0.13409 seconds ./spec/httparty/ssl_spec.rb:19 + HTTParty::Request SSL certificate verification should fail when using ssl_ca_path and the server uses an unrecognized certificate authority + 0.04664 seconds ./spec/httparty/ssl_spec.rb:56 HTTParty::Request SSL certificate verification should fail when using ssl_ca_file and the server uses a bogus hostname - 0.05918 seconds ./spec/httparty/ssl_spec.rb:62 + 0.04185 seconds ./spec/httparty/ssl_spec.rb:62 + HTTParty::Request SSL certificate verification should fail when using ssl_ca_file and the server uses an unrecognized certificate authority + 0.03641 seconds ./spec/httparty/ssl_spec.rb:50 HTTParty::Request SSL certificate verification should fail when using ssl_ca_path and the server uses a bogus hostname - 0.04975 seconds ./spec/httparty/ssl_spec.rb:68 - HTTParty::Request SSL certificate verification should fail when no trusted CA list is specified, with a bogus hostname, by default - 0.04705 seconds ./spec/httparty/ssl_spec.rb:23 - HTTParty::Request SSL certificate verification should fail when no trusted CA list is specified, by default - 0.04501 seconds ./spec/httparty/ssl_spec.rb:13 + 0.03439 seconds ./spec/httparty/ssl_spec.rb:68 Top 10 slowest example groups: HTTParty::Request - 0.08453 seconds average (1.01 seconds / 12 examples) ./spec/httparty/ssl_spec.rb:3 - HTTParty::Logger::ApacheFormatter - 0.00958 seconds average (0.01916 seconds / 2 examples) ./spec/httparty/logger/apache_formatter_spec.rb:3 - HTTParty::Logger::LogstashFormatter - 0.0082 seconds average (0.0082 seconds / 1 example) ./spec/httparty/logger/logstash_formatter_spec.rb:3 - HTTParty::Logger::CurlFormatter - 0.00735 seconds average (0.09553 seconds / 13 examples) ./spec/httparty/logger/curl_formatter_spec.rb:3 - HTTParty::Request - 0.00612 seconds average (1.58 seconds / 258 examples) ./spec/httparty/request_spec.rb:3 + 0.07803 seconds average (0.93635 seconds / 12 examples) ./spec/httparty/ssl_spec.rb:3 HTTParty - 0.00581 seconds average (0.6803 seconds / 117 examples) ./spec/httparty_spec.rb:3 - HTTParty::ConnectionAdapter - 0.00472 seconds average (0.3305 seconds / 70 examples) ./spec/httparty/connection_adapter_spec.rb:3 + 0.00543 seconds average (0.63567 seconds / 117 examples) ./spec/httparty_spec.rb:3 + HTTParty::Request + 0.00477 seconds average (1.23 seconds / 258 examples) ./spec/httparty/request_spec.rb:3 + HTTParty::Logger::CurlFormatter + 0.00424 seconds average (0.05511 seconds / 13 examples) ./spec/httparty/logger/curl_formatter_spec.rb:3 + HTTParty::Logger::LogstashFormatter + 0.00368 seconds average (0.00368 seconds / 1 example) ./spec/httparty/logger/logstash_formatter_spec.rb:3 Net::HTTPHeader::DigestAuthenticator - 0.00399 seconds average (0.13155 seconds / 33 examples) ./spec/httparty/net_digest_auth_spec.rb:3 - HTTParty::HeadersProcessor - 0.00353 seconds average (0.01763 seconds / 5 examples) ./spec/httparty/headers_processor_spec.rb:3 + 0.00315 seconds average (0.10386 seconds / 33 examples) ./spec/httparty/net_digest_auth_spec.rb:3 + HTTParty::Logger::ApacheFormatter + 0.00304 seconds average (0.00609 seconds / 2 examples) ./spec/httparty/logger/apache_formatter_spec.rb:3 + HTTParty::ConnectionAdapter + 0.0026 seconds average (0.18171 seconds / 70 examples) ./spec/httparty/connection_adapter_spec.rb:3 + HTTParty::Request::Body + 0.00248 seconds average (0.02233 seconds / 9 examples) ./spec/httparty/request/body_spec.rb:6 HTTParty::Error - 0.00339 seconds average (0.02032 seconds / 6 examples) ./spec/httparty/exception_spec.rb:3 + 0.00241 seconds average (0.01447 seconds / 6 examples) ./spec/httparty/exception_spec.rb:3 -Finished in 4.33 seconds (files took 2.6 seconds to load) +Finished in 3.49 seconds (files took 1.91 seconds to load) 673 examples, 0 failures, 1 pending -Randomized with seed 245 +Randomized with seed 26005 Coverage report generated for RSpec to /build/ruby-httparty-0.18.1/coverage. 996 / 1033 LOC (96.42%) covered. @@ -2236,12 +2271,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/25494/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/25494/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/30051 and its subdirectories -I: Current time: Sun Oct 9 23:26:28 -12 2022 -I: pbuilder-time-stamp: 1665401188 +I: removing directory /srv/workspace/pbuilder/25494 and its subdirectories +I: Current time: Tue Sep 7 19:04:35 +14 2021 +I: pbuilder-time-stamp: 1630991075