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