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