0s autopkgtest [08:41:08]: starting date and time: 2025-03-10 08:41:08+0000 0s autopkgtest [08:41:08]: git checkout: 325255d2 Merge branch 'pin-any-arch' into 'ubuntu/production' 0s autopkgtest [08:41:08]: host juju-7f2275-prod-proposed-migration-environment-15; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.0k261v7c/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:ruby-rack-oauth2,src:ruby-rack --apt-upgrade ruby-rack-oauth2 --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 '--env=ADT_TEST_TRIGGERS=ruby-rack-oauth2/2.2.1-1 ruby-rack/3.1.9-2' -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-15@bos03-arm64-41.secgroup --name adt-plucky-arm64-ruby-rack-oauth2-20250310-084108-juju-7f2275-prod-proposed-migration-environment-15-e353117d-f4c3-4c7e-b4b0-2dc663d835aa --image adt/ubuntu-plucky-arm64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-15 --net-id=net_prod-proposed-migration -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/ 66s autopkgtest [08:42:14]: testbed dpkg architecture: arm64 67s autopkgtest [08:42:15]: testbed apt version: 2.9.31ubuntu3 67s autopkgtest [08:42:15]: @@@@@@@@@@@@@@@@@@@@ test bed setup 67s autopkgtest [08:42:15]: testbed release detected to be: None 68s autopkgtest [08:42:16]: updating testbed package index (apt update) 68s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [110 kB] 69s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 69s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 69s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 69s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [3400 B] 69s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [420 kB] 69s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [43.1 kB] 69s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [11.5 kB] 69s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/main arm64 Packages [72.2 kB] 69s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/restricted arm64 Packages [31.9 kB] 69s Get:11 http://ftpmaster.internal/ubuntu plucky-proposed/universe arm64 Packages [312 kB] 69s Get:12 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse arm64 Packages [3244 B] 70s Fetched 1008 kB in 1s (847 kB/s) 70s Reading package lists... 71s + lsb_release --codename --short 71s + RELEASE=plucky 71s + cat 71s + [ plucky != trusty ] 71s + DEBIAN_FRONTEND=noninteractive eatmydata apt-get -y --allow-downgrades -o Dpkg::Options::=--force-confnew dist-upgrade 71s Reading package lists... 71s Building dependency tree... 71s Reading state information... 72s Calculating upgrade... 72s Calculating upgrade... 72s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 72s + rm /etc/apt/preferences.d/force-downgrade-to-release.pref 72s + /usr/lib/apt/apt-helper analyze-pattern ?true 72s + sed s/\./\\./g 72s + uname -r 72s + running_kernel_pattern=^linux-.*6\.12\.0-16-generic.* 72s + apt list ?obsolete 72s + tail -n+2 72s + cut -d/ -f1 72s + grep -v ^linux-.*6\.12\.0-16-generic.* 73s + true 73s + obsolete_pkgs= 73s + DEBIAN_FRONTEND=noninteractive eatmydata apt-get -y purgeReading package lists... 73s Building dependency tree... --autoremove 73s 73s Reading state information... 74s Solving dependencies... 74s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 74s + grep -q trusty /etc/lsb-release 74s + [ ! -d /usr/share/doc/unattended-upgrades ] 74s + [ ! -d /usr/share/doc/lxd ] 74s + [ ! -d /usr/share/doc/lxd-client ] 74s + [ ! -d /usr/share/doc/snapd ] 74s + type iptables 74s + cat 74s + chmod 755 /etc/rc.local 74s + . /etc/rc.local 74s + iptables -w -t mangle -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu 74s + iptables -A OUTPUT -d 10.255.255.1/32 -p tcp -j DROP 74s + iptables -A OUTPUT -d 10.255.255.2/32 -p tcp -j DROP 74s + uname -m 74s + [ aarch64 = ppc64le ] 74s + [ -d /run/systemd/system ] 74s + systemd-detect-virt --quiet --vm 74s + mkdir -p /etc/systemd/system/systemd-random-seed.service.d/ 74s + cat 74s + grep -q lz4 /etc/initramfs-tools/initramfs.conf 74s + echo COMPRESS=lz4 74s autopkgtest [08:42:22]: upgrading testbed (apt dist-upgrade and autopurge) 74s Reading package lists... 75s Building dependency tree... 75s Reading state information... 75s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 75s Starting 2 pkgProblemResolver with broken count: 0 75s Done 76s Entering ResolveByKeep 76s 76s Calculating upgrade... 77s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 77s Reading package lists... 77s Building dependency tree... 77s Reading state information... 78s Starting pkgProblemResolver with broken count: 0 78s Starting 2 pkgProblemResolver with broken count: 0 78s Done 78s Solving dependencies... 78s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 81s autopkgtest [08:42:29]: testbed running kernel: Linux 6.12.0-16-generic #16-Ubuntu SMP PREEMPT_DYNAMIC Fri Feb 14 14:51:45 UTC 2025 81s autopkgtest [08:42:29]: @@@@@@@@@@@@@@@@@@@@ apt-source ruby-rack-oauth2 83s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed/universe ruby-rack-oauth2 2.2.1-1 (dsc) [2328 B] 83s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/universe ruby-rack-oauth2 2.2.1-1 (tar) [27.1 kB] 83s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/universe ruby-rack-oauth2 2.2.1-1 (diff) [4104 B] 83s gpgv: Signature made Sat Mar 8 17:03:11 2025 UTC 83s gpgv: using RSA key 6C9D10484A9AE4CC385F7C71823E967606C34B96 83s gpgv: issuer "utkarsh@debian.org" 83s gpgv: Can't check signature: No public key 83s dpkg-source: warning: cannot verify inline signature for ./ruby-rack-oauth2_2.2.1-1.dsc: no acceptable signature found 83s autopkgtest [08:42:31]: testing package ruby-rack-oauth2 version 2.2.1-1 84s autopkgtest [08:42:32]: build not needed 84s autopkgtest [08:42:32]: test gem2deb-test-runner: preparing testbed 84s Reading package lists... 85s Building dependency tree... 85s Reading state information... 85s Starting pkgProblemResolver with broken count: 0 85s Starting 2 pkgProblemResolver with broken count: 0 85s Done 86s The following NEW packages will be installed: 86s gem2deb-test-runner libruby libruby3.3 rake ruby ruby-activesupport 86s ruby-addressable ruby-aes-key-wrap ruby-attr-required ruby-bindata 86s ruby-concurrent ruby-crack ruby-did-you-mean ruby-diff-lcs ruby-domain-name 86s ruby-faraday ruby-faraday-follow-redirects ruby-faraday-net-http 86s ruby-hashdiff ruby-http-cookie ruby-httpclient ruby-i18n ruby-json-jwt 86s ruby-minitest ruby-multi-json ruby-net-telnet ruby-power-assert 86s ruby-public-suffix ruby-rack ruby-rack-oauth2 ruby-rspec ruby-rspec-core 86s ruby-rspec-expectations ruby-rspec-its ruby-rspec-mocks ruby-rspec-support 86s ruby-rubygems ruby-sdbm ruby-test-unit ruby-tzinfo ruby-unf ruby-unf-ext 86s ruby-webmock ruby-webrick ruby-xmlrpc ruby-zeitwerk ruby3.3 86s rubygems-integration 86s 0 upgraded, 48 newly installed, 0 to remove and 0 not upgraded. 86s Need to get 8195 kB of archives. 86s After this operation, 45.4 MB of additional disk space will be used. 86s Get:1 http://ftpmaster.internal/ubuntu plucky/main arm64 rubygems-integration all 1.19 [5550 B] 86s Get:2 http://ftpmaster.internal/ubuntu plucky/main arm64 ruby-did-you-mean all 1.6.3-2 [14.8 kB] 86s Get:3 http://ftpmaster.internal/ubuntu plucky/main arm64 ruby-minitest all 5.25.4-2ubuntu1 [48.9 kB] 86s Get:4 http://ftpmaster.internal/ubuntu plucky/main arm64 ruby-net-telnet all 0.2.0-1 [13.3 kB] 86s Get:5 http://ftpmaster.internal/ubuntu plucky/main arm64 ruby-power-assert all 2.0.3-1 [12.0 kB] 86s Get:6 http://ftpmaster.internal/ubuntu plucky/main arm64 ruby-test-unit all 3.6.2-1 [67.0 kB] 86s Get:7 http://ftpmaster.internal/ubuntu plucky/main arm64 ruby-webrick all 1.8.1-1ubuntu1 [52.6 kB] 86s Get:8 http://ftpmaster.internal/ubuntu plucky/main arm64 ruby-xmlrpc all 0.3.3-2 [24.8 kB] 86s Get:9 http://ftpmaster.internal/ubuntu plucky/main arm64 libruby arm64 1:3.3~ubuntu3 [5038 B] 86s Get:10 http://ftpmaster.internal/ubuntu plucky/main arm64 ruby-sdbm arm64 1.0.0-5build5 [15.5 kB] 86s Get:11 http://ftpmaster.internal/ubuntu plucky/main arm64 libruby3.3 arm64 3.3.6-1.1ubuntu1 [5835 kB] 88s Get:12 http://ftpmaster.internal/ubuntu plucky/main arm64 ruby3.3 arm64 3.3.6-1.1ubuntu1 [49.1 kB] 88s Get:13 http://ftpmaster.internal/ubuntu plucky/main arm64 ruby-rubygems all 3.6.3-1 [332 kB] 89s Get:14 http://ftpmaster.internal/ubuntu plucky/main arm64 ruby arm64 1:3.3~ubuntu3 [3618 B] 89s Get:15 http://ftpmaster.internal/ubuntu plucky/main arm64 rake all 13.2.1-1 [45.8 kB] 89s Get:16 http://ftpmaster.internal/ubuntu plucky/universe arm64 gem2deb-test-runner arm64 2.2.5 [18.3 kB] 89s Get:17 http://ftpmaster.internal/ubuntu plucky/universe arm64 ruby-concurrent all 1.3.4-1 [283 kB] 89s Get:18 http://ftpmaster.internal/ubuntu plucky/universe arm64 ruby-i18n all 1.14.5-1 [42.5 kB] 89s Get:19 http://ftpmaster.internal/ubuntu plucky/universe arm64 ruby-tzinfo all 2.0.6-1 [55.2 kB] 89s Get:20 http://ftpmaster.internal/ubuntu plucky/universe arm64 ruby-zeitwerk all 2.6.8-1 [36.0 kB] 89s Get:21 http://ftpmaster.internal/ubuntu plucky/universe arm64 ruby-activesupport all 2:6.1.7.3+dfsg-7 [198 kB] 89s Get:22 http://ftpmaster.internal/ubuntu plucky/universe arm64 ruby-public-suffix all 4.0.6+ds-2 [14.1 kB] 89s Get:23 http://ftpmaster.internal/ubuntu plucky/universe arm64 ruby-addressable all 2.8.5-1 [55.3 kB] 89s Get:24 http://ftpmaster.internal/ubuntu plucky/universe arm64 ruby-aes-key-wrap all 1.1.0-1 [5228 B] 89s Get:25 http://ftpmaster.internal/ubuntu plucky/universe arm64 ruby-attr-required all 1.0.0-2.1 [4620 B] 89s Get:26 http://ftpmaster.internal/ubuntu plucky/universe arm64 ruby-bindata all 2.4.14-1 [41.4 kB] 89s Get:27 http://ftpmaster.internal/ubuntu plucky/universe arm64 ruby-crack all 0.4.4-4 [8764 B] 89s Get:28 http://ftpmaster.internal/ubuntu plucky/universe arm64 ruby-diff-lcs all 1.5.1-1 [22.8 kB] 89s Get:29 http://ftpmaster.internal/ubuntu plucky/universe arm64 ruby-unf-ext arm64 0.0.7.7-1build7 [139 kB] 89s Get:30 http://ftpmaster.internal/ubuntu plucky/universe arm64 ruby-unf all 0.1.4-2.1 [4744 B] 89s Get:31 http://ftpmaster.internal/ubuntu plucky/universe arm64 ruby-domain-name all 0.6.20240107-1 [48.1 kB] 89s Get:32 http://ftpmaster.internal/ubuntu plucky/universe arm64 ruby-faraday-net-http all 3.0.2-2 [5716 B] 89s Get:33 http://ftpmaster.internal/ubuntu plucky/universe arm64 ruby-faraday all 2.10.0-2 [37.0 kB] 89s Get:34 http://ftpmaster.internal/ubuntu plucky/universe arm64 ruby-faraday-follow-redirects all 0.3.0-2 [6604 B] 89s Get:35 http://ftpmaster.internal/ubuntu plucky/universe arm64 ruby-hashdiff all 1.1.0-1 [12.9 kB] 89s Get:36 http://ftpmaster.internal/ubuntu plucky/universe arm64 ruby-http-cookie all 1.0.5-1 [23.7 kB] 89s Get:37 http://ftpmaster.internal/ubuntu plucky/universe arm64 ruby-httpclient all 2.8.3+git20211122.4658227-1 [62.7 kB] 89s Get:38 http://ftpmaster.internal/ubuntu plucky/universe arm64 ruby-json-jwt all 1.14.0-2 [10.6 kB] 89s Get:39 http://ftpmaster.internal/ubuntu plucky/universe arm64 ruby-multi-json all 1.14.1-2 [15.7 kB] 89s Get:40 http://ftpmaster.internal/ubuntu plucky-proposed/main arm64 ruby-rack all 3.1.9-2 [79.3 kB] 89s Get:41 http://ftpmaster.internal/ubuntu plucky-proposed/universe arm64 ruby-rack-oauth2 all 2.2.1-1 [16.3 kB] 89s Get:42 http://ftpmaster.internal/ubuntu plucky/universe arm64 ruby-rspec-support all 3.13.0c0e0m0s1-2 [29.2 kB] 89s Get:43 http://ftpmaster.internal/ubuntu plucky/universe arm64 ruby-rspec-core all 3.13.0c0e0m0s1-2 [164 kB] 89s Get:44 http://ftpmaster.internal/ubuntu plucky/universe arm64 ruby-rspec-expectations all 3.13.0c0e0m0s1-2 [89.8 kB] 89s Get:45 http://ftpmaster.internal/ubuntu plucky/universe arm64 ruby-rspec-mocks all 3.13.0c0e0m0s1-2 [81.0 kB] 89s Get:46 http://ftpmaster.internal/ubuntu plucky/universe arm64 ruby-rspec all 3.13.0c0e0m0s1-2 [3500 B] 89s Get:47 http://ftpmaster.internal/ubuntu plucky/universe arm64 ruby-rspec-its all 1.3.0-1 [6212 B] 89s Get:48 http://ftpmaster.internal/ubuntu plucky/universe arm64 ruby-webmock all 3.24.0-2 [47.8 kB] 89s Fetched 8195 kB in 3s (2739 kB/s) 89s Selecting previously unselected package rubygems-integration. 90s (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 ... 116811 files and directories currently installed.) 90s Preparing to unpack .../00-rubygems-integration_1.19_all.deb ... 90s Unpacking rubygems-integration (1.19) ... 90s Selecting previously unselected package ruby-did-you-mean. 90s Preparing to unpack .../01-ruby-did-you-mean_1.6.3-2_all.deb ... 90s Unpacking ruby-did-you-mean (1.6.3-2) ... 90s Selecting previously unselected package ruby-minitest. 90s Preparing to unpack .../02-ruby-minitest_5.25.4-2ubuntu1_all.deb ... 90s Unpacking ruby-minitest (5.25.4-2ubuntu1) ... 90s Selecting previously unselected package ruby-net-telnet. 90s Preparing to unpack .../03-ruby-net-telnet_0.2.0-1_all.deb ... 90s Unpacking ruby-net-telnet (0.2.0-1) ... 90s Selecting previously unselected package ruby-power-assert. 90s Preparing to unpack .../04-ruby-power-assert_2.0.3-1_all.deb ... 90s Unpacking ruby-power-assert (2.0.3-1) ... 90s Selecting previously unselected package ruby-test-unit. 90s Preparing to unpack .../05-ruby-test-unit_3.6.2-1_all.deb ... 90s Unpacking ruby-test-unit (3.6.2-1) ... 90s Selecting previously unselected package ruby-webrick. 90s Preparing to unpack .../06-ruby-webrick_1.8.1-1ubuntu1_all.deb ... 90s Unpacking ruby-webrick (1.8.1-1ubuntu1) ... 90s Selecting previously unselected package ruby-xmlrpc. 90s Preparing to unpack .../07-ruby-xmlrpc_0.3.3-2_all.deb ... 90s Unpacking ruby-xmlrpc (0.3.3-2) ... 90s Selecting previously unselected package libruby:arm64. 90s Preparing to unpack .../08-libruby_1%3a3.3~ubuntu3_arm64.deb ... 90s Unpacking libruby:arm64 (1:3.3~ubuntu3) ... 90s Selecting previously unselected package ruby-sdbm:arm64. 90s Preparing to unpack .../09-ruby-sdbm_1.0.0-5build5_arm64.deb ... 90s Unpacking ruby-sdbm:arm64 (1.0.0-5build5) ... 90s Selecting previously unselected package libruby3.3:arm64. 90s Preparing to unpack .../10-libruby3.3_3.3.6-1.1ubuntu1_arm64.deb ... 90s Unpacking libruby3.3:arm64 (3.3.6-1.1ubuntu1) ... 91s Selecting previously unselected package ruby3.3. 91s Preparing to unpack .../11-ruby3.3_3.3.6-1.1ubuntu1_arm64.deb ... 91s Unpacking ruby3.3 (3.3.6-1.1ubuntu1) ... 91s Selecting previously unselected package ruby-rubygems. 91s Preparing to unpack .../12-ruby-rubygems_3.6.3-1_all.deb ... 91s Unpacking ruby-rubygems (3.6.3-1) ... 91s Selecting previously unselected package ruby. 91s Preparing to unpack .../13-ruby_1%3a3.3~ubuntu3_arm64.deb ... 91s Unpacking ruby (1:3.3~ubuntu3) ... 91s Selecting previously unselected package rake. 91s Preparing to unpack .../14-rake_13.2.1-1_all.deb ... 91s Unpacking rake (13.2.1-1) ... 91s Selecting previously unselected package gem2deb-test-runner. 91s Preparing to unpack .../15-gem2deb-test-runner_2.2.5_arm64.deb ... 91s Unpacking gem2deb-test-runner (2.2.5) ... 91s Selecting previously unselected package ruby-concurrent. 91s Preparing to unpack .../16-ruby-concurrent_1.3.4-1_all.deb ... 91s Unpacking ruby-concurrent (1.3.4-1) ... 91s Selecting previously unselected package ruby-i18n. 91s Preparing to unpack .../17-ruby-i18n_1.14.5-1_all.deb ... 91s Unpacking ruby-i18n (1.14.5-1) ... 91s Selecting previously unselected package ruby-tzinfo. 91s Preparing to unpack .../18-ruby-tzinfo_2.0.6-1_all.deb ... 91s Unpacking ruby-tzinfo (2.0.6-1) ... 91s Selecting previously unselected package ruby-zeitwerk. 91s Preparing to unpack .../19-ruby-zeitwerk_2.6.8-1_all.deb ... 91s Unpacking ruby-zeitwerk (2.6.8-1) ... 91s Selecting previously unselected package ruby-activesupport. 91s Preparing to unpack .../20-ruby-activesupport_2%3a6.1.7.3+dfsg-7_all.deb ... 91s Unpacking ruby-activesupport (2:6.1.7.3+dfsg-7) ... 91s Selecting previously unselected package ruby-public-suffix. 91s Preparing to unpack .../21-ruby-public-suffix_4.0.6+ds-2_all.deb ... 91s Unpacking ruby-public-suffix (4.0.6+ds-2) ... 91s Selecting previously unselected package ruby-addressable. 92s Preparing to unpack .../22-ruby-addressable_2.8.5-1_all.deb ... 92s Unpacking ruby-addressable (2.8.5-1) ... 92s Selecting previously unselected package ruby-aes-key-wrap. 92s Preparing to unpack .../23-ruby-aes-key-wrap_1.1.0-1_all.deb ... 92s Unpacking ruby-aes-key-wrap (1.1.0-1) ... 92s Selecting previously unselected package ruby-attr-required. 92s Preparing to unpack .../24-ruby-attr-required_1.0.0-2.1_all.deb ... 92s Unpacking ruby-attr-required (1.0.0-2.1) ... 92s Selecting previously unselected package ruby-bindata. 92s Preparing to unpack .../25-ruby-bindata_2.4.14-1_all.deb ... 92s Unpacking ruby-bindata (2.4.14-1) ... 92s Selecting previously unselected package ruby-crack. 92s Preparing to unpack .../26-ruby-crack_0.4.4-4_all.deb ... 92s Unpacking ruby-crack (0.4.4-4) ... 92s Selecting previously unselected package ruby-diff-lcs. 92s Preparing to unpack .../27-ruby-diff-lcs_1.5.1-1_all.deb ... 92s Unpacking ruby-diff-lcs (1.5.1-1) ... 92s Selecting previously unselected package ruby-unf-ext. 92s Preparing to unpack .../28-ruby-unf-ext_0.0.7.7-1build7_arm64.deb ... 92s Unpacking ruby-unf-ext (0.0.7.7-1build7) ... 92s Selecting previously unselected package ruby-unf. 92s Preparing to unpack .../29-ruby-unf_0.1.4-2.1_all.deb ... 92s Unpacking ruby-unf (0.1.4-2.1) ... 92s Selecting previously unselected package ruby-domain-name. 92s Preparing to unpack .../30-ruby-domain-name_0.6.20240107-1_all.deb ... 92s Unpacking ruby-domain-name (0.6.20240107-1) ... 92s Selecting previously unselected package ruby-faraday-net-http. 92s Preparing to unpack .../31-ruby-faraday-net-http_3.0.2-2_all.deb ... 92s Unpacking ruby-faraday-net-http (3.0.2-2) ... 92s Selecting previously unselected package ruby-faraday. 92s Preparing to unpack .../32-ruby-faraday_2.10.0-2_all.deb ... 92s Unpacking ruby-faraday (2.10.0-2) ... 92s Selecting previously unselected package ruby-faraday-follow-redirects. 92s Preparing to unpack .../33-ruby-faraday-follow-redirects_0.3.0-2_all.deb ... 92s Unpacking ruby-faraday-follow-redirects (0.3.0-2) ... 92s Selecting previously unselected package ruby-hashdiff. 92s Preparing to unpack .../34-ruby-hashdiff_1.1.0-1_all.deb ... 92s Unpacking ruby-hashdiff (1.1.0-1) ... 92s Selecting previously unselected package ruby-http-cookie. 92s Preparing to unpack .../35-ruby-http-cookie_1.0.5-1_all.deb ... 92s Unpacking ruby-http-cookie (1.0.5-1) ... 92s Selecting previously unselected package ruby-httpclient. 92s Preparing to unpack .../36-ruby-httpclient_2.8.3+git20211122.4658227-1_all.deb ... 92s Unpacking ruby-httpclient (2.8.3+git20211122.4658227-1) ... 92s Selecting previously unselected package ruby-json-jwt. 92s Preparing to unpack .../37-ruby-json-jwt_1.14.0-2_all.deb ... 92s Unpacking ruby-json-jwt (1.14.0-2) ... 92s Selecting previously unselected package ruby-multi-json. 92s Preparing to unpack .../38-ruby-multi-json_1.14.1-2_all.deb ... 92s Unpacking ruby-multi-json (1.14.1-2) ... 92s Selecting previously unselected package ruby-rack. 92s Preparing to unpack .../39-ruby-rack_3.1.9-2_all.deb ... 92s Unpacking ruby-rack (3.1.9-2) ... 92s Selecting previously unselected package ruby-rack-oauth2. 92s Preparing to unpack .../40-ruby-rack-oauth2_2.2.1-1_all.deb ... 92s Unpacking ruby-rack-oauth2 (2.2.1-1) ... 92s Selecting previously unselected package ruby-rspec-support. 92s Preparing to unpack .../41-ruby-rspec-support_3.13.0c0e0m0s1-2_all.deb ... 92s Unpacking ruby-rspec-support (3.13.0c0e0m0s1-2) ... 92s Selecting previously unselected package ruby-rspec-core. 93s Preparing to unpack .../42-ruby-rspec-core_3.13.0c0e0m0s1-2_all.deb ... 93s Unpacking ruby-rspec-core (3.13.0c0e0m0s1-2) ... 93s Selecting previously unselected package ruby-rspec-expectations. 93s Preparing to unpack .../43-ruby-rspec-expectations_3.13.0c0e0m0s1-2_all.deb ... 93s Unpacking ruby-rspec-expectations (3.13.0c0e0m0s1-2) ... 93s Selecting previously unselected package ruby-rspec-mocks. 93s Preparing to unpack .../44-ruby-rspec-mocks_3.13.0c0e0m0s1-2_all.deb ... 93s Unpacking ruby-rspec-mocks (3.13.0c0e0m0s1-2) ... 93s Selecting previously unselected package ruby-rspec. 93s Preparing to unpack .../45-ruby-rspec_3.13.0c0e0m0s1-2_all.deb ... 93s Unpacking ruby-rspec (3.13.0c0e0m0s1-2) ... 93s Selecting previously unselected package ruby-rspec-its. 93s Preparing to unpack .../46-ruby-rspec-its_1.3.0-1_all.deb ... 93s Unpacking ruby-rspec-its (1.3.0-1) ... 93s Selecting previously unselected package ruby-webmock. 93s Preparing to unpack .../47-ruby-webmock_3.24.0-2_all.deb ... 93s Unpacking ruby-webmock (3.24.0-2) ... 93s Setting up ruby-power-assert (2.0.3-1) ... 93s Setting up ruby-hashdiff (1.1.0-1) ... 93s Setting up ruby-public-suffix (4.0.6+ds-2) ... 93s Setting up ruby-bindata (2.4.14-1) ... 93s Setting up rubygems-integration (1.19) ... 93s Setting up ruby-concurrent (1.3.4-1) ... 93s Setting up ruby-minitest (5.25.4-2ubuntu1) ... 93s Setting up ruby-test-unit (3.6.2-1) ... 93s Setting up ruby-net-telnet (0.2.0-1) ... 93s Setting up ruby-i18n (1.14.5-1) ... 93s Setting up ruby-aes-key-wrap (1.1.0-1) ... 93s Setting up ruby-rspec-support (3.13.0c0e0m0s1-2) ... 93s Setting up ruby-webrick (1.8.1-1ubuntu1) ... 93s Setting up ruby-faraday-net-http (3.0.2-2) ... 93s Setting up ruby-did-you-mean (1.6.3-2) ... 93s Setting up ruby-xmlrpc (0.3.3-2) ... 93s Setting up ruby-zeitwerk (2.6.8-1) ... 93s Setting up ruby-addressable (2.8.5-1) ... 93s Setting up ruby-tzinfo (2.0.6-1) ... 93s Setting up rake (13.2.1-1) ... 93s Setting up ruby3.3 (3.3.6-1.1ubuntu1) ... 93s Setting up libruby:arm64 (1:3.3~ubuntu3) ... 93s Setting up ruby-rubygems (3.6.3-1) ... 93s Setting up ruby (1:3.3~ubuntu3) ... 93s Setting up ruby-rspec-core (3.13.0c0e0m0s1-2) ... 93s Setting up ruby-attr-required (1.0.0-2.1) ... 93s Setting up ruby-sdbm:arm64 (1.0.0-5build5) ... 93s Setting up ruby-diff-lcs (1.5.1-1) ... 93s Setting up ruby-multi-json (1.14.1-2) ... 93s Setting up ruby-rack (3.1.9-2) ... 93s Setting up libruby3.3:arm64 (3.3.6-1.1ubuntu1) ... 93s Setting up ruby-unf-ext (0.0.7.7-1build7) ... 93s Setting up ruby-activesupport (2:6.1.7.3+dfsg-7) ... 93s Setting up ruby-faraday (2.10.0-2) ... 93s Setting up ruby-crack (0.4.4-4) ... 93s Setting up gem2deb-test-runner (2.2.5) ... 93s Setting up ruby-faraday-follow-redirects (0.3.0-2) ... 93s Setting up ruby-rspec-expectations (3.13.0c0e0m0s1-2) ... 93s Setting up ruby-unf (0.1.4-2.1) ... 93s Setting up ruby-rspec-mocks (3.13.0c0e0m0s1-2) ... 93s Setting up ruby-rspec-its (1.3.0-1) ... 93s Setting up ruby-webmock (3.24.0-2) ... 93s Setting up ruby-rspec (3.13.0c0e0m0s1-2) ... 93s Setting up ruby-json-jwt (1.14.0-2) ... 93s Setting up ruby-domain-name (0.6.20240107-1) ... 93s Setting up ruby-rack-oauth2 (2.2.1-1) ... 93s Setting up ruby-http-cookie (1.0.5-1) ... 93s Setting up ruby-httpclient (2.8.3+git20211122.4658227-1) ... 93s Processing triggers for libc-bin (2.41-1ubuntu1) ... 93s Processing triggers for man-db (2.13.0-1) ... 95s autopkgtest [08:42:43]: test gem2deb-test-runner: gem2deb-test-runner --autopkgtest --check-dependencies 2>&1 95s autopkgtest [08:42:43]: test gem2deb-test-runner: [----------------------- 95s 95s ┌──────────────────────────────────────────────────────────────────────────────┐ 95s │ Checking Rubygems dependency resolution on ruby3.3 │ 95s └──────────────────────────────────────────────────────────────────────────────┘ 95s 95s RUBYLIB=. GEM_PATH= ruby3.3 -e gem\ \"rack-oauth2\" 95s mv lib ./.gem2deb.lib 95s mv ./.gem2deb.lib lib 95s 95s ┌──────────────────────────────────────────────────────────────────────────────┐ 95s │ Run tests for ruby3.3 from debian/ruby-tests.rake │ 95s └──────────────────────────────────────────────────────────────────────────────┘ 95s 95s RUBYLIB=. GEM_PATH= ruby3.3 -S rake --rakelibdir /gem2deb-nonexistent -f debian/ruby-tests.rake 95s mv lib ./.gem2deb.lib 95s /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 97s 97s Rack::OAuth2::AccessToken::Authenticator 97s when Bearer token is given 97s behaves like authenticator 97s should let the token authenticate the request 97s 97s Rack::OAuth2::AccessToken::Bearer 97s .authenticate 97s should set Authorization header 97s 97s Rack::OAuth2::AccessToken 97s access_token 97s is expected to == "access_token" 97s refresh_token 97s is expected to == "refresh_token" 97s expires_in 97s is expected to == 3600 97s scope 97s is expected to == [:scope1, :scope2] 97s token_response 97s is expected to == {:access_token=>"access_token", :expires_in=>3600, :refresh_token=>"refresh_token", :scope=>"scope1 scope2", :token_type=>:bearer} 97s when access_token is missing 97s is expected to raise AttrRequired::AttrMissing 97s otherwise 97s is expected not to raise Exception 97s when extension params given 97s raw_attributes 97s is expected to include :ex_key 97s when extension params given 97s raw_attributes 97s is expected to include :ex_key 97s when extension params given 97s raw_attributes 97s is expected to include :ex_key 97s when extension params given 97s raw_attributes 97s is expected to include :ex_key 97s 97s Rack::OAuth2::Client::Error 97s status 97s is expected to == 400 97s message 97s is expected to == "invalid_request :: Include invalid parameters" 97s response 97s is expected to == {:error=>:invalid_request, :error_description=>"Include invalid parameters", :error_uri=>"http://server.example.com/error/invalid_request"} 97s 97s Rack::OAuth2::Client::Grant::AuthorizationCode 97s when code is given 97s when redirect_uri is given 97s redirect_uri 97s is expected to == "https://client.example.com/callback" 97s as_json 97s is expected to == {:code=>"code", :grant_type=>:authorization_code, :redirect_uri=>"https://client.example.com/callback"} 97s otherwise 97s redirect_uri 97s is expected to be nil 97s as_json 97s is expected to == {:code=>"code", :grant_type=>:authorization_code, :redirect_uri=>nil} 97s otherwise 97s is expected to raise AttrRequired::AttrMissing 97s 97s Rack::OAuth2::Client::Grant::ClientCredentials 97s as_json 97s is expected to == {:grant_type=>:client_credentials} 97s 97s Rack::OAuth2::Client::Grant::JWTBearer 97s when JWT assertion is given 97s as_json 97s is expected to == {:assertion=>"header.payload.signature", :grant_type=>"urn:ietf:params:oauth:grant-type:jwt-bearer"} 97s otherwise 97s is expected to raise AttrRequired::AttrMissing 97s 97s Rack::OAuth2::Client::Grant::Password 97s when username is given 97s when password is given 97s as_json 97s is expected to == {:grant_type=>:password, :password=>"password", :username=>"username"} 97s otherwise 97s is expected to raise AttrRequired::AttrMissing 97s otherwise 97s is expected to raise AttrRequired::AttrMissing 97s 97s Rack::OAuth2::Client::Grant::RefreshToken 97s when refresh_token is given 97s as_json 97s is expected to == {:grant_type=>:refresh_token, :refresh_token=>"refresh_token"} 97s otherwise 97s is expected to raise AttrRequired::AttrMissing 97s 97s Rack::OAuth2::Client::Grant::SAML2Bearer 97s when JWT assertion is given 97s as_json 97s is expected to == {:assertion=>"...", :grant_type=>"urn:ietf:params:oauth:grant-type:saml2-bearer"} 97s otherwise 97s is expected to raise AttrRequired::AttrMissing 97s 97s Rack::OAuth2::Client 97s identifier 97s is expected to == "client_id" 97s secret 97s is expected to == "client_secret" 97s authorization_endpoint 97s is expected to == "/oauth2/authorize" 97s token_endpoint 97s is expected to == "/oauth2/token" 97s revocation_endpoint 97s is expected to == "/oauth2/revoke" 97s when identifier is missing 97s is expected to raise AttrRequired::AttrMissing 97s #authorization_uri 97s is expected to include "https://server.example.com/oauth2/authorize" 97s is expected to include "client_id=client_id" 97s is expected to include "redirect_uri=https%3A%2F%2Fclient.example.com%2Fcallback" 97s is expected to include "response_type=code" 97s when endpoints are absolute URIs 97s is expected to include "https://server2.example.com/oauth/authorize" 97s when scheme is specified 97s is expected to include "http://server.example.com/oauth2/authorize" 97s when response_type is token 97s is expected to include "response_type=token" 97s when response_type is an Array 97s is expected to include "response_type=token%20code" 97s when scope is given 97s is expected to include "scope=scope1%20scope2" 97s #authorization_code= 97s is expected to be an instance of Rack::OAuth2::Client::Grant::AuthorizationCode 97s #resource_owner_credentials= 97s is expected to be an instance of Rack::OAuth2::Client::Grant::Password 97s #refresh_token= 97s is expected to be an instance of Rack::OAuth2::Client::Grant::RefreshToken 97s #access_token! 97s *args handling 97s client authentication method 97s should be Basic auth as default 97s when Basic auth method is used 97s when client_id is a url 97s should be encoded in "application/x-www-form-urlencoded" 97s when basic_without_www_form_urlencode method is used 97s when client_id is a url 97s should be encoded in "application/x-www-form-urlencoded" 97s when jwt_bearer auth method specified 97s when client_secret is given 97s should be JWT bearer client assertion w/ auto-generated HS256-signed JWT assertion 97s when private_key is given 97s when RSA key 97s should be JWT bearer client assertion w/ auto-generated RS256-signed JWT assertion 97s when EC key 97s should be JWT bearer client assertion w/ auto-generated ES256-signed JWT assertion 97s when client_assertion is explicitly given 97s should be JWT bearer client assertion w/ specified assertion 97s when other auth method specified 97s should be body params 97s when auth method is specified as Hash 97s should be removed before sending request 97s scopes 97s when scope option given 97s should specify given scope 97s unknown params 97s should be included in body params 97s local_http_config handling 97s example at ./spec/rack/oauth2/client_spec.rb:313 97s when bearer token is given 97s is expected to be an instance of Rack::OAuth2::AccessToken::Bearer 97s token_type 97s is expected to == :bearer 97s access_token 97s is expected to == "access_token" 97s refresh_token 98s is expected to == "refresh_token" 98s expires_in 98s is expected to == 3600 98s when token type is "Bearer", not "bearer" 98s is expected to be an instance of Rack::OAuth2::AccessToken::Bearer 98s token_type 98s is expected to == :bearer 98s when unknown-type token is given 98s is expected to raise StandardError with "Unknown Token Type" 98s when error response is given 98s is expected to raise Rack::OAuth2::Client::Error 98s when no body given 98s when error given 98s is expected to raise Rack::OAuth2::Client::Error 98s #revoke! 98s local_http_config handling 98s example at ./spec/rack/oauth2/client_spec.rb:406 98s when access_token given 98s is expected to == :success 98s when refresh_token given 98s as argument 98s is expected to == :success 98s as grant 98s example at ./spec/rack/oauth2/client_spec.rb:469 98s when error response given 98s is expected to raise Rack::OAuth2::Client::Error 98s when no token given 98s is expected to raise ArgumentError 98s when no host info 98s #authorization_uri 98s is expected to raise Exception with "No Host Info" 98s #access_token! 98s is expected to raise Exception with "No Host Info" 98s #revoke! 98s is expected to raise Exception with "No Host Info" 98s 98s Rack::OAuth2 98s logger 98s is expected to be a kind of Logger 98s debugging? 98s is expected to == false 98s .debug! 98s debugging? 98s is expected to == true 98s .debug 98s should enable debugging within given block 98s should not force disable debugging 98s 98s Rack::OAuth2::Server::Abstract::Error 98s when full attributes are given 98s status 98s is expected to == 400 98s error 98s is expected to == :invalid_request 98s description 98s is expected to == "Missing some required params" 98s uri 98s is expected to == "http://server.example.com/error" 98s protocol_params 98s is expected to == {:error=>:invalid_request, :error_description=>"Missing some required params", :error_uri=>"http://server.example.com/error"} 98s when optional attributes are not given 98s status 98s is expected to == 400 98s error 98s is expected to == :invalid_request 98s description 98s is expected to be nil 98s uri 98s is expected to be nil 98s protocol_params 98s is expected to == {:error=>:invalid_request, :error_description=>nil, :error_uri=>nil} 98s 98s Rack::OAuth2::Server::Abstract::BadRequest 98s status 98s is expected to == 400 98s 98s Rack::OAuth2::Server::Abstract::Unauthorized 98s status 98s is expected to == 401 98s 98s Rack::OAuth2::Server::Abstract::Forbidden 98s status 98s is expected to == 403 98s 98s Rack::OAuth2::Server::Abstract::ServerError 98s status 98s is expected to == 500 98s 98s Rack::OAuth2::Server::Abstract::TemporarilyUnavailable 98s status 98s is expected to == 503 98s 98s Rack::OAuth2::Server::Authorize::Code 98s when approved 98s status 98s is expected to == 302 98s location 98s is expected to == "http://client.example.com/callback?code=authorization_code&state=state" 98s when redirect_uri already includes query 98s location 98s is expected to == "http://client.example.com/callback?k=v&code=authorization_code&state=state" 98s when redirect_uri is missing 98s is expected to raise AttrRequired::AttrMissing 98s when code is missing 98s is expected to raise AttrRequired::AttrMissing 98s when denied 98s should redirect with error in query 98s 98s Rack::OAuth2::Server::Authorize::BadRequest 98s is expected to be a kind of Rack::OAuth2::Server::Abstract::BadRequest 98s protocol_params 98s is expected to == {:error=>:invalid_request, :error_description=>nil, :error_uri=>nil, :state=>nil} 98s #finish 98s when redirect_uri is given 98s when protocol_params_location = :query 98s should redirect with error in query 98s when protocol_params_location = :fragment 98s should redirect with error in fragment 98s otherwise 98s should redirect without error 98s otherwise 98s should raise itself 98s 98s Rack::OAuth2::Server::Authorize::ErrorMethods 98s bad_request! 98s is expected to raise Rack::OAuth2::Server::Authorize::BadRequest 98s when response_type = :code 98s should set protocol_params_location = :query 98s when response_type = :token 98s should set protocol_params_location = :fragment 98s invalid_request! 98s should raise Rack::OAuth2::Server::Authorize::BadRequest with error = :invalid_request 98s unauthorized_client! 98s should raise Rack::OAuth2::Server::Authorize::BadRequest with error = :unauthorized_client 98s access_denied! 98s should raise Rack::OAuth2::Server::Authorize::BadRequest with error = :access_denied 98s unsupported_response_type! 98s should raise Rack::OAuth2::Server::Authorize::BadRequest with error = :unsupported_response_type 98s invalid_scope! 98s should raise Rack::OAuth2::Server::Authorize::BadRequest with error = :invalid_scope 98s server_error! 98s should raise Rack::OAuth2::Server::Authorize::ServerError with error = :server_error 98s temporarily_unavailable! 98s should raise Rack::OAuth2::Server::Authorize::TemporarilyUnavailable with error = :temporarily_unavailable 98s 98s Rack::OAuth2::Server::Authorize::Extension::CodeAndToken 98s when approved 98s status 98s is expected to == 302 98s location 98s is expected to include "http://client.example.com/callback#" 98s location 98s is expected to include "code=authorization_code" 98s location 98s is expected to include "access_token=access_token" 98s location 98s is expected to include "token_type=bearer" 98s when refresh_token is given 98s location 98s is expected to include "http://client.example.com/callback#" 98s location 98s is expected to include "code=authorization_code" 98s location 98s is expected to include "access_token=access_token" 98s location 98s is expected to include "token_type=bearer" 98s when denied 98s should redirect with error in fragment 98s 98s Rack::OAuth2::Server::Authorize::Token 98s when approved 98s status 98s is expected to == 302 98s location 98s is expected to == "http://client.example.com/callback#access_token=access_token&state=state&token_type=bearer" 98s when refresh_token is given 98s location 98s is expected to == "http://client.example.com/callback#access_token=access_token&state=state&token_type=bearer" 98s when redirect_uri is missing 98s is expected to raise AttrRequired::AttrMissing 98s when access_token is missing 98s is expected to raise AttrRequired::AttrMissing 98s when denied 98s should redirect with error in fragment 98s 98s Rack::OAuth2::Server::Authorize 98s when response_type is missing 98s is expected to raise Rack::OAuth2::Server::Authorize::BadRequest 98s when redirect_uri is missing 98s is expected not to raise Exception 98s when client_id is missing 98s is expected to raise Rack::OAuth2::Server::Authorize::BadRequest 98s when unknown response_type is given 98s is expected to raise Rack::OAuth2::Server::Authorize::BadRequest 98s when all required parameters are valid 98s when response_type = :code 98s status 98s is expected to == 200 98s when response_type = :token 98s status 98s is expected to == 200 98s Rack::OAuth2::Server::Authorize::Request 98s #varified_redirect_uri 98s when an Array of pre-registered URIs are given 98s when given redirect_uri is valid against one of them 98s should be valid 98s otherwise 98s is expected to raise Rack::OAuth2::Server::Authorize::BadRequest 98s when exact mathed redirect_uri is given 98s should be valid 98s when partially mathed redirect_uri is given 98s when partial matching allowed 98s should be valid 98s otherwise 98s is expected to raise Rack::OAuth2::Server::Authorize::BadRequest 98s when invalid redirect_uri is given 98s is expected to raise Rack::OAuth2::Server::Authorize::BadRequest 98s when redirect_uri is missing 98s when pre-registered redirect_uri is a String 98s should use pre-registered redirect_uri 98s when pre-registered redirect_uri is an Array 98s when only 1 98s when partial match allowed 98s is expected to raise Rack::OAuth2::Server::Authorize::BadRequest 98s otherwise 98s should use pre-registered redirect_uri 98s when more than 2 98s is expected to raise Rack::OAuth2::Server::Authorize::BadRequest 98s extensibility 98s extensions 98s is expected to == [Rack::OAuth2::Server::Authorize::Extension::CodeAndToken] 98s code token 98s is expected to == Rack::OAuth2::Server::Authorize::Extension::CodeAndToken 98s token code 98s is expected to == Rack::OAuth2::Server::Authorize::Extension::CodeAndToken 98s token code id_token 98s is expected to raise Rack::OAuth2::Server::Authorize::BadRequest 98s id_token 98s is expected to == Rack::OAuth2::Server::Authorize::Extension::IdToken 98s extensions 98s is expected to == [Rack::OAuth2::Server::Authorize::Extension::CodeAndToken, Rack::OAuth2::Server::Authorize::Extension::IdToken] 98s 98s Rack::OAuth2::Server::Authorize::Code 98s authorization request 98s when code_challenge is given 98s when code_challenge_method is given 98s code_challenge 98s is expected to == "QJGVk-CdDk5pBtsWKQPVRW1Odpue2gDnBwYKyhB58fY" 98s code_challenge_method 98s is expected to == "S256" 98s when code_challenge_method is omitted 98s code_challenge 98s is expected to == "kYs0Qq_sgYG15Fy8YHMR2uwwnpfCsWdYQWrG4mN-knA" 98s code_challenge_method 98s is expected to == nil 98s otherwise 98s code_challenge 98s is expected to == nil 98s code_challenge_method 98s is expected to == nil 98s token request 98s when code_verifier is given 98s code_verifier 98s is expected to == "d0a5e1e1b7bc737f2dc2429f2c2e1d2b" 98s #verify_code_verifier! 98s when code_verifier is given with code_challenge_method=plain 98s is expected not to raise Exception 98s when collect code_challenge is given 98s is expected not to raise Exception 98s when wrong code_challenge is blank 98s is expected to raise Rack::OAuth2::Server::Token::BadRequest with message matching /invalid_grant/ 98s when code_challenge is nil 98s is expected to raise Rack::OAuth2::Server::Token::BadRequest with message matching /invalid_grant/ 98s when unknown code_challenge_method is given 98s is expected to raise Rack::OAuth2::Server::Token::BadRequest with message matching /invalid_grant/ 98s otherwise 98s code_verifier 98s is expected to == nil 98s #verify_code_verifier! 98s when code_verifier is given with code_challenge_method=plain 98s is expected to raise Rack::OAuth2::Server::Token::BadRequest with message matching /invalid_grant/ 98s when collect code_challenge is given 98s is expected to raise Rack::OAuth2::Server::Token::BadRequest with message matching /invalid_grant/ 98s when wrong code_challenge is blank 98s is expected to raise Rack::OAuth2::Server::Token::BadRequest with message matching /invalid_grant/ 98s when code_challenge is nil 98s is expected not to raise Exception 98s when unknown code_challenge_method is given 98s is expected to raise Rack::OAuth2::Server::Token::BadRequest with message matching /invalid_grant/ 98s 98s Rack::OAuth2::Server::Authorize::Code 98s authorization request 98s when response_mode is given 98s response_mode 98s is expected to == "form_post" 98s otherwise 98s response_mode 98s is expected to == nil 98s 98s Rack::OAuth2::Server::Resource::Bearer::Unauthorized 98s is expected to be a kind of Rack::OAuth2::Server::Resource::Unauthorized 98s #scheme 98s scheme 98s is expected to == :Bearer 98s #finish 98s should use Bearer scheme 98s 98s Rack::OAuth2::Server::Resource::Bearer::ErrorMethods 98s unauthorized! 98s is expected to raise Rack::OAuth2::Server::Resource::Bearer::Unauthorized 98s invalid_token! 98s should raise Rack::OAuth2::Server::Resource::Bearer::Unauthorized with error = :invalid_token 98s 98s Rack::OAuth2::Server::Resource::Bearer 98s when no access token is given 98s behaves like skipped_authentication_request 98s should skip OAuth 2.0 authentication 98s when valid_token is given 98s when token is in Authorization header 98s behaves like authenticated_bearer_request 98s should be authenticated 98s when token is in params 98s behaves like authenticated_bearer_request 98s should be authenticated 98s when invalid authorization header is given 98s behaves like skipped_authentication_request 98s should skip OAuth 2.0 authentication 98s when invalid_token is given 98s when token is in Authorization header 98s behaves like unauthorized_bearer_request 98s should be unauthorized 98s when token is in params 98s behaves like unauthorized_bearer_request 98s should be unauthorized 98s realm 98s when specified 98s should use specified realm 98s otherwize 98s should use default realm 98s when multiple access_token is given 98s when token is in Authorization header and params 98s behaves like bad_bearer_request 98s should be bad_request 98s 98s Rack::OAuth2::Server::Resource::BadRequest 98s is expected to be a kind of Rack::OAuth2::Server::Abstract::BadRequest 98s #finish 98s should respond in JSON 98s 98s Rack::OAuth2::Server::Resource::Unauthorized 98s is expected to be a kind of Rack::OAuth2::Server::Abstract::Unauthorized 98s #scheme 98s is expected to raise RuntimeError with "Define me!" 98s when scheme is defined 98s #finish 98s should respond in JSON 98s when error_code is not invalid_token 98s should have error_code in body but not in WWW-Authenticate header 98s when no error_code is given 98s should have error_code in body but not in WWW-Authenticate header 98s when realm is specified 98s should use given realm 98s 98s Rack::OAuth2::Server::Resource::Forbidden 98s is expected to be a kind of Rack::OAuth2::Server::Abstract::Forbidden 98s #finish 98s should respond in JSON 98s when scope option is given 98s should have blank WWW-Authenticate header 98s 98s Rack::OAuth2::Server::Resource::Bearer::ErrorMethods 98s bad_request! 98s is expected to raise Rack::OAuth2::Server::Resource::BadRequest 98s unauthorized! 98s is expected to raise RuntimeError with "Define me!" 98s invalid_request! 98s should raise Rack::OAuth2::Server::Resource::BadRequest with error = :invalid_request 98s invalid_token! 98s is expected to raise RuntimeError with "Define me!" 98s insufficient_scope! 98s should raise Rack::OAuth2::Server::Resource::Forbidden with error = :insufficient_scope 98s 98s Rack::OAuth2::Server::Resource 98s realm 98s is expected to == "realm" 98s 98s Rack::OAuth2::Server::Resource::Request 98s #setup! 98s is expected to raise RuntimeError with "Define me!" 98s #oauth2? 98s is expected to raise RuntimeError with "Define me!" 98s 98s Rack::OAuth2::Server::Token::AuthorizationCode 98s should prevent to be cached 98s status 98s is expected to == 200 98s content_type 98s is expected to == "application/json" 98s body 98s is expected to include "\"access_token\":\"access_token\"" 98s body 98s is expected to include "\"token_type\":\"bearer\"" 98s when code is missing 98s status 98s is expected to == 400 98s content_type 98s is expected to == "application/json" 98s body 98s is expected to include "\"error\":\"invalid_request\"" 98s 98s Rack::OAuth2::Server::Token::ClientCredentials 98s status 98s is expected to == 200 98s content_type 98s is expected to == "application/json" 98s body 98s is expected to include "\"access_token\":\"access_token\"" 98s body 98s is expected to include "\"token_type\":\"bearer\"" 98s basic auth 98s status 98s is expected to == 200 98s compliance with RFC6749 sec 2.3.1 98s status 98s is expected to == 200 98s 98s Rack::OAuth2::Server::Token::BadRequest 98s is expected to be a kind of Rack::OAuth2::Server::Abstract::BadRequest 98s #finish 98s should respond in JSON 98s 98s Rack::OAuth2::Server::Token::Unauthorized 98s is expected to be a kind of Rack::OAuth2::Server::Abstract::Unauthorized 98s #finish 98s should respond in JSON 98s 98s Rack::OAuth2::Server::Token::ErrorMethods 98s bad_request! 98s is expected to raise Rack::OAuth2::Server::Token::BadRequest 98s unauthorized! 98s is expected to raise Rack::OAuth2::Server::Token::Unauthorized 98s invalid_request! 98s should raise Rack::OAuth2::Server::Token::BadRequest with error = :invalid_request 98s invalid_client! 98s should raise Rack::OAuth2::Server::Token::Unauthorized with error = :invalid_client 98s invalid_grant! 98s should raise Rack::OAuth2::Server::Token::BadRequest with error = :invalid_grant 98s unauthorized_client! 98s should raise Rack::OAuth2::Server::Token::BadRequest with error = :unauthorized_client 98s unsupported_grant_type! 98s should raise Rack::OAuth2::Server::Token::BadRequest with error = :unsupported_grant_type 98s invalid_scope! 98s should raise Rack::OAuth2::Server::Token::BadRequest with error = :invalid_scope 98s 98s Rack::OAuth2::Server::Token::JWTBearer 98s status 98s is expected to == 200 98s content_type 98s is expected to == "application/json" 98s body 98s is expected to include "\"access_token\":\"access_token\"" 98s body 98s is expected to include "\"token_type\":\"bearer\"" 98s when assertion is missing 98s status 98s is expected to == 400 98s content_type 98s is expected to == "application/json" 98s body 98s is expected to include "\"error\":\"invalid_request\"" 98s 98s Rack::OAuth2::Server::Token::Password 98s status 98s is expected to == 200 98s content_type 98s is expected to == "application/json" 98s body 98s is expected to include "\"access_token\":\"access_token\"" 98s body 98s is expected to include "\"token_type\":\"bearer\"" 98s when username is missing 98s status 98s is expected to == 400 98s content_type 98s is expected to == "application/json" 98s body 98s is expected to include "\"error\":\"invalid_request\"" 98s when password is missing 98s status 98s is expected to == 400 98s content_type 98s is expected to == "application/json" 98s body 98s is expected to include "\"error\":\"invalid_request\"" 98s 98s Rack::OAuth2::Server::Token::RefreshToken 98s status 98s is expected to == 200 98s content_type 98s is expected to == "application/json" 98s body 98s is expected to include "\"access_token\":\"access_token\"" 98s body 98s is expected to include "\"token_type\":\"bearer\"" 98s when refresh_token is missing 98s status 98s is expected to == 400 98s content_type 98s is expected to == "application/json" 98s body 98s is expected to include "\"error\":\"invalid_request\"" 98s 98s Rack::OAuth2::Server::Token::SAML2Bearer 98s status 98s is expected to == 200 98s content_type 98s is expected to == "application/json" 98s body 98s is expected to include "\"access_token\":\"access_token\"" 98s body 98s is expected to include "\"token_type\":\"bearer\"" 98s when assertion is missing 98s status 98s is expected to == 400 98s content_type 98s is expected to == "application/json" 98s body 98s is expected to include "\"error\":\"invalid_request\"" 98s 98s Rack::OAuth2::Server::Token 98s when multiple client credentials are given 98s when different credentials are given 98s should fail with unsupported_grant_type 98s when same credentials are given 98s should ignore duplicates 98s when unsupported grant_type is given 98s status 98s is expected to == 400 98s content_type 98s is expected to == "application/json" 98s body 98s is expected to include "\"error\":\"unsupported_grant_type\"" 98s when client_id is missing 98s status 98s is expected to == 400 98s content_type 98s is expected to == "application/json" 98s body 98s is expected to include "\"error\":\"invalid_request\"" 98s when grant_type is missing 98s status 98s is expected to == 400 98s content_type 98s is expected to == "application/json" 98s body 98s is expected to include "\"error\":\"invalid_request\"" 98s when client_id is given via JWT client assertion 98s when client_assertion is invalid JWT 98s status 98s is expected to == 400 98s content_type 98s is expected to == "application/json" 98s body 98s is expected to include "\"error\":\"invalid_request\"" 98s when client_assertion_type is missing 98s status 98s is expected to == 400 98s content_type 98s is expected to == "application/json" 98s body 98s is expected to include "\"error\":\"invalid_request\"" 98s when client_assertion_type is unknown 98s status 98s is expected to == 400 98s content_type 98s is expected to == "application/json" 98s body 98s is expected to include "\"error\":\"invalid_request\"" 98s when client_assertion issuer is different from client_id 98s status 98s is expected to == 400 98s content_type 98s is expected to == "application/json" 98s body 98s is expected to include "\"error\":\"invalid_request\"" 98s otherwise 98s status 98s is expected to == 200 98s content_type 98s is expected to == "application/json" 98s body 98s is expected to include "\"access_token\":\"access_token\"" 98s when invalid_request 98s status 98s is expected to == 400 98s content_type 98s is expected to == "application/json" 98s body 98s is expected to include "\"error\":\"invalid_request\"" 98s body 98s 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.\"" 98s when invalid_client 98s status 98s is expected to == 401 98s content_type 98s is expected to == "application/json" 98s body 98s is expected to include "\"error\":\"invalid_client\"" 98s body 98s 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.\"" 98s headers 98s is expected to include "WWW-Authenticate" 98s when invalid_grant 98s status 98s is expected to == 400 98s content_type 98s is expected to == "application/json" 98s body 98s is expected to include "\"error\":\"invalid_grant\"" 98s body 98s 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).\"" 98s when unauthorized_client 98s status 98s is expected to == 400 98s content_type 98s is expected to == "application/json" 98s body 98s is expected to include "\"error\":\"unauthorized_client\"" 98s body 98s is expected to include "\"error_description\":\"The authenticated client is not authorized to use the access grant type provided.\"" 98s when unsupported_grant_type 98s status 98s is expected to == 400 98s content_type 98s is expected to == "application/json" 98s body 98s is expected to include "\"error\":\"unsupported_grant_type\"" 98s body 98s is expected to include "\"error_description\":\"The access grant included - its type or another attribute - is not supported by the authorization server.\"" 98s when invalid_scope 98s status 98s is expected to == 400 98s content_type 98s is expected to == "application/json" 98s body 98s is expected to include "\"error\":\"invalid_scope\"" 98s body 98s is expected to include "\"error_description\":\"The requested scope is invalid, unknown, malformed, or exceeds the previously granted scope.\"" 98s when skip_www_authenticate option is specified on invalid_client 98s headers 98s is expected not to include "WWW-Authenticate" 98s when responding 98s when access_token is missing 98s is expected to raise AttrRequired::AttrMissing 98s extensibility 98s extensions 98s is expected to == [Rack::OAuth2::Server::Token::Extension::Example] 98s JWT assertion 98s is expected to == Rack::OAuth2::Server::Token::Extension::Example 98s 98s Rack::OAuth2::Util 98s .www_form_url_encode 98s is expected to == "%3D%2B+.-%2F" 98s .www_form_urldecode 98s is expected to == "=+ .-/" 98s .base64_encode 98s is expected to == "PSsgLi0v" 98s .compact_hash 98s is expected to == {:k1=>"v1"} 98s .parse_uri 98s when String is given 98s is expected to be a kind of URI::Generic 98s when URI is given 98s should be itself 98s when invalid URI is given 98s is expected to raise URI::InvalidURIError 98s otherwise 98s is expected to raise StandardError 98s .redirect_uri 98s when location = :fragment 98s is expected to == "http://client.example.com#k1=v1" 98s when location = :query 98s is expected to == "http://client.example.com?k1=v1" 98s .uri_match? 98s when invalid URI is given 98s is expected to == false 98s when exactly same 98s is expected to == true 98s when path prefix matches 98s is expected to == true 98s otherwise 98s is expected to == false 98s 98s Finished in 1.23 seconds (files took 1.19 seconds to load) 98s 339 examples, 0 failures 98s 98s mv ./.gem2deb.lib lib 99s autopkgtest [08:42:46]: test gem2deb-test-runner: -----------------------] 99s autopkgtest [08:42:47]: test gem2deb-test-runner: - - - - - - - - - - results - - - - - - - - - - 99s gem2deb-test-runner PASS 100s autopkgtest [08:42:48]: @@@@@@@@@@@@@@@@@@@@ summary 100s gem2deb-test-runner PASS 117s nova [W] Using flock in prodstack6-arm64 117s Creating nova instance adt-plucky-arm64-ruby-rack-oauth2-20250310-084108-juju-7f2275-prod-proposed-migration-environment-15-e353117d-f4c3-4c7e-b4b0-2dc663d835aa from image adt/ubuntu-plucky-arm64-server-20250310.img (UUID bea2204a-fdfe-4758-b97e-750a20d22305)... 117s nova [W] Timed out waiting for b47d35cf-8bf4-41cb-bb05-73adca7e33aa to get deleted.