0s autopkgtest [10:56:04]: starting date and time: 2025-03-13 10:56:04+0000 0s autopkgtest [10:56:04]: git checkout: 325255d2 Merge branch 'pin-any-arch' into 'ubuntu/production' 0s autopkgtest [10:56:04]: host juju-7f2275-prod-proposed-migration-environment-2; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.4qjppvdt/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-ppc64el --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-2@bos03-ppc64el-19.secgroup --name adt-plucky-ppc64el-ruby-rack-oauth2-20250313-105604-juju-7f2275-prod-proposed-migration-environment-2-5bdc223d-07e0-4703-a0d9-91fc3546221f --image adt/ubuntu-plucky-ppc64el-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-2 --net-id=net_prod-proposed-migration-ppc64el -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/ 77s autopkgtest [10:57:21]: testbed dpkg architecture: ppc64el 77s autopkgtest [10:57:21]: testbed apt version: 2.9.32ubuntu1 77s autopkgtest [10:57:21]: @@@@@@@@@@@@@@@@@@@@ test bed setup 78s autopkgtest [10:57:22]: testbed release detected to be: None 78s autopkgtest [10:57:22]: updating testbed package index (apt update) 79s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [110 kB] 79s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 79s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 79s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 79s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [43.9 kB] 79s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [11.5 kB] 79s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [396 kB] 79s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el Packages [56.8 kB] 79s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/universe ppc64el Packages [328 kB] 79s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse ppc64el Packages [3020 B] 79s Fetched 950 kB in 1s (1114 kB/s) 80s Reading package lists... 81s Reading package lists... 81s Building dependency tree... 81s Reading state information... 81s Calculating upgrade... 81s Calculating upgrade... 81s The following NEW packages will be installed: 81s pnp.ids 81s The following packages will be upgraded: 81s gir1.2-glib-2.0 htop hwdata libglib2.0-0t64 libglib2.0-data 82s 5 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 82s Need to get 2297 kB of archives. 82s After this operation, 11.3 kB of additional disk space will be used. 82s Get:1 http://ftpmaster.internal/ubuntu plucky/main ppc64el gir1.2-glib-2.0 ppc64el 2.84.0-1 [184 kB] 82s Get:2 http://ftpmaster.internal/ubuntu plucky/main ppc64el libglib2.0-0t64 ppc64el 2.84.0-1 [1802 kB] 82s Get:3 http://ftpmaster.internal/ubuntu plucky/main ppc64el libglib2.0-data all 2.84.0-1 [53.0 kB] 82s Get:4 http://ftpmaster.internal/ubuntu plucky/main ppc64el htop ppc64el 3.4.0-2 [227 kB] 82s Get:5 http://ftpmaster.internal/ubuntu plucky/main ppc64el hwdata all 0.393-3 [1562 B] 82s Get:6 http://ftpmaster.internal/ubuntu plucky/main ppc64el pnp.ids all 0.393-3 [29.5 kB] 82s Fetched 2297 kB in 1s (3516 kB/s) 83s (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 ... 107190 files and directories currently installed.) 83s Preparing to unpack .../0-gir1.2-glib-2.0_2.84.0-1_ppc64el.deb ... 83s Unpacking gir1.2-glib-2.0:ppc64el (2.84.0-1) over (2.83.5-1) ... 83s Preparing to unpack .../1-libglib2.0-0t64_2.84.0-1_ppc64el.deb ... 83s Unpacking libglib2.0-0t64:ppc64el (2.84.0-1) over (2.83.5-1) ... 83s Preparing to unpack .../2-libglib2.0-data_2.84.0-1_all.deb ... 83s Unpacking libglib2.0-data (2.84.0-1) over (2.83.5-1) ... 83s Preparing to unpack .../3-htop_3.4.0-2_ppc64el.deb ... 83s Unpacking htop (3.4.0-2) over (3.4.0-1) ... 83s Preparing to unpack .../4-hwdata_0.393-3_all.deb ... 83s Unpacking hwdata (0.393-3) over (0.393-1) ... 83s Selecting previously unselected package pnp.ids. 83s Preparing to unpack .../5-pnp.ids_0.393-3_all.deb ... 83s Unpacking pnp.ids (0.393-3) ... 83s Setting up htop (3.4.0-2) ... 83s Setting up libglib2.0-0t64:ppc64el (2.84.0-1) ... 83s No schema files found: doing nothing. 83s Setting up libglib2.0-data (2.84.0-1) ... 83s Setting up gir1.2-glib-2.0:ppc64el (2.84.0-1) ... 83s Setting up pnp.ids (0.393-3) ... 83s Setting up hwdata (0.393-3) ... 83s Processing triggers for man-db (2.13.0-1) ... 84s Processing triggers for libc-bin (2.41-1ubuntu1) ... 84s Reading package lists... 84s Building dependency tree... 84s Reading state information... 84s Solving dependencies... 84s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 84s autopkgtest [10:57:28]: upgrading testbed (apt dist-upgrade and autopurge) 84s Reading package lists... 85s Building dependency tree... 85s Reading state information... 85s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 85s Starting 2 pkgProblemResolver with broken count: 0 85s Done 85s Entering ResolveByKeep 85s 85s Calculating upgrade... 85s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 86s Reading package lists... 86s Building dependency tree... 86s Reading state information... 86s Starting pkgProblemResolver with broken count: 0 86s Starting 2 pkgProblemResolver with broken count: 0 86s Done 86s Solving dependencies... 86s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 89s autopkgtest [10:57:33]: testbed running kernel: Linux 6.14.0-7-generic #7-Ubuntu SMP Fri Feb 28 12:06:33 UTC 2025 89s autopkgtest [10:57:33]: @@@@@@@@@@@@@@@@@@@@ apt-source ruby-rack-oauth2 91s Get:1 http://ftpmaster.internal/ubuntu plucky/universe ruby-rack-oauth2 1.21.3-1 (dsc) [2252 B] 91s Get:2 http://ftpmaster.internal/ubuntu plucky/universe ruby-rack-oauth2 1.21.3-1 (tar) [32.7 kB] 91s Get:3 http://ftpmaster.internal/ubuntu plucky/universe ruby-rack-oauth2 1.21.3-1 (diff) [3972 B] 91s gpgv: Signature made Sun Dec 4 17:52:30 2022 UTC 91s gpgv: using RSA key D30863E26020E543F4719A838F53E0193B294B75 91s gpgv: Can't check signature: No public key 91s dpkg-source: warning: cannot verify inline signature for ./ruby-rack-oauth2_1.21.3-1.dsc: no acceptable signature found 91s autopkgtest [10:57:35]: testing package ruby-rack-oauth2 version 1.21.3-1 92s autopkgtest [10:57:36]: build not needed 93s autopkgtest [10:57:37]: test gem2deb-test-runner: preparing testbed 93s Reading package lists... 93s Building dependency tree... 93s Reading state information... 93s Starting pkgProblemResolver with broken count: 0 93s Starting 2 pkgProblemResolver with broken count: 0 93s Done 93s The following NEW packages will be installed: 93s gem2deb-test-runner libruby libruby3.3 rake ruby ruby-activesupport 93s ruby-addressable ruby-aes-key-wrap ruby-attr-required ruby-base64 93s ruby-bindata ruby-concurrent ruby-crack ruby-did-you-mean ruby-diff-lcs 93s ruby-domain-name ruby-faraday ruby-faraday-follow-redirects 93s ruby-faraday-net-http ruby-hashdiff ruby-http-cookie ruby-httpclient 93s ruby-i18n ruby-json-jwt ruby-minitest ruby-multi-json ruby-net-telnet 93s ruby-power-assert ruby-public-suffix ruby-rack ruby-rack-oauth2 ruby-rspec 93s ruby-rspec-core ruby-rspec-expectations ruby-rspec-its ruby-rspec-mocks 93s ruby-rspec-support ruby-rubygems ruby-sdbm ruby-test-unit ruby-tzinfo 93s ruby-unf ruby-unf-ext ruby-webmock ruby-webrick ruby-xmlrpc ruby-zeitwerk 93s ruby3.3 rubygems-integration 94s 0 upgraded, 49 newly installed, 0 to remove and 0 not upgraded. 94s Need to get 8667 kB of archives. 94s After this operation, 47.3 MB of additional disk space will be used. 94s Get:1 http://ftpmaster.internal/ubuntu plucky/main ppc64el rubygems-integration all 1.19 [5550 B] 94s Get:2 http://ftpmaster.internal/ubuntu plucky/main ppc64el ruby-did-you-mean all 1.6.3-2 [14.8 kB] 94s Get:3 http://ftpmaster.internal/ubuntu plucky/main ppc64el ruby-minitest all 5.25.4-2ubuntu1 [48.9 kB] 94s Get:4 http://ftpmaster.internal/ubuntu plucky/main ppc64el ruby-net-telnet all 0.2.0-1 [13.3 kB] 94s Get:5 http://ftpmaster.internal/ubuntu plucky/main ppc64el ruby-power-assert all 2.0.3-1 [12.0 kB] 94s Get:6 http://ftpmaster.internal/ubuntu plucky/main ppc64el ruby-test-unit all 3.6.2-1 [67.0 kB] 94s Get:7 http://ftpmaster.internal/ubuntu plucky/main ppc64el ruby-webrick all 1.8.1-1ubuntu1 [52.6 kB] 94s Get:8 http://ftpmaster.internal/ubuntu plucky/main ppc64el ruby-xmlrpc all 0.3.3-2 [24.8 kB] 94s Get:9 http://ftpmaster.internal/ubuntu plucky/main ppc64el libruby ppc64el 1:3.3~ubuntu3 [5036 B] 94s Get:10 http://ftpmaster.internal/ubuntu plucky/main ppc64el ruby-sdbm ppc64el 1.0.0-5build5 [18.2 kB] 94s Get:11 http://ftpmaster.internal/ubuntu plucky/main ppc64el libruby3.3 ppc64el 3.3.6-1.1ubuntu1 [6290 kB] 94s Get:12 http://ftpmaster.internal/ubuntu plucky/main ppc64el ruby3.3 ppc64el 3.3.6-1.1ubuntu1 [49.0 kB] 94s Get:13 http://ftpmaster.internal/ubuntu plucky/main ppc64el ruby-rubygems all 3.6.3-1 [332 kB] 94s Get:14 http://ftpmaster.internal/ubuntu plucky/main ppc64el ruby ppc64el 1:3.3~ubuntu3 [3622 B] 94s Get:15 http://ftpmaster.internal/ubuntu plucky/main ppc64el rake all 13.2.1-1 [45.8 kB] 94s Get:16 http://ftpmaster.internal/ubuntu plucky/universe ppc64el gem2deb-test-runner ppc64el 2.2.5 [18.3 kB] 94s Get:17 http://ftpmaster.internal/ubuntu plucky/universe ppc64el ruby-concurrent all 1.3.4-1 [283 kB] 94s Get:18 http://ftpmaster.internal/ubuntu plucky/universe ppc64el ruby-i18n all 1.14.5-1 [42.5 kB] 94s Get:19 http://ftpmaster.internal/ubuntu plucky/universe ppc64el ruby-tzinfo all 2.0.6-1 [55.2 kB] 94s Get:20 http://ftpmaster.internal/ubuntu plucky/universe ppc64el ruby-zeitwerk all 2.6.8-1 [36.0 kB] 94s Get:21 http://ftpmaster.internal/ubuntu plucky/universe ppc64el ruby-activesupport all 2:6.1.7.3+dfsg-7 [198 kB] 94s Get:22 http://ftpmaster.internal/ubuntu plucky/universe ppc64el ruby-public-suffix all 4.0.6+ds-2 [14.1 kB] 94s Get:23 http://ftpmaster.internal/ubuntu plucky/universe ppc64el ruby-addressable all 2.8.5-1 [55.3 kB] 94s Get:24 http://ftpmaster.internal/ubuntu plucky/universe ppc64el ruby-aes-key-wrap all 1.1.0-1 [5228 B] 94s Get:25 http://ftpmaster.internal/ubuntu plucky/universe ppc64el ruby-attr-required all 1.0.0-2.1 [4620 B] 94s Get:26 http://ftpmaster.internal/ubuntu plucky/main ppc64el ruby-base64 all 0.2.0-2 [7168 B] 94s Get:27 http://ftpmaster.internal/ubuntu plucky/universe ppc64el ruby-bindata all 2.4.14-1 [41.4 kB] 94s Get:28 http://ftpmaster.internal/ubuntu plucky/universe ppc64el ruby-crack all 0.4.4-4 [8764 B] 94s Get:29 http://ftpmaster.internal/ubuntu plucky/universe ppc64el ruby-diff-lcs all 1.5.1-1 [22.8 kB] 94s Get:30 http://ftpmaster.internal/ubuntu plucky/universe ppc64el ruby-unf-ext ppc64el 0.0.7.7-1build7 [143 kB] 94s Get:31 http://ftpmaster.internal/ubuntu plucky/universe ppc64el ruby-unf all 0.1.4-2.1 [4744 B] 94s Get:32 http://ftpmaster.internal/ubuntu plucky/universe ppc64el ruby-domain-name all 0.6.20240107-1 [48.1 kB] 94s Get:33 http://ftpmaster.internal/ubuntu plucky/universe ppc64el ruby-faraday-net-http all 3.0.2-2 [5716 B] 94s Get:34 http://ftpmaster.internal/ubuntu plucky/universe ppc64el ruby-faraday all 2.10.0-2 [37.0 kB] 94s Get:35 http://ftpmaster.internal/ubuntu plucky/universe ppc64el ruby-faraday-follow-redirects all 0.3.0-2 [6604 B] 94s Get:36 http://ftpmaster.internal/ubuntu plucky/universe ppc64el ruby-hashdiff all 1.1.0-1 [12.9 kB] 94s Get:37 http://ftpmaster.internal/ubuntu plucky/universe ppc64el ruby-http-cookie all 1.0.5-1 [23.7 kB] 94s Get:38 http://ftpmaster.internal/ubuntu plucky/universe ppc64el ruby-httpclient all 2.8.3+git20211122.4658227-1 [62.7 kB] 94s Get:39 http://ftpmaster.internal/ubuntu plucky/universe ppc64el ruby-json-jwt all 1.16.7-1 [11.7 kB] 94s Get:40 http://ftpmaster.internal/ubuntu plucky/universe ppc64el ruby-multi-json all 1.14.1-2 [15.7 kB] 94s Get:41 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el ruby-rack all 3.1.9-2 [79.3 kB] 94s Get:42 http://ftpmaster.internal/ubuntu plucky/universe ppc64el ruby-rack-oauth2 all 1.21.3-1 [18.5 kB] 94s Get:43 http://ftpmaster.internal/ubuntu plucky/universe ppc64el ruby-rspec-support all 3.13.0c0e0m0s1-2 [29.2 kB] 94s Get:44 http://ftpmaster.internal/ubuntu plucky/universe ppc64el ruby-rspec-core all 3.13.0c0e0m0s1-2 [164 kB] 94s Get:45 http://ftpmaster.internal/ubuntu plucky/universe ppc64el ruby-rspec-expectations all 3.13.0c0e0m0s1-2 [89.8 kB] 95s Get:46 http://ftpmaster.internal/ubuntu plucky/universe ppc64el ruby-rspec-mocks all 3.13.0c0e0m0s1-2 [81.0 kB] 95s Get:47 http://ftpmaster.internal/ubuntu plucky/universe ppc64el ruby-rspec all 3.13.0c0e0m0s1-2 [3500 B] 95s Get:48 http://ftpmaster.internal/ubuntu plucky/universe ppc64el ruby-rspec-its all 1.3.0-1 [6212 B] 95s Get:49 http://ftpmaster.internal/ubuntu plucky/universe ppc64el ruby-webmock all 3.25.1-1 [48.0 kB] 95s Fetched 8667 kB in 1s (7195 kB/s) 95s Selecting previously unselected package rubygems-integration. 95s (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 ... 107193 files and directories currently installed.) 95s Preparing to unpack .../00-rubygems-integration_1.19_all.deb ... 95s Unpacking rubygems-integration (1.19) ... 95s Selecting previously unselected package ruby-did-you-mean. 95s Preparing to unpack .../01-ruby-did-you-mean_1.6.3-2_all.deb ... 95s Unpacking ruby-did-you-mean (1.6.3-2) ... 95s Selecting previously unselected package ruby-minitest. 95s Preparing to unpack .../02-ruby-minitest_5.25.4-2ubuntu1_all.deb ... 95s Unpacking ruby-minitest (5.25.4-2ubuntu1) ... 95s Selecting previously unselected package ruby-net-telnet. 95s Preparing to unpack .../03-ruby-net-telnet_0.2.0-1_all.deb ... 95s Unpacking ruby-net-telnet (0.2.0-1) ... 95s Selecting previously unselected package ruby-power-assert. 95s Preparing to unpack .../04-ruby-power-assert_2.0.3-1_all.deb ... 95s Unpacking ruby-power-assert (2.0.3-1) ... 95s Selecting previously unselected package ruby-test-unit. 95s Preparing to unpack .../05-ruby-test-unit_3.6.2-1_all.deb ... 95s Unpacking ruby-test-unit (3.6.2-1) ... 95s Selecting previously unselected package ruby-webrick. 95s Preparing to unpack .../06-ruby-webrick_1.8.1-1ubuntu1_all.deb ... 95s Unpacking ruby-webrick (1.8.1-1ubuntu1) ... 95s Selecting previously unselected package ruby-xmlrpc. 95s Preparing to unpack .../07-ruby-xmlrpc_0.3.3-2_all.deb ... 95s Unpacking ruby-xmlrpc (0.3.3-2) ... 95s Selecting previously unselected package libruby:ppc64el. 95s Preparing to unpack .../08-libruby_1%3a3.3~ubuntu3_ppc64el.deb ... 95s Unpacking libruby:ppc64el (1:3.3~ubuntu3) ... 95s Selecting previously unselected package ruby-sdbm:ppc64el. 95s Preparing to unpack .../09-ruby-sdbm_1.0.0-5build5_ppc64el.deb ... 95s Unpacking ruby-sdbm:ppc64el (1.0.0-5build5) ... 95s Selecting previously unselected package libruby3.3:ppc64el. 95s Preparing to unpack .../10-libruby3.3_3.3.6-1.1ubuntu1_ppc64el.deb ... 95s Unpacking libruby3.3:ppc64el (3.3.6-1.1ubuntu1) ... 95s Selecting previously unselected package ruby3.3. 95s Preparing to unpack .../11-ruby3.3_3.3.6-1.1ubuntu1_ppc64el.deb ... 95s Unpacking ruby3.3 (3.3.6-1.1ubuntu1) ... 95s Selecting previously unselected package ruby-rubygems. 95s Preparing to unpack .../12-ruby-rubygems_3.6.3-1_all.deb ... 95s Unpacking ruby-rubygems (3.6.3-1) ... 96s Selecting previously unselected package ruby. 96s Preparing to unpack .../13-ruby_1%3a3.3~ubuntu3_ppc64el.deb ... 96s Unpacking ruby (1:3.3~ubuntu3) ... 96s Selecting previously unselected package rake. 96s Preparing to unpack .../14-rake_13.2.1-1_all.deb ... 96s Unpacking rake (13.2.1-1) ... 96s Selecting previously unselected package gem2deb-test-runner. 96s Preparing to unpack .../15-gem2deb-test-runner_2.2.5_ppc64el.deb ... 96s Unpacking gem2deb-test-runner (2.2.5) ... 96s Selecting previously unselected package ruby-concurrent. 96s Preparing to unpack .../16-ruby-concurrent_1.3.4-1_all.deb ... 96s Unpacking ruby-concurrent (1.3.4-1) ... 96s Selecting previously unselected package ruby-i18n. 96s Preparing to unpack .../17-ruby-i18n_1.14.5-1_all.deb ... 96s Unpacking ruby-i18n (1.14.5-1) ... 96s Selecting previously unselected package ruby-tzinfo. 96s Preparing to unpack .../18-ruby-tzinfo_2.0.6-1_all.deb ... 96s Unpacking ruby-tzinfo (2.0.6-1) ... 96s Selecting previously unselected package ruby-zeitwerk. 96s Preparing to unpack .../19-ruby-zeitwerk_2.6.8-1_all.deb ... 96s Unpacking ruby-zeitwerk (2.6.8-1) ... 96s Selecting previously unselected package ruby-activesupport. 96s Preparing to unpack .../20-ruby-activesupport_2%3a6.1.7.3+dfsg-7_all.deb ... 96s Unpacking ruby-activesupport (2:6.1.7.3+dfsg-7) ... 96s Selecting previously unselected package ruby-public-suffix. 96s Preparing to unpack .../21-ruby-public-suffix_4.0.6+ds-2_all.deb ... 96s Unpacking ruby-public-suffix (4.0.6+ds-2) ... 96s Selecting previously unselected package ruby-addressable. 96s Preparing to unpack .../22-ruby-addressable_2.8.5-1_all.deb ... 96s Unpacking ruby-addressable (2.8.5-1) ... 96s Selecting previously unselected package ruby-aes-key-wrap. 96s Preparing to unpack .../23-ruby-aes-key-wrap_1.1.0-1_all.deb ... 96s Unpacking ruby-aes-key-wrap (1.1.0-1) ... 96s Selecting previously unselected package ruby-attr-required. 96s Preparing to unpack .../24-ruby-attr-required_1.0.0-2.1_all.deb ... 96s Unpacking ruby-attr-required (1.0.0-2.1) ... 96s Selecting previously unselected package ruby-base64. 96s Preparing to unpack .../25-ruby-base64_0.2.0-2_all.deb ... 96s Unpacking ruby-base64 (0.2.0-2) ... 96s Selecting previously unselected package ruby-bindata. 96s Preparing to unpack .../26-ruby-bindata_2.4.14-1_all.deb ... 96s Unpacking ruby-bindata (2.4.14-1) ... 96s Selecting previously unselected package ruby-crack. 96s Preparing to unpack .../27-ruby-crack_0.4.4-4_all.deb ... 96s Unpacking ruby-crack (0.4.4-4) ... 96s Selecting previously unselected package ruby-diff-lcs. 96s Preparing to unpack .../28-ruby-diff-lcs_1.5.1-1_all.deb ... 96s Unpacking ruby-diff-lcs (1.5.1-1) ... 96s Selecting previously unselected package ruby-unf-ext. 96s Preparing to unpack .../29-ruby-unf-ext_0.0.7.7-1build7_ppc64el.deb ... 96s Unpacking ruby-unf-ext (0.0.7.7-1build7) ... 96s Selecting previously unselected package ruby-unf. 96s Preparing to unpack .../30-ruby-unf_0.1.4-2.1_all.deb ... 96s Unpacking ruby-unf (0.1.4-2.1) ... 96s Selecting previously unselected package ruby-domain-name. 96s Preparing to unpack .../31-ruby-domain-name_0.6.20240107-1_all.deb ... 96s Unpacking ruby-domain-name (0.6.20240107-1) ... 96s Selecting previously unselected package ruby-faraday-net-http. 96s Preparing to unpack .../32-ruby-faraday-net-http_3.0.2-2_all.deb ... 96s Unpacking ruby-faraday-net-http (3.0.2-2) ... 96s Selecting previously unselected package ruby-faraday. 96s Preparing to unpack .../33-ruby-faraday_2.10.0-2_all.deb ... 96s Unpacking ruby-faraday (2.10.0-2) ... 96s Selecting previously unselected package ruby-faraday-follow-redirects. 96s Preparing to unpack .../34-ruby-faraday-follow-redirects_0.3.0-2_all.deb ... 96s Unpacking ruby-faraday-follow-redirects (0.3.0-2) ... 96s Selecting previously unselected package ruby-hashdiff. 96s Preparing to unpack .../35-ruby-hashdiff_1.1.0-1_all.deb ... 96s Unpacking ruby-hashdiff (1.1.0-1) ... 96s Selecting previously unselected package ruby-http-cookie. 96s Preparing to unpack .../36-ruby-http-cookie_1.0.5-1_all.deb ... 96s Unpacking ruby-http-cookie (1.0.5-1) ... 96s Selecting previously unselected package ruby-httpclient. 96s Preparing to unpack .../37-ruby-httpclient_2.8.3+git20211122.4658227-1_all.deb ... 96s Unpacking ruby-httpclient (2.8.3+git20211122.4658227-1) ... 96s Selecting previously unselected package ruby-json-jwt. 96s Preparing to unpack .../38-ruby-json-jwt_1.16.7-1_all.deb ... 96s Unpacking ruby-json-jwt (1.16.7-1) ... 96s Selecting previously unselected package ruby-multi-json. 96s Preparing to unpack .../39-ruby-multi-json_1.14.1-2_all.deb ... 96s Unpacking ruby-multi-json (1.14.1-2) ... 96s Selecting previously unselected package ruby-rack. 96s Preparing to unpack .../40-ruby-rack_3.1.9-2_all.deb ... 96s Unpacking ruby-rack (3.1.9-2) ... 96s Selecting previously unselected package ruby-rack-oauth2. 96s Preparing to unpack .../41-ruby-rack-oauth2_1.21.3-1_all.deb ... 96s Unpacking ruby-rack-oauth2 (1.21.3-1) ... 96s Selecting previously unselected package ruby-rspec-support. 96s Preparing to unpack .../42-ruby-rspec-support_3.13.0c0e0m0s1-2_all.deb ... 96s Unpacking ruby-rspec-support (3.13.0c0e0m0s1-2) ... 96s Selecting previously unselected package ruby-rspec-core. 96s Preparing to unpack .../43-ruby-rspec-core_3.13.0c0e0m0s1-2_all.deb ... 96s Unpacking ruby-rspec-core (3.13.0c0e0m0s1-2) ... 96s Selecting previously unselected package ruby-rspec-expectations. 96s Preparing to unpack .../44-ruby-rspec-expectations_3.13.0c0e0m0s1-2_all.deb ... 96s Unpacking ruby-rspec-expectations (3.13.0c0e0m0s1-2) ... 96s Selecting previously unselected package ruby-rspec-mocks. 96s Preparing to unpack .../45-ruby-rspec-mocks_3.13.0c0e0m0s1-2_all.deb ... 96s Unpacking ruby-rspec-mocks (3.13.0c0e0m0s1-2) ... 96s Selecting previously unselected package ruby-rspec. 96s Preparing to unpack .../46-ruby-rspec_3.13.0c0e0m0s1-2_all.deb ... 96s Unpacking ruby-rspec (3.13.0c0e0m0s1-2) ... 96s Selecting previously unselected package ruby-rspec-its. 96s Preparing to unpack .../47-ruby-rspec-its_1.3.0-1_all.deb ... 96s Unpacking ruby-rspec-its (1.3.0-1) ... 96s Selecting previously unselected package ruby-webmock. 96s Preparing to unpack .../48-ruby-webmock_3.25.1-1_all.deb ... 96s Unpacking ruby-webmock (3.25.1-1) ... 96s Setting up ruby-power-assert (2.0.3-1) ... 96s Setting up ruby-hashdiff (1.1.0-1) ... 96s Setting up ruby-public-suffix (4.0.6+ds-2) ... 96s Setting up ruby-bindata (2.4.14-1) ... 96s Setting up rubygems-integration (1.19) ... 96s Setting up ruby-concurrent (1.3.4-1) ... 96s Setting up ruby-minitest (5.25.4-2ubuntu1) ... 96s Setting up ruby-test-unit (3.6.2-1) ... 96s Setting up ruby-net-telnet (0.2.0-1) ... 96s Setting up ruby-base64 (0.2.0-2) ... 96s Setting up ruby-i18n (1.14.5-1) ... 96s Setting up ruby-aes-key-wrap (1.1.0-1) ... 96s Setting up ruby-rspec-support (3.13.0c0e0m0s1-2) ... 96s Setting up ruby-webrick (1.8.1-1ubuntu1) ... 96s Setting up ruby-faraday-net-http (3.0.2-2) ... 96s Setting up ruby-did-you-mean (1.6.3-2) ... 96s Setting up ruby-xmlrpc (0.3.3-2) ... 96s Setting up ruby-zeitwerk (2.6.8-1) ... 96s Setting up ruby-addressable (2.8.5-1) ... 96s Setting up ruby-tzinfo (2.0.6-1) ... 96s Setting up rake (13.2.1-1) ... 96s Setting up ruby3.3 (3.3.6-1.1ubuntu1) ... 96s Setting up libruby:ppc64el (1:3.3~ubuntu3) ... 96s Setting up ruby-rubygems (3.6.3-1) ... 96s Setting up ruby (1:3.3~ubuntu3) ... 96s Setting up ruby-rspec-core (3.13.0c0e0m0s1-2) ... 96s Setting up ruby-attr-required (1.0.0-2.1) ... 96s Setting up ruby-sdbm:ppc64el (1.0.0-5build5) ... 96s Setting up ruby-diff-lcs (1.5.1-1) ... 96s Setting up ruby-multi-json (1.14.1-2) ... 96s Setting up ruby-rack (3.1.9-2) ... 96s Setting up libruby3.3:ppc64el (3.3.6-1.1ubuntu1) ... 96s Setting up ruby-unf-ext (0.0.7.7-1build7) ... 96s Setting up ruby-activesupport (2:6.1.7.3+dfsg-7) ... 96s Setting up ruby-faraday (2.10.0-2) ... 96s Setting up ruby-crack (0.4.4-4) ... 96s Setting up gem2deb-test-runner (2.2.5) ... 96s Setting up ruby-faraday-follow-redirects (0.3.0-2) ... 96s Setting up ruby-rspec-expectations (3.13.0c0e0m0s1-2) ... 96s Setting up ruby-unf (0.1.4-2.1) ... 96s Setting up ruby-rspec-mocks (3.13.0c0e0m0s1-2) ... 96s Setting up ruby-rspec-its (1.3.0-1) ... 96s Setting up ruby-webmock (3.25.1-1) ... 96s Setting up ruby-rspec (3.13.0c0e0m0s1-2) ... 96s Setting up ruby-json-jwt (1.16.7-1) ... 96s Setting up ruby-domain-name (0.6.20240107-1) ... 96s Setting up ruby-http-cookie (1.0.5-1) ... 96s Setting up ruby-httpclient (2.8.3+git20211122.4658227-1) ... 96s Setting up ruby-rack-oauth2 (1.21.3-1) ... 96s Processing triggers for libc-bin (2.41-1ubuntu1) ... 96s Processing triggers for man-db (2.13.0-1) ... 98s autopkgtest [10:57:42]: test gem2deb-test-runner: gem2deb-test-runner --autopkgtest --check-dependencies 2>&1 98s autopkgtest [10:57:42]: test gem2deb-test-runner: [----------------------- 98s 98s ┌──────────────────────────────────────────────────────────────────────────────┐ 98s │ Checking Rubygems dependency resolution on ruby3.3 │ 98s └──────────────────────────────────────────────────────────────────────────────┘ 98s 98s RUBYLIB=. GEM_PATH= ruby3.3 -e gem\ \"rack-oauth2\" 98s mv lib ./.gem2deb.lib 98s mv ./.gem2deb.lib lib 98s 98s ┌──────────────────────────────────────────────────────────────────────────────┐ 98s │ Run tests for ruby3.3 from debian/ruby-tests.rake │ 98s └──────────────────────────────────────────────────────────────────────────────┘ 98s 98s RUBYLIB=. GEM_PATH= ruby3.3 -S rake --rakelibdir /gem2deb-nonexistent -f debian/ruby-tests.rake 98s mv lib ./.gem2deb.lib 98s /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 99s 99s Rack::OAuth2::AccessToken::Authenticator 99s when Legacy token is given 99s behaves like authenticator 99s should let the token authenticate the request 99s when Bearer token is given 99s behaves like authenticator 99s should let the token authenticate the request 99s when MAC token is given 99s behaves like authenticator 99s should let the token authenticate the request 99s 99s Rack::OAuth2::AccessToken::Bearer 99s .authenticate 99s should set Authorization header 99s 99s Rack::OAuth2::AccessToken::Legacy 99s #to_s 99s to_s 99s is expected to == "access_token" 99s .authenticate 99s should set Authorization header 99s 99s Rack::OAuth2::AccessToken::MAC::Sha256HexVerifier 99s when example from webtopay wallet API 99s calculate 99s is expected to == "21fb73c40b589622d0c78e9cd8900f89d9472aa724d0e5c3eca9ac1cd9d2a6d5" 99s when raw_body is empty 99s calculate 99s is expected to be nil 99s 99s Rack::OAuth2::AccessToken::MAC::Signature 99s when ext is not given 99s calculate 99s is expected to == "OZE9fTk2qiRtL1jb01L8lRxC66PTiAGhMDEmboeVeLs=" 99s when ext is not given 99s calculate 99s is expected to == "6T3zZzy2Emppni6bzL7kdRxUWL4=" 99s otherwise 99s calculate 99s is expected to == "+txL5oOFHGYjrfdNYH5VEzROaBY=" 99s 99s Rack::OAuth2::AccessToken::MAC::Verifier 99s when "hmac-sha-1" is specified 99s hash_generator 99s is expected to be an instance of OpenSSL::Digest::SHA1 99s when "hmac-sha-256" is specified 99s hash_generator 99s is expected to be an instance of OpenSSL::Digest::SHA256 99s otherwise 99s is expected to raise StandardError with "Unsupported Algorithm" 99s 99s Rack::OAuth2::AccessToken::MAC 99s mac_key 99s is expected to == "secret" 99s mac_algorithm 99s is expected to == "hmac-sha-256" 99s token_response 99s 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} 99s generate_nonce 99s is expected to be a kind of String 99s verify! 99s when no ext_verifier is given 99s when signature is valid 99s example at ./spec/rack/oauth2/access_token/mac_spec.rb:54 (FAILED - 1) 99s otherwise 99s is expected to raise Rack::OAuth2::Server::Resource::MAC::Unauthorized with "invalid_token :: Signature Invalid" (FAILED - 2) 99s when ext_verifier is given 99s when ext is invalid 99s is expected to raise Rack::OAuth2::Server::Resource::MAC::Unauthorized with "invalid_token :: Sha256HexVerifier Invalid" (FAILED - 3) 99s when ext is valid 99s when signature is valid 99s example at ./spec/rack/oauth2/access_token/mac_spec.rb:99 (FAILED - 4) 99s otherwise 99s is expected to raise Rack::OAuth2::Server::Resource::MAC::Unauthorized with "invalid_token :: Signature Invalid" (FAILED - 5) 99s .authenticate 99s when no ext_verifier is given 99s should set Authorization header 99s when ext_verifier is given 99s should set Authorization header with ext_verifier 99s 99s Rack::OAuth2::AccessToken 99s access_token 99s is expected to == "access_token" 99s refresh_token 99s is expected to == "refresh_token" 99s expires_in 99s is expected to == 3600 99s scope 99s is expected to == [:scope1, :scope2] 99s token_response 99s is expected to == {:access_token=>"access_token", :expires_in=>3600, :refresh_token=>"refresh_token", :scope=>"scope1 scope2", :token_type=>:bearer} 99s when access_token is missing 99s is expected to raise AttrRequired::AttrMissing 99s otherwise 99s is expected not to raise Exception 99s get 99s should delegate to HTTPClient with Authenticator filter 99s in debug mode 99s is expected to be a kind of Rack::OAuth2::Debugger::RequestFilter 99s when extension params given 99s raw_attributes 99s is expected to include :ex_key 99s delete 99s should delegate to HTTPClient with Authenticator filter 99s in debug mode 99s is expected to be a kind of Rack::OAuth2::Debugger::RequestFilter 99s when extension params given 99s raw_attributes 99s is expected to include :ex_key 99s post 99s should delegate to HTTPClient with Authenticator filter 99s in debug mode 99s is expected to be a kind of Rack::OAuth2::Debugger::RequestFilter 99s when extension params given 99s raw_attributes 99s is expected to include :ex_key 99s put 99s should delegate to HTTPClient with Authenticator filter 99s in debug mode 99s is expected to be a kind of Rack::OAuth2::Debugger::RequestFilter 99s when extension params given 99s raw_attributes 99s is expected to include :ex_key 99s 99s Rack::OAuth2::Client::Error 99s status 99s is expected to == 400 99s message 99s is expected to == "invalid_request :: Include invalid parameters" 99s response 99s is expected to == {:error=>:invalid_request, :error_description=>"Include invalid parameters", :error_uri=>"http://server.example.com/error/invalid_request"} 99s 99s Rack::OAuth2::Client::Grant::AuthorizationCode 99s when code is given 99s when redirect_uri is given 99s redirect_uri 99s is expected to == "https://client.example.com/callback" 99s as_json 99s is expected to == {:code=>"code", :grant_type=>:authorization_code, :redirect_uri=>"https://client.example.com/callback"} 99s otherwise 99s redirect_uri 99s is expected to be nil 99s as_json 99s is expected to == {:code=>"code", :grant_type=>:authorization_code, :redirect_uri=>nil} 99s otherwise 99s is expected to raise AttrRequired::AttrMissing 99s 99s Rack::OAuth2::Client::Grant::ClientCredentials 100s as_json 100s is expected to == {:grant_type=>:client_credentials} 100s 100s Rack::OAuth2::Client::Grant::JWTBearer 100s when JWT assertion is given 100s as_json 100s is expected to == {:assertion=>"header.payload.signature", :grant_type=>"urn:ietf:params:oauth:grant-type:jwt-bearer"} 100s otherwise 100s is expected to raise AttrRequired::AttrMissing 100s 100s Rack::OAuth2::Client::Grant::Password 100s when username is given 100s when password is given 100s as_json 100s is expected to == {:grant_type=>:password, :password=>"password", :username=>"username"} 100s otherwise 100s is expected to raise AttrRequired::AttrMissing 100s otherwise 100s is expected to raise AttrRequired::AttrMissing 100s 100s Rack::OAuth2::Client::Grant::RefreshToken 100s when refresh_token is given 100s as_json 100s is expected to == {:grant_type=>:refresh_token, :refresh_token=>"refresh_token"} 100s otherwise 100s is expected to raise AttrRequired::AttrMissing 100s 100s Rack::OAuth2::Client::Grant::SAML2Bearer 100s when JWT assertion is given 100s as_json 100s is expected to == {:assertion=>"...", :grant_type=>"urn:ietf:params:oauth:grant-type:saml2-bearer"} 100s otherwise 100s is expected to raise AttrRequired::AttrMissing 100s 100s Rack::OAuth2::Client 100s identifier 100s is expected to == "client_id" 100s secret 100s is expected to == "client_secret" 100s authorization_endpoint 100s is expected to == "/oauth2/authorize" 100s token_endpoint 100s is expected to == "/oauth2/token" 100s revocation_endpoint 100s is expected to == "/oauth2/revoke" 100s when identifier is missing 100s is expected to raise AttrRequired::AttrMissing 100s #authorization_uri 100s is expected to include "https://server.example.com/oauth2/authorize" 100s is expected to include "client_id=client_id" 100s is expected to include "redirect_uri=https%3A%2F%2Fclient.example.com%2Fcallback" 100s is expected to include "response_type=code" 100s when endpoints are absolute URIs 100s is expected to include "https://server2.example.com/oauth/authorize" 100s when scheme is specified 100s is expected to include "http://server.example.com/oauth2/authorize" 100s when response_type is token 100s is expected to include "response_type=token" 100s when response_type is an Array 100s is expected to include "response_type=token%20code" 100s when scope is given 100s is expected to include "scope=scope1%20scope2" 100s #authorization_code= 100s is expected to be an instance of Rack::OAuth2::Client::Grant::AuthorizationCode 100s #resource_owner_credentials= 100s is expected to be an instance of Rack::OAuth2::Client::Grant::Password 100s #refresh_token= 100s is expected to be an instance of Rack::OAuth2::Client::Grant::RefreshToken 100s #access_token! 100s *args handling 100s client authentication method 100s should be Basic auth as default 100s when Basic auth method is used 100s when client_id is a url 100s should be encoded in "application/x-www-form-urlencoded" 100s when basic_without_www_form_urlencode method is used 100s when client_id is a url 100s should be encoded in "application/x-www-form-urlencoded" 100s when jwt_bearer auth method specified 100s when client_secret is given 100s should be JWT bearer client assertion w/ auto-generated HS256-signed JWT assertion 100s when private_key is given 100s when RSA key 100s should be JWT bearer client assertion w/ auto-generated RS256-signed JWT assertion 100s when EC key 100s should be JWT bearer client assertion w/ auto-generated ES256-signed JWT assertion 100s when client_assertion is explicitly given 100s should be JWT bearer client assertion w/ specified assertion 100s when other auth method specified 100s should be body params 100s when auth method is specified as Hash 100s should be removed before sending request 100s scopes 100s when scope option given 100s should specify given scope 100s unknown params 100s should be included in body params 100s when bearer token is given 100s is expected to be an instance of Rack::OAuth2::AccessToken::Bearer 100s token_type 100s is expected to == :bearer 100s access_token 100s is expected to == "access_token" 100s refresh_token 100s is expected to == "refresh_token" 100s expires_in 100s is expected to == 3600 100s when token type is "Bearer", not "bearer" 100s is expected to be an instance of Rack::OAuth2::AccessToken::Bearer 100s token_type 100s is expected to == :bearer 100s when mac token is given 100s is expected to be an instance of Rack::OAuth2::AccessToken::MAC 100s token_type 100s is expected to == :mac 100s access_token 100s is expected to == "access_token" 100s refresh_token 100s is expected to == "refresh_token" 100s expires_in 100s is expected to == 3600 100s when no-type token is given (JSON) 100s is expected to be an instance of Rack::OAuth2::AccessToken::Legacy 100s token_type 100s is expected to == :legacy 100s access_token 100s is expected to == "access_token" 100s refresh_token 100s is expected to == "refresh_token" 100s expires_in 100s is expected to == 3600 100s when token_type is forced 100s is expected to be an instance of Rack::OAuth2::AccessToken::Bearer 100s token_type 100s is expected to == :bearer 100s when no-type token is given (key-value) 100s is expected to be an instance of Rack::OAuth2::AccessToken::Legacy 100s token_type 100s is expected to == :legacy 100s access_token 100s is expected to == "access_token" 100s expires_in 100s is expected to == 3600 100s when expires_in is not given 100s expires_in 100s is expected to be nil 100s when unknown-type token is given 100s is expected to raise StandardError with "Unknown Token Type" 100s when error response is given 100s is expected to raise Rack::OAuth2::Client::Error 100s when no body given 100s when error given 100s is expected to raise Rack::OAuth2::Client::Error 100s #revoke! 100s when access_token given 100s is expected to == :success 100s when refresh_token given 100s as argument 100s is expected to == :success 100s as grant 100s example at ./spec/rack/oauth2/client_spec.rb:491 100s when error response given 100s is expected to raise Rack::OAuth2::Client::Error 100s when no token given 100s is expected to raise ArgumentError 100s when no host info 100s #authorization_uri 100s is expected to raise Exception with "No Host Info" 100s #access_token! 100s is expected to raise Exception with "No Host Info" 100s #revoke! 100s is expected to raise Exception with "No Host Info" 100s 100s Rack::OAuth2::Debugger::RequestFilter 100s #filter_request 100s should log request 100s #filter_response 100s should log response 100s 100s Rack::OAuth2 100s logger 100s is expected to be a kind of Logger 100s debugging? 100s is expected to == false 100s .debug! 100s debugging? 100s is expected to == true 100s .debug 100s should enable debugging within given block 100s should not force disable debugging 100s .http_config 100s when request_filter added 100s when "debug!" is called 100s should put Debugger::RequestFilter at last 100s should reset_http_config 100s .http_client 100s when local_http_config is used 100s should correctly set request_filter 100s 100s Rack::OAuth2::Server::Abstract::Error 100s when full attributes are given 100s status 100s is expected to == 400 100s error 100s is expected to == :invalid_request 100s description 100s is expected to == "Missing some required params" 100s uri 100s is expected to == "http://server.example.com/error" 100s protocol_params 100s is expected to == {:error=>:invalid_request, :error_description=>"Missing some required params", :error_uri=>"http://server.example.com/error"} 100s when optional attributes are not given 100s status 100s is expected to == 400 100s error 100s is expected to == :invalid_request 100s description 100s is expected to be nil 100s uri 100s is expected to be nil 100s protocol_params 100s is expected to == {:error=>:invalid_request, :error_description=>nil, :error_uri=>nil} 100s 100s Rack::OAuth2::Server::Abstract::BadRequest 100s status 100s is expected to == 400 100s 100s Rack::OAuth2::Server::Abstract::Unauthorized 100s status 100s is expected to == 401 100s 100s Rack::OAuth2::Server::Abstract::Forbidden 100s status 100s is expected to == 403 100s 100s Rack::OAuth2::Server::Abstract::ServerError 100s status 100s is expected to == 500 100s 100s Rack::OAuth2::Server::Abstract::TemporarilyUnavailable 100s status 100s is expected to == 503 100s 100s Rack::OAuth2::Server::Authorize::Code 100s when approved 100s status 100s is expected to == 302 100s location 100s is expected to == "http://client.example.com/callback?code=authorization_code&state=state" 100s when redirect_uri already includes query 100s location 100s is expected to == "http://client.example.com/callback?k=v&code=authorization_code&state=state" 100s when redirect_uri is missing 100s is expected to raise AttrRequired::AttrMissing 100s when code is missing 100s is expected to raise AttrRequired::AttrMissing 100s when denied 100s should redirect with error in query 100s 100s Rack::OAuth2::Server::Authorize::BadRequest 100s is expected to be a kind of Rack::OAuth2::Server::Abstract::BadRequest 100s protocol_params 100s is expected to == {:error=>:invalid_request, :error_description=>nil, :error_uri=>nil, :state=>nil} 100s #finish 100s when redirect_uri is given 100s when protocol_params_location = :query 100s should redirect with error in query 100s when protocol_params_location = :fragment 100s should redirect with error in fragment 100s otherwise 100s should redirect without error 100s otherwise 100s should raise itself 100s 100s Rack::OAuth2::Server::Authorize::ErrorMethods 100s bad_request! 100s is expected to raise Rack::OAuth2::Server::Authorize::BadRequest 100s when response_type = :code 100s should set protocol_params_location = :query 100s when response_type = :token 100s should set protocol_params_location = :fragment 100s invalid_request! 100s should raise Rack::OAuth2::Server::Authorize::BadRequest with error = :invalid_request 100s unauthorized_client! 100s should raise Rack::OAuth2::Server::Authorize::BadRequest with error = :unauthorized_client 100s access_denied! 100s should raise Rack::OAuth2::Server::Authorize::BadRequest with error = :access_denied 100s unsupported_response_type! 100s should raise Rack::OAuth2::Server::Authorize::BadRequest with error = :unsupported_response_type 100s invalid_scope! 100s should raise Rack::OAuth2::Server::Authorize::BadRequest with error = :invalid_scope 100s server_error! 100s should raise Rack::OAuth2::Server::Authorize::ServerError with error = :server_error 100s temporarily_unavailable! 100s should raise Rack::OAuth2::Server::Authorize::TemporarilyUnavailable with error = :temporarily_unavailable 100s 100s Rack::OAuth2::Server::Authorize::Extension::CodeAndToken 100s when approved 100s status 100s is expected to == 302 100s location 100s is expected to include "http://client.example.com/callback#" 100s location 100s is expected to include "code=authorization_code" 100s location 100s is expected to include "access_token=access_token" 100s location 100s is expected to include "token_type=bearer" 100s when refresh_token is given 100s location 100s is expected to include "http://client.example.com/callback#" 100s location 100s is expected to include "code=authorization_code" 100s location 100s is expected to include "access_token=access_token" 100s location 100s is expected to include "token_type=bearer" 100s when denied 100s should redirect with error in fragment 100s 100s Rack::OAuth2::Server::Authorize::Token 100s when approved 100s status 100s is expected to == 302 100s location 100s is expected to == "http://client.example.com/callback#access_token=access_token&state=state&token_type=bearer" 100s when refresh_token is given 100s location 100s is expected to == "http://client.example.com/callback#access_token=access_token&state=state&token_type=bearer" 100s when redirect_uri is missing 100s is expected to raise AttrRequired::AttrMissing 100s when access_token is missing 100s is expected to raise AttrRequired::AttrMissing 100s when denied 100s should redirect with error in fragment 100s 100s Rack::OAuth2::Server::Authorize 100s when response_type is missing 100s is expected to raise Rack::OAuth2::Server::Authorize::BadRequest 100s when redirect_uri is missing 100s is expected not to raise Exception 100s when client_id is missing 100s is expected to raise Rack::OAuth2::Server::Authorize::BadRequest 100s when unknown response_type is given 100s is expected to raise Rack::OAuth2::Server::Authorize::BadRequest 100s when all required parameters are valid 100s when response_type = :code 100s status 100s is expected to == 200 100s when response_type = :token 100s status 100s is expected to == 200 100s Rack::OAuth2::Server::Authorize::Request 100s #varified_redirect_uri 100s when an Array of pre-registered URIs are given 100s when given redirect_uri is valid against one of them 100s should be valid 100s otherwise 100s is expected to raise Rack::OAuth2::Server::Authorize::BadRequest 100s when exact mathed redirect_uri is given 100s should be valid 100s when partially mathed redirect_uri is given 100s when partial matching allowed 100s should be valid 100s otherwise 100s is expected to raise Rack::OAuth2::Server::Authorize::BadRequest 100s when invalid redirect_uri is given 100s is expected to raise Rack::OAuth2::Server::Authorize::BadRequest 100s when redirect_uri is missing 100s when pre-registered redirect_uri is a String 100s should use pre-registered redirect_uri 100s when pre-registered redirect_uri is an Array 100s when only 1 100s when partial match allowed 100s is expected to raise Rack::OAuth2::Server::Authorize::BadRequest 100s otherwise 100s should use pre-registered redirect_uri 100s when more than 2 100s is expected to raise Rack::OAuth2::Server::Authorize::BadRequest 100s extensibility 100s extensions 100s is expected to == [Rack::OAuth2::Server::Authorize::Extension::CodeAndToken] 100s code token 100s is expected to == Rack::OAuth2::Server::Authorize::Extension::CodeAndToken 100s token code 100s is expected to == Rack::OAuth2::Server::Authorize::Extension::CodeAndToken 100s token code id_token 100s is expected to raise Rack::OAuth2::Server::Authorize::BadRequest 100s id_token 100s is expected to == Rack::OAuth2::Server::Authorize::Extension::IdToken 100s extensions 100s is expected to == [Rack::OAuth2::Server::Authorize::Extension::CodeAndToken, Rack::OAuth2::Server::Authorize::Extension::IdToken] 100s 100s Rack::OAuth2::Server::Authorize::Code 100s authorization request 100s when code_challenge is given 100s when code_challenge_method is given 100s code_challenge 100s is expected to == "Zg9g-m4LHx2zVqdlhUvCtnCLFMlKyKeX6M72aB8sXh8" 100s code_challenge_method 100s is expected to == "S256" 100s when code_challenge_method is omitted 100s code_challenge 100s is expected to == "sdvByaN2ztRUVucDOMxKTx6MQJAbtIbzulIdWjKrwR4" 100s code_challenge_method 100s is expected to == nil 100s otherwise 100s code_challenge 100s is expected to == nil 100s code_challenge_method 100s is expected to == nil 100s token request 100s when code_verifier is given 100s code_verifier 100s is expected to == "ccf821ef3020dffb0527be020c70da21" 100s #verify_code_verifier! 100s when code_verifier is given with code_challenge_method=plain 100s is expected not to raise Exception 100s when collect code_challenge is given 100s is expected not to raise Exception 100s when wrong code_challenge is blank 100s is expected to raise Rack::OAuth2::Server::Token::BadRequest with message matching /invalid_grant/ 100s when code_challenge is nil 100s is expected to raise Rack::OAuth2::Server::Token::BadRequest with message matching /invalid_grant/ 100s when unknown code_challenge_method is given 100s is expected to raise Rack::OAuth2::Server::Token::BadRequest with message matching /invalid_grant/ 100s otherwise 100s code_verifier 100s is expected to == nil 100s #verify_code_verifier! 100s when code_verifier is given with code_challenge_method=plain 100s is expected to raise Rack::OAuth2::Server::Token::BadRequest with message matching /invalid_grant/ 100s when collect code_challenge is given 100s is expected to raise Rack::OAuth2::Server::Token::BadRequest with message matching /invalid_grant/ 100s when wrong code_challenge is blank 100s is expected to raise Rack::OAuth2::Server::Token::BadRequest with message matching /invalid_grant/ 100s when code_challenge is nil 100s is expected not to raise Exception 100s when unknown code_challenge_method is given 100s is expected to raise Rack::OAuth2::Server::Token::BadRequest with message matching /invalid_grant/ 100s 100s Rack::OAuth2::Server::Authorize::Code 100s authorization request 100s when response_mode is given 100s response_mode 100s is expected to == "form_post" 100s otherwise 100s response_mode 100s is expected to == nil 100s 100s Rack::OAuth2::Server::Resource::Bearer::Unauthorized 100s is expected to be a kind of Rack::OAuth2::Server::Resource::Unauthorized 100s #scheme 100s scheme 100s is expected to == :Bearer 100s #finish 100s should use Bearer scheme 100s 100s Rack::OAuth2::Server::Resource::Bearer::ErrorMethods 100s unauthorized! 100s is expected to raise Rack::OAuth2::Server::Resource::Bearer::Unauthorized 100s invalid_token! 100s should raise Rack::OAuth2::Server::Resource::Bearer::Unauthorized with error = :invalid_token 100s 100s Rack::OAuth2::Server::Resource::Bearer 100s when no access token is given 100s behaves like skipped_authentication_request 100s should skip OAuth 2.0 authentication 100s when valid_token is given 100s when token is in Authorization header 100s behaves like authenticated_bearer_request 100s should be authenticated 100s when token is in params 100s behaves like authenticated_bearer_request 101s should be authenticated 101s when invalid authorization header is given 101s behaves like skipped_authentication_request 101s should skip OAuth 2.0 authentication 101s when invalid_token is given 101s when token is in Authorization header 101s behaves like unauthorized_bearer_request 101s should be unauthorized 101s when token is in params 101s behaves like unauthorized_bearer_request 101s should be unauthorized 101s realm 101s when specified 101s should use specified realm 101s otherwize 101s should use default realm 101s when multiple access_token is given 101s when token is in Authorization header and params 101s behaves like bad_bearer_request 101s should be bad_request 101s 101s Rack::OAuth2::Server::Resource::BadRequest 101s is expected to be a kind of Rack::OAuth2::Server::Abstract::BadRequest 101s #finish 101s should respond in JSON 101s 101s Rack::OAuth2::Server::Resource::Unauthorized 101s is expected to be a kind of Rack::OAuth2::Server::Abstract::Unauthorized 101s #scheme 101s is expected to raise RuntimeError with "Define me!" 101s when scheme is defined 101s #finish 101s should respond in JSON 101s when error_code is not invalid_token 101s should have error_code in body but not in WWW-Authenticate header 101s when no error_code is given 101s should have error_code in body but not in WWW-Authenticate header 101s when realm is specified 101s should use given realm 101s 101s Rack::OAuth2::Server::Resource::Forbidden 101s is expected to be a kind of Rack::OAuth2::Server::Abstract::Forbidden 101s #finish 101s should respond in JSON 101s when scope option is given 101s should have blank WWW-Authenticate header 101s 101s Rack::OAuth2::Server::Resource::Bearer::ErrorMethods 101s bad_request! 101s is expected to raise Rack::OAuth2::Server::Resource::BadRequest 101s unauthorized! 101s is expected to raise RuntimeError with "Define me!" 101s invalid_request! 101s should raise Rack::OAuth2::Server::Resource::BadRequest with error = :invalid_request 101s invalid_token! 101s is expected to raise RuntimeError with "Define me!" 101s insufficient_scope! 101s should raise Rack::OAuth2::Server::Resource::Forbidden with error = :insufficient_scope 101s 101s Rack::OAuth2::Server::Resource::MAC::Unauthorized 101s is expected to be a kind of Rack::OAuth2::Server::Resource::Unauthorized 101s #scheme 101s scheme 101s is expected to == :MAC 101s #finish 101s should use MAC scheme 101s 101s Rack::OAuth2::Server::Resource::MAC::ErrorMethods 101s unauthorized! 101s is expected to raise Rack::OAuth2::Server::Resource::MAC::Unauthorized 101s invalid_token! 101s should raise Rack::OAuth2::Server::Resource::Bearer::Unauthorized with error = :invalid_token 101s 101s Rack::OAuth2::Server::Resource::MAC 101s when no access token is given 101s should skip OAuth 2.0 authentication 101s when valid_token is given 101s when other required params are missing 101s behaves like unauthorized_mac_request 101s should be unauthorized (FAILED - 6) 101s when other required params are invalid 101s behaves like unauthorized_mac_request 101s should be unauthorized (FAILED - 7) 101s when all required params are valid 101s behaves like authenticated_mac_request 101s should be authenticated (FAILED - 8) 101s when all required params are valid and ts is expired 101s behaves like unauthorized_mac_request 101s should be unauthorized (FAILED - 9) 101s when invalid_token is given 101s behaves like unauthorized_mac_request 101s should be unauthorized (FAILED - 10) 101s realm 101s when specified 101s should use specified realm (FAILED - 11) 101s otherwize 101s should use default realm (FAILED - 12) 101s 101s Rack::OAuth2::Server::Resource 101s realm 101s is expected to == "realm" 101s 101s Rack::OAuth2::Server::Resource::Request 101s #setup! 101s is expected to raise RuntimeError with "Define me!" 101s #oauth2? 101s is expected to raise RuntimeError with "Define me!" 101s 101s Rack::OAuth2::Server::Token::AuthorizationCode 101s should prevent to be cached 101s status 101s is expected to == 200 101s content_type 101s is expected to == "application/json" 101s body 101s is expected to include "\"access_token\":\"access_token\"" 101s body 101s is expected to include "\"token_type\":\"bearer\"" 101s when code is missing 101s status 101s is expected to == 400 101s content_type 101s is expected to == "application/json" 101s body 101s is expected to include "\"error\":\"invalid_request\"" 101s 101s Rack::OAuth2::Server::Token::ClientCredentials 101s status 101s is expected to == 200 101s content_type 101s is expected to == "application/json" 101s body 101s is expected to include "\"access_token\":\"access_token\"" 101s body 101s is expected to include "\"token_type\":\"bearer\"" 101s basic auth 101s status 101s is expected to == 200 101s compliance with RFC6749 sec 2.3.1 101s status 101s is expected to == 200 101s 101s Rack::OAuth2::Server::Token::BadRequest 101s is expected to be a kind of Rack::OAuth2::Server::Abstract::BadRequest 101s #finish 101s should respond in JSON 101s 101s Rack::OAuth2::Server::Token::Unauthorized 101s is expected to be a kind of Rack::OAuth2::Server::Abstract::Unauthorized 101s #finish 101s should respond in JSON 101s 101s Rack::OAuth2::Server::Token::ErrorMethods 101s bad_request! 101s is expected to raise Rack::OAuth2::Server::Token::BadRequest 101s unauthorized! 101s is expected to raise Rack::OAuth2::Server::Token::Unauthorized 101s invalid_request! 101s should raise Rack::OAuth2::Server::Token::BadRequest with error = :invalid_request 101s invalid_client! 101s should raise Rack::OAuth2::Server::Token::Unauthorized with error = :invalid_client 101s invalid_grant! 101s should raise Rack::OAuth2::Server::Token::BadRequest with error = :invalid_grant 101s unauthorized_client! 101s should raise Rack::OAuth2::Server::Token::BadRequest with error = :unauthorized_client 101s unsupported_grant_type! 101s should raise Rack::OAuth2::Server::Token::BadRequest with error = :unsupported_grant_type 101s invalid_scope! 101s should raise Rack::OAuth2::Server::Token::BadRequest with error = :invalid_scope 101s 101s Rack::OAuth2::Server::Token::JWTBearer 101s status 101s is expected to == 200 101s content_type 101s is expected to == "application/json" 101s body 101s is expected to include "\"access_token\":\"access_token\"" 101s body 101s is expected to include "\"token_type\":\"bearer\"" 101s when assertion is missing 101s status 101s is expected to == 400 101s content_type 101s is expected to == "application/json" 101s body 101s is expected to include "\"error\":\"invalid_request\"" 101s 101s Rack::OAuth2::Server::Token::Password 101s status 101s is expected to == 200 101s content_type 101s is expected to == "application/json" 101s body 101s is expected to include "\"access_token\":\"access_token\"" 101s body 101s is expected to include "\"token_type\":\"bearer\"" 101s when username is missing 101s status 101s is expected to == 400 101s content_type 101s is expected to == "application/json" 101s body 101s is expected to include "\"error\":\"invalid_request\"" 101s when password is missing 101s status 101s is expected to == 400 101s content_type 101s is expected to == "application/json" 101s body 101s is expected to include "\"error\":\"invalid_request\"" 101s 101s Rack::OAuth2::Server::Token::RefreshToken 101s status 101s is expected to == 200 101s content_type 101s is expected to == "application/json" 101s body 101s is expected to include "\"access_token\":\"access_token\"" 101s body 101s is expected to include "\"token_type\":\"bearer\"" 101s when refresh_token is missing 101s status 101s is expected to == 400 101s content_type 101s is expected to == "application/json" 101s body 101s is expected to include "\"error\":\"invalid_request\"" 101s 101s Rack::OAuth2::Server::Token::SAML2Bearer 101s status 101s is expected to == 200 101s content_type 101s is expected to == "application/json" 101s body 101s is expected to include "\"access_token\":\"access_token\"" 101s body 101s is expected to include "\"token_type\":\"bearer\"" 101s when assertion is missing 101s status 101s is expected to == 400 101s content_type 101s is expected to == "application/json" 101s body 101s is expected to include "\"error\":\"invalid_request\"" 101s 101s Rack::OAuth2::Server::Token 101s when multiple client credentials are given 101s when different credentials are given 101s should fail with unsupported_grant_type 101s when same credentials are given 101s should ignore duplicates 101s when unsupported grant_type is given 101s status 101s is expected to == 400 101s content_type 101s is expected to == "application/json" 101s body 101s is expected to include "\"error\":\"unsupported_grant_type\"" 101s when client_id is missing 101s status 101s is expected to == 400 101s content_type 101s is expected to == "application/json" 101s body 101s is expected to include "\"error\":\"invalid_request\"" 101s when grant_type is missing 101s status 101s is expected to == 400 101s content_type 101s is expected to == "application/json" 101s body 101s is expected to include "\"error\":\"invalid_request\"" 101s when client_id is given via JWT client assertion 101s when client_assertion is invalid JWT 101s status 101s is expected to == 400 101s content_type 101s is expected to == "application/json" 101s body 101s is expected to include "\"error\":\"invalid_request\"" 101s when client_assertion_type is missing 101s status 101s is expected to == 400 101s content_type 101s is expected to == "application/json" 101s body 101s is expected to include "\"error\":\"invalid_request\"" 101s when client_assertion_type is unknown 101s status 101s is expected to == 400 101s content_type 101s is expected to == "application/json" 101s body 101s is expected to include "\"error\":\"invalid_request\"" 101s when client_assertion issuer is different from client_id 101s status 101s is expected to == 400 101s content_type 101s is expected to == "application/json" 101s body 101s is expected to include "\"error\":\"invalid_request\"" 101s otherwise 101s status 101s is expected to == 200 101s content_type 101s is expected to == "application/json" 101s body 101s is expected to include "\"access_token\":\"access_token\"" 101s when invalid_request 101s status 101s is expected to == 400 101s content_type 101s is expected to == "application/json" 101s body 101s is expected to include "\"error\":\"invalid_request\"" 101s body 101s 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.\"" 101s when invalid_client 101s status 101s is expected to == 401 101s content_type 101s is expected to == "application/json" 101s body 101s is expected to include "\"error\":\"invalid_client\"" 101s body 101s 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.\"" 101s headers 101s is expected to include "WWW-Authenticate" 101s when invalid_grant 101s status 101s is expected to == 400 101s content_type 101s is expected to == "application/json" 101s body 101s is expected to include "\"error\":\"invalid_grant\"" 101s body 101s 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).\"" 101s when unauthorized_client 101s status 101s is expected to == 400 101s content_type 101s is expected to == "application/json" 101s body 101s is expected to include "\"error\":\"unauthorized_client\"" 101s body 101s is expected to include "\"error_description\":\"The authenticated client is not authorized to use the access grant type provided.\"" 101s when unsupported_grant_type 101s status 101s is expected to == 400 101s content_type 101s is expected to == "application/json" 101s body 101s is expected to include "\"error\":\"unsupported_grant_type\"" 101s body 101s is expected to include "\"error_description\":\"The access grant included - its type or another attribute - is not supported by the authorization server.\"" 101s when invalid_scope 101s status 101s is expected to == 400 101s content_type 101s is expected to == "application/json" 101s body 101s is expected to include "\"error\":\"invalid_scope\"" 101s body 101s is expected to include "\"error_description\":\"The requested scope is invalid, unknown, malformed, or exceeds the previously granted scope.\"" 101s when skip_www_authenticate option is specified on invalid_client 101s headers 101s is expected not to include "WWW-Authenticate" 101s when responding 101s when access_token is missing 101s is expected to raise AttrRequired::AttrMissing 101s extensibility 101s extensions 101s is expected to == [Rack::OAuth2::Server::Token::Extension::Example] 101s JWT assertion 101s is expected to == Rack::OAuth2::Server::Token::Extension::Example 101s 101s Rack::OAuth2::Util 101s .www_form_url_encode 101s is expected to == "%3D%2B+.-%2F" 101s .www_form_urldecode 101s is expected to == "=+ .-/" 101s .base64_encode 101s is expected to == "PSsgLi0v" 101s .compact_hash 101s is expected to == {:k1=>"v1"} 101s .parse_uri 101s when String is given 101s is expected to be a kind of URI::Generic 101s when URI is given 101s should be itself 101s when invalid URI is given 101s is expected to raise URI::InvalidURIError 101s otherwise 101s is expected to raise StandardError 101s .redirect_uri 101s when location = :fragment 101s is expected to == "http://client.example.com#k1=v1" 101s when location = :query 101s is expected to == "http://client.example.com?k1=v1" 101s .uri_match? 101s when invalid URI is given 101s is expected to == false 101s when exactly same 101s is expected to == true 101s when path prefix matches 101s is expected to == true 101s otherwise 101s is expected to == false 101s 101s Failures: 101s 101s 1) Rack::OAuth2::AccessToken::MAC verify! when no ext_verifier is given when signature is valid 101s Failure/Error: token.verify!(request.setup!).should == :verified 101s 101s NameError: 101s uninitialized constant Rack::Auth::Digest 101s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource/mac.rb:17:in `setup!' 101s # ./spec/rack/oauth2/access_token/mac_spec.rb:56:in `block (5 levels) in ' 101s # /usr/share/rubygems-integration/all/gems/webmock-3.25.1/lib/webmock/rspec.rb:39:in `block (2 levels) in ' 101s 101s 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" 101s Failure/Error: 101s expect { token.verify!(request.setup!) }.to raise_error( 101s Rack::OAuth2::Server::Resource::MAC::Unauthorized, 101s 'invalid_token :: Signature Invalid' 101s ) 101s 101s expected Rack::OAuth2::Server::Resource::MAC::Unauthorized with "invalid_token :: Signature Invalid", got # with backtrace: 101s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource/mac.rb:17:in `setup!' 101s # ./spec/rack/oauth2/access_token/mac_spec.rb:63:in `block (6 levels) in ' 101s # ./spec/rack/oauth2/access_token/mac_spec.rb:63:in `block (5 levels) in ' 101s # /usr/share/rubygems-integration/all/gems/webmock-3.25.1/lib/webmock/rspec.rb:39:in `block (2 levels) in ' 101s # ./spec/rack/oauth2/access_token/mac_spec.rb:63:in `block (5 levels) in ' 101s # /usr/share/rubygems-integration/all/gems/webmock-3.25.1/lib/webmock/rspec.rb:39:in `block (2 levels) in ' 101s 101s 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" 101s Failure/Error: 101s expect { token_with_ext_verifier.verify!(request.setup!) }.to raise_error( 101s Rack::OAuth2::Server::Resource::MAC::Unauthorized, 101s 'invalid_token :: Sha256HexVerifier Invalid' 101s ) 101s 101s expected Rack::OAuth2::Server::Resource::MAC::Unauthorized with "invalid_token :: Sha256HexVerifier Invalid", got # with backtrace: 101s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource/mac.rb:17:in `setup!' 101s # ./spec/rack/oauth2/access_token/mac_spec.rb:87:in `block (6 levels) in ' 101s # ./spec/rack/oauth2/access_token/mac_spec.rb:87:in `block (5 levels) in ' 101s # /usr/share/rubygems-integration/all/gems/webmock-3.25.1/lib/webmock/rspec.rb:39:in `block (2 levels) in ' 101s # ./spec/rack/oauth2/access_token/mac_spec.rb:87:in `block (5 levels) in ' 101s # /usr/share/rubygems-integration/all/gems/webmock-3.25.1/lib/webmock/rspec.rb:39:in `block (2 levels) in ' 101s 101s 4) Rack::OAuth2::AccessToken::MAC verify! when ext_verifier is given when ext is valid when signature is valid 101s Failure/Error: token_with_ext_verifier.verify!(request.setup!).should == :verified 101s 101s NameError: 101s uninitialized constant Rack::Auth::Digest 101s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource/mac.rb:17:in `setup!' 101s # ./spec/rack/oauth2/access_token/mac_spec.rb:101:in `block (7 levels) in ' 101s # ./spec/helpers/time.rb:16:in `fix' 101s # ./spec/rack/oauth2/access_token/mac_spec.rb:100:in `block (6 levels) in ' 101s # /usr/share/rubygems-integration/all/gems/webmock-3.25.1/lib/webmock/rspec.rb:39:in `block (2 levels) in ' 101s 101s 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" 101s Failure/Error: 101s expect { token.verify!(request.setup!) }.to raise_error( 101s Rack::OAuth2::Server::Resource::MAC::Unauthorized, 101s 'invalid_token :: Signature Invalid' 101s ) 101s 101s expected Rack::OAuth2::Server::Resource::MAC::Unauthorized with "invalid_token :: Signature Invalid", got # with backtrace: 101s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource/mac.rb:17:in `setup!' 101s # ./spec/rack/oauth2/access_token/mac_spec.rb:108:in `block (7 levels) in ' 101s # ./spec/rack/oauth2/access_token/mac_spec.rb:108:in `block (6 levels) in ' 101s # /usr/share/rubygems-integration/all/gems/webmock-3.25.1/lib/webmock/rspec.rb:39:in `block (2 levels) in ' 101s # ./spec/rack/oauth2/access_token/mac_spec.rb:108:in `block (6 levels) in ' 101s # /usr/share/rubygems-integration/all/gems/webmock-3.25.1/lib/webmock/rspec.rb:39:in `block (2 levels) in ' 101s 101s 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 101s Failure/Error: let(:request) { app.call(env) } 101s 101s NameError: 101s uninitialized constant Rack::Auth::Digest 101s Shared Example Group: :unauthorized_mac_request called from ./spec/rack/oauth2/server/resource/mac_spec.rb:72 101s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource/mac.rb:17:in `setup!' 101s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource.rb:17:in `_call' 101s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource/mac.rb:8:in `_call' 101s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/abstract/handler.rb:17:in `call' 101s # ./spec/rack/oauth2/server/resource/mac_spec.rb:27:in `block (2 levels) in ' 101s # ./spec/rack/oauth2/server/resource/mac_spec.rb:46:in `block (3 levels) in ' 101s # /usr/share/rubygems-integration/all/gems/webmock-3.25.1/lib/webmock/rspec.rb:39:in `block (2 levels) in ' 101s 101s 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 101s Failure/Error: let(:request) { app.call(env) } 101s 101s NameError: 101s uninitialized constant Rack::Auth::Digest 101s Shared Example Group: :unauthorized_mac_request called from ./spec/rack/oauth2/server/resource/mac_spec.rb:77 101s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource/mac.rb:17:in `setup!' 101s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource.rb:17:in `_call' 101s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource/mac.rb:8:in `_call' 101s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/abstract/handler.rb:17:in `call' 101s # ./spec/rack/oauth2/server/resource/mac_spec.rb:27:in `block (2 levels) in ' 101s # ./spec/rack/oauth2/server/resource/mac_spec.rb:46:in `block (3 levels) in ' 101s # /usr/share/rubygems-integration/all/gems/webmock-3.25.1/lib/webmock/rspec.rb:39:in `block (2 levels) in ' 101s 101s 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 101s Failure/Error: let(:request) { app.call(env) } 101s 101s NameError: 101s uninitialized constant Rack::Auth::Digest 101s Shared Example Group: :authenticated_mac_request called from ./spec/rack/oauth2/server/resource/mac_spec.rb:82 101s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource/mac.rb:17:in `setup!' 101s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource.rb:17:in `_call' 101s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource/mac.rb:8:in `_call' 101s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/abstract/handler.rb:17:in `call' 101s # ./spec/rack/oauth2/server/resource/mac_spec.rb:27:in `block (2 levels) in ' 101s # ./spec/rack/oauth2/server/resource/mac_spec.rb:39:in `block (3 levels) in ' 101s # /usr/share/rubygems-integration/all/gems/webmock-3.25.1/lib/webmock/rspec.rb:39:in `block (2 levels) in ' 101s 101s 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 101s Failure/Error: let(:request) { app.call(env) } 101s 101s NameError: 101s uninitialized constant Rack::Auth::Digest 101s Shared Example Group: :unauthorized_mac_request called from ./spec/rack/oauth2/server/resource/mac_spec.rb:87 101s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource/mac.rb:17:in `setup!' 101s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource.rb:17:in `_call' 101s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource/mac.rb:8:in `_call' 101s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/abstract/handler.rb:17:in `call' 101s # ./spec/rack/oauth2/server/resource/mac_spec.rb:27:in `block (2 levels) in ' 101s # ./spec/rack/oauth2/server/resource/mac_spec.rb:46:in `block (3 levels) in ' 101s # /usr/share/rubygems-integration/all/gems/webmock-3.25.1/lib/webmock/rspec.rb:39:in `block (2 levels) in ' 101s 101s 10) Rack::OAuth2::Server::Resource::MAC when invalid_token is given behaves like unauthorized_mac_request should be unauthorized 101s Failure/Error: let(:request) { app.call(env) } 101s 101s NameError: 101s uninitialized constant Rack::Auth::Digest 101s Shared Example Group: :unauthorized_mac_request called from ./spec/rack/oauth2/server/resource/mac_spec.rb:93 101s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource/mac.rb:17:in `setup!' 101s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource.rb:17:in `_call' 101s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource/mac.rb:8:in `_call' 101s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/abstract/handler.rb:17:in `call' 101s # ./spec/rack/oauth2/server/resource/mac_spec.rb:27:in `block (2 levels) in ' 101s # ./spec/rack/oauth2/server/resource/mac_spec.rb:46:in `block (3 levels) in ' 101s # /usr/share/rubygems-integration/all/gems/webmock-3.25.1/lib/webmock/rspec.rb:39:in `block (2 levels) in ' 101s 101s 11) Rack::OAuth2::Server::Resource::MAC when invalid_token is given realm when specified should use specified realm 101s Failure/Error: let(:request) { app.call(env) } 101s 101s NameError: 101s uninitialized constant Rack::Auth::Digest 101s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource/mac.rb:17:in `setup!' 101s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource.rb:17:in `_call' 101s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource/mac.rb:8:in `_call' 101s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/abstract/handler.rb:17:in `call' 101s # ./spec/rack/oauth2/server/resource/mac_spec.rb:27:in `block (2 levels) in ' 101s # ./spec/rack/oauth2/server/resource/mac_spec.rb:106:in `block (5 levels) in ' 101s # /usr/share/rubygems-integration/all/gems/webmock-3.25.1/lib/webmock/rspec.rb:39:in `block (2 levels) in ' 101s 101s 12) Rack::OAuth2::Server::Resource::MAC when invalid_token is given realm otherwize should use default realm 101s Failure/Error: let(:request) { app.call(env) } 101s 101s NameError: 101s uninitialized constant Rack::Auth::Digest 101s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource/mac.rb:17:in `setup!' 101s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource.rb:17:in `_call' 101s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/resource/mac.rb:8:in `_call' 101s # /usr/share/rubygems-integration/all/gems/rack-oauth2-1.21.3/lib/rack/oauth2/server/abstract/handler.rb:17:in `call' 101s # ./spec/rack/oauth2/server/resource/mac_spec.rb:27:in `block (2 levels) in ' 101s # ./spec/rack/oauth2/server/resource/mac_spec.rb:113:in `block (5 levels) in ' 101s # /usr/share/rubygems-integration/all/gems/webmock-3.25.1/lib/webmock/rspec.rb:39:in `block (2 levels) in ' 101s 101s Finished in 1.27 seconds (files took 0.94192 seconds to load) 101s 403 examples, 12 failures 101s 101s Failed examples: 101s 101s 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 101s 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" 101s 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" 101s 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 101s 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" 101s 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 101s 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 101s 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 101s 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 101s 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 101s 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 101s 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 101s 101s /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 101s mv ./.gem2deb.lib lib 101s autopkgtest [10:57:45]: test gem2deb-test-runner: -----------------------] 101s gem2deb-test-runner FAIL non-zero exit status 1 101s autopkgtest [10:57:45]: test gem2deb-test-runner: - - - - - - - - - - results - - - - - - - - - - 102s autopkgtest [10:57:46]: @@@@@@@@@@@@@@@@@@@@ summary 102s gem2deb-test-runner FAIL non-zero exit status 1 107s nova [W] Using flock in prodstack6-ppc64el 107s Creating nova instance adt-plucky-ppc64el-ruby-rack-oauth2-20250313-105604-juju-7f2275-prod-proposed-migration-environment-2-5bdc223d-07e0-4703-a0d9-91fc3546221f from image adt/ubuntu-plucky-ppc64el-server-20250313.img (UUID 039b69e3-5f2d-4af8-9d4f-d440c2e5edc9)... 107s nova [W] Timed out waiting for b1812f6a-569b-471c-b3e7-c2a98c186e4b to get deleted.