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