0s autopkgtest [03:41:34]: starting date and time: 2025-10-30 03:41:34+0000 0s autopkgtest [03:41:34]: git checkout: 4b346b80 nova: make wait_reboot return success even when a no-op 0s autopkgtest [03:41:34]: host juju-7f2275-prod-proposed-migration-environment-20; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.q6k55fmd/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:ruby-faraday-follow-redirects --apt-upgrade ruby-json-jwt --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=ruby-faraday-follow-redirects/0.4.0-1 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-s390x --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-20@bos03-s390x-12.secgroup --name adt-resolute-s390x-ruby-json-jwt-20251030-034134-juju-7f2275-prod-proposed-migration-environment-20-59b9faaf-7fea-4250-bfab-a10a8a185bfb --image adt/ubuntu-resolute-s390x-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-20 --net-id=net_prod-proposed-migration-s390x -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 3s Creating nova instance adt-resolute-s390x-ruby-json-jwt-20251030-034134-juju-7f2275-prod-proposed-migration-environment-20-59b9faaf-7fea-4250-bfab-a10a8a185bfb from image adt/ubuntu-resolute-s390x-server-20251029.img (UUID 9b44f86f-e777-40dd-9c62-e99dbe461ec3)... 50s autopkgtest [03:42:24]: testbed dpkg architecture: s390x 50s autopkgtest [03:42:24]: testbed apt version: 3.1.11 50s autopkgtest [03:42:24]: @@@@@@@@@@@@@@@@@@@@ test bed setup 50s autopkgtest [03:42:24]: testbed release detected to be: None 51s autopkgtest [03:42:25]: updating testbed package index (apt update) 51s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [87.8 kB] 52s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 52s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 52s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 52s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [3669 kB] 53s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [5856 B] 53s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [70.5 kB] 53s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [206 kB] 53s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x Packages [255 kB] 53s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/restricted s390x Packages [940 B] 53s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/universe s390x Packages [2381 kB] 53s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse s390x Packages [21.0 kB] 53s Fetched 6697 kB in 2s (3601 kB/s) 54s Reading package lists... 55s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 55s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 55s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 55s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 56s Reading package lists... 56s Reading package lists... 56s Building dependency tree... 56s Reading state information... 56s Calculating upgrade... 56s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 56s autopkgtest [03:42:30]: upgrading testbed (apt dist-upgrade and autopurge) 56s Reading package lists... 56s Building dependency tree... 56s Reading state information... 56s Calculating upgrade... 57s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 57s Reading package lists... 57s Building dependency tree... 57s Reading state information... 57s Solving dependencies... 57s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 60s autopkgtest [03:42:34]: testbed running kernel: Linux 6.17.0-5-generic #5-Ubuntu SMP Mon Sep 22 08:56:47 UTC 2025 60s autopkgtest [03:42:34]: @@@@@@@@@@@@@@@@@@@@ apt-source ruby-json-jwt 61s Get:1 http://ftpmaster.internal/ubuntu resolute/universe ruby-json-jwt 1.16.7-1 (dsc) [2253 B] 61s Get:2 http://ftpmaster.internal/ubuntu resolute/universe ruby-json-jwt 1.16.7-1 (tar) [30.1 kB] 61s Get:3 http://ftpmaster.internal/ubuntu resolute/universe ruby-json-jwt 1.16.7-1 (diff) [3284 B] 61s gpgv: Signature made Sun Mar 9 22:02:02 2025 UTC 61s gpgv: using RSA key 5C7ABEA20F8630459CC8C8B5E27F2CF8458C2FA4 61s gpgv: Can't check signature: No public key 61s dpkg-source: warning: cannot verify inline signature for ./ruby-json-jwt_1.16.7-1.dsc: no acceptable signature found 61s autopkgtest [03:42:35]: testing package ruby-json-jwt version 1.16.7-1 62s autopkgtest [03:42:36]: build not needed 62s autopkgtest [03:42:36]: test gem2deb-test-runner: preparing testbed 62s Reading package lists... 63s Building dependency tree... 63s Reading state information... 63s Solving dependencies... 63s The following NEW packages will be installed: 63s gem2deb-test-runner libruby libruby3.3 rake ruby ruby-activesupport 63s ruby-addressable ruby-aes-key-wrap ruby-base64 ruby-bindata ruby-concurrent 63s ruby-connection-pool ruby-crack ruby-csv ruby-did-you-mean ruby-diff-lcs 63s ruby-faraday ruby-faraday-follow-redirects ruby-faraday-net-http 63s ruby-hashdiff ruby-i18n ruby-json ruby-json-jwt ruby-minitest 63s ruby-net-telnet ruby-power-assert ruby-public-suffix ruby-rspec 63s ruby-rspec-core ruby-rspec-expectations ruby-rspec-its ruby-rspec-mocks 63s ruby-rspec-support ruby-ruby2-keywords ruby-rubygems ruby-test-unit 63s ruby-tzinfo ruby-webmock ruby-webrick ruby-xmlrpc ruby3.3 63s rubygems-integration 63s 0 upgraded, 42 newly installed, 0 to remove and 0 not upgraded. 63s Need to get 7949 kB of archives. 63s After this operation, 39.8 MB of additional disk space will be used. 63s Get:1 http://ftpmaster.internal/ubuntu resolute/main s390x rubygems-integration all 1.19 [5550 B] 63s Get:2 http://ftpmaster.internal/ubuntu resolute/main s390x ruby-csv all 3.3.4-1 [43.0 kB] 63s Get:3 http://ftpmaster.internal/ubuntu resolute/main s390x ruby-did-you-mean all 1.6.3-2 [14.8 kB] 63s Get:4 http://ftpmaster.internal/ubuntu resolute/main s390x ruby-net-telnet all 0.2.0-1 [13.3 kB] 63s Get:5 http://ftpmaster.internal/ubuntu resolute/main s390x ruby-ruby2-keywords all 0.0.5-1 [4280 B] 63s Get:6 http://ftpmaster.internal/ubuntu resolute/main s390x ruby-webrick all 1.9.1-1 [60.8 kB] 63s Get:7 http://ftpmaster.internal/ubuntu resolute/main s390x ruby-xmlrpc all 0.3.3-2 [24.8 kB] 63s Get:8 http://ftpmaster.internal/ubuntu resolute/main s390x libruby3.3 s390x 3.3.8-2ubuntu2 [5871 kB] 65s Get:9 http://ftpmaster.internal/ubuntu resolute/main s390x ruby3.3 s390x 3.3.8-2ubuntu2 [58.8 kB] 65s Get:10 http://ftpmaster.internal/ubuntu resolute/main s390x libruby s390x 1:3.3 [5162 B] 65s Get:11 http://ftpmaster.internal/ubuntu resolute/main s390x ruby-rubygems all 3.6.7-2ubuntu1 [332 kB] 65s Get:12 http://ftpmaster.internal/ubuntu resolute/main s390x ruby s390x 1:3.3 [3668 B] 65s Get:13 http://ftpmaster.internal/ubuntu resolute/main s390x rake all 13.2.1-1 [45.8 kB] 65s Get:14 http://ftpmaster.internal/ubuntu resolute/universe s390x ruby-minitest all 5.25.4-3 [48.8 kB] 65s Get:15 http://ftpmaster.internal/ubuntu resolute/universe s390x ruby-power-assert all 2.0.3-1 [12.0 kB] 65s Get:16 http://ftpmaster.internal/ubuntu resolute/universe s390x ruby-test-unit all 3.6.2-1 [67.0 kB] 65s Get:17 http://ftpmaster.internal/ubuntu resolute/universe s390x gem2deb-test-runner s390x 2.2.5 [18.3 kB] 65s Get:18 http://ftpmaster.internal/ubuntu resolute/universe s390x ruby-concurrent all 1.3.4-1 [283 kB] 65s Get:19 http://ftpmaster.internal/ubuntu resolute/universe s390x ruby-i18n all 1.14.7-1 [42.8 kB] 65s Get:20 http://ftpmaster.internal/ubuntu resolute/universe s390x ruby-tzinfo all 2.0.6-1 [55.2 kB] 65s Get:21 http://ftpmaster.internal/ubuntu resolute/universe s390x ruby-connection-pool all 2.4.1-1 [8876 B] 65s Get:22 http://ftpmaster.internal/ubuntu resolute/main s390x ruby-base64 all 0.2.0-2 [7168 B] 65s Get:23 http://ftpmaster.internal/ubuntu resolute/universe s390x ruby-activesupport all 2:7.2.2.1+dfsg-7 [224 kB] 65s Get:24 http://ftpmaster.internal/ubuntu resolute/universe s390x ruby-public-suffix all 6.0.1-1 [14.4 kB] 65s Get:25 http://ftpmaster.internal/ubuntu resolute/universe s390x ruby-addressable all 2.8.7-2 [55.4 kB] 65s Get:26 http://ftpmaster.internal/ubuntu resolute/universe s390x ruby-aes-key-wrap all 1.1.0-1 [5228 B] 65s Get:27 http://ftpmaster.internal/ubuntu resolute/universe s390x ruby-bindata all 2.4.14-1 [41.4 kB] 65s Get:28 http://ftpmaster.internal/ubuntu resolute/universe s390x ruby-crack all 0.4.4-4 [8764 B] 65s Get:29 http://ftpmaster.internal/ubuntu resolute/universe s390x ruby-diff-lcs all 1.5.1-1 [22.8 kB] 65s Get:30 http://ftpmaster.internal/ubuntu resolute/universe s390x ruby-faraday-net-http all 3.0.2-2 [5716 B] 65s Get:31 http://ftpmaster.internal/ubuntu resolute/main s390x ruby-json s390x 2.9.1+dfsg-1 [54.9 kB] 65s Get:32 http://ftpmaster.internal/ubuntu resolute/universe s390x ruby-faraday all 2.12.2-1 [37.2 kB] 65s Get:33 http://ftpmaster.internal/ubuntu resolute-proposed/universe s390x ruby-faraday-follow-redirects all 0.4.0-1 [6674 B] 65s Get:34 http://ftpmaster.internal/ubuntu resolute/universe s390x ruby-hashdiff all 1.1.0-1 [12.9 kB] 65s Get:35 http://ftpmaster.internal/ubuntu resolute/universe s390x ruby-json-jwt all 1.16.7-1 [11.7 kB] 65s Get:36 http://ftpmaster.internal/ubuntu resolute/universe s390x ruby-rspec-support all 3.13.0c0e0m0s1-2 [29.2 kB] 65s Get:37 http://ftpmaster.internal/ubuntu resolute/universe s390x ruby-rspec-core all 3.13.0c0e0m0s1-2 [164 kB] 65s Get:38 http://ftpmaster.internal/ubuntu resolute/universe s390x ruby-rspec-expectations all 3.13.0c0e0m0s1-2 [89.8 kB] 65s Get:39 http://ftpmaster.internal/ubuntu resolute/universe s390x ruby-rspec-mocks all 3.13.0c0e0m0s1-2 [81.0 kB] 65s Get:40 http://ftpmaster.internal/ubuntu resolute/universe s390x ruby-rspec all 3.13.0c0e0m0s1-2 [3500 B] 65s Get:41 http://ftpmaster.internal/ubuntu resolute/universe s390x ruby-rspec-its all 1.3.0-1 [6212 B] 65s Get:42 http://ftpmaster.internal/ubuntu resolute/universe s390x ruby-webmock all 3.25.1-1 [48.0 kB] 66s Fetched 7949 kB in 2s (3234 kB/s) 66s Selecting previously unselected package rubygems-integration. 66s (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 ... 56950 files and directories currently installed.) 66s Preparing to unpack .../00-rubygems-integration_1.19_all.deb ... 66s Unpacking rubygems-integration (1.19) ... 66s Selecting previously unselected package ruby-csv. 66s Preparing to unpack .../01-ruby-csv_3.3.4-1_all.deb ... 66s Unpacking ruby-csv (3.3.4-1) ... 66s Selecting previously unselected package ruby-did-you-mean. 66s Preparing to unpack .../02-ruby-did-you-mean_1.6.3-2_all.deb ... 66s Unpacking ruby-did-you-mean (1.6.3-2) ... 66s Selecting previously unselected package ruby-net-telnet. 66s Preparing to unpack .../03-ruby-net-telnet_0.2.0-1_all.deb ... 66s Unpacking ruby-net-telnet (0.2.0-1) ... 66s Selecting previously unselected package ruby-ruby2-keywords. 66s Preparing to unpack .../04-ruby-ruby2-keywords_0.0.5-1_all.deb ... 66s Unpacking ruby-ruby2-keywords (0.0.5-1) ... 66s Selecting previously unselected package ruby-webrick. 66s Preparing to unpack .../05-ruby-webrick_1.9.1-1_all.deb ... 66s Unpacking ruby-webrick (1.9.1-1) ... 66s Selecting previously unselected package ruby-xmlrpc. 66s Preparing to unpack .../06-ruby-xmlrpc_0.3.3-2_all.deb ... 66s Unpacking ruby-xmlrpc (0.3.3-2) ... 66s Selecting previously unselected package libruby3.3:s390x. 66s Preparing to unpack .../07-libruby3.3_3.3.8-2ubuntu2_s390x.deb ... 66s Unpacking libruby3.3:s390x (3.3.8-2ubuntu2) ... 66s Selecting previously unselected package ruby3.3. 66s Preparing to unpack .../08-ruby3.3_3.3.8-2ubuntu2_s390x.deb ... 66s Unpacking ruby3.3 (3.3.8-2ubuntu2) ... 66s Selecting previously unselected package libruby:s390x. 66s Preparing to unpack .../09-libruby_1%3a3.3_s390x.deb ... 66s Unpacking libruby:s390x (1:3.3) ... 66s Selecting previously unselected package ruby-rubygems. 66s Preparing to unpack .../10-ruby-rubygems_3.6.7-2ubuntu1_all.deb ... 66s Unpacking ruby-rubygems (3.6.7-2ubuntu1) ... 66s Selecting previously unselected package ruby. 66s Preparing to unpack .../11-ruby_1%3a3.3_s390x.deb ... 66s Unpacking ruby (1:3.3) ... 66s Selecting previously unselected package rake. 66s Preparing to unpack .../12-rake_13.2.1-1_all.deb ... 66s Unpacking rake (13.2.1-1) ... 66s Selecting previously unselected package ruby-minitest. 66s Preparing to unpack .../13-ruby-minitest_5.25.4-3_all.deb ... 66s Unpacking ruby-minitest (5.25.4-3) ... 66s Selecting previously unselected package ruby-power-assert. 66s Preparing to unpack .../14-ruby-power-assert_2.0.3-1_all.deb ... 66s Unpacking ruby-power-assert (2.0.3-1) ... 66s Selecting previously unselected package ruby-test-unit. 66s Preparing to unpack .../15-ruby-test-unit_3.6.2-1_all.deb ... 66s Unpacking ruby-test-unit (3.6.2-1) ... 66s Selecting previously unselected package gem2deb-test-runner. 66s Preparing to unpack .../16-gem2deb-test-runner_2.2.5_s390x.deb ... 66s Unpacking gem2deb-test-runner (2.2.5) ... 66s Selecting previously unselected package ruby-concurrent. 66s Preparing to unpack .../17-ruby-concurrent_1.3.4-1_all.deb ... 66s Unpacking ruby-concurrent (1.3.4-1) ... 66s Selecting previously unselected package ruby-i18n. 66s Preparing to unpack .../18-ruby-i18n_1.14.7-1_all.deb ... 66s Unpacking ruby-i18n (1.14.7-1) ... 66s Selecting previously unselected package ruby-tzinfo. 66s Preparing to unpack .../19-ruby-tzinfo_2.0.6-1_all.deb ... 66s Unpacking ruby-tzinfo (2.0.6-1) ... 66s Selecting previously unselected package ruby-connection-pool. 66s Preparing to unpack .../20-ruby-connection-pool_2.4.1-1_all.deb ... 66s Unpacking ruby-connection-pool (2.4.1-1) ... 66s Selecting previously unselected package ruby-base64. 66s Preparing to unpack .../21-ruby-base64_0.2.0-2_all.deb ... 66s Unpacking ruby-base64 (0.2.0-2) ... 66s Selecting previously unselected package ruby-activesupport. 66s Preparing to unpack .../22-ruby-activesupport_2%3a7.2.2.1+dfsg-7_all.deb ... 66s Unpacking ruby-activesupport (2:7.2.2.1+dfsg-7) ... 66s Selecting previously unselected package ruby-public-suffix. 66s Preparing to unpack .../23-ruby-public-suffix_6.0.1-1_all.deb ... 66s Unpacking ruby-public-suffix (6.0.1-1) ... 66s Selecting previously unselected package ruby-addressable. 66s Preparing to unpack .../24-ruby-addressable_2.8.7-2_all.deb ... 66s Unpacking ruby-addressable (2.8.7-2) ... 66s Selecting previously unselected package ruby-aes-key-wrap. 66s Preparing to unpack .../25-ruby-aes-key-wrap_1.1.0-1_all.deb ... 66s Unpacking ruby-aes-key-wrap (1.1.0-1) ... 66s Selecting previously unselected package ruby-bindata. 66s Preparing to unpack .../26-ruby-bindata_2.4.14-1_all.deb ... 66s Unpacking ruby-bindata (2.4.14-1) ... 66s Selecting previously unselected package ruby-crack. 66s Preparing to unpack .../27-ruby-crack_0.4.4-4_all.deb ... 66s Unpacking ruby-crack (0.4.4-4) ... 66s Selecting previously unselected package ruby-diff-lcs. 66s Preparing to unpack .../28-ruby-diff-lcs_1.5.1-1_all.deb ... 66s Unpacking ruby-diff-lcs (1.5.1-1) ... 66s Selecting previously unselected package ruby-faraday-net-http. 66s Preparing to unpack .../29-ruby-faraday-net-http_3.0.2-2_all.deb ... 66s Unpacking ruby-faraday-net-http (3.0.2-2) ... 66s Selecting previously unselected package ruby-json:s390x. 66s Preparing to unpack .../30-ruby-json_2.9.1+dfsg-1_s390x.deb ... 66s Unpacking ruby-json:s390x (2.9.1+dfsg-1) ... 66s Selecting previously unselected package ruby-faraday. 66s Preparing to unpack .../31-ruby-faraday_2.12.2-1_all.deb ... 66s Unpacking ruby-faraday (2.12.2-1) ... 66s Selecting previously unselected package ruby-faraday-follow-redirects. 66s Preparing to unpack .../32-ruby-faraday-follow-redirects_0.4.0-1_all.deb ... 66s Unpacking ruby-faraday-follow-redirects (0.4.0-1) ... 66s Selecting previously unselected package ruby-hashdiff. 66s Preparing to unpack .../33-ruby-hashdiff_1.1.0-1_all.deb ... 66s Unpacking ruby-hashdiff (1.1.0-1) ... 66s Selecting previously unselected package ruby-json-jwt. 66s Preparing to unpack .../34-ruby-json-jwt_1.16.7-1_all.deb ... 66s Unpacking ruby-json-jwt (1.16.7-1) ... 66s Selecting previously unselected package ruby-rspec-support. 66s Preparing to unpack .../35-ruby-rspec-support_3.13.0c0e0m0s1-2_all.deb ... 66s Unpacking ruby-rspec-support (3.13.0c0e0m0s1-2) ... 66s Selecting previously unselected package ruby-rspec-core. 66s Preparing to unpack .../36-ruby-rspec-core_3.13.0c0e0m0s1-2_all.deb ... 66s Unpacking ruby-rspec-core (3.13.0c0e0m0s1-2) ... 66s Selecting previously unselected package ruby-rspec-expectations. 66s Preparing to unpack .../37-ruby-rspec-expectations_3.13.0c0e0m0s1-2_all.deb ... 66s Unpacking ruby-rspec-expectations (3.13.0c0e0m0s1-2) ... 66s Selecting previously unselected package ruby-rspec-mocks. 66s Preparing to unpack .../38-ruby-rspec-mocks_3.13.0c0e0m0s1-2_all.deb ... 66s Unpacking ruby-rspec-mocks (3.13.0c0e0m0s1-2) ... 66s Selecting previously unselected package ruby-rspec. 66s Preparing to unpack .../39-ruby-rspec_3.13.0c0e0m0s1-2_all.deb ... 66s Unpacking ruby-rspec (3.13.0c0e0m0s1-2) ... 66s Selecting previously unselected package ruby-rspec-its. 66s Preparing to unpack .../40-ruby-rspec-its_1.3.0-1_all.deb ... 66s Unpacking ruby-rspec-its (1.3.0-1) ... 66s Selecting previously unselected package ruby-webmock. 66s Preparing to unpack .../41-ruby-webmock_3.25.1-1_all.deb ... 66s Unpacking ruby-webmock (3.25.1-1) ... 66s Setting up ruby-ruby2-keywords (0.0.5-1) ... 66s Setting up ruby-power-assert (2.0.3-1) ... 66s Setting up ruby-hashdiff (1.1.0-1) ... 66s Setting up ruby-public-suffix (6.0.1-1) ... 66s Setting up ruby-bindata (2.4.14-1) ... 66s Setting up rubygems-integration (1.19) ... 66s Setting up ruby-concurrent (1.3.4-1) ... 66s Setting up ruby-minitest (5.25.4-3) ... 66s Setting up ruby-test-unit (3.6.2-1) ... 66s Setting up ruby-net-telnet (0.2.0-1) ... 66s Setting up ruby-csv (3.3.4-1) ... 66s Setting up ruby-base64 (0.2.0-2) ... 66s Setting up ruby-i18n (1.14.7-1) ... 66s Setting up ruby-aes-key-wrap (1.1.0-1) ... 66s Setting up ruby-rspec-support (3.13.0c0e0m0s1-2) ... 66s Setting up ruby-webrick (1.9.1-1) ... 66s Setting up ruby-faraday-net-http (3.0.2-2) ... 66s Setting up ruby-connection-pool (2.4.1-1) ... 66s Setting up ruby-did-you-mean (1.6.3-2) ... 66s Setting up ruby-xmlrpc (0.3.3-2) ... 66s Setting up ruby-addressable (2.8.7-2) ... 66s Setting up ruby-tzinfo (2.0.6-1) ... 66s Setting up rake (13.2.1-1) ... 66s Setting up ruby3.3 (3.3.8-2ubuntu2) ... 66s Setting up libruby3.3:s390x (3.3.8-2ubuntu2) ... 66s Setting up ruby-activesupport (2:7.2.2.1+dfsg-7) ... 66s Setting up ruby-rubygems (3.6.7-2ubuntu1) ... 66s Setting up libruby:s390x (1:3.3) ... 66s Setting up ruby (1:3.3) ... 66s Setting up ruby-json:s390x (2.9.1+dfsg-1) ... 66s Setting up ruby-rspec-core (3.13.0c0e0m0s1-2) ... 66s Setting up ruby-diff-lcs (1.5.1-1) ... 66s Setting up ruby-faraday (2.12.2-1) ... 66s Setting up ruby-crack (0.4.4-4) ... 66s Setting up gem2deb-test-runner (2.2.5) ... 66s Setting up ruby-faraday-follow-redirects (0.4.0-1) ... 66s Setting up ruby-rspec-expectations (3.13.0c0e0m0s1-2) ... 66s Setting up ruby-rspec-mocks (3.13.0c0e0m0s1-2) ... 66s Setting up ruby-rspec-its (1.3.0-1) ... 66s Setting up ruby-webmock (3.25.1-1) ... 66s Setting up ruby-rspec (3.13.0c0e0m0s1-2) ... 66s Setting up ruby-json-jwt (1.16.7-1) ... 66s Processing triggers for libc-bin (2.42-0ubuntu3) ... 66s Processing triggers for man-db (2.13.1-1) ... 68s autopkgtest [03:42:42]: test gem2deb-test-runner: gem2deb-test-runner --autopkgtest --check-dependencies 2>&1 68s autopkgtest [03:42:42]: test gem2deb-test-runner: [----------------------- 68s 68s ┌──────────────────────────────────────────────────────────────────────────────┐ 68s │ Checking Rubygems dependency resolution on ruby3.3 │ 68s └──────────────────────────────────────────────────────────────────────────────┘ 68s 68s RUBYLIB=. GEM_PATH= ruby3.3 -e gem\ \"json-jwt\" 68s mv lib ./.gem2deb.lib 68s mv ./.gem2deb.lib lib 68s 68s ┌──────────────────────────────────────────────────────────────────────────────┐ 68s │ Run tests for ruby3.3 from debian/ruby-tests.rake │ 68s └──────────────────────────────────────────────────────────────────────────────┘ 68s 68s RUBYLIB=. GEM_PATH= ruby3.3 -S rake --rakelibdir /gem2deb-nonexistent -f debian/ruby-tests.rake 68s mv lib ./.gem2deb.lib 68s /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 69s 69s interop 69s with jsrsasign 69s JWS 69s verify 69s should succeed 69s 69s interop 69s with Nimbus JOSE 69s Nimbus JOSE unavailable (PENDING: No reason given) 69s 69s interop 69s with RFC Example 69s JWK Thubmprint 69s thumbprint 69s is expected to == "NzbLsXh8uDCcd-6MNwXF4W_7noWXFZAfHkxZsRGC9Xs" 69s 69s JSON::JWE 69s #content_type 69s is expected to == "application/jose" 69s encrypt! 69s when plaintext given 69s when alg=dir 69s TODO (PENDING: Not yet implemented) 69s when alg=A128KW 69s TODO (PENDING: Not yet implemented) 69s when alg=A256KW 69s TODO (PENDING: Not yet implemented) 69s when unknonw/unsupported algorithm given 69s when alg=unknown 69s behaves like unexpected_algorithm_for_encryption 69s is expected to raise JSON::JWE::UnexpectedAlgorithm 69s when enc=unknown 69s behaves like unexpected_algorithm_for_encryption 69s is expected to raise JSON::JWE::UnexpectedAlgorithm 69s when alg=ECDH-ES 69s behaves like unsupported_algorithm_for_encryption 69s is expected to raise NotImplementedError 69s when alg=ECDH-ES+A128KW 69s behaves like unsupported_algorithm_for_encryption 69s is expected to raise NotImplementedError 69s when alg=ECDH-ES+A256KW 69s behaves like unsupported_algorithm_for_encryption 69s is expected to raise NotImplementedError 69s decrypt! 69s when alg=RSA1_5 69s when enc=A128GCM 69s behaves like decryptable 69s is expected to == "Hello World" 69s behaves like verify_gcm_authentication_tag 69s is expected to raise JSON::JWE::DecryptionFailed 69s when enc=A256GCM 69s behaves like decryptable 69s is expected to == "Hello World" 69s behaves like verify_gcm_authentication_tag 69s is expected to raise JSON::JWE::DecryptionFailed 69s when enc=A128CBC-HS256 69s behaves like decryptable 69s is expected to == "Hello World" 69s when enc=A256CBC-HS512 69s behaves like decryptable 69s is expected to == "Hello World" 69s when alg=RSA-OAEP 69s when enc=A128GCM 69s behaves like decryptable 69s is expected to == "Hello World" 69s behaves like verify_gcm_authentication_tag 69s is expected to raise JSON::JWE::DecryptionFailed 69s when enc=A256GCM 69s behaves like decryptable 69s is expected to == "Hello World" 69s behaves like verify_gcm_authentication_tag 69s is expected to raise JSON::JWE::DecryptionFailed 69s when enc=A128CBC-HS256 69s behaves like decryptable 69s is expected to == "Hello World" 69s behaves like verify_cbc_authentication_tag 69s with missing signature 69s behaves like signature_verification_failure 69s is expected to raise JSON::JWE::DecryptionFailed 69s with good pkcs7 padding and bad signature 69s behaves like signature_verification_failure 69s is expected to raise JSON::JWE::DecryptionFailed 69s with bad pkcs7 padding and bad signature 69s behaves like signature_verification_failure 69s is expected to raise JSON::JWE::DecryptionFailed 69s when enc=A256CBC-HS512 69s behaves like decryptable 69s is expected to == "Hello World" 69s behaves like verify_cbc_authentication_tag 69s with missing signature 69s behaves like signature_verification_failure 69s is expected to raise JSON::JWE::DecryptionFailed 69s with good pkcs7 padding and bad signature 69s behaves like signature_verification_failure 69s is expected to raise JSON::JWE::DecryptionFailed 69s with bad pkcs7 padding and bad signature 69s behaves like signature_verification_failure 69s is expected to raise JSON::JWE::DecryptionFailed 69s when alg=dir 69s when enc=A128GCM 69s behaves like decryptable 69s is expected to == "Hello World" 69s behaves like verify_gcm_authentication_tag 69s is expected to raise JSON::JWE::DecryptionFailed 69s when enc=A256GCM 69s behaves like decryptable 69s is expected to == "Hello World" 69s behaves like verify_gcm_authentication_tag 69s is expected to raise JSON::JWE::DecryptionFailed 69s when enc=A128CBC-HS256 69s behaves like decryptable 69s is expected to == "Hello World" 69s behaves like verify_cbc_authentication_tag 69s with missing signature 69s behaves like signature_verification_failure 69s is expected to raise JSON::JWE::DecryptionFailed 69s with good pkcs7 padding and bad signature 69s behaves like signature_verification_failure 69s is expected to raise JSON::JWE::DecryptionFailed 69s with bad pkcs7 padding and bad signature 69s behaves like signature_verification_failure 69s is expected to raise JSON::JWE::DecryptionFailed 69s when enc=A256CBC-HS512 69s behaves like decryptable 69s is expected to == "Hello World" 69s behaves like verify_cbc_authentication_tag 69s with missing signature 69s behaves like signature_verification_failure 69s is expected to raise JSON::JWE::DecryptionFailed 69s with good pkcs7 padding and bad signature 69s behaves like signature_verification_failure 69s is expected to raise JSON::JWE::DecryptionFailed 69s with bad pkcs7 padding and bad signature 69s behaves like signature_verification_failure 69s is expected to raise JSON::JWE::DecryptionFailed 69s when alg=A128KW 69s TODO (PENDING: Not yet implemented) 69s when alg=A256KW 69s TODO (PENDING: Not yet implemented) 69s when unknonw/unsupported algorithm given 69s when alg=unknown 69s behaves like unexpected_algorithm_for_decryption 69s is expected to raise JSON::JWE::UnexpectedAlgorithm 69s when enc=unknown 69s behaves like unexpected_algorithm_for_decryption 69s is expected to raise JSON::JWE::UnexpectedAlgorithm 69s when alg=ECDH-ES 69s behaves like unsupported_algorithm_for_decryption 69s is expected to raise NotImplementedError 69s when alg=ECDH-ES+A128KW 69s behaves like unsupported_algorithm_for_decryption 69s is expected to raise NotImplementedError 69s when alg=ECDH-ES+A256KW 69s behaves like unsupported_algorithm_for_decryption 69s is expected to raise NotImplementedError 69s 69s JSON::JWK::JWKizable 69s #to_jwk 69s OpenSSL::PKey::RSA 69s public_key 69s behaves like jwkizable_as_public 69s is expected to be an instance of JSON::JWK 69s is expected to include "kty", "n", and "e" 69s is expected not to include "d", "p", and "q" 69s private_key 69s behaves like jwkizable_as_private 69s is expected to be an instance of JSON::JWK 69s is expected to include "kty", "n", and "e" 69s is expected to include "d", "p", and "q" 69s OpenSSL::PKey::EC 69s public_key 69s behaves like jwkizable_as_public 69s is expected to be an instance of JSON::JWK 69s is expected to include "kty", "crv", "x", and "y" 69s is expected not to include "d" 69s private_key 69s behaves like jwkizable_as_private 69s is expected to be an instance of JSON::JWK 69s is expected to include "kty", "crv", "x", and "y" 69s is expected to include "d" 69s 69s JSON::JWK::Set::Fetcher 69s JSON::JWK::Set::Fetcher::Cache 69s just execute givne block 69s debugging feature 69s logger 69s is expected to be a kind of Logger 69s debugging? 69s is expected to == false 69s .debug! 69s debugging? 69s is expected to == true 69s .debug 69s should enable debugging within given block 69s should not force disable debugging 69s .http_client 69s with http_config 69s should configure OpenIDConnect, SWD and Rack::OAuth2's http_client 69s fetching feature 69s .cache 69s as default 69s is expected to be an instance of JSON::JWK::Set::Fetcher::Cache 69s when specified 69s is expected to be an instance of CustomCache 69s .fetch 69s when not cached 69s should request to jwks_uri 69s when unknown 69s is expected to raise JSON::JWK::Set::KidNotFound 69s when cached 69s when known 69s should not request to jwks_uri 69s is expected to be an instance of JSON::JWK 69s when auto_detect disabled 69s is expected to be an instance of JSON::JWK::Set 69s cache options 69s when cache options not given 69s with auto_detect 69s behaves like receive_options_as_blank_hash 69s behaves like receive_options_as_hash 69s example at ./spec/json/jwk/set/fetcher_spec.rb:163 69s when cache options given 69s with auto_detect 69s behaves like receive_options_as_hash 69s example at ./spec/json/jwk/set/fetcher_spec.rb:163 69s without auto_detect 69s behaves like receive_options_as_hash 69s example at ./spec/json/jwk/set/fetcher_spec.rb:163 69s when kid & auto_detect are included in the given options 69s as hash 69s behaves like receive_options_as_hash 69s example at ./spec/json/jwk/set/fetcher_spec.rb:163 69s as keyward args 69s is expected to raise ArgumentError 69s 69s JSON::JWK::Set 69s #content_type 69s is expected to == "application/jwk-set+json" 69s when single JWK given 69s is expected to == [{"e"=>"AQAB", "kid"=>"nuBTimkcSt_AuEsD8Yv3l8CoGV31bu_3gsRDGN1iVKA", "kty"=>:RSA, "n"=>"x9vNhcvSrxjse...cVAZuhTTNaDLtLIJ6G0yNJvfEieJUhA8wGBoPhD3LMQwQMxTMerpjZhP_qjm6GgeWpKf-iVil86_PSy_z0Vw06_rD0sfXPtlQ"}] 69s when multiple JWKs given 69s is expected to == [{"e"=>"AQAB", "kid"=>"nuBTimkcSt_AuEsD8Yv3l8CoGV31bu_3gsRDGN1iVKA", "kty"=>:RSA, "n"=>"x9vNhcvSrxjse...cVAZuhTTNaDLtLIJ6G0yNJvfEieJUhA8wGBoPhD3LMQwQMxTMerpjZhP_qjm6GgeWpKf-iVil86_PSy_z0Vw06_rD0sfXPtlQ"}] 69s when an Array of JWKs given 69s is expected to == [{"e"=>"AQAB", "kid"=>"nuBTimkcSt_AuEsD8Yv3l8CoGV31bu_3gsRDGN1iVKA", "kty"=>:RSA, "n"=>"x9vNhcvSrxjse...cVAZuhTTNaDLtLIJ6G0yNJvfEieJUhA8wGBoPhD3LMQwQMxTMerpjZhP_qjm6GgeWpKf-iVil86_PSy_z0Vw06_rD0sfXPtlQ"}] 69s when JSON::JWK given 69s should keep JSON::JWK 69s when pure Hash given 69s should convert into JSON::JWK 69s when pure Hash with :keys key given 69s should convert into JSON::JWK 69s #as_json 69s should become proper JWK set format 69s #to_json 69s is expected not to raise Exception 69s 69s JSON::JWK 69s #initialize 69s when no imput 69s is expected to be blank 69s with OpenSSL::PKey::RSA 69s behaves like jwk_with_kid 69s is expected to be an instance of JSON::JWK 69s kid 69s is expected to == "nuBTimkcSt_AuEsD8Yv3l8CoGV31bu_3gsRDGN1iVKA" 69s with OpenSSL::PKey::EC 69s behaves like jwk_with_kid 69s is expected to be an instance of JSON::JWK 69s kid 69s is expected to == "-egRpLjyZCqxBh4OOfd8JSvXwayHmNFAUNkbi8exfhc" 69s with String 69s behaves like jwk_with_kid 69s is expected to be an instance of JSON::JWK 69s kid 69s is expected to == "XZPWsTEZFIerowAF9GHzBtq5CkAOcVvIBnkMu0IIQH0" 69s with JSON::JWK 69s behaves like jwk_with_kid 69s is expected to be an instance of JSON::JWK 69s kid 69s is expected to == "XZPWsTEZFIerowAF9GHzBtq5CkAOcVvIBnkMu0IIQH0" 69s with Hash 69s behaves like jwk_with_kid 69s is expected to be an instance of JSON::JWK 69s kid 69s is expected to == "XZPWsTEZFIerowAF9GHzBtq5CkAOcVvIBnkMu0IIQH0" 69s with nothing 69s behaves like jwk_without_kid 69s is expected to be an instance of JSON::JWK 69s kid 69s is expected to be blank 69s #content_type 69s is expected to == "application/jwk+json" 69s when RSA public key given 69s is expected to include :kty, :e, and :n 69s kty 69s is expected to == :RSA 69s e 69s is expected to == "AQAB" 69s n 69s is expected to == "x9vNhcvSrxjsegZAAo4OEuoZOV_oxINEeWneJYczS80_bQ1J6lSSJ81qecxXAzCLPlvsFoP4eeUNXSt_G7hP7SAM479N-kY_Mzbi...hLcVAZuhTTNaDLtLIJ6G0yNJvfEieJUhA8wGBoPhD3LMQwQMxTMerpjZhP_qjm6GgeWpKf-iVil86_PSy_z0Vw06_rD0sfXPtlQ" 69s when kid/use options given 69s is expected to include :kid and :use 69s kid 69s is expected to == "12345" 69s use 69s is expected to == :sig 69s #thumbprint 69s using default hash function 69s is expected to == "nuBTimkcSt_AuEsD8Yv3l8CoGV31bu_3gsRDGN1iVKA" 69s using SHA512 hash function 69s is expected to == "6v7pXTnQLMiQgvJlPJUdhAUSuGLzgF8C1r3ABAMFet6bc53ea-Pq4ZGbGu3RoAFsNRT1-RhTzDqtqXuLU6NOtw" 69s #to_key 69s is expected to be an instance of OpenSSL::PKey::RSA 69s when EC public key given 69s EC256 69s is expected to include :kty, :crv, :x, and :y 69s kty 69s is expected to == :EC 69s x 69s is expected to == "saPyrO4Lh9kh2FxrF9y1QVmZznWnRRJwpr12UHqzrVY" 69s y 69s is expected to == "MMz4W9zzqlrJhqr-JyrpvlnaIIyZQE6DfrgPkxMAw1M" 69s EC384 69s is expected to include :kty, :crv, :x, and :y 69s kty 69s is expected to == :EC 69s x 69s is expected to == "plzApyFnK7qzhg5XnIZbFj2hZoH2Vdl4-RFm7DnsNMG9tyqrpfq2RyjfKABbcFRt" 69s y 69s is expected to == "ixBzffhk3fcbmeipGLkvQBNCzeNm6QL3hOUTH6IFBzOL0Y7HsGTopNTTspLjlivb" 69s EC512 69s is expected to include :kty, :crv, :x, and :y 69s kty 69s is expected to == :EC 69s x 69s is expected to == "AcMCD-a0a6rnE9TvC0mOqF_DGXRg5Y3iTb4eHNwTm2kD6iujx9M_f8d_FGHr0OhpqzEn4rYPYZouGsbIPEgL0q__" 69s y 69s is expected to == "AULYEd8l-bV_BI289aezhSLZ1RDF2ltgDPEy9Y7YtqYa4cJcpiyzVDMpXWwBp6cjg6TXINkoVrVXZhN404ihu4I2" 69s unknown curve 69s is expected to raise JSON::JWK::UnknownAlgorithm with "Unknown EC Curve" 69s #thumbprint 69s using default hash function 69s is expected to == "-egRpLjyZCqxBh4OOfd8JSvXwayHmNFAUNkbi8exfhc" 69s using SHA512 hash function 69s is expected to == "B_yXDZJ9doudaVCj5q5vqxshvVtW2IFnz_ypvRt5O60gemkDAhO78L6YMyTWH0ZRm15cO2_laTSaNO9yZQFsvQ" 69s #to_key 69s is expected to be an instance of OpenSSL::PKey::EC 69s when shared secret given 69s kty 69s is expected to == :oct 69s x 69s is expected to == "secret" 69s #thumbprint 69s using default hash function 69s is expected to == "XZPWsTEZFIerowAF9GHzBtq5CkAOcVvIBnkMu0IIQH0" 69s using SHA512 hash function 69s is expected to == "rK7EtcEe9Xr0kryR9lNnyOTRe7Vb_BglbTBtbcVG2LzvL26_PFaMCwOtiUiXWfCK-wV8vcxjmvbcvV4ZxDE0FQ" 69s #to_key 69s is expected to be an instance of String 69s unknown key type 72s is expected to raise JSON::JWK::UnknownAlgorithm with "Unknown Key Type" 72s 72s JSON::JWS 72s before sign 72s behaves like jwt_with_alg 72s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 72s header 72s is expected to == {:alg=>:none, :typ=>:JWT} 72s signature 72s is expected to be nil 72s #content_type 72s is expected to == "application/jose" 72s decode 72s blank payload not allowed 72s should raise format error 72s blank payload allowed 72s should not raise an error 72s #sign! 72s HS256 72s when String key given 72s behaves like jwt_with_alg 72s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 72s header 72s is expected to == {:alg=>:HS256, :typ=>:JWT} 72s behaves like generate_expected_signature 72s is expected to == "DyuTgO2Ggb5nrhkkhI-RjVYIBe3o8oL4ijkAn94YPxQ" 72s with blank payload 72s is expected to == "iRFMM3GknVfzRTxlVQT87jfIw32Ik3lUYNGePPk5wnM" 72s when JSON::JWK key given 72s behaves like jwt_with_alg 72s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 72s header 72s is expected to == {:alg=>:HS256, :typ=>:JWT} 72s behaves like generate_expected_signature 72s is expected to == "DyuTgO2Ggb5nrhkkhI-RjVYIBe3o8oL4ijkAn94YPxQ" 72s with blank payload 72s is expected to == "iRFMM3GknVfzRTxlVQT87jfIw32Ik3lUYNGePPk5wnM" 72s HS384 72s when String key given 72s behaves like jwt_with_alg 72s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 72s header 72s is expected to == {:alg=>:HS384, :typ=>:JWT} 72s behaves like generate_expected_signature 72s is expected to == "a5-7rr61TG8Snv9xxJ7l064ky-SCq1Mswe9t8HEorvoc_nnfIeUy9WQCLMIli34R" 72s with blank payload 72s is expected to == "rxyzr3I2RWRBgQaewQt3yjdp3BqkrFh-iHcet318OYHWhXvyzAE0npf0l0xi5DOV" 72s when JSON::JWK key given 72s behaves like jwt_with_alg 72s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 72s header 72s is expected to == {:alg=>:HS384, :typ=>:JWT} 72s behaves like generate_expected_signature 72s is expected to == "a5-7rr61TG8Snv9xxJ7l064ky-SCq1Mswe9t8HEorvoc_nnfIeUy9WQCLMIli34R" 72s with blank payload 72s is expected to == "rxyzr3I2RWRBgQaewQt3yjdp3BqkrFh-iHcet318OYHWhXvyzAE0npf0l0xi5DOV" 72s HS512 72s when String key given 72s behaves like jwt_with_alg 72s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 72s header 72s is expected to == {:alg=>:HS512, :typ=>:JWT} 72s behaves like generate_expected_signature 72s is expected to == "ce-GlHDaNwaHfmAFRGp3QPPKvrpruTug2hC1bf6yNlbuvkMwJw2jFZgq_4wmIPetRdiBy7XFq7rrtmw1Im7tmQ" 72s with blank payload 72s is expected to == "VDHOrPYrwycjaKbwccObXi6dmw4fVFqiFsNFQjqYHQAkxJGxqhfVLc1_WfKMa6C7vGSGroabaVdK7nn08XPdSQ" 72s when JSON::JWK key given 72s behaves like jwt_with_alg 72s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 72s header 72s is expected to == {:alg=>:HS512, :typ=>:JWT} 72s behaves like generate_expected_signature 72s is expected to == "ce-GlHDaNwaHfmAFRGp3QPPKvrpruTug2hC1bf6yNlbuvkMwJw2jFZgq_4wmIPetRdiBy7XFq7rrtmw1Im7tmQ" 72s with blank payload 72s is expected to == "VDHOrPYrwycjaKbwccObXi6dmw4fVFqiFsNFQjqYHQAkxJGxqhfVLc1_WfKMa6C7vGSGroabaVdK7nn08XPdSQ" 72s RS256 72s when OpenSSL::PKey::RSA key given 72s behaves like jwt_with_alg 72s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 72s header 72s is expected to == {:alg=>:RS256, :typ=>:JWT} 72s behaves like generate_expected_signature 72s is expected to == "E5VELqAdla2Bx1axc9KFxO0EiCr0Mw6HPYX070qGQ8zA_XmyxGPUZLyyWU_6Cn399W-oYBWO2ynLlr8pqqjP3jXevyCeYeGRVN0H...PbHLVGUopIoxoqe4XjoBpzE5UvhrVl5LYbdjbyJhu5ZIA8GLsgwtUFh3dfdIechORoR3k5NSFSv8157bAEa8t4iwgWD2MSNSQnw" 72s with blank payload 72s is expected to == "WthQjouPVbErM7McwSY4slJjHaWqmFg1qKdmTDvttkiyAEcTjVViJkNHH9Mp573h13cXtLob1xh3UJYh5_-hSA4Y24zdyck3jp3f...3kHMns43GtT5bm-aJoMLct0nO1GBapQAiKUknTsw24IfOkX4vJNQzIWVSzx3zOxXjcVHlH92af6NknIlPCfRparLC9YEK2NkJYg" 72s when JSON::JWK key given 72s behaves like jwt_with_alg 72s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 72s header 72s is expected to == {:alg=>:RS256, :typ=>:JWT} 72s behaves like generate_expected_signature 72s is expected to == "E5VELqAdla2Bx1axc9KFxO0EiCr0Mw6HPYX070qGQ8zA_XmyxGPUZLyyWU_6Cn399W-oYBWO2ynLlr8pqqjP3jXevyCeYeGRVN0H...PbHLVGUopIoxoqe4XjoBpzE5UvhrVl5LYbdjbyJhu5ZIA8GLsgwtUFh3dfdIechORoR3k5NSFSv8157bAEa8t4iwgWD2MSNSQnw" 72s with blank payload 72s is expected to == "WthQjouPVbErM7McwSY4slJjHaWqmFg1qKdmTDvttkiyAEcTjVViJkNHH9Mp573h13cXtLob1xh3UJYh5_-hSA4Y24zdyck3jp3f...3kHMns43GtT5bm-aJoMLct0nO1GBapQAiKUknTsw24IfOkX4vJNQzIWVSzx3zOxXjcVHlH92af6NknIlPCfRparLC9YEK2NkJYg" 72s RS384 72s when OpenSSL::PKey::RSA key given 72s behaves like jwt_with_alg 72s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 72s header 72s is expected to == {:alg=>:RS384, :typ=>:JWT} 72s behaves like generate_expected_signature 72s is expected to == "lT5JbytGKgG9QrwkJuxgw7UjmN9tjkEQW9pVGR2XnKEdC0_wLNIzAmT-jTwyMDGBLUkWO7opDOP6Xy6_DOTg58k9PwVkyQzrLnmx..._LUgy80udJvbi8MAYJVUf0QYtQDrX2wnT_-eiiWjD5XafLuXEQVDRh-v2MKAwdvtXMq5cZ08Zjl2SyHxJ3OqhEeWPvYGltxZh_A" 72s with blank payload 72s is expected to == "Jy6XNLNAyujRHYoCOtFqu7z0imHZMiwkwBr73ok_DDSDxQSA9ryt_q_tX0u8knpAIRcTJuNA0-s5DkGbpIj9coKgZ5JBvE_n9ijv...LzONWr_QpCN-UFgmJHO7yBwaP-RWnLDW3hYlb4IybRIvMQQicjkjNaNwLTmwo31orVxO53GcSjyhU2y_R843nQcNjTT_lD1QRvg" 72s when JSON::JWK key given 72s behaves like jwt_with_alg 72s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 72s header 72s is expected to == {:alg=>:RS384, :typ=>:JWT} 72s behaves like generate_expected_signature 72s is expected to == "lT5JbytGKgG9QrwkJuxgw7UjmN9tjkEQW9pVGR2XnKEdC0_wLNIzAmT-jTwyMDGBLUkWO7opDOP6Xy6_DOTg58k9PwVkyQzrLnmx..._LUgy80udJvbi8MAYJVUf0QYtQDrX2wnT_-eiiWjD5XafLuXEQVDRh-v2MKAwdvtXMq5cZ08Zjl2SyHxJ3OqhEeWPvYGltxZh_A" 72s with blank payload 72s is expected to == "Jy6XNLNAyujRHYoCOtFqu7z0imHZMiwkwBr73ok_DDSDxQSA9ryt_q_tX0u8knpAIRcTJuNA0-s5DkGbpIj9coKgZ5JBvE_n9ijv...LzONWr_QpCN-UFgmJHO7yBwaP-RWnLDW3hYlb4IybRIvMQQicjkjNaNwLTmwo31orVxO53GcSjyhU2y_R843nQcNjTT_lD1QRvg" 72s RS512 72s when OpenSSL::PKey::RSA key given 72s behaves like jwt_with_alg 72s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 72s header 72s is expected to == {:alg=>:RS512, :typ=>:JWT} 72s behaves like generate_expected_signature 72s is expected to == "EHeGM2Mo3ghhUfSB99AlREehrbC6OPE-nYL_rwf88ysTnJ8L1QQ0UuCrXq4SpRutGLK_bYTK3ZALvFRPoOgK_g0QWmqv6qjQRU_Q...tU0cKSalUp4geaBDH7QRcexrolIctdQFbNKTXQxoigxD3NLNkKGH7f6A8KZdcOm8AnEjullcZs8_OWGnW43p1qrxoBRSivb9pqQ" 72s with blank payload 72s is expected to == "ws2HZ6wvh8GMrFKiIHXDogyx8HFpa4wvrLxfZaMfCoMPf0SZ4V3tiEZRWfrxyvwpsdBj2Mgm5lt3IYAHhlI2hqWvuikDq6tuVilo...LK-UkDQVclFmEM3JXrPG7YSRodtKlwJ-ESDx6CaJXXDAgitSF32dslcIkmOXRJqjNmF15i_aVg0ExiU92WTpCrdwzWTt4Aphqlw" 72s when JSON::JWK key given 72s behaves like jwt_with_alg 72s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 72s header 72s is expected to == {:alg=>:RS512, :typ=>:JWT} 72s behaves like generate_expected_signature 72s is expected to == "EHeGM2Mo3ghhUfSB99AlREehrbC6OPE-nYL_rwf88ysTnJ8L1QQ0UuCrXq4SpRutGLK_bYTK3ZALvFRPoOgK_g0QWmqv6qjQRU_Q...tU0cKSalUp4geaBDH7QRcexrolIctdQFbNKTXQxoigxD3NLNkKGH7f6A8KZdcOm8AnEjullcZs8_OWGnW43p1qrxoBRSivb9pqQ" 72s with blank payload 73s is expected to == "ws2HZ6wvh8GMrFKiIHXDogyx8HFpa4wvrLxfZaMfCoMPf0SZ4V3tiEZRWfrxyvwpsdBj2Mgm5lt3IYAHhlI2hqWvuikDq6tuVilo...LK-UkDQVclFmEM3JXrPG7YSRodtKlwJ-ESDx6CaJXXDAgitSF32dslcIkmOXRJqjNmF15i_aVg0ExiU92WTpCrdwzWTt4Aphqlw" 73s ES256 73s when OpenSSL::PKey::EC key given 73s behaves like jwt_with_alg 73s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 73s header 73s is expected to == {:alg=>:ES256, :typ=>:JWT} 73s behaves like self_verifiable 73s should be self-verifiable 73s when JSON::JWK key given 73s behaves like jwt_with_alg 73s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 73s header 73s is expected to == {:alg=>:ES256, :typ=>:JWT} 73s behaves like self_verifiable 73s should be self-verifiable 73s ES384 73s when OpenSSL::PKey::EC key given 73s behaves like jwt_with_alg 73s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 73s header 73s is expected to == {:alg=>:ES384, :typ=>:JWT} 73s behaves like self_verifiable 73s should be self-verifiable 73s when JSON::JWK key given 73s behaves like jwt_with_alg 73s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 73s header 73s is expected to == {:alg=>:ES384, :typ=>:JWT} 73s behaves like self_verifiable 73s should be self-verifiable 73s ES512 73s when OpenSSL::PKey::EC key given 73s behaves like jwt_with_alg 73s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 73s header 73s is expected to == {:alg=>:ES512, :typ=>:JWT} 73s behaves like self_verifiable 73s should be self-verifiable 73s when JSON::JWK key given 73s behaves like jwt_with_alg 73s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 73s header 73s is expected to == {:alg=>:ES512, :typ=>:JWT} 73s behaves like self_verifiable 73s should be self-verifiable 73s ES256K 73s when OpenSSL::PKey::EC key given 73s behaves like jwt_with_alg 73s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 73s header 73s is expected to == {:alg=>:ES256K, :typ=>:JWT} 73s behaves like self_verifiable 73s should be self-verifiable 73s when JSON::JWK key given 73s behaves like jwt_with_alg 73s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 73s header 73s is expected to == {:alg=>:ES256K, :typ=>:JWT} 73s behaves like self_verifiable 73s should be self-verifiable 73s when JSON::JWK::Set key given 73s when jwk is found by given kid 73s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 73s otherwise 73s is expected to raise JSON::JWK::Set::KidNotFound 73s unknown algorithm 73s is expected to raise JSON::JWS::UnexpectedAlgorithm 73s #verify! 73s HS256 73s when String key given 73s behaves like success_signature_verification 73s is expected to be a kind of JSON::JWT 73s header 73s should be parsed successfully 73s claims 73s should be parsed successfully 73s with blank payload 73s is expected to be a kind of JSON::JWT 73s header 73s should be parsed successfully 73s claims 73s should be parsed successfully 73s when JSON::JWK key given 73s behaves like success_signature_verification 73s is expected to be a kind of JSON::JWT 73s header 73s should be parsed successfully 73s claims 73s should be parsed successfully 73s with blank payload 73s is expected to be a kind of JSON::JWT 73s header 73s should be parsed successfully 73s claims 73s should be parsed successfully 73s HS384 73s when String key given 73s behaves like success_signature_verification 73s is expected to be a kind of JSON::JWT 73s header 73s should be parsed successfully 73s claims 73s should be parsed successfully 73s with blank payload 73s is expected to be a kind of JSON::JWT 73s header 73s should be parsed successfully 73s claims 73s should be parsed successfully 73s when JSON::JWK key given 73s behaves like success_signature_verification 73s is expected to be a kind of JSON::JWT 73s header 73s should be parsed successfully 73s claims 73s should be parsed successfully 73s with blank payload 73s is expected to be a kind of JSON::JWT 73s header 73s should be parsed successfully 73s claims 73s should be parsed successfully 73s HS512 73s when String key given 73s behaves like success_signature_verification 73s is expected to be a kind of JSON::JWT 73s header 73s should be parsed successfully 73s claims 73s should be parsed successfully 73s with blank payload 73s is expected to be a kind of JSON::JWT 73s header 73s should be parsed successfully 73s claims 73s should be parsed successfully 73s when JSON::JWK key given 73s behaves like success_signature_verification 73s is expected to be a kind of JSON::JWT 73s header 73s should be parsed successfully 73s claims 73s should be parsed successfully 73s with blank payload 73s is expected to be a kind of JSON::JWT 73s header 73s should be parsed successfully 73s claims 73s should be parsed successfully 73s RS256 73s when OpenSSL::PKey::RSA key given 73s behaves like success_signature_verification 73s is expected to be a kind of JSON::JWT 73s header 73s should be parsed successfully 73s claims 73s should be parsed successfully 73s with blank payload 73s is expected to be a kind of JSON::JWT 73s header 73s should be parsed successfully 73s claims 73s should be parsed successfully 73s when JSON::JWK key given 73s behaves like success_signature_verification 73s is expected to be a kind of JSON::JWT 73s header 73s should be parsed successfully 73s claims 73s should be parsed successfully 73s with blank payload 73s is expected to be a kind of JSON::JWT 73s header 73s should be parsed successfully 73s claims 73s should be parsed successfully 73s RS384 73s when OpenSSL::PKey::RSA key given 73s behaves like success_signature_verification 73s is expected to be a kind of JSON::JWT 73s header 73s should be parsed successfully 73s claims 73s should be parsed successfully 73s with blank payload 73s is expected to be a kind of JSON::JWT 73s header 73s should be parsed successfully 73s claims 73s should be parsed successfully 73s when JSON::JWK key given 73s behaves like success_signature_verification 73s is expected to be a kind of JSON::JWT 73s header 73s should be parsed successfully 73s claims 73s should be parsed successfully 73s with blank payload 73s is expected to be a kind of JSON::JWT 73s header 73s should be parsed successfully 73s claims 73s should be parsed successfully 73s RS512 73s when OpenSSL::PKey::RSA key given 73s behaves like success_signature_verification 73s is expected to be a kind of JSON::JWT 73s header 73s should be parsed successfully 73s claims 73s should be parsed successfully 73s with blank payload 73s is expected to be a kind of JSON::JWT 73s header 73s should be parsed successfully 73s claims 73s should be parsed successfully 73s when JSON::JWK key given 73s behaves like success_signature_verification 73s is expected to be a kind of JSON::JWT 73s header 73s should be parsed successfully 73s claims 73s should be parsed successfully 73s with blank payload 73s is expected to be a kind of JSON::JWT 73s header 73s should be parsed successfully 73s claims 73s should be parsed successfully 73s ES256 73s when OpenSSL::PKey::EC key given 73s behaves like success_signature_verification 73s is expected to be a kind of JSON::JWT 73s header 73s should be parsed successfully 73s claims 73s should be parsed successfully 73s with blank payload 73s is expected to be a kind of JSON::JWT 73s header 73s should be parsed successfully 73s claims 73s should be parsed successfully 73s when JSON::JWK key given 73s behaves like success_signature_verification 73s is expected to be a kind of JSON::JWT 73s header 73s should be parsed successfully 73s claims 73s should be parsed successfully 73s with blank payload 73s is expected to be a kind of JSON::JWT 73s header 73s should be parsed successfully 73s claims 73s should be parsed successfully 73s ES384 73s when OpenSSL::PKey::EC key given 73s behaves like success_signature_verification 73s is expected to be a kind of JSON::JWT 73s header 73s should be parsed successfully 73s claims 73s should be parsed successfully 73s with blank payload 73s is expected to be a kind of JSON::JWT 73s header 73s should be parsed successfully 73s claims 73s should be parsed successfully 73s when JSON::JWK key given 73s behaves like success_signature_verification 73s is expected to be a kind of JSON::JWT 73s header 73s should be parsed successfully 73s claims 73s should be parsed successfully 73s with blank payload 73s is expected to be a kind of JSON::JWT 73s header 73s should be parsed successfully 73s claims 73s should be parsed successfully 73s ES512 73s when OpenSSL::PKey::EC key given 73s behaves like success_signature_verification 73s is expected to be a kind of JSON::JWT 73s header 73s should be parsed successfully 73s claims 73s should be parsed successfully 73s with blank payload 73s is expected to be a kind of JSON::JWT 73s header 73s should be parsed successfully 73s claims 73s should be parsed successfully 73s when JSON::JWK key given 73s behaves like success_signature_verification 73s is expected to be a kind of JSON::JWT 73s header 73s should be parsed successfully 73s claims 73s should be parsed successfully 73s with blank payload 73s is expected to be a kind of JSON::JWT 73s header 73s should be parsed successfully 73s claims 73s should be parsed successfully 73s ES256K 73s when OpenSSL::PKey::EC key given 73s behaves like success_signature_verification 73s is expected to be a kind of JSON::JWT 73s header 73s should be parsed successfully 73s claims 73s should be parsed successfully 73s with blank payload 73s is expected to be a kind of JSON::JWT 73s header 73s should be parsed successfully 73s claims 73s should be parsed successfully 73s when JSON::JWK key given 73s behaves like success_signature_verification 73s is expected to be a kind of JSON::JWT 73s header 73s should be parsed successfully 73s claims 73s should be parsed successfully 73s with blank payload 73s is expected to be a kind of JSON::JWT 73s header 73s should be parsed successfully 73s claims 73s should be parsed successfully 73s when JSON::JWK::Set key given 73s when jwk is found by given kid 73s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 73s otherwise 73s is expected to raise JSON::JWK::Set::KidNotFound 73s unknown algorithm 73s is expected to raise JSON::JWS::UnexpectedAlgorithm 73s #to_json 73s as default 73s should JSONize payload 73s with blank payload 73s should JSONize payload 73s when syntax option given 73s when general 73s should return General JWS JSON Serialization 73s with blank payload 73s should return General JWS JSON Serialization 73s when not signed yet 73s should not fail 73s with blank payload 73s should not fail 73s when flattened 73s should return Flattened JWS JSON Serialization 73s with blank payload 73s should return Flattened JWS JSON Serialization 73s when not signed yet 73s should not fail 73s with blank payload 73s should not fail 73s 73s JSON::JWT 73s version 73s is expected not to be blank 73s #initialize 73s doesn't try to modify a frozen hash 73s when not signed nor encrypted 73s is expected to == "eyJ0eXAiOiJKV1QiLCJhbGciOiJub25lIn0.eyJpc3MiOiJqb2UiLCJleHAiOjEzMDA4MTkzODAsImh0dHA6Ly9leGFtcGxlLmNvbS9pc19yb290Ijp0cnVlfQ." 73s #content_type 73s is expected to == "application/jwt" 73s #sign 73s HS256 73s is expected to be a kind of JSON::JWS 73s HS384 73s is expected to be a kind of JSON::JWS 73s HS512 73s is expected to be a kind of JSON::JWS 73s RS256 73s is expected to be a kind of JSON::JWS 73s RS384 73s is expected to be a kind of JSON::JWS 73s RS512 73s is expected to be a kind of JSON::JWS 73s when no algirithm specified 73s when key is String 73s alg 73s is expected to == :HS256 73s when key is RSA key 73s alg 73s is expected to == :RS256 73s when key is EC key 73s when prime256v1 73s alg 73s is expected to == :ES256 73s when secp384r1 73s alg 73s is expected to == :ES384 73s when secp521r1 73s alg 73s is expected to == :ES512 73s when secp256k1 73s alg 73s is expected to == :ES256K 73s when key is JWK with kty=okt 73s alg 73s is expected to == :HS256 73s when key is JWK with kty=RSA 73s alg 73s is expected to == :RS256 73s when key is JWK with kty=EC 73s when prime256v1 73s alg 73s is expected to == :ES256 73s when secp384r1 73s alg 73s is expected to == :ES384 73s when secp521r1 73s alg 73s is expected to == :ES512 73s when secp256k1 73s alg 73s is expected to == :ES256K 73s when non-JWK key is given 73s should not set kid header automatically 73s when JWK is given 73s should set kid header automatically 73s object copy behaviour 73s when original JWT is modified 73s copied JWS 73s should be affected as shallow copy, but not as a simple reference 73s when copied JWS is modified 73s original JWT 73s should be affected as shallow copy, but not as a simple reference 73s #encrypt 73s should encryptable without signing 73s should encryptable after signed 73s should accept optional algorithm 73s should accept optional algorithm and encryption method 73s when non-JWK key is given 73s should not set kid header automatically 73s when JWK is given 73s should set kid header automatically 73s .decode 73s when not signed nor encrypted 73s no signature given 73s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 73s when signed 73s when no secret/key given 73s should do verification 73s when secret/key given 73s should do verification 73s when alg header malformed 73s from alg=HS256 73s to alg=none 73s is expected to raise JSON::JWT::VerificationFailed 73s from alg=RS256 73s to alg=none 73s is expected to raise JSON::JWT::UnexpectedAlgorithm 73s to alg=HS256 73s is expected to raise JSON::JWS::UnexpectedAlgorithm 73s from alg=PS512 73s to alg=PS256 73s when verification algorithm is specified 73s is expected to raise JSON::JWS::UnexpectedAlgorithm with "Unexpected alg header" 73s otherwise 73s is expected not to raise Exception 73s to alg=RS516 73s when verification algorithm is specified 73s is expected to raise JSON::JWS::UnexpectedAlgorithm with "Unexpected alg header" 73s otherwise 73s is expected not to raise Exception 73s when :skip_verification given as secret/key 73s should skip verification 73s when JSON Serialization given 73s when general 73s behaves like json_serialization_parser 73s when proper secret given 73s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 73s when verification skipped 73s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 73s when wrong secret given 73s is expected to raise JSON::JWT::VerificationFailed 73s when flattened 73s behaves like json_serialization_parser 73s when proper secret given 73s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 73s when verification skipped 73s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 73s when wrong secret given 73s is expected to raise JSON::JWT::VerificationFailed 73s when encrypted 73s should decryptable 73s when :skip_decryption given as secret/key 73s should skip verification 73s when alg & enc is specified 73s when expected 73s is expected not to raise Exception 73s when alg is unexpected 73s is expected to raise JSON::JWE::UnexpectedAlgorithm with "Unexpected alg header" 73s when enc is unexpected 73s is expected to raise JSON::JWE::UnexpectedAlgorithm with "Unexpected enc header" 73s when JSON parse failed 73s is expected to raise JSON::JWT::InvalidFormat 73s when unexpected format 73s when too few dots 73s is expected to raise JSON::JWT::InvalidFormat 73s when too many dots 73s is expected to raise JSON::JWT::InvalidFormat 73s when JWS & JWE can be mixed-up (CVE-2023-51774) 73s is expected to raise JSON::JWT::InvalidFormat 73s .pretty_generate 73s size 73s is expected to == 2 73s first 73s is expected to == "{\n \"typ\": \"JWT\",\n \"alg\": \"HS256\"\n}" 73s last 73s is expected to == "{\n \"iss\": \"joe\",\n \"exp\": 1300819380,\n \"http://example.com/is_root\": true\n}" 73s 73s Pending: (Failures listed here are expected and do not affect your suite's status) 73s 73s 1) interop with Nimbus JOSE Nimbus JOSE unavailable 73s # No reason given 73s # ./spec/interop/with_nimbus_jose_spec.rb:96 73s 73s 2) JSON::JWE encrypt! when plaintext given when alg=dir TODO 73s # Not yet implemented 73s # ./spec/json/jwe_spec.rb:35 73s 73s 3) JSON::JWE encrypt! when plaintext given when alg=A128KW TODO 73s # Not yet implemented 73s # ./spec/json/jwe_spec.rb:39 73s 73s 4) JSON::JWE encrypt! when plaintext given when alg=A256KW TODO 73s # Not yet implemented 73s # ./spec/json/jwe_spec.rb:43 73s 73s 5) JSON::JWE decrypt! when alg=A128KW TODO 73s # Not yet implemented 73s # ./spec/json/jwe_spec.rb:275 73s 73s 6) JSON::JWE decrypt! when alg=A256KW TODO 73s # Not yet implemented 73s # ./spec/json/jwe_spec.rb:279 73s 73s Finished in 4.49 seconds (files took 0.61495 seconds to load) 73s 410 examples, 0 failures, 6 pending 73s 73s mv ./.gem2deb.lib lib 74s autopkgtest [03:42:48]: test gem2deb-test-runner: -----------------------] 74s autopkgtest [03:42:48]: test gem2deb-test-runner: - - - - - - - - - - results - - - - - - - - - - 74s gem2deb-test-runner PASS 75s autopkgtest [03:42:49]: @@@@@@@@@@@@@@@@@@@@ summary 75s gem2deb-test-runner PASS