0s autopkgtest [10:43:13]: starting date and time: 2025-03-13 10:43:13+0000
0s autopkgtest [10:43:13]: git checkout: 325255d2 Merge branch 'pin-any-arch' into 'ubuntu/production'
0s autopkgtest [10:43:13]: host juju-7f2275-prod-proposed-migration-environment-20; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.l4mnm_dg/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:ruby-rack --apt-upgrade ruby-rack-oauth2 --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=ruby-rack/3.1.9-2 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-s390x --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-20@bos03-s390x-31.secgroup --name adt-plucky-s390x-ruby-rack-oauth2-20250313-104313-juju-7f2275-prod-proposed-migration-environment-20-210ef988-e2d0-46d9-9b7a-535d962b6a03 --image adt/ubuntu-plucky-s390x-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-20 --net-id=net_prod-proposed-migration-s390x -e TERM=linux -e ''"'"'http_proxy=http://squid.internal:3128'"'"'' -e ''"'"'https_proxy=http://squid.internal:3128'"'"'' -e ''"'"'no_proxy=127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,novalocal,internal,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,10.24.0.0/24,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com,radosgw.ps5.canonical.com'"'"'' --mirror=http://ftpmaster.internal/ubuntu/
303s autopkgtest [10:48:16]: testbed dpkg architecture: s390x
303s autopkgtest [10:48:16]: testbed apt version: 2.9.32ubuntu1
303s autopkgtest [10:48:16]: @@@@@@@@@@@@@@@@@@@@ test bed setup
303s autopkgtest [10:48:16]: testbed release detected to be: None
304s autopkgtest [10:48:17]: updating testbed package index (apt update)
304s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [110 kB]
305s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease
305s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease
305s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease
305s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [43.9 kB]
305s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [396 kB]
305s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [11.5 kB]
305s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x Packages [57.9 kB]
305s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/universe s390x Packages [313 kB]
305s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse s390x Packages [2512 B]
305s Fetched 936 kB in 1s (1005 kB/s)
306s Reading package lists...
306s Reading package lists...
306s Building dependency tree...
306s Reading state information...
307s Calculating upgrade...
307s Calculating upgrade...
307s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
307s Reading package lists...
307s Building dependency tree...
307s Reading state information...
307s Solving dependencies...
307s The following packages will be REMOVED:
307s linux-image-6.11.0-8-generic*
307s 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
307s After this operation, 10.5 MB disk space will be freed.
307s (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 ... 81495 files and directories currently installed.)
307s Removing linux-image-6.11.0-8-generic (6.11.0-8.8) ...
307s I: /boot/vmlinuz.old is now a symlink to vmlinuz-6.14.0-7-generic
307s I: /boot/initrd.img.old is now a symlink to initrd.img-6.14.0-7-generic
307s /etc/kernel/postrm.d/initramfs-tools:
307s update-initramfs: Deleting /boot/initrd.img-6.11.0-8-generic
307s /etc/kernel/postrm.d/zz-zipl:
307s Using config file '/etc/zipl.conf'
307s Building bootmap in '/boot'
307s Adding IPL section 'ubuntu' (default)
307s Preparing boot device for LD-IPL: vda (0000).
307s Done.
308s (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 ... 81491 files and directories currently installed.)
308s Purging configuration files for linux-image-6.11.0-8-generic (6.11.0-8.8) ...
308s rmdir: failed to remove '/lib/modules/6.11.0-8-generic': Directory not empty
308s autopkgtest [10:48:21]: upgrading testbed (apt dist-upgrade and autopurge)
308s Reading package lists...
308s Building dependency tree...
308s Reading state information...
308s Calculating upgrade...Starting pkgProblemResolver with broken count: 0
308s Starting 2 pkgProblemResolver with broken count: 0
308s Done
308s Entering ResolveByKeep
309s
309s Calculating upgrade...
309s The following packages were automatically installed and are no longer required:
309s libnsl2 libpython3.12-minimal libpython3.12-stdlib libpython3.12t64
309s linux-headers-6.11.0-8 linux-headers-6.11.0-8-generic
309s linux-modules-6.11.0-8-generic linux-tools-6.11.0-8
309s linux-tools-6.11.0-8-generic
309s Use 'sudo apt autoremove' to remove them.
309s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
309s Reading package lists...
309s Building dependency tree...
309s Reading state information...
309s Starting pkgProblemResolver with broken count: 0
309s Starting 2 pkgProblemResolver with broken count: 0
309s Done
309s Solving dependencies...
309s The following packages will be REMOVED:
309s libnsl2* libpython3.12-minimal* libpython3.12-stdlib* libpython3.12t64*
309s linux-headers-6.11.0-8* linux-headers-6.11.0-8-generic*
309s linux-modules-6.11.0-8-generic* linux-tools-6.11.0-8*
309s linux-tools-6.11.0-8-generic*
310s 0 upgraded, 0 newly installed, 9 to remove and 0 not upgraded.
310s After this operation, 167 MB disk space will be freed.
310s (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 ... 81491 files and directories currently installed.)
310s Removing linux-tools-6.11.0-8-generic (6.11.0-8.8) ...
310s Removing linux-tools-6.11.0-8 (6.11.0-8.8) ...
310s Removing libpython3.12t64:s390x (3.12.9-1) ...
310s Removing libpython3.12-stdlib:s390x (3.12.9-1) ...
310s Removing libnsl2:s390x (1.3.0-3build3) ...
310s Removing libpython3.12-minimal:s390x (3.12.9-1) ...
310s Removing linux-headers-6.11.0-8-generic (6.11.0-8.8) ...
310s Removing linux-headers-6.11.0-8 (6.11.0-8.8) ...
311s Removing linux-modules-6.11.0-8-generic (6.11.0-8.8) ...
311s Processing triggers for libc-bin (2.41-1ubuntu1) ...
311s (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 ... 56391 files and directories currently installed.)
311s Purging configuration files for libpython3.12-minimal:s390x (3.12.9-1) ...
311s Purging configuration files for linux-modules-6.11.0-8-generic (6.11.0-8.8) ...
311s autopkgtest [10:48:24]: rebooting testbed after setup commands that affected boot
328s autopkgtest [10:48:41]: testbed running kernel: Linux 6.14.0-7-generic #7-Ubuntu SMP Fri Feb 28 10:57:32 UTC 2025
330s autopkgtest [10:48:43]: @@@@@@@@@@@@@@@@@@@@ apt-source ruby-rack-oauth2
332s Get:1 http://ftpmaster.internal/ubuntu plucky/universe ruby-rack-oauth2 1.21.3-1 (dsc) [2252 B]
332s Get:2 http://ftpmaster.internal/ubuntu plucky/universe ruby-rack-oauth2 1.21.3-1 (tar) [32.7 kB]
332s Get:3 http://ftpmaster.internal/ubuntu plucky/universe ruby-rack-oauth2 1.21.3-1 (diff) [3972 B]
332s gpgv: Signature made Sun Dec 4 17:52:30 2022 UTC
332s gpgv: using RSA key D30863E26020E543F4719A838F53E0193B294B75
332s gpgv: Can't check signature: No public key
332s dpkg-source: warning: cannot verify inline signature for ./ruby-rack-oauth2_1.21.3-1.dsc: no acceptable signature found
332s autopkgtest [10:48:45]: testing package ruby-rack-oauth2 version 1.21.3-1
332s autopkgtest [10:48:45]: build not needed
333s autopkgtest [10:48:46]: test gem2deb-test-runner: preparing testbed
333s Reading package lists...
333s Building dependency tree...
333s Reading state information...
333s Starting pkgProblemResolver with broken count: 0
333s Starting 2 pkgProblemResolver with broken count: 0
333s Done
334s The following NEW packages will be installed:
334s gem2deb-test-runner libruby libruby3.3 rake ruby ruby-activesupport
334s ruby-addressable ruby-aes-key-wrap ruby-attr-required ruby-base64
334s ruby-bindata ruby-concurrent ruby-crack ruby-did-you-mean ruby-diff-lcs
334s ruby-domain-name ruby-faraday ruby-faraday-follow-redirects
334s ruby-faraday-net-http ruby-hashdiff ruby-http-cookie ruby-httpclient
334s ruby-i18n ruby-json-jwt ruby-minitest ruby-multi-json ruby-net-telnet
334s ruby-power-assert ruby-public-suffix ruby-rack ruby-rack-oauth2 ruby-rspec
334s ruby-rspec-core ruby-rspec-expectations ruby-rspec-its ruby-rspec-mocks
334s ruby-rspec-support ruby-rubygems ruby-sdbm ruby-test-unit ruby-tzinfo
334s ruby-unf ruby-unf-ext ruby-webmock ruby-webrick ruby-xmlrpc ruby-zeitwerk
334s ruby3.3 rubygems-integration
334s 0 upgraded, 49 newly installed, 0 to remove and 0 not upgraded.
334s Need to get 8243 kB of archives.
334s After this operation, 40.9 MB of additional disk space will be used.
334s Get:1 http://ftpmaster.internal/ubuntu plucky/main s390x rubygems-integration all 1.19 [5550 B]
334s Get:2 http://ftpmaster.internal/ubuntu plucky/main s390x ruby-did-you-mean all 1.6.3-2 [14.8 kB]
334s Get:3 http://ftpmaster.internal/ubuntu plucky/main s390x ruby-minitest all 5.25.4-2ubuntu1 [48.9 kB]
334s Get:4 http://ftpmaster.internal/ubuntu plucky/main s390x ruby-net-telnet all 0.2.0-1 [13.3 kB]
334s Get:5 http://ftpmaster.internal/ubuntu plucky/main s390x ruby-power-assert all 2.0.3-1 [12.0 kB]
334s Get:6 http://ftpmaster.internal/ubuntu plucky/main s390x ruby-test-unit all 3.6.2-1 [67.0 kB]
334s Get:7 http://ftpmaster.internal/ubuntu plucky/main s390x ruby-webrick all 1.8.1-1ubuntu1 [52.6 kB]
334s Get:8 http://ftpmaster.internal/ubuntu plucky/main s390x ruby-xmlrpc all 0.3.3-2 [24.8 kB]
334s Get:9 http://ftpmaster.internal/ubuntu plucky/main s390x libruby s390x 1:3.3~ubuntu3 [5038 B]
334s Get:10 http://ftpmaster.internal/ubuntu plucky/main s390x ruby-sdbm s390x 1.0.0-5build5 [16.3 kB]
334s Get:11 http://ftpmaster.internal/ubuntu plucky/main s390x libruby3.3 s390x 3.3.6-1.1ubuntu1 [5869 kB]
335s Get:12 http://ftpmaster.internal/ubuntu plucky/main s390x ruby3.3 s390x 3.3.6-1.1ubuntu1 [49.1 kB]
335s Get:13 http://ftpmaster.internal/ubuntu plucky/main s390x ruby-rubygems all 3.6.3-1 [332 kB]
335s Get:14 http://ftpmaster.internal/ubuntu plucky/main s390x ruby s390x 1:3.3~ubuntu3 [3618 B]
335s Get:15 http://ftpmaster.internal/ubuntu plucky/main s390x rake all 13.2.1-1 [45.8 kB]
335s Get:16 http://ftpmaster.internal/ubuntu plucky/universe s390x gem2deb-test-runner s390x 2.2.5 [18.3 kB]
335s Get:17 http://ftpmaster.internal/ubuntu plucky/universe s390x ruby-concurrent all 1.3.4-1 [283 kB]
335s Get:18 http://ftpmaster.internal/ubuntu plucky/universe s390x ruby-i18n all 1.14.5-1 [42.5 kB]
335s Get:19 http://ftpmaster.internal/ubuntu plucky/universe s390x ruby-tzinfo all 2.0.6-1 [55.2 kB]
335s Get:20 http://ftpmaster.internal/ubuntu plucky/universe s390x ruby-zeitwerk all 2.6.8-1 [36.0 kB]
335s Get:21 http://ftpmaster.internal/ubuntu plucky/universe s390x ruby-activesupport all 2:6.1.7.3+dfsg-7 [198 kB]
335s Get:22 http://ftpmaster.internal/ubuntu plucky/universe s390x ruby-public-suffix all 4.0.6+ds-2 [14.1 kB]
335s Get:23 http://ftpmaster.internal/ubuntu plucky/universe s390x ruby-addressable all 2.8.5-1 [55.3 kB]
335s Get:24 http://ftpmaster.internal/ubuntu plucky/universe s390x ruby-aes-key-wrap all 1.1.0-1 [5228 B]
335s Get:25 http://ftpmaster.internal/ubuntu plucky/universe s390x ruby-attr-required all 1.0.0-2.1 [4620 B]
335s Get:26 http://ftpmaster.internal/ubuntu plucky/main s390x ruby-base64 all 0.2.0-2 [7168 B]
335s Get:27 http://ftpmaster.internal/ubuntu plucky/universe s390x ruby-bindata all 2.4.14-1 [41.4 kB]
335s Get:28 http://ftpmaster.internal/ubuntu plucky/universe s390x ruby-crack all 0.4.4-4 [8764 B]
335s Get:29 http://ftpmaster.internal/ubuntu plucky/universe s390x ruby-diff-lcs all 1.5.1-1 [22.8 kB]
335s Get:30 http://ftpmaster.internal/ubuntu plucky/universe s390x ruby-unf-ext s390x 0.0.7.7-1build7 [140 kB]
335s Get:31 http://ftpmaster.internal/ubuntu plucky/universe s390x ruby-unf all 0.1.4-2.1 [4744 B]
335s Get:32 http://ftpmaster.internal/ubuntu plucky/universe s390x ruby-domain-name all 0.6.20240107-1 [48.1 kB]
335s Get:33 http://ftpmaster.internal/ubuntu plucky/universe s390x ruby-faraday-net-http all 3.0.2-2 [5716 B]
335s Get:34 http://ftpmaster.internal/ubuntu plucky/universe s390x ruby-faraday all 2.10.0-2 [37.0 kB]
335s Get:35 http://ftpmaster.internal/ubuntu plucky/universe s390x ruby-faraday-follow-redirects all 0.3.0-2 [6604 B]
335s Get:36 http://ftpmaster.internal/ubuntu plucky/universe s390x ruby-hashdiff all 1.1.0-1 [12.9 kB]
335s Get:37 http://ftpmaster.internal/ubuntu plucky/universe s390x ruby-http-cookie all 1.0.5-1 [23.7 kB]
335s Get:38 http://ftpmaster.internal/ubuntu plucky/universe s390x ruby-httpclient all 2.8.3+git20211122.4658227-1 [62.7 kB]
335s Get:39 http://ftpmaster.internal/ubuntu plucky/universe s390x ruby-json-jwt all 1.16.7-1 [11.7 kB]
335s Get:40 http://ftpmaster.internal/ubuntu plucky/universe s390x ruby-multi-json all 1.14.1-2 [15.7 kB]
335s Get:41 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x ruby-rack all 3.1.9-2 [79.3 kB]
335s Get:42 http://ftpmaster.internal/ubuntu plucky/universe s390x ruby-rack-oauth2 all 1.21.3-1 [18.5 kB]
335s Get:43 http://ftpmaster.internal/ubuntu plucky/universe s390x ruby-rspec-support all 3.13.0c0e0m0s1-2 [29.2 kB]
335s Get:44 http://ftpmaster.internal/ubuntu plucky/universe s390x ruby-rspec-core all 3.13.0c0e0m0s1-2 [164 kB]
335s Get:45 http://ftpmaster.internal/ubuntu plucky/universe s390x ruby-rspec-expectations all 3.13.0c0e0m0s1-2 [89.8 kB]
335s Get:46 http://ftpmaster.internal/ubuntu plucky/universe s390x ruby-rspec-mocks all 3.13.0c0e0m0s1-2 [81.0 kB]
335s Get:47 http://ftpmaster.internal/ubuntu plucky/universe s390x ruby-rspec all 3.13.0c0e0m0s1-2 [3500 B]
335s Get:48 http://ftpmaster.internal/ubuntu plucky/universe s390x ruby-rspec-its all 1.3.0-1 [6212 B]
335s Get:49 http://ftpmaster.internal/ubuntu plucky/universe s390x ruby-webmock all 3.25.1-1 [48.0 kB]
335s Fetched 8243 kB in 1s (6269 kB/s)
335s Selecting previously unselected package rubygems-integration.
335s (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 ... 56389 files and directories currently installed.)
335s Preparing to unpack .../00-rubygems-integration_1.19_all.deb ...
335s Unpacking rubygems-integration (1.19) ...
335s Selecting previously unselected package ruby-did-you-mean.
335s Preparing to unpack .../01-ruby-did-you-mean_1.6.3-2_all.deb ...
335s Unpacking ruby-did-you-mean (1.6.3-2) ...
335s Selecting previously unselected package ruby-minitest.
335s Preparing to unpack .../02-ruby-minitest_5.25.4-2ubuntu1_all.deb ...
335s Unpacking ruby-minitest (5.25.4-2ubuntu1) ...
335s Selecting previously unselected package ruby-net-telnet.
335s Preparing to unpack .../03-ruby-net-telnet_0.2.0-1_all.deb ...
335s Unpacking ruby-net-telnet (0.2.0-1) ...
335s Selecting previously unselected package ruby-power-assert.
335s Preparing to unpack .../04-ruby-power-assert_2.0.3-1_all.deb ...
335s Unpacking ruby-power-assert (2.0.3-1) ...
335s Selecting previously unselected package ruby-test-unit.
335s Preparing to unpack .../05-ruby-test-unit_3.6.2-1_all.deb ...
335s Unpacking ruby-test-unit (3.6.2-1) ...
335s Selecting previously unselected package ruby-webrick.
335s Preparing to unpack .../06-ruby-webrick_1.8.1-1ubuntu1_all.deb ...
335s Unpacking ruby-webrick (1.8.1-1ubuntu1) ...
335s Selecting previously unselected package ruby-xmlrpc.
335s Preparing to unpack .../07-ruby-xmlrpc_0.3.3-2_all.deb ...
335s Unpacking ruby-xmlrpc (0.3.3-2) ...
335s Selecting previously unselected package libruby:s390x.
335s Preparing to unpack .../08-libruby_1%3a3.3~ubuntu3_s390x.deb ...
335s Unpacking libruby:s390x (1:3.3~ubuntu3) ...
335s Selecting previously unselected package ruby-sdbm:s390x.
335s Preparing to unpack .../09-ruby-sdbm_1.0.0-5build5_s390x.deb ...
335s Unpacking ruby-sdbm:s390x (1.0.0-5build5) ...
335s Selecting previously unselected package libruby3.3:s390x.
335s Preparing to unpack .../10-libruby3.3_3.3.6-1.1ubuntu1_s390x.deb ...
335s Unpacking libruby3.3:s390x (3.3.6-1.1ubuntu1) ...
336s Selecting previously unselected package ruby3.3.
336s Preparing to unpack .../11-ruby3.3_3.3.6-1.1ubuntu1_s390x.deb ...
336s Unpacking ruby3.3 (3.3.6-1.1ubuntu1) ...
336s Selecting previously unselected package ruby-rubygems.
336s Preparing to unpack .../12-ruby-rubygems_3.6.3-1_all.deb ...
336s Unpacking ruby-rubygems (3.6.3-1) ...
336s Selecting previously unselected package ruby.
336s Preparing to unpack .../13-ruby_1%3a3.3~ubuntu3_s390x.deb ...
336s Unpacking ruby (1:3.3~ubuntu3) ...
336s Selecting previously unselected package rake.
336s Preparing to unpack .../14-rake_13.2.1-1_all.deb ...
336s Unpacking rake (13.2.1-1) ...
336s Selecting previously unselected package gem2deb-test-runner.
336s Preparing to unpack .../15-gem2deb-test-runner_2.2.5_s390x.deb ...
336s Unpacking gem2deb-test-runner (2.2.5) ...
336s Selecting previously unselected package ruby-concurrent.
336s Preparing to unpack .../16-ruby-concurrent_1.3.4-1_all.deb ...
336s Unpacking ruby-concurrent (1.3.4-1) ...
336s Selecting previously unselected package ruby-i18n.
336s Preparing to unpack .../17-ruby-i18n_1.14.5-1_all.deb ...
336s Unpacking ruby-i18n (1.14.5-1) ...
336s Selecting previously unselected package ruby-tzinfo.
336s Preparing to unpack .../18-ruby-tzinfo_2.0.6-1_all.deb ...
336s Unpacking ruby-tzinfo (2.0.6-1) ...
336s Selecting previously unselected package ruby-zeitwerk.
336s Preparing to unpack .../19-ruby-zeitwerk_2.6.8-1_all.deb ...
336s Unpacking ruby-zeitwerk (2.6.8-1) ...
336s Selecting previously unselected package ruby-activesupport.
336s Preparing to unpack .../20-ruby-activesupport_2%3a6.1.7.3+dfsg-7_all.deb ...
336s Unpacking ruby-activesupport (2:6.1.7.3+dfsg-7) ...
336s Selecting previously unselected package ruby-public-suffix.
336s Preparing to unpack .../21-ruby-public-suffix_4.0.6+ds-2_all.deb ...
336s Unpacking ruby-public-suffix (4.0.6+ds-2) ...
336s Selecting previously unselected package ruby-addressable.
336s Preparing to unpack .../22-ruby-addressable_2.8.5-1_all.deb ...
336s Unpacking ruby-addressable (2.8.5-1) ...
336s Selecting previously unselected package ruby-aes-key-wrap.
336s Preparing to unpack .../23-ruby-aes-key-wrap_1.1.0-1_all.deb ...
336s Unpacking ruby-aes-key-wrap (1.1.0-1) ...
336s Selecting previously unselected package ruby-attr-required.
336s Preparing to unpack .../24-ruby-attr-required_1.0.0-2.1_all.deb ...
336s Unpacking ruby-attr-required (1.0.0-2.1) ...
336s Selecting previously unselected package ruby-base64.
336s Preparing to unpack .../25-ruby-base64_0.2.0-2_all.deb ...
336s Unpacking ruby-base64 (0.2.0-2) ...
336s Selecting previously unselected package ruby-bindata.
336s Preparing to unpack .../26-ruby-bindata_2.4.14-1_all.deb ...
336s Unpacking ruby-bindata (2.4.14-1) ...
336s Selecting previously unselected package ruby-crack.
336s Preparing to unpack .../27-ruby-crack_0.4.4-4_all.deb ...
336s Unpacking ruby-crack (0.4.4-4) ...
336s Selecting previously unselected package ruby-diff-lcs.
336s Preparing to unpack .../28-ruby-diff-lcs_1.5.1-1_all.deb ...
336s Unpacking ruby-diff-lcs (1.5.1-1) ...
336s Selecting previously unselected package ruby-unf-ext.
336s Preparing to unpack .../29-ruby-unf-ext_0.0.7.7-1build7_s390x.deb ...
336s Unpacking ruby-unf-ext (0.0.7.7-1build7) ...
336s Selecting previously unselected package ruby-unf.
336s Preparing to unpack .../30-ruby-unf_0.1.4-2.1_all.deb ...
336s Unpacking ruby-unf (0.1.4-2.1) ...
336s Selecting previously unselected package ruby-domain-name.
336s Preparing to unpack .../31-ruby-domain-name_0.6.20240107-1_all.deb ...
336s Unpacking ruby-domain-name (0.6.20240107-1) ...
336s Selecting previously unselected package ruby-faraday-net-http.
336s Preparing to unpack .../32-ruby-faraday-net-http_3.0.2-2_all.deb ...
336s Unpacking ruby-faraday-net-http (3.0.2-2) ...
336s Selecting previously unselected package ruby-faraday.
336s Preparing to unpack .../33-ruby-faraday_2.10.0-2_all.deb ...
336s Unpacking ruby-faraday (2.10.0-2) ...
336s Selecting previously unselected package ruby-faraday-follow-redirects.
336s Preparing to unpack .../34-ruby-faraday-follow-redirects_0.3.0-2_all.deb ...
336s Unpacking ruby-faraday-follow-redirects (0.3.0-2) ...
336s Selecting previously unselected package ruby-hashdiff.
336s Preparing to unpack .../35-ruby-hashdiff_1.1.0-1_all.deb ...
336s Unpacking ruby-hashdiff (1.1.0-1) ...
336s Selecting previously unselected package ruby-http-cookie.
336s Preparing to unpack .../36-ruby-http-cookie_1.0.5-1_all.deb ...
336s Unpacking ruby-http-cookie (1.0.5-1) ...
336s Selecting previously unselected package ruby-httpclient.
336s Preparing to unpack .../37-ruby-httpclient_2.8.3+git20211122.4658227-1_all.deb ...
336s Unpacking ruby-httpclient (2.8.3+git20211122.4658227-1) ...
336s Selecting previously unselected package ruby-json-jwt.
336s Preparing to unpack .../38-ruby-json-jwt_1.16.7-1_all.deb ...
336s Unpacking ruby-json-jwt (1.16.7-1) ...
336s Selecting previously unselected package ruby-multi-json.
336s Preparing to unpack .../39-ruby-multi-json_1.14.1-2_all.deb ...
336s Unpacking ruby-multi-json (1.14.1-2) ...
336s Selecting previously unselected package ruby-rack.
336s Preparing to unpack .../40-ruby-rack_3.1.9-2_all.deb ...
336s Unpacking ruby-rack (3.1.9-2) ...
336s Selecting previously unselected package ruby-rack-oauth2.
336s Preparing to unpack .../41-ruby-rack-oauth2_1.21.3-1_all.deb ...
336s Unpacking ruby-rack-oauth2 (1.21.3-1) ...
336s Selecting previously unselected package ruby-rspec-support.
336s Preparing to unpack .../42-ruby-rspec-support_3.13.0c0e0m0s1-2_all.deb ...
336s Unpacking ruby-rspec-support (3.13.0c0e0m0s1-2) ...
336s Selecting previously unselected package ruby-rspec-core.
336s Preparing to unpack .../43-ruby-rspec-core_3.13.0c0e0m0s1-2_all.deb ...
336s Unpacking ruby-rspec-core (3.13.0c0e0m0s1-2) ...
336s Selecting previously unselected package ruby-rspec-expectations.
336s Preparing to unpack .../44-ruby-rspec-expectations_3.13.0c0e0m0s1-2_all.deb ...
336s Unpacking ruby-rspec-expectations (3.13.0c0e0m0s1-2) ...
336s Selecting previously unselected package ruby-rspec-mocks.
336s Preparing to unpack .../45-ruby-rspec-mocks_3.13.0c0e0m0s1-2_all.deb ...
336s Unpacking ruby-rspec-mocks (3.13.0c0e0m0s1-2) ...
336s Selecting previously unselected package ruby-rspec.
336s Preparing to unpack .../46-ruby-rspec_3.13.0c0e0m0s1-2_all.deb ...
336s Unpacking ruby-rspec (3.13.0c0e0m0s1-2) ...
336s Selecting previously unselected package ruby-rspec-its.
336s Preparing to unpack .../47-ruby-rspec-its_1.3.0-1_all.deb ...
336s Unpacking ruby-rspec-its (1.3.0-1) ...
336s Selecting previously unselected package ruby-webmock.
336s Preparing to unpack .../48-ruby-webmock_3.25.1-1_all.deb ...
336s Unpacking ruby-webmock (3.25.1-1) ...
336s Setting up ruby-power-assert (2.0.3-1) ...
336s Setting up ruby-hashdiff (1.1.0-1) ...
336s Setting up ruby-public-suffix (4.0.6+ds-2) ...
336s Setting up ruby-bindata (2.4.14-1) ...
336s Setting up rubygems-integration (1.19) ...
336s Setting up ruby-concurrent (1.3.4-1) ...
336s Setting up ruby-minitest (5.25.4-2ubuntu1) ...
336s Setting up ruby-test-unit (3.6.2-1) ...
336s Setting up ruby-net-telnet (0.2.0-1) ...
336s Setting up ruby-base64 (0.2.0-2) ...
336s Setting up ruby-i18n (1.14.5-1) ...
336s Setting up ruby-aes-key-wrap (1.1.0-1) ...
336s Setting up ruby-rspec-support (3.13.0c0e0m0s1-2) ...
336s Setting up ruby-webrick (1.8.1-1ubuntu1) ...
336s Setting up ruby-faraday-net-http (3.0.2-2) ...
336s Setting up ruby-did-you-mean (1.6.3-2) ...
336s Setting up ruby-xmlrpc (0.3.3-2) ...
336s Setting up ruby-zeitwerk (2.6.8-1) ...
336s Setting up ruby-addressable (2.8.5-1) ...
336s Setting up ruby-tzinfo (2.0.6-1) ...
336s Setting up rake (13.2.1-1) ...
336s Setting up ruby3.3 (3.3.6-1.1ubuntu1) ...
336s Setting up libruby:s390x (1:3.3~ubuntu3) ...
336s Setting up ruby-rubygems (3.6.3-1) ...
336s Setting up ruby (1:3.3~ubuntu3) ...
336s Setting up ruby-rspec-core (3.13.0c0e0m0s1-2) ...
336s Setting up ruby-attr-required (1.0.0-2.1) ...
336s Setting up ruby-sdbm:s390x (1.0.0-5build5) ...
336s Setting up ruby-diff-lcs (1.5.1-1) ...
336s Setting up ruby-multi-json (1.14.1-2) ...
336s Setting up ruby-rack (3.1.9-2) ...
336s Setting up libruby3.3:s390x (3.3.6-1.1ubuntu1) ...
336s Setting up ruby-unf-ext (0.0.7.7-1build7) ...
336s Setting up ruby-activesupport (2:6.1.7.3+dfsg-7) ...
336s Setting up ruby-faraday (2.10.0-2) ...
336s Setting up ruby-crack (0.4.4-4) ...
336s Setting up gem2deb-test-runner (2.2.5) ...
336s Setting up ruby-faraday-follow-redirects (0.3.0-2) ...
336s Setting up ruby-rspec-expectations (3.13.0c0e0m0s1-2) ...
336s Setting up ruby-unf (0.1.4-2.1) ...
336s Setting up ruby-rspec-mocks (3.13.0c0e0m0s1-2) ...
336s Setting up ruby-rspec-its (1.3.0-1) ...
336s Setting up ruby-webmock (3.25.1-1) ...
336s Setting up ruby-rspec (3.13.0c0e0m0s1-2) ...
336s Setting up ruby-json-jwt (1.16.7-1) ...
336s Setting up ruby-domain-name (0.6.20240107-1) ...
336s Setting up ruby-http-cookie (1.0.5-1) ...
336s Setting up ruby-httpclient (2.8.3+git20211122.4658227-1) ...
336s Setting up ruby-rack-oauth2 (1.21.3-1) ...
336s Processing triggers for libc-bin (2.41-1ubuntu1) ...
336s Processing triggers for man-db (2.13.0-1) ...
337s autopkgtest [10:48:50]: test gem2deb-test-runner: gem2deb-test-runner --autopkgtest --check-dependencies 2>&1
337s autopkgtest [10:48:50]: test gem2deb-test-runner: [-----------------------
338s
338s ┌──────────────────────────────────────────────────────────────────────────────┐
338s │ Checking Rubygems dependency resolution on ruby3.3 │
338s └──────────────────────────────────────────────────────────────────────────────┘
338s
338s RUBYLIB=. GEM_PATH= ruby3.3 -e gem\ \"rack-oauth2\"
338s mv lib ./.gem2deb.lib
338s mv ./.gem2deb.lib lib
338s
338s ┌──────────────────────────────────────────────────────────────────────────────┐
338s │ Run tests for ruby3.3 from debian/ruby-tests.rake │
338s └──────────────────────────────────────────────────────────────────────────────┘
338s
338s RUBYLIB=. GEM_PATH= ruby3.3 -S rake --rakelibdir /gem2deb-nonexistent -f debian/ruby-tests.rake
338s mv lib ./.gem2deb.lib
338s /usr/bin/ruby3.3 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.13.1/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/exe/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation
338s
338s Rack::OAuth2::AccessToken::Authenticator
338s when Legacy token is given
338s behaves like authenticator
338s should let the token authenticate the request
338s when Bearer token is given
338s behaves like authenticator
338s should let the token authenticate the request
338s when MAC token is given
338s behaves like authenticator
338s should let the token authenticate the request
338s
338s Rack::OAuth2::AccessToken::Bearer
338s .authenticate
338s should set Authorization header
338s
338s Rack::OAuth2::AccessToken::Legacy
338s #to_s
338s to_s
338s is expected to == "access_token"
338s .authenticate
338s should set Authorization header
338s
338s Rack::OAuth2::AccessToken::MAC::Sha256HexVerifier
338s when example from webtopay wallet API
338s calculate
338s is expected to == "21fb73c40b589622d0c78e9cd8900f89d9472aa724d0e5c3eca9ac1cd9d2a6d5"
338s when raw_body is empty
338s calculate
338s is expected to be nil
338s
338s Rack::OAuth2::AccessToken::MAC::Signature
338s when ext is not given
338s calculate
338s is expected to == "OZE9fTk2qiRtL1jb01L8lRxC66PTiAGhMDEmboeVeLs="
338s when ext is not given
338s calculate
338s is expected to == "6T3zZzy2Emppni6bzL7kdRxUWL4="
338s otherwise
338s calculate
338s is expected to == "+txL5oOFHGYjrfdNYH5VEzROaBY="
338s
338s Rack::OAuth2::AccessToken::MAC::Verifier
338s when "hmac-sha-1" is specified
338s hash_generator
338s is expected to be an instance of OpenSSL::Digest::SHA1
338s when "hmac-sha-256" is specified
338s hash_generator
338s is expected to be an instance of OpenSSL::Digest::SHA256
338s otherwise
338s is expected to raise StandardError with "Unsupported Algorithm"
338s
338s Rack::OAuth2::AccessToken::MAC
338s mac_key
338s is expected to == "secret"
338s mac_algorithm
338s is expected to == "hmac-sha-256"
338s token_response
338s is expected to == {:access_token=>"access_token", :expires_in=>nil, :mac_algorithm=>"hmac-sha-256", :mac_key=>"secret", :refresh_token=>nil, :scope=>"", :token_type=>:mac}
338s generate_nonce
338s is expected to be a kind of String
338s verify!
338s when no ext_verifier is given
338s when signature is valid
338s example at ./spec/rack/oauth2/access_token/mac_spec.rb:54 (FAILED - 1)
338s otherwise
338s is expected to raise Rack::OAuth2::Server::Resource::MAC::Unauthorized with "invalid_token :: Signature Invalid" (FAILED - 2)
338s when ext_verifier is given
338s when ext is invalid
338s is expected to raise Rack::OAuth2::Server::Resource::MAC::Unauthorized with "invalid_token :: Sha256HexVerifier Invalid" (FAILED - 3)
338s when ext is valid
338s when signature is valid
338s example at ./spec/rack/oauth2/access_token/mac_spec.rb:99 (FAILED - 4)
338s otherwise
338s is expected to raise Rack::OAuth2::Server::Resource::MAC::Unauthorized with "invalid_token :: Signature Invalid" (FAILED - 5)
338s .authenticate
338s when no ext_verifier is given
338s should set Authorization header
338s when ext_verifier is given
338s should set Authorization header with ext_verifier
338s
338s Rack::OAuth2::AccessToken
338s access_token
338s is expected to == "access_token"
338s refresh_token
338s is expected to == "refresh_token"
338s expires_in
338s is expected to == 3600
338s scope
338s is expected to == [:scope1, :scope2]
338s token_response
338s is expected to == {:access_token=>"access_token", :expires_in=>3600, :refresh_token=>"refresh_token", :scope=>"scope1 scope2", :token_type=>:bearer}
338s when access_token is missing
338s is expected to raise AttrRequired::AttrMissing
338s otherwise
338s is expected not to raise Exception
338s get
338s should delegate to HTTPClient with Authenticator filter
338s in debug mode
338s is expected to be a kind of Rack::OAuth2::Debugger::RequestFilter
338s when extension params given
338s raw_attributes
338s is expected to include :ex_key
338s delete
338s should delegate to HTTPClient with Authenticator filter
338s in debug mode
338s is expected to be a kind of Rack::OAuth2::Debugger::RequestFilter
338s when extension params given
338s raw_attributes
338s is expected to include :ex_key
338s post
339s should delegate to HTTPClient with Authenticator filter
339s in debug mode
339s is expected to be a kind of Rack::OAuth2::Debugger::RequestFilter
339s when extension params given
339s raw_attributes
339s is expected to include :ex_key
339s put
339s should delegate to HTTPClient with Authenticator filter
339s in debug mode
339s is expected to be a kind of Rack::OAuth2::Debugger::RequestFilter
339s when extension params given
339s raw_attributes
339s is expected to include :ex_key
339s
339s Rack::OAuth2::Client::Error
339s status
339s is expected to == 400
339s message
339s is expected to == "invalid_request :: Include invalid parameters"
339s response
339s is expected to == {:error=>:invalid_request, :error_description=>"Include invalid parameters", :error_uri=>"http://server.example.com/error/invalid_request"}
339s
339s Rack::OAuth2::Client::Grant::AuthorizationCode
339s when code is given
339s when redirect_uri is given
339s redirect_uri
339s is expected to == "https://client.example.com/callback"
339s as_json
339s is expected to == {:code=>"code", :grant_type=>:authorization_code, :redirect_uri=>"https://client.example.com/callback"}
339s otherwise
339s redirect_uri
339s is expected to be nil
339s as_json
339s is expected to == {:code=>"code", :grant_type=>:authorization_code, :redirect_uri=>nil}
339s otherwise
339s is expected to raise AttrRequired::AttrMissing
339s
339s Rack::OAuth2::Client::Grant::ClientCredentials
339s as_json
339s is expected to == {:grant_type=>:client_credentials}
339s
339s Rack::OAuth2::Client::Grant::JWTBearer
339s when JWT assertion is given
339s as_json
339s is expected to == {:assertion=>"header.payload.signature", :grant_type=>"urn:ietf:params:oauth:grant-type:jwt-bearer"}
339s otherwise
339s is expected to raise AttrRequired::AttrMissing
339s
339s Rack::OAuth2::Client::Grant::Password
339s when username is given
339s when password is given
339s as_json
339s is expected to == {:grant_type=>:password, :password=>"password", :username=>"username"}
339s otherwise
339s is expected to raise AttrRequired::AttrMissing
339s otherwise
339s is expected to raise AttrRequired::AttrMissing
339s
339s Rack::OAuth2::Client::Grant::RefreshToken
339s when refresh_token is given
339s as_json
339s is expected to == {:grant_type=>:refresh_token, :refresh_token=>"refresh_token"}
339s otherwise
339s is expected to raise AttrRequired::AttrMissing
339s
339s Rack::OAuth2::Client::Grant::SAML2Bearer
339s when JWT assertion is given
339s as_json
339s is expected to == {:assertion=>"...", :grant_type=>"urn:ietf:params:oauth:grant-type:saml2-bearer"}
339s otherwise
339s is expected to raise AttrRequired::AttrMissing
339s
339s Rack::OAuth2::Client
339s identifier
339s is expected to == "client_id"
339s secret
339s is expected to == "client_secret"
339s authorization_endpoint
339s is expected to == "/oauth2/authorize"
339s token_endpoint
339s is expected to == "/oauth2/token"
339s revocation_endpoint
339s is expected to == "/oauth2/revoke"
339s when identifier is missing
339s is expected to raise AttrRequired::AttrMissing
339s #authorization_uri
339s is expected to include "https://server.example.com/oauth2/authorize"
339s is expected to include "client_id=client_id"
339s is expected to include "redirect_uri=https%3A%2F%2Fclient.example.com%2Fcallback"
339s is expected to include "response_type=code"
339s when endpoints are absolute URIs
339s is expected to include "https://server2.example.com/oauth/authorize"
339s when scheme is specified
339s is expected to include "http://server.example.com/oauth2/authorize"
339s when response_type is token
339s is expected to include "response_type=token"
339s when response_type is an Array
339s is expected to include "response_type=token%20code"
339s when scope is given
339s is expected to include "scope=scope1%20scope2"
339s #authorization_code=
339s is expected to be an instance of Rack::OAuth2::Client::Grant::AuthorizationCode
339s #resource_owner_credentials=
339s is expected to be an instance of Rack::OAuth2::Client::Grant::Password
339s #refresh_token=
339s is expected to be an instance of Rack::OAuth2::Client::Grant::RefreshToken
339s #access_token!
339s *args handling
339s client authentication method
339s should be Basic auth as default
339s when Basic auth method is used
339s when client_id is a url
339s should be encoded in "application/x-www-form-urlencoded"
339s when basic_without_www_form_urlencode method is used
339s when client_id is a url
339s should be encoded in "application/x-www-form-urlencoded"
339s when jwt_bearer auth method specified
339s when client_secret is given
339s should be JWT bearer client assertion w/ auto-generated HS256-signed JWT assertion
339s when private_key is given
339s when RSA key
339s should be JWT bearer client assertion w/ auto-generated RS256-signed JWT assertion
339s when EC key
339s should be JWT bearer client assertion w/ auto-generated ES256-signed JWT assertion
339s when client_assertion is explicitly given
339s should be JWT bearer client assertion w/ specified assertion
339s when other auth method specified
339s should be body params
339s when auth method is specified as Hash
339s should be removed before sending request
339s scopes
339s when scope option given
339s should specify given scope
339s unknown params
339s should be included in body params
339s when bearer token is given
339s is expected to be an instance of Rack::OAuth2::AccessToken::Bearer
339s token_type
339s is expected to == :bearer
339s access_token
339s is expected to == "access_token"
339s refresh_token
339s is expected to == "refresh_token"
339s expires_in
339s is expected to == 3600
339s when token type is "Bearer", not "bearer"
339s is expected to be an instance of Rack::OAuth2::AccessToken::Bearer
339s token_type
339s is expected to == :bearer
339s when mac token is given
339s is expected to be an instance of Rack::OAuth2::AccessToken::MAC
339s token_type
339s is expected to == :mac
339s access_token
339s is expected to == "access_token"
339s refresh_token
339s is expected to == "refresh_token"
339s expires_in
339s is expected to == 3600
339s when no-type token is given (JSON)
339s is expected to be an instance of Rack::OAuth2::AccessToken::Legacy
339s token_type
339s is expected to == :legacy
339s access_token
339s is expected to == "access_token"
339s refresh_token
339s is expected to == "refresh_token"
339s expires_in
339s is expected to == 3600
339s when token_type is forced
339s is expected to be an instance of Rack::OAuth2::AccessToken::Bearer
339s token_type
339s is expected to == :bearer
339s when no-type token is given (key-value)
339s is expected to be an instance of Rack::OAuth2::AccessToken::Legacy
339s token_type
339s is expected to == :legacy
339s access_token
339s is expected to == "access_token"
339s expires_in
339s is expected to == 3600
339s when expires_in is not given
339s expires_in
339s is expected to be nil
339s when unknown-type token is given
339s is expected to raise StandardError with "Unknown Token Type"
339s when error response is given
339s is expected to raise Rack::OAuth2::Client::Error
339s when no body given
339s when error given
339s is expected to raise Rack::OAuth2::Client::Error
339s #revoke!
339s when access_token given
339s is expected to == :success
339s when refresh_token given
339s as argument
339s is expected to == :success
339s as grant
339s example at ./spec/rack/oauth2/client_spec.rb:491
339s when error response given
339s is expected to raise Rack::OAuth2::Client::Error
339s when no token given
339s is expected to raise ArgumentError
339s when no host info
339s #authorization_uri
339s is expected to raise Exception with "No Host Info"
339s #access_token!
339s is expected to raise Exception with "No Host Info"
339s #revoke!
339s is expected to raise Exception with "No Host Info"
339s
339s Rack::OAuth2::Debugger::RequestFilter
339s #filter_request
339s should log request
339s #filter_response
339s should log response
339s
339s Rack::OAuth2
339s logger
339s is expected to be a kind of Logger
339s debugging?
339s is expected to == false
339s .debug!
339s debugging?
339s is expected to == true
339s .debug
339s should enable debugging within given block
339s should not force disable debugging
339s .http_config
339s when request_filter added
339s when "debug!" is called
339s should put Debugger::RequestFilter at last
339s should reset_http_config
339s .http_client
339s when local_http_config is used
339s should correctly set request_filter
339s
339s Rack::OAuth2::Server::Abstract::Error
339s when full attributes are given
339s status
339s is expected to == 400
339s error
339s is expected to == :invalid_request
339s description
339s is expected to == "Missing some required params"
339s uri
339s is expected to == "http://server.example.com/error"
339s protocol_params
339s is expected to == {:error=>:invalid_request, :error_description=>"Missing some required params", :error_uri=>"http://server.example.com/error"}
339s when optional attributes are not given
339s status
339s is expected to == 400
339s error
339s is expected to == :invalid_request
339s description
339s is expected to be nil
339s uri
339s is expected to be nil
339s protocol_params
339s is expected to == {:error=>:invalid_request, :error_description=>nil, :error_uri=>nil}
339s
339s Rack::OAuth2::Server::Abstract::BadRequest
339s status
339s is expected to == 400
339s
339s Rack::OAuth2::Server::Abstract::Unauthorized
339s status
339s is expected to == 401
339s
339s Rack::OAuth2::Server::Abstract::Forbidden
339s status
339s is expected to == 403
339s
339s Rack::OAuth2::Server::Abstract::ServerError
339s status
339s is expected to == 500
339s
339s Rack::OAuth2::Server::Abstract::TemporarilyUnavailable
339s status
339s is expected to == 503
339s
339s Rack::OAuth2::Server::Authorize::Code
339s when approved
339s status
339s is expected to == 302
339s location
339s is expected to == "http://client.example.com/callback?code=authorization_code&state=state"
339s when redirect_uri already includes query
339s location
339s is expected to == "http://client.example.com/callback?k=v&code=authorization_code&state=state"
339s when redirect_uri is missing
339s is expected to raise AttrRequired::AttrMissing
339s when code is missing
339s is expected to raise AttrRequired::AttrMissing
339s when denied
339s should redirect with error in query
339s
339s Rack::OAuth2::Server::Authorize::BadRequest
339s is expected to be a kind of Rack::OAuth2::Server::Abstract::BadRequest
339s protocol_params
339s is expected to == {:error=>:invalid_request, :error_description=>nil, :error_uri=>nil, :state=>nil}
339s #finish
339s when redirect_uri is given
339s when protocol_params_location = :query
339s should redirect with error in query
339s when protocol_params_location = :fragment
339s should redirect with error in fragment
339s otherwise
339s should redirect without error
339s otherwise
339s should raise itself
339s
339s Rack::OAuth2::Server::Authorize::ErrorMethods
339s bad_request!
339s is expected to raise Rack::OAuth2::Server::Authorize::BadRequest
339s when response_type = :code
339s should set protocol_params_location = :query
339s when response_type = :token
339s should set protocol_params_location = :fragment
339s invalid_request!
339s should raise Rack::OAuth2::Server::Authorize::BadRequest with error = :invalid_request
339s unauthorized_client!
339s should raise Rack::OAuth2::Server::Authorize::BadRequest with error = :unauthorized_client
339s access_denied!
339s should raise Rack::OAuth2::Server::Authorize::BadRequest with error = :access_denied
339s unsupported_response_type!
339s should raise Rack::OAuth2::Server::Authorize::BadRequest with error = :unsupported_response_type
339s invalid_scope!
339s should raise Rack::OAuth2::Server::Authorize::BadRequest with error = :invalid_scope
339s server_error!
339s should raise Rack::OAuth2::Server::Authorize::ServerError with error = :server_error
339s temporarily_unavailable!
339s should raise Rack::OAuth2::Server::Authorize::TemporarilyUnavailable with error = :temporarily_unavailable
339s
339s Rack::OAuth2::Server::Authorize::Extension::CodeAndToken
339s when approved
339s status
339s is expected to == 302
339s location
339s is expected to include "http://client.example.com/callback#"
339s location
339s is expected to include "code=authorization_code"
339s location
339s is expected to include "access_token=access_token"
339s location
339s is expected to include "token_type=bearer"
339s when refresh_token is given
339s location
339s is expected to include "http://client.example.com/callback#"
339s location
339s is expected to include "code=authorization_code"
339s location
339s is expected to include "access_token=access_token"
339s location
339s is expected to include "token_type=bearer"
339s when denied
339s should redirect with error in fragment
339s
339s Rack::OAuth2::Server::Authorize::Token
339s when approved
339s status
339s is expected to == 302
339s location
339s is expected to == "http://client.example.com/callback#access_token=access_token&state=state&token_type=bearer"
339s when refresh_token is given
339s location
339s is expected to == "http://client.example.com/callback#access_token=access_token&state=state&token_type=bearer"
339s when redirect_uri is missing
339s is expected to raise AttrRequired::AttrMissing
339s when access_token is missing
339s is expected to raise AttrRequired::AttrMissing
339s when denied
339s should redirect with error in fragment
339s
339s Rack::OAuth2::Server::Authorize
339s when response_type is missing
339s is expected to raise Rack::OAuth2::Server::Authorize::BadRequest
339s when redirect_uri is missing
339s is expected not to raise Exception
339s when client_id is missing
339s is expected to raise Rack::OAuth2::Server::Authorize::BadRequest
339s when unknown response_type is given
339s is expected to raise Rack::OAuth2::Server::Authorize::BadRequest
339s when all required parameters are valid
339s when response_type = :code
339s status
339s is expected to == 200
339s when response_type = :token
339s status
339s is expected to == 200
339s Rack::OAuth2::Server::Authorize::Request
339s #varified_redirect_uri
339s when an Array of pre-registered URIs are given
339s when given redirect_uri is valid against one of them
339s should be valid
339s otherwise
339s is expected to raise Rack::OAuth2::Server::Authorize::BadRequest
339s when exact mathed redirect_uri is given
339s should be valid
339s when partially mathed redirect_uri is given
339s when partial matching allowed
339s should be valid
339s otherwise
339s is expected to raise Rack::OAuth2::Server::Authorize::BadRequest
339s when invalid redirect_uri is given
339s is expected to raise Rack::OAuth2::Server::Authorize::BadRequest
339s when redirect_uri is missing
339s when pre-registered redirect_uri is a String
339s should use pre-registered redirect_uri
339s when pre-registered redirect_uri is an Array
339s when only 1
339s when partial match allowed
339s is expected to raise Rack::OAuth2::Server::Authorize::BadRequest
339s otherwise
339s should use pre-registered redirect_uri
339s when more than 2
339s is expected to raise Rack::OAuth2::Server::Authorize::BadRequest
339s extensibility
339s extensions
339s is expected to == [Rack::OAuth2::Server::Authorize::Extension::CodeAndToken]
339s code token
339s is expected to == Rack::OAuth2::Server::Authorize::Extension::CodeAndToken
339s token code
339s is expected to == Rack::OAuth2::Server::Authorize::Extension::CodeAndToken
339s token code id_token
339s is expected to raise Rack::OAuth2::Server::Authorize::BadRequest
339s id_token
339s is expected to == Rack::OAuth2::Server::Authorize::Extension::IdToken
339s extensions
339s is expected to == [Rack::OAuth2::Server::Authorize::Extension::CodeAndToken, Rack::OAuth2::Server::Authorize::Extension::IdToken]
339s
339s Rack::OAuth2::Server::Authorize::Code
339s authorization request
339s when code_challenge is given
339s when code_challenge_method is given
339s code_challenge
339s is expected to == "1C3nz2vtxnmhQdzyuy-8M-jon3NMB40K8UjPn47Wi8Q"
339s code_challenge_method
339s is expected to == "S256"
339s when code_challenge_method is omitted
339s code_challenge
339s is expected to == "61L0GzLfi0pH3E0WABM70FG_Dq5GCQL01VIPnlFNE28"
339s code_challenge_method
339s is expected to == nil
339s otherwise
339s code_challenge
339s is expected to == nil
339s code_challenge_method
339s is expected to == nil
339s token request
339s when code_verifier is given
339s code_verifier
339s is expected to == "e7c0b283476c453f3a4826bd421f5bdb"
339s #verify_code_verifier!
339s when code_verifier is given with code_challenge_method=plain
339s is expected not to raise Exception
339s when collect code_challenge is given
339s is expected not to raise Exception
339s when wrong code_challenge is blank
339s is expected to raise Rack::OAuth2::Server::Token::BadRequest with message matching /invalid_grant/
339s when code_challenge is nil
339s is expected to raise Rack::OAuth2::Server::Token::BadRequest with message matching /invalid_grant/
339s when unknown code_challenge_method is given
339s is expected to raise Rack::OAuth2::Server::Token::BadRequest with message matching /invalid_grant/
339s otherwise
339s code_verifier
339s is expected to == nil
339s #verify_code_verifier!
339s when code_verifier is given with code_challenge_method=plain
339s is expected to raise Rack::OAuth2::Server::Token::BadRequest with message matching /invalid_grant/
339s when collect code_challenge is given
339s is expected to raise Rack::OAuth2::Server::Token::BadRequest with message matching /invalid_grant/
339s when wrong code_challenge is blank
339s is expected to raise Rack::OAuth2::Server::Token::BadRequest with message matching /invalid_grant/
339s when code_challenge is nil
339s is expected not to raise Exception
339s when unknown code_challenge_method is given
339s is expected to raise Rack::OAuth2::Server::Token::BadRequest with message matching /invalid_grant/
339s
339s Rack::OAuth2::Server::Authorize::Code
339s authorization request
339s when response_mode is given
339s response_mode
339s is expected to == "form_post"
339s otherwise
339s response_mode
339s is expected to == nil
339s
339s Rack::OAuth2::Server::Resource::Bearer::Unauthorized
339s is expected to be a kind of Rack::OAuth2::Server::Resource::Unauthorized
339s #scheme
339s scheme
339s is expected to == :Bearer
339s #finish
339s should use Bearer scheme
339s
339s Rack::OAuth2::Server::Resource::Bearer::ErrorMethods
339s unauthorized!
339s is expected to raise Rack::OAuth2::Server::Resource::Bearer::Unauthorized
339s invalid_token!
339s should raise Rack::OAuth2::Server::Resource::Bearer::Unauthorized with error = :invalid_token
339s
339s Rack::OAuth2::Server::Resource::Bearer
339s when no access token is given
339s behaves like skipped_authentication_request
339s should skip OAuth 2.0 authentication
339s when valid_token is given
339s when token is in Authorization header
339s behaves like authenticated_bearer_request
339s should be authenticated
339s when token is in params
339s behaves like authenticated_bearer_request
339s should be authenticated
339s when invalid authorization header is given
339s behaves like skipped_authentication_request
339s should skip OAuth 2.0 authentication
339s when invalid_token is given
339s when token is in Authorization header
339s behaves like unauthorized_bearer_request
339s should be unauthorized
339s when token is in params
339s behaves like unauthorized_bearer_request
339s should be unauthorized
339s realm
339s when specified
339s should use specified realm
339s otherwize
339s should use default realm
339s when multiple access_token is given
339s when token is in Authorization header and params
339s behaves like bad_bearer_request
339s should be bad_request
339s
339s Rack::OAuth2::Server::Resource::BadRequest
339s is expected to be a kind of Rack::OAuth2::Server::Abstract::BadRequest
339s #finish
339s should respond in JSON
339s
339s Rack::OAuth2::Server::Resource::Unauthorized
339s is expected to be a kind of Rack::OAuth2::Server::Abstract::Unauthorized
339s #scheme
339s is expected to raise RuntimeError with "Define me!"
339s when scheme is defined
339s #finish
339s should respond in JSON
339s when error_code is not invalid_token
339s should have error_code in body but not in WWW-Authenticate header
339s when no error_code is given
339s should have error_code in body but not in WWW-Authenticate header
339s when realm is specified
339s should use given realm
339s
339s Rack::OAuth2::Server::Resource::Forbidden
339s is expected to be a kind of Rack::OAuth2::Server::Abstract::Forbidden
339s #finish
339s should respond in JSON
339s when scope option is given
339s should have blank WWW-Authenticate header
339s
339s Rack::OAuth2::Server::Resource::Bearer::ErrorMethods
339s bad_request!
339s is expected to raise Rack::OAuth2::Server::Resource::BadRequest
339s unauthorized!
339s is expected to raise RuntimeError with "Define me!"
339s invalid_request!
339s should raise Rack::OAuth2::Server::Resource::BadRequest with error = :invalid_request
339s invalid_token!
339s is expected to raise RuntimeError with "Define me!"
339s insufficient_scope!
339s should raise Rack::OAuth2::Server::Resource::Forbidden with error = :insufficient_scope
339s
339s Rack::OAuth2::Server::Resource::MAC::Unauthorized
339s is expected to be a kind of Rack::OAuth2::Server::Resource::Unauthorized
339s #scheme
339s scheme
339s is expected to == :MAC
339s #finish
339s should use MAC scheme
339s
339s Rack::OAuth2::Server::Resource::MAC::ErrorMethods
339s unauthorized!
339s is expected to raise Rack::OAuth2::Server::Resource::MAC::Unauthorized
339s invalid_token!
339s should raise Rack::OAuth2::Server::Resource::Bearer::Unauthorized with error = :invalid_token
339s
339s Rack::OAuth2::Server::Resource::MAC
339s when no access token is given
339s should skip OAuth 2.0 authentication
339s when valid_token is given
339s when other required params are missing
339s behaves like unauthorized_mac_request
339s should be unauthorized (FAILED - 6)
339s when other required params are invalid
339s behaves like unauthorized_mac_request
339s should be unauthorized (FAILED - 7)
339s when all required params are valid
339s behaves like authenticated_mac_request
339s should be authenticated (FAILED - 8)
339s when all required params are valid and ts is expired
339s behaves like unauthorized_mac_request
339s should be unauthorized (FAILED - 9)
339s when invalid_token is given
339s behaves like unauthorized_mac_request
339s should be unauthorized (FAILED - 10)
339s realm
339s when specified
339s should use specified realm (FAILED - 11)
339s otherwize
339s should use default realm (FAILED - 12)
339s
339s Rack::OAuth2::Server::Resource
339s realm
339s is expected to == "realm"
339s
339s Rack::OAuth2::Server::Resource::Request
339s #setup!
339s is expected to raise RuntimeError with "Define me!"
339s #oauth2?
339s is expected to raise RuntimeError with "Define me!"
339s
339s Rack::OAuth2::Server::Token::AuthorizationCode
339s should prevent to be cached
339s status
339s is expected to == 200
339s content_type
339s is expected to == "application/json"
339s body
339s is expected to include "\"access_token\":\"access_token\""
339s body
339s is expected to include "\"token_type\":\"bearer\""
339s when code is missing
339s status
339s is expected to == 400
339s content_type
339s is expected to == "application/json"
339s body
339s is expected to include "\"error\":\"invalid_request\""
339s
339s Rack::OAuth2::Server::Token::ClientCredentials
339s status
339s is expected to == 200
339s content_type
339s is expected to == "application/json"
339s body
339s is expected to include "\"access_token\":\"access_token\""
339s body
339s is expected to include "\"token_type\":\"bearer\""
339s basic auth
339s status
339s is expected to == 200
339s compliance with RFC6749 sec 2.3.1
339s status
339s is expected to == 200
339s
339s Rack::OAuth2::Server::Token::BadRequest
339s is expected to be a kind of Rack::OAuth2::Server::Abstract::BadRequest
339s #finish
339s should respond in JSON
339s
339s Rack::OAuth2::Server::Token::Unauthorized
339s is expected to be a kind of Rack::OAuth2::Server::Abstract::Unauthorized
339s #finish
339s should respond in JSON
339s
339s Rack::OAuth2::Server::Token::ErrorMethods
339s bad_request!
339s is expected to raise Rack::OAuth2::Server::Token::BadRequest
339s unauthorized!
339s is expected to raise Rack::OAuth2::Server::Token::Unauthorized
339s invalid_request!
339s should raise Rack::OAuth2::Server::Token::BadRequest with error = :invalid_request
339s invalid_client!
339s should raise Rack::OAuth2::Server::Token::Unauthorized with error = :invalid_client
339s invalid_grant!
339s should raise Rack::OAuth2::Server::Token::BadRequest with error = :invalid_grant
339s unauthorized_client!
339s should raise Rack::OAuth2::Server::Token::BadRequest with error = :unauthorized_client
339s unsupported_grant_type!
339s should raise Rack::OAuth2::Server::Token::BadRequest with error = :unsupported_grant_type
339s invalid_scope!
339s should raise Rack::OAuth2::Server::Token::BadRequest with error = :invalid_scope
339s
339s Rack::OAuth2::Server::Token::JWTBearer
339s status
339s is expected to == 200
339s content_type
339s is expected to == "application/json"
339s body
339s is expected to include "\"access_token\":\"access_token\""
339s body
339s is expected to include "\"token_type\":\"bearer\""
339s when assertion is missing
339s status
339s is expected to == 400
339s content_type
339s is expected to == "application/json"
339s body
339s is expected to include "\"error\":\"invalid_request\""
339s
339s Rack::OAuth2::Server::Token::Password
339s status
339s is expected to == 200
339s content_type
339s is expected to == "application/json"
339s body
339s is expected to include "\"access_token\":\"access_token\""
339s body
339s is expected to include "\"token_type\":\"bearer\""
339s when username is missing
339s status
339s is expected to == 400
339s content_type
339s is expected to == "application/json"
339s body
339s is expected to include "\"error\":\"invalid_request\""
339s when password is missing
339s status
339s is expected to == 400
339s content_type
339s is expected to == "application/json"
339s body
339s is expected to include "\"error\":\"invalid_request\""
339s
339s Rack::OAuth2::Server::Token::RefreshToken
339s status
339s is expected to == 200
339s content_type
339s is expected to == "application/json"
339s body
339s is expected to include "\"access_token\":\"access_token\""
339s body
339s is expected to include "\"token_type\":\"bearer\""
339s when refresh_token is missing
339s status
339s is expected to == 400
339s content_type
339s is expected to == "application/json"
339s body
339s is expected to include "\"error\":\"invalid_request\""
339s
339s Rack::OAuth2::Server::Token::SAML2Bearer
339s status
339s is expected to == 200
339s content_type
339s is expected to == "application/json"
339s body
339s is expected to include "\"access_token\":\"access_token\""
339s body
339s is expected to include "\"token_type\":\"bearer\""
339s when assertion is missing
339s status
339s is expected to == 400
339s content_type
339s is expected to == "application/json"
339s body
339s is expected to include "\"error\":\"invalid_request\""
339s
339s Rack::OAuth2::Server::Token
339s when multiple client credentials are given
339s when different credentials are given
339s should fail with unsupported_grant_type
339s when same credentials are given
339s should ignore duplicates
339s when unsupported grant_type is given
339s status
339s is expected to == 400
339s content_type
339s is expected to == "application/json"
339s body
339s is expected to include "\"error\":\"unsupported_grant_type\""
339s when client_id is missing
339s status
339s is expected to == 400
339s content_type
339s is expected to == "application/json"
339s body
339s is expected to include "\"error\":\"invalid_request\""
339s when grant_type is missing
339s status
339s is expected to == 400
339s content_type
339s is expected to == "application/json"
339s body
339s is expected to include "\"error\":\"invalid_request\""
339s when client_id is given via JWT client assertion
339s when client_assertion is invalid JWT
339s status
339s is expected to == 400
339s content_type
339s is expected to == "application/json"
339s body
339s is expected to include "\"error\":\"invalid_request\""
339s when client_assertion_type is missing
339s status
339s is expected to == 400
339s content_type
339s is expected to == "application/json"
339s body
339s is expected to include "\"error\":\"invalid_request\""
339s when client_assertion_type is unknown
339s status
339s is expected to == 400
339s content_type
339s is expected to == "application/json"
339s body
339s is expected to include "\"error\":\"invalid_request\""
339s when client_assertion issuer is different from client_id
339s status
339s is expected to == 400
339s content_type
339s is expected to == "application/json"
339s body
339s is expected to include "\"error\":\"invalid_request\""
339s otherwise
339s status
339s is expected to == 200
339s content_type
339s is expected to == "application/json"
339s body
339s is expected to include "\"access_token\":\"access_token\""
339s when invalid_request
339s status
339s is expected to == 400
339s content_type
339s is expected to == "application/json"
339s body
339s is expected to include "\"error\":\"invalid_request\""
339s body
339s is expected to include "\"error_description\":\"The request is missing a required parameter, includes an unsupported paramet...tials, utilizes more than one mechanism for authenticating the client, or is otherwise malformed.\""
339s when invalid_client
339s status
339s is expected to == 401
339s content_type
339s is expected to == "application/json"
339s body
339s is expected to include "\"error\":\"invalid_client\""
339s body
339s is expected to include "\"error_description\":\"The client identifier provided is invalid, the client failed to authenticate...lude its credentials, provided multiple client credentials, or used unsupported credentials type.\""
339s headers
339s is expected to include "WWW-Authenticate"
339s when invalid_grant
339s status
339s is expected to == 400
339s content_type
339s is expected to == "application/json"
339s body
339s is expected to include "\"error\":\"invalid_grant\""
339s body
339s is expected to include "\"error_description\":\"The provided access grant is invalid, expired, or revoked (e.g. invalid asse...token, bad end-user password credentials, or mismatching authorization code and redirection URI).\""
339s when unauthorized_client
339s status
339s is expected to == 400
339s content_type
339s is expected to == "application/json"
339s body
339s is expected to include "\"error\":\"unauthorized_client\""
339s body
339s is expected to include "\"error_description\":\"The authenticated client is not authorized to use the access grant type provided.\""
339s when unsupported_grant_type
339s status
339s is expected to == 400
339s content_type
339s is expected to == "application/json"
339s body
339s is expected to include "\"error\":\"unsupported_grant_type\""
339s body
339s is expected to include "\"error_description\":\"The access grant included - its type or another attribute - is not supported by the authorization server.\""
339s when invalid_scope
339s status
339s is expected to == 400
339s content_type
339s is expected to == "application/json"
339s body
339s is expected to include "\"error\":\"invalid_scope\""
339s body
339s is expected to include "\"error_description\":\"The requested scope is invalid, unknown, malformed, or exceeds the previously granted scope.\""
339s when skip_www_authenticate option is specified on invalid_client
339s headers
339s is expected not to include "WWW-Authenticate"
339s when responding
339s when access_token is missing
339s is expected to raise AttrRequired::AttrMissing
339s extensibility
339s extensions
339s is expected to == [Rack::OAuth2::Server::Token::Extension::Example]
339s JWT assertion
339s is expected to == Rack::OAuth2::Server::Token::Extension::Example
339s
339s Rack::OAuth2::Util
339s .www_form_url_encode
339s is expected to == "%3D%2B+.-%2F"
339s .www_form_urldecode
339s is expected to == "=+ .-/"
339s .base64_encode
339s is expected to == "PSsgLi0v"
339s .compact_hash
339s is expected to == {:k1=>"v1"}
339s .parse_uri
339s when String is given
339s is expected to be a kind of URI::Generic
339s when URI is given
339s should be itself
339s when invalid URI is given
339s is expected to raise URI::InvalidURIError
339s otherwise
339s is expected to raise StandardError
339s .redirect_uri
339s when location = :fragment
339s is expected to == "http://client.example.com#k1=v1"
339s when location = :query
339s is expected to == "http://client.example.com?k1=v1"
339s .uri_match?
339s when invalid URI is given
339s is expected to == false
339s when exactly same
339s is expected to == true
339s when path prefix matches
339s is expected to == true
339s otherwise
339s is expected to == false
339s
339s Failures:
339s
339s 1) Rack::OAuth2::AccessToken::MAC verify! when no ext_verifier is given when signature is valid
339s Failure/Error: token.verify!(request.setup!).should == :verified
339s
339s NameError:
339s uninitialized constant Rack::Auth::Digest
339s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource/mac.rb:17:in `setup!'
339s # ./spec/rack/oauth2/access_token/mac_spec.rb:56:in `block (5 levels) in '
339s # /usr/share/rubygems-integration/all/gems/webmock-3.25.1/lib/webmock/rspec.rb:39:in `block (2 levels) in '
339s
339s 2) Rack::OAuth2::AccessToken::MAC verify! when no ext_verifier is given otherwise is expected to raise Rack::OAuth2::Server::Resource::MAC::Unauthorized with "invalid_token :: Signature Invalid"
339s Failure/Error:
339s expect { token.verify!(request.setup!) }.to raise_error(
339s Rack::OAuth2::Server::Resource::MAC::Unauthorized,
339s 'invalid_token :: Signature Invalid'
339s )
339s
339s expected Rack::OAuth2::Server::Resource::MAC::Unauthorized with "invalid_token :: Signature Invalid", got # with backtrace:
339s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource/mac.rb:17:in `setup!'
339s # ./spec/rack/oauth2/access_token/mac_spec.rb:63:in `block (6 levels) in '
339s # ./spec/rack/oauth2/access_token/mac_spec.rb:63:in `block (5 levels) in '
339s # /usr/share/rubygems-integration/all/gems/webmock-3.25.1/lib/webmock/rspec.rb:39:in `block (2 levels) in '
339s # ./spec/rack/oauth2/access_token/mac_spec.rb:63:in `block (5 levels) in '
339s # /usr/share/rubygems-integration/all/gems/webmock-3.25.1/lib/webmock/rspec.rb:39:in `block (2 levels) in '
339s
339s 3) Rack::OAuth2::AccessToken::MAC verify! when ext_verifier is given when ext is invalid is expected to raise Rack::OAuth2::Server::Resource::MAC::Unauthorized with "invalid_token :: Sha256HexVerifier Invalid"
339s Failure/Error:
339s expect { token_with_ext_verifier.verify!(request.setup!) }.to raise_error(
339s Rack::OAuth2::Server::Resource::MAC::Unauthorized,
339s 'invalid_token :: Sha256HexVerifier Invalid'
339s )
339s
339s expected Rack::OAuth2::Server::Resource::MAC::Unauthorized with "invalid_token :: Sha256HexVerifier Invalid", got # with backtrace:
339s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource/mac.rb:17:in `setup!'
339s # ./spec/rack/oauth2/access_token/mac_spec.rb:87:in `block (6 levels) in '
339s # ./spec/rack/oauth2/access_token/mac_spec.rb:87:in `block (5 levels) in '
339s # /usr/share/rubygems-integration/all/gems/webmock-3.25.1/lib/webmock/rspec.rb:39:in `block (2 levels) in '
339s # ./spec/rack/oauth2/access_token/mac_spec.rb:87:in `block (5 levels) in '
339s # /usr/share/rubygems-integration/all/gems/webmock-3.25.1/lib/webmock/rspec.rb:39:in `block (2 levels) in '
339s
339s 4) Rack::OAuth2::AccessToken::MAC verify! when ext_verifier is given when ext is valid when signature is valid
339s Failure/Error: token_with_ext_verifier.verify!(request.setup!).should == :verified
339s
339s NameError:
339s uninitialized constant Rack::Auth::Digest
339s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource/mac.rb:17:in `setup!'
339s # ./spec/rack/oauth2/access_token/mac_spec.rb:101:in `block (7 levels) in '
339s # ./spec/helpers/time.rb:16:in `fix'
339s # ./spec/rack/oauth2/access_token/mac_spec.rb:100:in `block (6 levels) in '
339s # /usr/share/rubygems-integration/all/gems/webmock-3.25.1/lib/webmock/rspec.rb:39:in `block (2 levels) in '
339s
339s 5) Rack::OAuth2::AccessToken::MAC verify! when ext_verifier is given when ext is valid otherwise is expected to raise Rack::OAuth2::Server::Resource::MAC::Unauthorized with "invalid_token :: Signature Invalid"
339s Failure/Error:
339s expect { token.verify!(request.setup!) }.to raise_error(
339s Rack::OAuth2::Server::Resource::MAC::Unauthorized,
339s 'invalid_token :: Signature Invalid'
339s )
339s
339s expected Rack::OAuth2::Server::Resource::MAC::Unauthorized with "invalid_token :: Signature Invalid", got # with backtrace:
339s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource/mac.rb:17:in `setup!'
339s # ./spec/rack/oauth2/access_token/mac_spec.rb:108:in `block (7 levels) in '
339s # ./spec/rack/oauth2/access_token/mac_spec.rb:108:in `block (6 levels) in '
339s # /usr/share/rubygems-integration/all/gems/webmock-3.25.1/lib/webmock/rspec.rb:39:in `block (2 levels) in '
339s # ./spec/rack/oauth2/access_token/mac_spec.rb:108:in `block (6 levels) in '
339s # /usr/share/rubygems-integration/all/gems/webmock-3.25.1/lib/webmock/rspec.rb:39:in `block (2 levels) in '
339s
339s 6) Rack::OAuth2::Server::Resource::MAC when valid_token is given when other required params are missing behaves like unauthorized_mac_request should be unauthorized
339s Failure/Error: let(:request) { app.call(env) }
339s
339s NameError:
339s uninitialized constant Rack::Auth::Digest
339s Shared Example Group: :unauthorized_mac_request called from ./spec/rack/oauth2/server/resource/mac_spec.rb:72
339s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource/mac.rb:17:in `setup!'
339s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource.rb:17:in `_call'
339s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource/mac.rb:8:in `_call'
339s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/abstract/handler.rb:17:in `call'
339s # ./spec/rack/oauth2/server/resource/mac_spec.rb:27:in `block (2 levels) in '
339s # ./spec/rack/oauth2/server/resource/mac_spec.rb:46:in `block (3 levels) in '
339s # /usr/share/rubygems-integration/all/gems/webmock-3.25.1/lib/webmock/rspec.rb:39:in `block (2 levels) in '
339s
339s 7) Rack::OAuth2::Server::Resource::MAC when valid_token is given when other required params are invalid behaves like unauthorized_mac_request should be unauthorized
339s Failure/Error: let(:request) { app.call(env) }
339s
339s NameError:
339s uninitialized constant Rack::Auth::Digest
339s Shared Example Group: :unauthorized_mac_request called from ./spec/rack/oauth2/server/resource/mac_spec.rb:77
339s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource/mac.rb:17:in `setup!'
339s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource.rb:17:in `_call'
339s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource/mac.rb:8:in `_call'
339s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/abstract/handler.rb:17:in `call'
339s # ./spec/rack/oauth2/server/resource/mac_spec.rb:27:in `block (2 levels) in '
339s # ./spec/rack/oauth2/server/resource/mac_spec.rb:46:in `block (3 levels) in '
339s # /usr/share/rubygems-integration/all/gems/webmock-3.25.1/lib/webmock/rspec.rb:39:in `block (2 levels) in '
339s
339s 8) Rack::OAuth2::Server::Resource::MAC when valid_token is given when all required params are valid behaves like authenticated_mac_request should be authenticated
339s Failure/Error: let(:request) { app.call(env) }
339s
339s NameError:
339s uninitialized constant Rack::Auth::Digest
339s Shared Example Group: :authenticated_mac_request called from ./spec/rack/oauth2/server/resource/mac_spec.rb:82
339s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource/mac.rb:17:in `setup!'
339s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource.rb:17:in `_call'
339s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource/mac.rb:8:in `_call'
339s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/abstract/handler.rb:17:in `call'
339s # ./spec/rack/oauth2/server/resource/mac_spec.rb:27:in `block (2 levels) in '
339s # ./spec/rack/oauth2/server/resource/mac_spec.rb:39:in `block (3 levels) in '
339s # /usr/share/rubygems-integration/all/gems/webmock-3.25.1/lib/webmock/rspec.rb:39:in `block (2 levels) in '
339s
339s 9) Rack::OAuth2::Server::Resource::MAC when valid_token is given when all required params are valid and ts is expired behaves like unauthorized_mac_request should be unauthorized
339s Failure/Error: let(:request) { app.call(env) }
339s
339s NameError:
339s uninitialized constant Rack::Auth::Digest
339s Shared Example Group: :unauthorized_mac_request called from ./spec/rack/oauth2/server/resource/mac_spec.rb:87
339s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource/mac.rb:17:in `setup!'
339s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource.rb:17:in `_call'
339s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource/mac.rb:8:in `_call'
339s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/abstract/handler.rb:17:in `call'
339s # ./spec/rack/oauth2/server/resource/mac_spec.rb:27:in `block (2 levels) in '
339s # ./spec/rack/oauth2/server/resource/mac_spec.rb:46:in `block (3 levels) in '
339s # /usr/share/rubygems-integration/all/gems/webmock-3.25.1/lib/webmock/rspec.rb:39:in `block (2 levels) in '
339s
339s 10) Rack::OAuth2::Server::Resource::MAC when invalid_token is given behaves like unauthorized_mac_request should be unauthorized
339s Failure/Error: let(:request) { app.call(env) }
339s
339s NameError:
339s uninitialized constant Rack::Auth::Digest
339s Shared Example Group: :unauthorized_mac_request called from ./spec/rack/oauth2/server/resource/mac_spec.rb:93
339s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource/mac.rb:17:in `setup!'
339s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource.rb:17:in `_call'
339s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource/mac.rb:8:in `_call'
339s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/abstract/handler.rb:17:in `call'
339s # ./spec/rack/oauth2/server/resource/mac_spec.rb:27:in `block (2 levels) in '
339s # ./spec/rack/oauth2/server/resource/mac_spec.rb:46:in `block (3 levels) in '
339s # /usr/share/rubygems-integration/all/gems/webmock-3.25.1/lib/webmock/rspec.rb:39:in `block (2 levels) in '
339s
339s 11) Rack::OAuth2::Server::Resource::MAC when invalid_token is given realm when specified should use specified realm
339s Failure/Error: let(:request) { app.call(env) }
339s
339s NameError:
339s uninitialized constant Rack::Auth::Digest
339s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource/mac.rb:17:in `setup!'
339s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource.rb:17:in `_call'
339s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource/mac.rb:8:in `_call'
339s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/abstract/handler.rb:17:in `call'
339s # ./spec/rack/oauth2/server/resource/mac_spec.rb:27:in `block (2 levels) in '
339s # ./spec/rack/oauth2/server/resource/mac_spec.rb:106:in `block (5 levels) in '
339s # /usr/share/rubygems-integration/all/gems/webmock-3.25.1/lib/webmock/rspec.rb:39:in `block (2 levels) in '
339s
339s 12) Rack::OAuth2::Server::Resource::MAC when invalid_token is given realm otherwize should use default realm
339s Failure/Error: let(:request) { app.call(env) }
339s
339s NameError:
339s uninitialized constant Rack::Auth::Digest
339s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource/mac.rb:17:in `setup!'
339s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource.rb:17:in `_call'
339s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource/mac.rb:8:in `_call'
339s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/abstract/handler.rb:17:in `call'
339s # ./spec/rack/oauth2/server/resource/mac_spec.rb:27:in `block (2 levels) in '
339s # ./spec/rack/oauth2/server/resource/mac_spec.rb:113:in `block (5 levels) in '
339s # /usr/share/rubygems-integration/all/gems/webmock-3.25.1/lib/webmock/rspec.rb:39:in `block (2 levels) in '
339s
339s Finished in 0.9741 seconds (files took 0.5916 seconds to load)
339s 403 examples, 12 failures
339s
339s Failed examples:
339s
339s rspec ./spec/rack/oauth2/access_token/mac_spec.rb:54 # Rack::OAuth2::AccessToken::MAC verify! when no ext_verifier is given when signature is valid
339s rspec ./spec/rack/oauth2/access_token/mac_spec.rb:62 # Rack::OAuth2::AccessToken::MAC verify! when no ext_verifier is given otherwise is expected to raise Rack::OAuth2::Server::Resource::MAC::Unauthorized with "invalid_token :: Signature Invalid"
339s rspec ./spec/rack/oauth2/access_token/mac_spec.rb:86 # Rack::OAuth2::AccessToken::MAC verify! when ext_verifier is given when ext is invalid is expected to raise Rack::OAuth2::Server::Resource::MAC::Unauthorized with "invalid_token :: Sha256HexVerifier Invalid"
339s rspec ./spec/rack/oauth2/access_token/mac_spec.rb:99 # Rack::OAuth2::AccessToken::MAC verify! when ext_verifier is given when ext is valid when signature is valid
339s rspec ./spec/rack/oauth2/access_token/mac_spec.rb:107 # Rack::OAuth2::AccessToken::MAC verify! when ext_verifier is given when ext is valid otherwise is expected to raise Rack::OAuth2::Server::Resource::MAC::Unauthorized with "invalid_token :: Signature Invalid"
339s rspec ./spec/rack/oauth2/server/resource/mac_spec.rb[1:2:1:1:1] # Rack::OAuth2::Server::Resource::MAC when valid_token is given when other required params are missing behaves like unauthorized_mac_request should be unauthorized
339s rspec ./spec/rack/oauth2/server/resource/mac_spec.rb[1:2:2:1:1] # Rack::OAuth2::Server::Resource::MAC when valid_token is given when other required params are invalid behaves like unauthorized_mac_request should be unauthorized
339s rspec ./spec/rack/oauth2/server/resource/mac_spec.rb:38 # Rack::OAuth2::Server::Resource::MAC when valid_token is given when all required params are valid behaves like authenticated_mac_request should be authenticated
339s rspec ./spec/rack/oauth2/server/resource/mac_spec.rb[1:2:4:1:1] # Rack::OAuth2::Server::Resource::MAC when valid_token is given when all required params are valid and ts is expired behaves like unauthorized_mac_request should be unauthorized
339s rspec ./spec/rack/oauth2/server/resource/mac_spec.rb[1:3:1:1] # Rack::OAuth2::Server::Resource::MAC when invalid_token is given behaves like unauthorized_mac_request should be unauthorized
339s rspec ./spec/rack/oauth2/server/resource/mac_spec.rb:105 # Rack::OAuth2::Server::Resource::MAC when invalid_token is given realm when specified should use specified realm
339s rspec ./spec/rack/oauth2/server/resource/mac_spec.rb:112 # Rack::OAuth2::Server::Resource::MAC when invalid_token is given realm otherwize should use default realm
339s
339s /usr/bin/ruby3.3 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.13.1/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/exe/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation failed
339s mv ./.gem2deb.lib lib
340s autopkgtest [10:48:53]: test gem2deb-test-runner: -----------------------]
340s gem2deb-test-runner FAIL non-zero exit status 1
340s autopkgtest [10:48:53]: test gem2deb-test-runner: - - - - - - - - - - results - - - - - - - - - -
341s autopkgtest [10:48:54]: @@@@@@@@@@@@@@@@@@@@ summary
341s gem2deb-test-runner FAIL non-zero exit status 1
358s nova [W] Using flock in prodstack6-s390x
358s flock: timeout while waiting to get lock
358s Creating nova instance adt-plucky-s390x-ruby-rack-oauth2-20250313-104313-juju-7f2275-prod-proposed-migration-environment-20-210ef988-e2d0-46d9-9b7a-535d962b6a03 from image adt/ubuntu-plucky-s390x-server-20250313.img (UUID 54e7e81b-c545-49a7-82a9-0db67474751a)...
358s nova [W] Timed out waiting for 95a77148-764f-43f2-8b4b-37661fa77d81 to get deleted.