0s autopkgtest [18:47:50]: starting date and time: 2025-10-31 18:47:50+0000 0s autopkgtest [18:47:50]: git checkout: 4b346b80 nova: make wait_reboot return success even when a no-op 0s autopkgtest [18:47:50]: host juju-7f2275-prod-proposed-migration-environment-20; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.vmsmbndy/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-ppc64el --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-20@bos03-ppc64el-4.secgroup --name adt-resolute-ppc64el-ruby-json-jwt-20251031-184750-juju-7f2275-prod-proposed-migration-environment-20-be320a4d-9600-4944-a888-baac0dffce4d --image adt/ubuntu-resolute-ppc64el-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-20 --net-id=net_prod-proposed-migration-ppc64el -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 3s Creating nova instance adt-resolute-ppc64el-ruby-json-jwt-20251031-184750-juju-7f2275-prod-proposed-migration-environment-20-be320a4d-9600-4944-a888-baac0dffce4d from image adt/ubuntu-resolute-ppc64el-server-20251031.img (UUID 3bd2d22e-e70a-4fa2-aae8-80e5bffe74ce)... 61s autopkgtest [18:48:51]: testbed dpkg architecture: ppc64el 61s autopkgtest [18:48:51]: testbed apt version: 3.1.11 61s autopkgtest [18:48:51]: @@@@@@@@@@@@@@@@@@@@ test bed setup 61s autopkgtest [18:48:51]: testbed release detected to be: None 62s autopkgtest [18:48:52]: updating testbed package index (apt update) 62s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [87.8 kB] 63s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 63s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 63s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 63s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [2820 kB] 64s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [9848 B] 64s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [155 kB] 64s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [50.8 kB] 64s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main ppc64el Packages [217 kB] 64s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/restricted ppc64el Packages [940 B] 64s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/universe ppc64el Packages [1923 kB] 64s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse ppc64el Packages [32.5 kB] 65s Fetched 5297 kB in 2s (2239 kB/s) 66s Reading package lists... 66s Failed to check for VM: Permission denied 66s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 66s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 66s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 67s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 67s Reading package lists... 68s Reading package lists... 68s Building dependency tree... 68s Reading state information... 68s Calculating upgrade... 68s The following packages will be upgraded: 68s grep libgpg-error-l10n libgpg-error0 libhogweed6t64 libnettle8t64 68s libnl-3-200 libnl-route-3-200 librtmp1 libsepol2 libuchardet0 nano 68s python3-markupsafe python3-more-itertools sensible-utils usb.ids 68s 15 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 68s Need to get 2250 kB of archives. 68s After this operation, 110 kB of additional disk space will be used. 68s Get:1 http://ftpmaster.internal/ubuntu resolute/main ppc64el grep ppc64el 3.12-1 [183 kB] 68s Get:2 http://ftpmaster.internal/ubuntu resolute/main ppc64el libsepol2 ppc64el 3.9-2 [418 kB] 69s Get:3 http://ftpmaster.internal/ubuntu resolute/main ppc64el sensible-utils all 0.0.26 [27.0 kB] 69s Get:4 http://ftpmaster.internal/ubuntu resolute/main ppc64el libgpg-error-l10n all 1.56-2 [9066 B] 69s Get:5 http://ftpmaster.internal/ubuntu resolute/main ppc64el libgpg-error0 ppc64el 1.56-2 [106 kB] 69s Get:6 http://ftpmaster.internal/ubuntu resolute/main ppc64el libnettle8t64 ppc64el 3.10.2-1 [230 kB] 69s Get:7 http://ftpmaster.internal/ubuntu resolute/main ppc64el libhogweed6t64 ppc64el 3.10.2-1 [211 kB] 69s Get:8 http://ftpmaster.internal/ubuntu resolute/main ppc64el libnl-route-3-200 ppc64el 3.11.0-2 [213 kB] 69s Get:9 http://ftpmaster.internal/ubuntu resolute/main ppc64el libnl-3-200 ppc64el 3.11.0-2 [74.5 kB] 69s Get:10 http://ftpmaster.internal/ubuntu resolute/main ppc64el libuchardet0 ppc64el 0.0.8-2 [78.4 kB] 69s Get:11 http://ftpmaster.internal/ubuntu resolute/main ppc64el nano ppc64el 8.6-1 [334 kB] 69s Get:12 http://ftpmaster.internal/ubuntu resolute/main ppc64el usb.ids all 2025.09.15-1 [224 kB] 69s Get:13 http://ftpmaster.internal/ubuntu resolute/main ppc64el librtmp1 ppc64el 2.4+20151223.gitfa8646d.1-3 [65.9 kB] 69s Get:14 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-markupsafe ppc64el 3.0.3-1 [13.3 kB] 69s Get:15 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-more-itertools all 10.8.0-1 [63.5 kB] 70s dpkg-preconfigure: unable to re-open stdin: No such file or directory 70s Fetched 2250 kB in 1s (1844 kB/s) 70s (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 ... 76559 files and directories currently installed.) 70s Preparing to unpack .../grep_3.12-1_ppc64el.deb ... 70s Unpacking grep (3.12-1) over (3.11-4build1) ... 70s Setting up grep (3.12-1) ... 70s (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 ... 76559 files and directories currently installed.) 70s Preparing to unpack .../00-libsepol2_3.9-2_ppc64el.deb ... 70s Unpacking libsepol2:ppc64el (3.9-2) over (3.8.1-1) ... 70s Preparing to unpack .../01-sensible-utils_0.0.26_all.deb ... 70s Unpacking sensible-utils (0.0.26) over (0.0.25) ... 70s Preparing to unpack .../02-libgpg-error-l10n_1.56-2_all.deb ... 70s Unpacking libgpg-error-l10n (1.56-2) over (1.51-4) ... 70s Preparing to unpack .../03-libgpg-error0_1.56-2_ppc64el.deb ... 70s Unpacking libgpg-error0:ppc64el (1.56-2) over (1.51-4) ... 70s Preparing to unpack .../04-libnettle8t64_3.10.2-1_ppc64el.deb ... 70s Unpacking libnettle8t64:ppc64el (3.10.2-1) over (3.10.1-1) ... 70s Preparing to unpack .../05-libhogweed6t64_3.10.2-1_ppc64el.deb ... 70s Unpacking libhogweed6t64:ppc64el (3.10.2-1) over (3.10.1-1) ... 70s Preparing to unpack .../06-libnl-route-3-200_3.11.0-2_ppc64el.deb ... 70s Unpacking libnl-route-3-200:ppc64el (3.11.0-2) over (3.7.0-2build1) ... 71s Preparing to unpack .../07-libnl-3-200_3.11.0-2_ppc64el.deb ... 71s Unpacking libnl-3-200:ppc64el (3.11.0-2) over (3.7.0-2build1) ... 71s Preparing to unpack .../08-libuchardet0_0.0.8-2_ppc64el.deb ... 71s Unpacking libuchardet0:ppc64el (0.0.8-2) over (0.0.8-1build1) ... 71s Preparing to unpack .../09-nano_8.6-1_ppc64el.deb ... 71s Unpacking nano (8.6-1) over (8.4-1) ... 71s Preparing to unpack .../10-usb.ids_2025.09.15-1_all.deb ... 71s Unpacking usb.ids (2025.09.15-1) over (2025.07.26-1) ... 71s Preparing to unpack .../11-librtmp1_2.4+20151223.gitfa8646d.1-3_ppc64el.deb ... 71s Unpacking librtmp1:ppc64el (2.4+20151223.gitfa8646d.1-3) over (2.4+20151223.gitfa8646d.1-2build8) ... 71s Preparing to unpack .../12-python3-markupsafe_3.0.3-1_ppc64el.deb ... 71s Unpacking python3-markupsafe (3.0.3-1) over (2.1.5-1build5) ... 71s Preparing to unpack .../13-python3-more-itertools_10.8.0-1_all.deb ... 71s Unpacking python3-more-itertools (10.8.0-1) over (10.7.0-1) ... 71s Setting up python3-more-itertools (10.8.0-1) ... 71s Setting up libgpg-error0:ppc64el (1.56-2) ... 71s Setting up python3-markupsafe (3.0.3-1) ... 71s Setting up libnettle8t64:ppc64el (3.10.2-1) ... 71s Setting up usb.ids (2025.09.15-1) ... 71s Setting up libsepol2:ppc64el (3.9-2) ... 71s Setting up nano (8.6-1) ... 71s Installing new version of config file /etc/nanorc ... 71s Setting up libhogweed6t64:ppc64el (3.10.2-1) ... 71s Setting up sensible-utils (0.0.26) ... 71s Setting up libuchardet0:ppc64el (0.0.8-2) ... 71s Setting up libnl-3-200:ppc64el (3.11.0-2) ... 71s Setting up libgpg-error-l10n (1.56-2) ... 71s Setting up libnl-route-3-200:ppc64el (3.11.0-2) ... 72s Setting up librtmp1:ppc64el (2.4+20151223.gitfa8646d.1-3) ... 72s Processing triggers for libc-bin (2.42-0ubuntu3) ... 72s Processing triggers for man-db (2.13.1-1) ... 73s Processing triggers for install-info (7.1.1-1ubuntu1) ... 73s autopkgtest [18:49:03]: 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... 74s Building dependency tree... 74s Reading state information... 74s Solving dependencies... 74s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 77s autopkgtest [18:49:07]: testbed running kernel: Linux 6.17.0-5-generic #5-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 10:02:41 UTC 2025 77s autopkgtest [18:49:07]: @@@@@@@@@@@@@@@@@@@@ apt-source ruby-json-jwt 79s Get:1 http://ftpmaster.internal/ubuntu resolute/universe ruby-json-jwt 1.16.7-1 (dsc) [2253 B] 79s Get:2 http://ftpmaster.internal/ubuntu resolute/universe ruby-json-jwt 1.16.7-1 (tar) [30.1 kB] 79s Get:3 http://ftpmaster.internal/ubuntu resolute/universe ruby-json-jwt 1.16.7-1 (diff) [3284 B] 79s gpgv: Signature made Sun Mar 9 22:02:02 2025 UTC 79s gpgv: using RSA key 5C7ABEA20F8630459CC8C8B5E27F2CF8458C2FA4 79s gpgv: Can't check signature: No public key 79s dpkg-source: warning: cannot verify inline signature for ./ruby-json-jwt_1.16.7-1.dsc: no acceptable signature found 79s autopkgtest [18:49:09]: testing package ruby-json-jwt version 1.16.7-1 79s autopkgtest [18:49:09]: build not needed 80s autopkgtest [18:49:10]: test gem2deb-test-runner: preparing testbed 80s Reading package lists... 80s Building dependency tree... 80s Reading state information... 80s Solving dependencies... 80s The following NEW packages will be installed: 80s gem2deb-test-runner libruby libruby3.3 rake ruby ruby-activesupport 80s ruby-addressable ruby-aes-key-wrap ruby-base64 ruby-bindata ruby-concurrent 80s ruby-connection-pool ruby-crack ruby-csv ruby-did-you-mean ruby-diff-lcs 80s ruby-faraday ruby-faraday-follow-redirects ruby-faraday-net-http 80s ruby-hashdiff ruby-i18n ruby-json ruby-json-jwt ruby-minitest 80s ruby-net-telnet ruby-power-assert ruby-public-suffix ruby-rspec 80s ruby-rspec-core ruby-rspec-expectations ruby-rspec-its ruby-rspec-mocks 80s ruby-rspec-support ruby-ruby2-keywords ruby-rubygems ruby-test-unit 80s ruby-tzinfo ruby-webmock ruby-webrick ruby-xmlrpc ruby3.3 80s rubygems-integration 80s 0 upgraded, 42 newly installed, 0 to remove and 0 not upgraded. 80s Need to get 8451 kB of archives. 80s After this operation, 46.3 MB of additional disk space will be used. 80s Get:1 http://ftpmaster.internal/ubuntu resolute/main ppc64el rubygems-integration all 1.19 [5550 B] 80s Get:2 http://ftpmaster.internal/ubuntu resolute/main ppc64el ruby-csv all 3.3.4-1 [43.0 kB] 80s Get:3 http://ftpmaster.internal/ubuntu resolute/main ppc64el ruby-did-you-mean all 1.6.3-2 [14.8 kB] 80s Get:4 http://ftpmaster.internal/ubuntu resolute/main ppc64el ruby-net-telnet all 0.2.0-1 [13.3 kB] 80s Get:5 http://ftpmaster.internal/ubuntu resolute/main ppc64el ruby-ruby2-keywords all 0.0.5-1 [4280 B] 80s Get:6 http://ftpmaster.internal/ubuntu resolute/main ppc64el ruby-webrick all 1.9.1-1 [60.8 kB] 80s Get:7 http://ftpmaster.internal/ubuntu resolute/main ppc64el ruby-xmlrpc all 0.3.3-2 [24.8 kB] 80s Get:8 http://ftpmaster.internal/ubuntu resolute/main ppc64el libruby3.3 ppc64el 3.3.8-2ubuntu2 [6368 kB] 81s Get:9 http://ftpmaster.internal/ubuntu resolute/main ppc64el ruby3.3 ppc64el 3.3.8-2ubuntu2 [58.9 kB] 81s Get:10 http://ftpmaster.internal/ubuntu resolute/main ppc64el libruby ppc64el 1:3.3 [5172 B] 81s Get:11 http://ftpmaster.internal/ubuntu resolute/main ppc64el ruby-rubygems all 3.6.7-2ubuntu1 [332 kB] 81s Get:12 http://ftpmaster.internal/ubuntu resolute/main ppc64el ruby ppc64el 1:3.3 [3666 B] 81s Get:13 http://ftpmaster.internal/ubuntu resolute/main ppc64el rake all 13.2.1-1 [45.8 kB] 81s Get:14 http://ftpmaster.internal/ubuntu resolute/universe ppc64el ruby-minitest all 5.25.4-3 [48.8 kB] 81s Get:15 http://ftpmaster.internal/ubuntu resolute/universe ppc64el ruby-power-assert all 2.0.3-1 [12.0 kB] 81s Get:16 http://ftpmaster.internal/ubuntu resolute/universe ppc64el ruby-test-unit all 3.6.2-1 [67.0 kB] 81s Get:17 http://ftpmaster.internal/ubuntu resolute/universe ppc64el gem2deb-test-runner ppc64el 2.2.5 [18.3 kB] 81s Get:18 http://ftpmaster.internal/ubuntu resolute/universe ppc64el ruby-concurrent all 1.3.4-1 [283 kB] 81s Get:19 http://ftpmaster.internal/ubuntu resolute/universe ppc64el ruby-i18n all 1.14.7-1 [42.8 kB] 81s Get:20 http://ftpmaster.internal/ubuntu resolute/universe ppc64el ruby-tzinfo all 2.0.6-1 [55.2 kB] 81s Get:21 http://ftpmaster.internal/ubuntu resolute/universe ppc64el ruby-connection-pool all 2.4.1-1 [8876 B] 81s Get:22 http://ftpmaster.internal/ubuntu resolute/main ppc64el ruby-base64 all 0.2.0-2 [7168 B] 81s Get:23 http://ftpmaster.internal/ubuntu resolute/universe ppc64el ruby-activesupport all 2:7.2.2.1+dfsg-7 [224 kB] 81s Get:24 http://ftpmaster.internal/ubuntu resolute/universe ppc64el ruby-public-suffix all 6.0.1-1 [14.4 kB] 81s Get:25 http://ftpmaster.internal/ubuntu resolute/universe ppc64el ruby-addressable all 2.8.7-2 [55.4 kB] 81s Get:26 http://ftpmaster.internal/ubuntu resolute/universe ppc64el ruby-aes-key-wrap all 1.1.0-1 [5228 B] 81s Get:27 http://ftpmaster.internal/ubuntu resolute/universe ppc64el ruby-bindata all 2.4.14-1 [41.4 kB] 81s Get:28 http://ftpmaster.internal/ubuntu resolute/universe ppc64el ruby-crack all 0.4.4-4 [8764 B] 81s Get:29 http://ftpmaster.internal/ubuntu resolute/universe ppc64el ruby-diff-lcs all 1.5.1-1 [22.8 kB] 81s Get:30 http://ftpmaster.internal/ubuntu resolute/universe ppc64el ruby-faraday-net-http all 3.0.2-2 [5716 B] 81s Get:31 http://ftpmaster.internal/ubuntu resolute/main ppc64el ruby-json ppc64el 2.9.1+dfsg-1 [59.3 kB] 81s Get:32 http://ftpmaster.internal/ubuntu resolute-proposed/universe ppc64el ruby-faraday all 2.14.0-1 [37.7 kB] 81s Get:33 http://ftpmaster.internal/ubuntu resolute/universe ppc64el ruby-faraday-follow-redirects all 0.3.0-2 [6604 B] 81s Get:34 http://ftpmaster.internal/ubuntu resolute/universe ppc64el ruby-hashdiff all 1.1.0-1 [12.9 kB] 81s Get:35 http://ftpmaster.internal/ubuntu resolute/universe ppc64el ruby-json-jwt all 1.16.7-1 [11.7 kB] 81s Get:36 http://ftpmaster.internal/ubuntu resolute/universe ppc64el ruby-rspec-support all 3.13.0c0e0m0s1-2 [29.2 kB] 82s Get:37 http://ftpmaster.internal/ubuntu resolute/universe ppc64el ruby-rspec-core all 3.13.0c0e0m0s1-2 [164 kB] 82s Get:38 http://ftpmaster.internal/ubuntu resolute/universe ppc64el ruby-rspec-expectations all 3.13.0c0e0m0s1-2 [89.8 kB] 82s Get:39 http://ftpmaster.internal/ubuntu resolute/universe ppc64el ruby-rspec-mocks all 3.13.0c0e0m0s1-2 [81.0 kB] 82s Get:40 http://ftpmaster.internal/ubuntu resolute/universe ppc64el ruby-rspec all 3.13.0c0e0m0s1-2 [3500 B] 82s Get:41 http://ftpmaster.internal/ubuntu resolute/universe ppc64el ruby-rspec-its all 1.3.0-1 [6212 B] 82s Get:42 http://ftpmaster.internal/ubuntu resolute/universe ppc64el ruby-webmock all 3.25.1-1 [48.0 kB] 82s Fetched 8451 kB in 1s (5795 kB/s) 82s 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 ... 76562 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) ... 83s Selecting previously unselected package ruby-ruby2-keywords. 83s Preparing to unpack .../04-ruby-ruby2-keywords_0.0.5-1_all.deb ... 83s Unpacking ruby-ruby2-keywords (0.0.5-1) ... 83s Selecting previously unselected package ruby-webrick. 83s Preparing to unpack .../05-ruby-webrick_1.9.1-1_all.deb ... 83s Unpacking ruby-webrick (1.9.1-1) ... 83s Selecting previously unselected package ruby-xmlrpc. 83s Preparing to unpack .../06-ruby-xmlrpc_0.3.3-2_all.deb ... 83s Unpacking ruby-xmlrpc (0.3.3-2) ... 83s Selecting previously unselected package libruby3.3:ppc64el. 83s Preparing to unpack .../07-libruby3.3_3.3.8-2ubuntu2_ppc64el.deb ... 83s Unpacking libruby3.3:ppc64el (3.3.8-2ubuntu2) ... 83s Selecting previously unselected package ruby3.3. 83s Preparing to unpack .../08-ruby3.3_3.3.8-2ubuntu2_ppc64el.deb ... 83s Unpacking ruby3.3 (3.3.8-2ubuntu2) ... 83s Selecting previously unselected package libruby:ppc64el. 83s Preparing to unpack .../09-libruby_1%3a3.3_ppc64el.deb ... 83s Unpacking libruby:ppc64el (1:3.3) ... 83s Selecting previously unselected package ruby-rubygems. 83s Preparing to unpack .../10-ruby-rubygems_3.6.7-2ubuntu1_all.deb ... 83s Unpacking ruby-rubygems (3.6.7-2ubuntu1) ... 83s Selecting previously unselected package ruby. 83s Preparing to unpack .../11-ruby_1%3a3.3_ppc64el.deb ... 83s Unpacking ruby (1:3.3) ... 83s Selecting previously unselected package rake. 83s Preparing to unpack .../12-rake_13.2.1-1_all.deb ... 83s Unpacking rake (13.2.1-1) ... 83s Selecting previously unselected package ruby-minitest. 83s Preparing to unpack .../13-ruby-minitest_5.25.4-3_all.deb ... 83s Unpacking ruby-minitest (5.25.4-3) ... 83s 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_ppc64el.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:ppc64el. 83s Preparing to unpack .../30-ruby-json_2.9.1+dfsg-1_ppc64el.deb ... 83s Unpacking ruby-json:ppc64el (2.9.1+dfsg-1) ... 83s Selecting previously unselected package ruby-faraday. 83s Preparing to unpack .../31-ruby-faraday_2.14.0-1_all.deb ... 83s Unpacking ruby-faraday (2.14.0-1) ... 83s Selecting previously unselected package ruby-faraday-follow-redirects. 83s Preparing to unpack .../32-ruby-faraday-follow-redirects_0.3.0-2_all.deb ... 83s Unpacking ruby-faraday-follow-redirects (0.3.0-2) ... 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) ... 83s Selecting previously unselected package ruby-rspec-core. 83s Preparing to unpack .../36-ruby-rspec-core_3.13.0c0e0m0s1-2_all.deb ... 83s Unpacking ruby-rspec-core (3.13.0c0e0m0s1-2) ... 83s Selecting previously unselected package ruby-rspec-expectations. 83s Preparing to unpack .../37-ruby-rspec-expectations_3.13.0c0e0m0s1-2_all.deb ... 83s Unpacking ruby-rspec-expectations (3.13.0c0e0m0s1-2) ... 83s Selecting previously unselected package ruby-rspec-mocks. 83s Preparing to unpack .../38-ruby-rspec-mocks_3.13.0c0e0m0s1-2_all.deb ... 83s Unpacking ruby-rspec-mocks (3.13.0c0e0m0s1-2) ... 83s Selecting previously unselected package ruby-rspec. 83s Preparing to unpack .../39-ruby-rspec_3.13.0c0e0m0s1-2_all.deb ... 83s Unpacking ruby-rspec (3.13.0c0e0m0s1-2) ... 83s Selecting previously unselected package ruby-rspec-its. 83s Preparing to unpack .../40-ruby-rspec-its_1.3.0-1_all.deb ... 83s Unpacking ruby-rspec-its (1.3.0-1) ... 83s Selecting previously unselected package ruby-webmock. 83s Preparing to unpack .../41-ruby-webmock_3.25.1-1_all.deb ... 83s Unpacking ruby-webmock (3.25.1-1) ... 83s Setting up ruby-ruby2-keywords (0.0.5-1) ... 83s Setting up ruby-power-assert (2.0.3-1) ... 83s Setting up ruby-hashdiff (1.1.0-1) ... 83s Setting up ruby-public-suffix (6.0.1-1) ... 83s Setting up ruby-bindata (2.4.14-1) ... 83s Setting up rubygems-integration (1.19) ... 83s Setting up ruby-concurrent (1.3.4-1) ... 83s Setting up ruby-minitest (5.25.4-3) ... 83s Setting up ruby-test-unit (3.6.2-1) ... 83s Setting up ruby-net-telnet (0.2.0-1) ... 83s Setting up ruby-csv (3.3.4-1) ... 83s Setting up ruby-base64 (0.2.0-2) ... 83s Setting up ruby-i18n (1.14.7-1) ... 83s Setting up ruby-aes-key-wrap (1.1.0-1) ... 83s Setting up ruby-rspec-support (3.13.0c0e0m0s1-2) ... 83s Setting up ruby-webrick (1.9.1-1) ... 83s Setting up ruby-faraday-net-http (3.0.2-2) ... 83s Setting up ruby-connection-pool (2.4.1-1) ... 83s Setting up ruby-did-you-mean (1.6.3-2) ... 83s Setting up ruby-xmlrpc (0.3.3-2) ... 83s Setting up ruby-addressable (2.8.7-2) ... 83s Setting up ruby-tzinfo (2.0.6-1) ... 83s Setting up rake (13.2.1-1) ... 83s Setting up ruby3.3 (3.3.8-2ubuntu2) ... 83s Setting up libruby3.3:ppc64el (3.3.8-2ubuntu2) ... 83s Setting up ruby-activesupport (2:7.2.2.1+dfsg-7) ... 83s Setting up ruby-rubygems (3.6.7-2ubuntu1) ... 83s Setting up libruby:ppc64el (1:3.3) ... 83s Setting up ruby (1:3.3) ... 83s Setting up ruby-json:ppc64el (2.9.1+dfsg-1) ... 83s Setting up ruby-rspec-core (3.13.0c0e0m0s1-2) ... 83s Setting up ruby-diff-lcs (1.5.1-1) ... 83s Setting up ruby-faraday (2.14.0-1) ... 83s Setting up ruby-crack (0.4.4-4) ... 83s Setting up gem2deb-test-runner (2.2.5) ... 83s Setting up ruby-faraday-follow-redirects (0.3.0-2) ... 83s Setting up ruby-rspec-expectations (3.13.0c0e0m0s1-2) ... 83s Setting up ruby-rspec-mocks (3.13.0c0e0m0s1-2) ... 83s Setting up ruby-rspec-its (1.3.0-1) ... 83s Setting up ruby-webmock (3.25.1-1) ... 83s Setting up ruby-rspec (3.13.0c0e0m0s1-2) ... 83s Setting up ruby-json-jwt (1.16.7-1) ... 83s Processing triggers for libc-bin (2.42-0ubuntu3) ... 83s Processing triggers for man-db (2.13.1-1) ... 85s autopkgtest [18:49:15]: test gem2deb-test-runner: gem2deb-test-runner --autopkgtest --check-dependencies 2>&1 85s autopkgtest [18:49:15]: test gem2deb-test-runner: [----------------------- 85s 85s ┌──────────────────────────────────────────────────────────────────────────────┐ 85s │ Checking Rubygems dependency resolution on ruby3.3 │ 85s └──────────────────────────────────────────────────────────────────────────────┘ 85s 85s RUBYLIB=. GEM_PATH= ruby3.3 -e gem\ \"json-jwt\" 85s mv lib ./.gem2deb.lib 85s mv ./.gem2deb.lib lib 85s 85s ┌──────────────────────────────────────────────────────────────────────────────┐ 85s │ Run tests for ruby3.3 from debian/ruby-tests.rake │ 85s └──────────────────────────────────────────────────────────────────────────────┘ 85s 85s RUBYLIB=. GEM_PATH= ruby3.3 -S rake --rakelibdir /gem2deb-nonexistent -f debian/ruby-tests.rake 85s mv lib ./.gem2deb.lib 85s /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 86s 86s interop 86s with jsrsasign 86s JWS 86s verify 86s should succeed 86s 86s interop 86s with Nimbus JOSE 86s Nimbus JOSE unavailable (PENDING: No reason given) 86s 86s interop 86s with RFC Example 86s JWK Thubmprint 86s thumbprint 86s is expected to == "NzbLsXh8uDCcd-6MNwXF4W_7noWXFZAfHkxZsRGC9Xs" 86s 86s JSON::JWE 86s #content_type 86s is expected to == "application/jose" 86s encrypt! 86s when plaintext given 86s when alg=dir 86s TODO (PENDING: Not yet implemented) 86s when alg=A128KW 86s TODO (PENDING: Not yet implemented) 86s when alg=A256KW 86s TODO (PENDING: Not yet implemented) 86s when unknonw/unsupported algorithm given 86s when alg=unknown 86s behaves like unexpected_algorithm_for_encryption 86s is expected to raise JSON::JWE::UnexpectedAlgorithm 86s when enc=unknown 86s behaves like unexpected_algorithm_for_encryption 86s is expected to raise JSON::JWE::UnexpectedAlgorithm 86s when alg=ECDH-ES 86s behaves like unsupported_algorithm_for_encryption 86s is expected to raise NotImplementedError 86s when alg=ECDH-ES+A128KW 86s behaves like unsupported_algorithm_for_encryption 87s is expected to raise NotImplementedError 87s when alg=ECDH-ES+A256KW 87s behaves like unsupported_algorithm_for_encryption 87s is expected to raise NotImplementedError 87s decrypt! 87s when alg=RSA1_5 87s when enc=A128GCM 87s behaves like decryptable 87s is expected to == "Hello World" 87s behaves like verify_gcm_authentication_tag 87s is expected to raise JSON::JWE::DecryptionFailed 87s when enc=A256GCM 87s behaves like decryptable 87s is expected to == "Hello World" 87s behaves like verify_gcm_authentication_tag 87s is expected to raise JSON::JWE::DecryptionFailed 87s when enc=A128CBC-HS256 87s behaves like decryptable 87s is expected to == "Hello World" 87s when enc=A256CBC-HS512 87s behaves like decryptable 87s is expected to == "Hello World" 87s when alg=RSA-OAEP 87s when enc=A128GCM 87s behaves like decryptable 87s is expected to == "Hello World" 87s behaves like verify_gcm_authentication_tag 87s is expected to raise JSON::JWE::DecryptionFailed 87s when enc=A256GCM 87s behaves like decryptable 87s is expected to == "Hello World" 87s behaves like verify_gcm_authentication_tag 87s is expected to raise JSON::JWE::DecryptionFailed 87s when enc=A128CBC-HS256 87s behaves like decryptable 87s is expected to == "Hello World" 87s behaves like verify_cbc_authentication_tag 87s with missing signature 87s behaves like signature_verification_failure 87s is expected to raise JSON::JWE::DecryptionFailed 87s with good pkcs7 padding and bad signature 87s behaves like signature_verification_failure 87s is expected to raise JSON::JWE::DecryptionFailed 87s with bad pkcs7 padding and bad signature 87s behaves like signature_verification_failure 87s is expected to raise JSON::JWE::DecryptionFailed 87s when enc=A256CBC-HS512 87s behaves like decryptable 87s is expected to == "Hello World" 87s behaves like verify_cbc_authentication_tag 87s with missing signature 87s behaves like signature_verification_failure 87s is expected to raise JSON::JWE::DecryptionFailed 87s with good pkcs7 padding and bad signature 87s behaves like signature_verification_failure 87s is expected to raise JSON::JWE::DecryptionFailed 87s with bad pkcs7 padding and bad signature 87s behaves like signature_verification_failure 87s is expected to raise JSON::JWE::DecryptionFailed 87s when alg=dir 87s when enc=A128GCM 87s behaves like decryptable 87s is expected to == "Hello World" 87s behaves like verify_gcm_authentication_tag 87s is expected to raise JSON::JWE::DecryptionFailed 87s when enc=A256GCM 87s behaves like decryptable 87s is expected to == "Hello World" 87s behaves like verify_gcm_authentication_tag 87s is expected to raise JSON::JWE::DecryptionFailed 87s when enc=A128CBC-HS256 87s behaves like decryptable 87s is expected to == "Hello World" 87s behaves like verify_cbc_authentication_tag 87s with missing signature 87s behaves like signature_verification_failure 87s is expected to raise JSON::JWE::DecryptionFailed 87s with good pkcs7 padding and bad signature 87s behaves like signature_verification_failure 87s is expected to raise JSON::JWE::DecryptionFailed 87s with bad pkcs7 padding and bad signature 87s behaves like signature_verification_failure 87s is expected to raise JSON::JWE::DecryptionFailed 87s when enc=A256CBC-HS512 87s behaves like decryptable 87s is expected to == "Hello World" 87s behaves like verify_cbc_authentication_tag 87s with missing signature 87s behaves like signature_verification_failure 87s is expected to raise JSON::JWE::DecryptionFailed 87s with good pkcs7 padding and bad signature 87s behaves like signature_verification_failure 87s is expected to raise JSON::JWE::DecryptionFailed 87s with bad pkcs7 padding and bad signature 87s behaves like signature_verification_failure 87s is expected to raise JSON::JWE::DecryptionFailed 87s when alg=A128KW 87s TODO (PENDING: Not yet implemented) 87s when alg=A256KW 87s TODO (PENDING: Not yet implemented) 87s when unknonw/unsupported algorithm given 87s when alg=unknown 87s behaves like unexpected_algorithm_for_decryption 87s is expected to raise JSON::JWE::UnexpectedAlgorithm 87s when enc=unknown 87s behaves like unexpected_algorithm_for_decryption 87s is expected to raise JSON::JWE::UnexpectedAlgorithm 87s when alg=ECDH-ES 87s behaves like unsupported_algorithm_for_decryption 87s is expected to raise NotImplementedError 87s when alg=ECDH-ES+A128KW 87s behaves like unsupported_algorithm_for_decryption 87s is expected to raise NotImplementedError 87s when alg=ECDH-ES+A256KW 87s behaves like unsupported_algorithm_for_decryption 87s is expected to raise NotImplementedError 87s 87s JSON::JWK::JWKizable 87s #to_jwk 87s OpenSSL::PKey::RSA 87s public_key 87s behaves like jwkizable_as_public 87s is expected to be an instance of JSON::JWK 87s is expected to include "kty", "n", and "e" 87s is expected not to include "d", "p", and "q" 87s private_key 87s behaves like jwkizable_as_private 87s is expected to be an instance of JSON::JWK 87s is expected to include "kty", "n", and "e" 87s is expected to include "d", "p", and "q" 87s OpenSSL::PKey::EC 87s public_key 87s behaves like jwkizable_as_public 87s is expected to be an instance of JSON::JWK 87s is expected to include "kty", "crv", "x", and "y" 87s is expected not to include "d" 87s private_key 87s behaves like jwkizable_as_private 87s is expected to be an instance of JSON::JWK 87s is expected to include "kty", "crv", "x", and "y" 87s is expected to include "d" 87s 87s JSON::JWK::Set::Fetcher 87s JSON::JWK::Set::Fetcher::Cache 87s just execute givne block 87s debugging feature 87s logger 87s is expected to be a kind of Logger 87s debugging? 87s is expected to == false 87s .debug! 87s debugging? 87s is expected to == true 87s .debug 87s should enable debugging within given block 87s should not force disable debugging 87s .http_client 87s with http_config 87s should configure OpenIDConnect, SWD and Rack::OAuth2's http_client 87s fetching feature 87s .cache 87s as default 87s is expected to be an instance of JSON::JWK::Set::Fetcher::Cache 87s when specified 87s is expected to be an instance of CustomCache 87s .fetch 87s when not cached 87s should request to jwks_uri 87s when unknown 87s is expected to raise JSON::JWK::Set::KidNotFound 87s when cached 87s when known 87s should not request to jwks_uri 87s is expected to be an instance of JSON::JWK 87s when auto_detect disabled 87s is expected to be an instance of JSON::JWK::Set 87s cache options 87s when cache options not given 87s with auto_detect 87s behaves like receive_options_as_blank_hash 87s behaves like receive_options_as_hash 87s example at ./spec/json/jwk/set/fetcher_spec.rb:163 87s when cache options given 87s with auto_detect 87s behaves like receive_options_as_hash 87s example at ./spec/json/jwk/set/fetcher_spec.rb:163 87s without auto_detect 87s behaves like receive_options_as_hash 87s example at ./spec/json/jwk/set/fetcher_spec.rb:163 87s when kid & auto_detect are included in the given options 87s as hash 87s behaves like receive_options_as_hash 87s example at ./spec/json/jwk/set/fetcher_spec.rb:163 87s as keyward args 87s is expected to raise ArgumentError 87s 87s JSON::JWK::Set 87s #content_type 87s is expected to == "application/jwk-set+json" 87s when single JWK given 87s is expected to == [{"e"=>"AQAB", "kid"=>"nuBTimkcSt_AuEsD8Yv3l8CoGV31bu_3gsRDGN1iVKA", "kty"=>:RSA, "n"=>"x9vNhcvSrxjse...cVAZuhTTNaDLtLIJ6G0yNJvfEieJUhA8wGBoPhD3LMQwQMxTMerpjZhP_qjm6GgeWpKf-iVil86_PSy_z0Vw06_rD0sfXPtlQ"}] 87s when multiple JWKs given 87s is expected to == [{"e"=>"AQAB", "kid"=>"nuBTimkcSt_AuEsD8Yv3l8CoGV31bu_3gsRDGN1iVKA", "kty"=>:RSA, "n"=>"x9vNhcvSrxjse...cVAZuhTTNaDLtLIJ6G0yNJvfEieJUhA8wGBoPhD3LMQwQMxTMerpjZhP_qjm6GgeWpKf-iVil86_PSy_z0Vw06_rD0sfXPtlQ"}] 87s when an Array of JWKs given 87s is expected to == [{"e"=>"AQAB", "kid"=>"nuBTimkcSt_AuEsD8Yv3l8CoGV31bu_3gsRDGN1iVKA", "kty"=>:RSA, "n"=>"x9vNhcvSrxjse...cVAZuhTTNaDLtLIJ6G0yNJvfEieJUhA8wGBoPhD3LMQwQMxTMerpjZhP_qjm6GgeWpKf-iVil86_PSy_z0Vw06_rD0sfXPtlQ"}] 87s when JSON::JWK given 87s should keep JSON::JWK 87s when pure Hash given 87s should convert into JSON::JWK 87s when pure Hash with :keys key given 87s should convert into JSON::JWK 87s #as_json 87s should become proper JWK set format 87s #to_json 87s is expected not to raise Exception 87s 87s JSON::JWK 87s #initialize 87s when no imput 87s is expected to be blank 87s with OpenSSL::PKey::RSA 87s behaves like jwk_with_kid 87s is expected to be an instance of JSON::JWK 87s kid 87s is expected to == "nuBTimkcSt_AuEsD8Yv3l8CoGV31bu_3gsRDGN1iVKA" 87s with OpenSSL::PKey::EC 87s behaves like jwk_with_kid 87s is expected to be an instance of JSON::JWK 87s kid 87s is expected to == "-egRpLjyZCqxBh4OOfd8JSvXwayHmNFAUNkbi8exfhc" 87s with String 87s behaves like jwk_with_kid 87s is expected to be an instance of JSON::JWK 87s kid 87s is expected to == "XZPWsTEZFIerowAF9GHzBtq5CkAOcVvIBnkMu0IIQH0" 87s with JSON::JWK 87s behaves like jwk_with_kid 87s is expected to be an instance of JSON::JWK 87s kid 87s is expected to == "XZPWsTEZFIerowAF9GHzBtq5CkAOcVvIBnkMu0IIQH0" 87s with Hash 87s behaves like jwk_with_kid 87s is expected to be an instance of JSON::JWK 87s kid 87s is expected to == "XZPWsTEZFIerowAF9GHzBtq5CkAOcVvIBnkMu0IIQH0" 87s with nothing 87s behaves like jwk_without_kid 87s is expected to be an instance of JSON::JWK 87s kid 87s is expected to be blank 87s #content_type 87s is expected to == "application/jwk+json" 87s when RSA public key given 87s is expected to include :kty, :e, and :n 87s kty 87s is expected to == :RSA 87s e 87s is expected to == "AQAB" 87s n 87s is expected to == "x9vNhcvSrxjsegZAAo4OEuoZOV_oxINEeWneJYczS80_bQ1J6lSSJ81qecxXAzCLPlvsFoP4eeUNXSt_G7hP7SAM479N-kY_Mzbi...hLcVAZuhTTNaDLtLIJ6G0yNJvfEieJUhA8wGBoPhD3LMQwQMxTMerpjZhP_qjm6GgeWpKf-iVil86_PSy_z0Vw06_rD0sfXPtlQ" 87s when kid/use options given 87s is expected to include :kid and :use 87s kid 87s is expected to == "12345" 87s use 87s is expected to == :sig 87s #thumbprint 87s using default hash function 87s is expected to == "nuBTimkcSt_AuEsD8Yv3l8CoGV31bu_3gsRDGN1iVKA" 87s using SHA512 hash function 87s is expected to == "6v7pXTnQLMiQgvJlPJUdhAUSuGLzgF8C1r3ABAMFet6bc53ea-Pq4ZGbGu3RoAFsNRT1-RhTzDqtqXuLU6NOtw" 87s #to_key 87s is expected to be an instance of OpenSSL::PKey::RSA 87s when EC public key given 87s EC256 87s is expected to include :kty, :crv, :x, and :y 87s kty 87s is expected to == :EC 87s x 87s is expected to == "saPyrO4Lh9kh2FxrF9y1QVmZznWnRRJwpr12UHqzrVY" 87s y 87s is expected to == "MMz4W9zzqlrJhqr-JyrpvlnaIIyZQE6DfrgPkxMAw1M" 87s EC384 87s is expected to include :kty, :crv, :x, and :y 87s kty 87s is expected to == :EC 87s x 87s is expected to == "plzApyFnK7qzhg5XnIZbFj2hZoH2Vdl4-RFm7DnsNMG9tyqrpfq2RyjfKABbcFRt" 87s y 87s is expected to == "ixBzffhk3fcbmeipGLkvQBNCzeNm6QL3hOUTH6IFBzOL0Y7HsGTopNTTspLjlivb" 87s EC512 87s is expected to include :kty, :crv, :x, and :y 87s kty 87s is expected to == :EC 87s x 87s is expected to == "AcMCD-a0a6rnE9TvC0mOqF_DGXRg5Y3iTb4eHNwTm2kD6iujx9M_f8d_FGHr0OhpqzEn4rYPYZouGsbIPEgL0q__" 87s y 87s is expected to == "AULYEd8l-bV_BI289aezhSLZ1RDF2ltgDPEy9Y7YtqYa4cJcpiyzVDMpXWwBp6cjg6TXINkoVrVXZhN404ihu4I2" 87s unknown curve 87s is expected to raise JSON::JWK::UnknownAlgorithm with "Unknown EC Curve" 87s #thumbprint 87s using default hash function 87s is expected to == "-egRpLjyZCqxBh4OOfd8JSvXwayHmNFAUNkbi8exfhc" 87s using SHA512 hash function 87s is expected to == "B_yXDZJ9doudaVCj5q5vqxshvVtW2IFnz_ypvRt5O60gemkDAhO78L6YMyTWH0ZRm15cO2_laTSaNO9yZQFsvQ" 87s #to_key 87s is expected to be an instance of OpenSSL::PKey::EC 87s when shared secret given 87s kty 87s is expected to == :oct 87s x 87s is expected to == "secret" 87s #thumbprint 87s using default hash function 87s is expected to == "XZPWsTEZFIerowAF9GHzBtq5CkAOcVvIBnkMu0IIQH0" 87s using SHA512 hash function 87s is expected to == "rK7EtcEe9Xr0kryR9lNnyOTRe7Vb_BglbTBtbcVG2LzvL26_PFaMCwOtiUiXWfCK-wV8vcxjmvbcvV4ZxDE0FQ" 87s #to_key 87s is expected to be an instance of String 87s unknown key type 88s is expected to raise JSON::JWK::UnknownAlgorithm with "Unknown Key Type" 88s 88s JSON::JWS 88s before sign 88s behaves like jwt_with_alg 88s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 88s header 88s is expected to == {:alg=>:none, :typ=>:JWT} 88s signature 88s is expected to be nil 88s #content_type 88s is expected to == "application/jose" 88s decode 88s blank payload not allowed 88s should raise format error 88s blank payload allowed 88s should not raise an error 88s #sign! 88s HS256 88s when String key given 88s behaves like jwt_with_alg 88s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 88s header 88s is expected to == {:alg=>:HS256, :typ=>:JWT} 88s behaves like generate_expected_signature 88s is expected to == "DyuTgO2Ggb5nrhkkhI-RjVYIBe3o8oL4ijkAn94YPxQ" 88s with blank payload 88s is expected to == "iRFMM3GknVfzRTxlVQT87jfIw32Ik3lUYNGePPk5wnM" 88s when JSON::JWK key given 88s behaves like jwt_with_alg 88s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 88s header 88s is expected to == {:alg=>:HS256, :typ=>:JWT} 88s behaves like generate_expected_signature 88s is expected to == "DyuTgO2Ggb5nrhkkhI-RjVYIBe3o8oL4ijkAn94YPxQ" 88s with blank payload 88s is expected to == "iRFMM3GknVfzRTxlVQT87jfIw32Ik3lUYNGePPk5wnM" 88s HS384 88s when String key given 88s behaves like jwt_with_alg 88s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 88s header 88s is expected to == {:alg=>:HS384, :typ=>:JWT} 88s behaves like generate_expected_signature 88s is expected to == "a5-7rr61TG8Snv9xxJ7l064ky-SCq1Mswe9t8HEorvoc_nnfIeUy9WQCLMIli34R" 88s with blank payload 88s is expected to == "rxyzr3I2RWRBgQaewQt3yjdp3BqkrFh-iHcet318OYHWhXvyzAE0npf0l0xi5DOV" 88s when JSON::JWK key given 88s behaves like jwt_with_alg 88s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 88s header 88s is expected to == {:alg=>:HS384, :typ=>:JWT} 88s behaves like generate_expected_signature 88s is expected to == "a5-7rr61TG8Snv9xxJ7l064ky-SCq1Mswe9t8HEorvoc_nnfIeUy9WQCLMIli34R" 88s with blank payload 88s is expected to == "rxyzr3I2RWRBgQaewQt3yjdp3BqkrFh-iHcet318OYHWhXvyzAE0npf0l0xi5DOV" 88s HS512 88s when String key given 88s behaves like jwt_with_alg 88s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 88s header 88s is expected to == {:alg=>:HS512, :typ=>:JWT} 88s behaves like generate_expected_signature 88s is expected to == "ce-GlHDaNwaHfmAFRGp3QPPKvrpruTug2hC1bf6yNlbuvkMwJw2jFZgq_4wmIPetRdiBy7XFq7rrtmw1Im7tmQ" 88s with blank payload 88s is expected to == "VDHOrPYrwycjaKbwccObXi6dmw4fVFqiFsNFQjqYHQAkxJGxqhfVLc1_WfKMa6C7vGSGroabaVdK7nn08XPdSQ" 88s when JSON::JWK key given 88s behaves like jwt_with_alg 88s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 88s header 88s is expected to == {:alg=>:HS512, :typ=>:JWT} 88s behaves like generate_expected_signature 88s is expected to == "ce-GlHDaNwaHfmAFRGp3QPPKvrpruTug2hC1bf6yNlbuvkMwJw2jFZgq_4wmIPetRdiBy7XFq7rrtmw1Im7tmQ" 88s with blank payload 88s is expected to == "VDHOrPYrwycjaKbwccObXi6dmw4fVFqiFsNFQjqYHQAkxJGxqhfVLc1_WfKMa6C7vGSGroabaVdK7nn08XPdSQ" 88s RS256 88s when OpenSSL::PKey::RSA key given 88s behaves like jwt_with_alg 88s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 88s header 88s is expected to == {:alg=>:RS256, :typ=>:JWT} 88s behaves like generate_expected_signature 88s is expected to == "E5VELqAdla2Bx1axc9KFxO0EiCr0Mw6HPYX070qGQ8zA_XmyxGPUZLyyWU_6Cn399W-oYBWO2ynLlr8pqqjP3jXevyCeYeGRVN0H...PbHLVGUopIoxoqe4XjoBpzE5UvhrVl5LYbdjbyJhu5ZIA8GLsgwtUFh3dfdIechORoR3k5NSFSv8157bAEa8t4iwgWD2MSNSQnw" 88s with blank payload 88s is expected to == "WthQjouPVbErM7McwSY4slJjHaWqmFg1qKdmTDvttkiyAEcTjVViJkNHH9Mp573h13cXtLob1xh3UJYh5_-hSA4Y24zdyck3jp3f...3kHMns43GtT5bm-aJoMLct0nO1GBapQAiKUknTsw24IfOkX4vJNQzIWVSzx3zOxXjcVHlH92af6NknIlPCfRparLC9YEK2NkJYg" 88s when JSON::JWK key given 88s behaves like jwt_with_alg 88s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 88s header 88s is expected to == {:alg=>:RS256, :typ=>:JWT} 88s behaves like generate_expected_signature 88s is expected to == "E5VELqAdla2Bx1axc9KFxO0EiCr0Mw6HPYX070qGQ8zA_XmyxGPUZLyyWU_6Cn399W-oYBWO2ynLlr8pqqjP3jXevyCeYeGRVN0H...PbHLVGUopIoxoqe4XjoBpzE5UvhrVl5LYbdjbyJhu5ZIA8GLsgwtUFh3dfdIechORoR3k5NSFSv8157bAEa8t4iwgWD2MSNSQnw" 88s with blank payload 88s is expected to == "WthQjouPVbErM7McwSY4slJjHaWqmFg1qKdmTDvttkiyAEcTjVViJkNHH9Mp573h13cXtLob1xh3UJYh5_-hSA4Y24zdyck3jp3f...3kHMns43GtT5bm-aJoMLct0nO1GBapQAiKUknTsw24IfOkX4vJNQzIWVSzx3zOxXjcVHlH92af6NknIlPCfRparLC9YEK2NkJYg" 88s RS384 88s when OpenSSL::PKey::RSA key given 88s behaves like jwt_with_alg 88s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 88s header 88s is expected to == {:alg=>:RS384, :typ=>:JWT} 88s behaves like generate_expected_signature 88s is expected to == "lT5JbytGKgG9QrwkJuxgw7UjmN9tjkEQW9pVGR2XnKEdC0_wLNIzAmT-jTwyMDGBLUkWO7opDOP6Xy6_DOTg58k9PwVkyQzrLnmx..._LUgy80udJvbi8MAYJVUf0QYtQDrX2wnT_-eiiWjD5XafLuXEQVDRh-v2MKAwdvtXMq5cZ08Zjl2SyHxJ3OqhEeWPvYGltxZh_A" 88s with blank payload 88s is expected to == "Jy6XNLNAyujRHYoCOtFqu7z0imHZMiwkwBr73ok_DDSDxQSA9ryt_q_tX0u8knpAIRcTJuNA0-s5DkGbpIj9coKgZ5JBvE_n9ijv...LzONWr_QpCN-UFgmJHO7yBwaP-RWnLDW3hYlb4IybRIvMQQicjkjNaNwLTmwo31orVxO53GcSjyhU2y_R843nQcNjTT_lD1QRvg" 88s when JSON::JWK key given 88s behaves like jwt_with_alg 88s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 88s header 88s is expected to == {:alg=>:RS384, :typ=>:JWT} 88s behaves like generate_expected_signature 88s is expected to == "lT5JbytGKgG9QrwkJuxgw7UjmN9tjkEQW9pVGR2XnKEdC0_wLNIzAmT-jTwyMDGBLUkWO7opDOP6Xy6_DOTg58k9PwVkyQzrLnmx..._LUgy80udJvbi8MAYJVUf0QYtQDrX2wnT_-eiiWjD5XafLuXEQVDRh-v2MKAwdvtXMq5cZ08Zjl2SyHxJ3OqhEeWPvYGltxZh_A" 88s with blank payload 88s is expected to == "Jy6XNLNAyujRHYoCOtFqu7z0imHZMiwkwBr73ok_DDSDxQSA9ryt_q_tX0u8knpAIRcTJuNA0-s5DkGbpIj9coKgZ5JBvE_n9ijv...LzONWr_QpCN-UFgmJHO7yBwaP-RWnLDW3hYlb4IybRIvMQQicjkjNaNwLTmwo31orVxO53GcSjyhU2y_R843nQcNjTT_lD1QRvg" 88s RS512 88s when OpenSSL::PKey::RSA key given 88s behaves like jwt_with_alg 88s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 88s header 88s is expected to == {:alg=>:RS512, :typ=>:JWT} 88s behaves like generate_expected_signature 88s is expected to == "EHeGM2Mo3ghhUfSB99AlREehrbC6OPE-nYL_rwf88ysTnJ8L1QQ0UuCrXq4SpRutGLK_bYTK3ZALvFRPoOgK_g0QWmqv6qjQRU_Q...tU0cKSalUp4geaBDH7QRcexrolIctdQFbNKTXQxoigxD3NLNkKGH7f6A8KZdcOm8AnEjullcZs8_OWGnW43p1qrxoBRSivb9pqQ" 88s with blank payload 88s is expected to == "ws2HZ6wvh8GMrFKiIHXDogyx8HFpa4wvrLxfZaMfCoMPf0SZ4V3tiEZRWfrxyvwpsdBj2Mgm5lt3IYAHhlI2hqWvuikDq6tuVilo...LK-UkDQVclFmEM3JXrPG7YSRodtKlwJ-ESDx6CaJXXDAgitSF32dslcIkmOXRJqjNmF15i_aVg0ExiU92WTpCrdwzWTt4Aphqlw" 88s when JSON::JWK key given 88s behaves like jwt_with_alg 88s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 88s header 88s is expected to == {:alg=>:RS512, :typ=>:JWT} 88s behaves like generate_expected_signature 88s is expected to == "EHeGM2Mo3ghhUfSB99AlREehrbC6OPE-nYL_rwf88ysTnJ8L1QQ0UuCrXq4SpRutGLK_bYTK3ZALvFRPoOgK_g0QWmqv6qjQRU_Q...tU0cKSalUp4geaBDH7QRcexrolIctdQFbNKTXQxoigxD3NLNkKGH7f6A8KZdcOm8AnEjullcZs8_OWGnW43p1qrxoBRSivb9pqQ" 88s with blank payload 88s is expected to == "ws2HZ6wvh8GMrFKiIHXDogyx8HFpa4wvrLxfZaMfCoMPf0SZ4V3tiEZRWfrxyvwpsdBj2Mgm5lt3IYAHhlI2hqWvuikDq6tuVilo...LK-UkDQVclFmEM3JXrPG7YSRodtKlwJ-ESDx6CaJXXDAgitSF32dslcIkmOXRJqjNmF15i_aVg0ExiU92WTpCrdwzWTt4Aphqlw" 88s ES256 88s when OpenSSL::PKey::EC key given 88s behaves like jwt_with_alg 88s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 88s header 88s is expected to == {:alg=>:ES256, :typ=>:JWT} 88s behaves like self_verifiable 88s should be self-verifiable 88s when JSON::JWK key given 88s behaves like jwt_with_alg 88s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 88s header 88s is expected to == {:alg=>:ES256, :typ=>:JWT} 88s behaves like self_verifiable 88s should be self-verifiable 88s ES384 88s when OpenSSL::PKey::EC key given 88s behaves like jwt_with_alg 88s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 88s header 88s is expected to == {:alg=>:ES384, :typ=>:JWT} 88s behaves like self_verifiable 88s should be self-verifiable 88s when JSON::JWK key given 88s behaves like jwt_with_alg 88s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 88s header 88s is expected to == {:alg=>:ES384, :typ=>:JWT} 88s behaves like self_verifiable 88s should be self-verifiable 88s ES512 88s when OpenSSL::PKey::EC key given 88s behaves like jwt_with_alg 88s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 88s header 88s is expected to == {:alg=>:ES512, :typ=>:JWT} 88s behaves like self_verifiable 88s should be self-verifiable 88s when JSON::JWK key given 88s behaves like jwt_with_alg 88s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 88s header 88s is expected to == {:alg=>:ES512, :typ=>:JWT} 88s behaves like self_verifiable 88s should be self-verifiable 88s ES256K 88s when OpenSSL::PKey::EC key given 88s behaves like jwt_with_alg 88s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 88s header 88s is expected to == {:alg=>:ES256K, :typ=>:JWT} 88s behaves like self_verifiable 88s should be self-verifiable 88s when JSON::JWK key given 88s behaves like jwt_with_alg 88s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 88s header 88s is expected to == {:alg=>:ES256K, :typ=>:JWT} 88s behaves like self_verifiable 88s should be self-verifiable 88s when JSON::JWK::Set key given 88s when jwk is found by given kid 88s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 88s otherwise 88s is expected to raise JSON::JWK::Set::KidNotFound 88s unknown algorithm 88s is expected to raise JSON::JWS::UnexpectedAlgorithm 88s #verify! 88s HS256 88s when String key given 88s behaves like success_signature_verification 88s is expected to be a kind of JSON::JWT 88s header 88s should be parsed successfully 88s claims 88s should be parsed successfully 88s with blank payload 88s is expected to be a kind of JSON::JWT 88s header 88s should be parsed successfully 88s claims 88s should be parsed successfully 88s when JSON::JWK key given 88s behaves like success_signature_verification 88s is expected to be a kind of JSON::JWT 88s header 88s should be parsed successfully 88s claims 88s should be parsed successfully 88s with blank payload 88s is expected to be a kind of JSON::JWT 88s header 88s should be parsed successfully 88s claims 88s should be parsed successfully 88s HS384 88s when String key given 88s behaves like success_signature_verification 88s is expected to be a kind of JSON::JWT 88s header 88s should be parsed successfully 88s claims 88s should be parsed successfully 88s with blank payload 88s is expected to be a kind of JSON::JWT 88s header 88s should be parsed successfully 88s claims 88s should be parsed successfully 88s when JSON::JWK key given 88s behaves like success_signature_verification 88s is expected to be a kind of JSON::JWT 88s header 88s should be parsed successfully 88s claims 88s should be parsed successfully 88s with blank payload 88s is expected to be a kind of JSON::JWT 88s header 88s should be parsed successfully 88s claims 88s should be parsed successfully 88s HS512 88s when String key given 88s behaves like success_signature_verification 88s is expected to be a kind of JSON::JWT 88s header 88s should be parsed successfully 88s claims 88s should be parsed successfully 88s with blank payload 88s is expected to be a kind of JSON::JWT 88s header 88s should be parsed successfully 88s claims 88s should be parsed successfully 88s when JSON::JWK key given 88s behaves like success_signature_verification 88s is expected to be a kind of JSON::JWT 88s header 88s should be parsed successfully 88s claims 88s should be parsed successfully 88s with blank payload 88s is expected to be a kind of JSON::JWT 88s header 88s should be parsed successfully 88s claims 88s should be parsed successfully 88s RS256 88s when OpenSSL::PKey::RSA key given 88s behaves like success_signature_verification 88s is expected to be a kind of JSON::JWT 88s header 88s should be parsed successfully 88s claims 88s should be parsed successfully 88s with blank payload 88s is expected to be a kind of JSON::JWT 88s header 88s should be parsed successfully 88s claims 88s should be parsed successfully 88s when JSON::JWK key given 88s behaves like success_signature_verification 88s is expected to be a kind of JSON::JWT 88s header 88s should be parsed successfully 88s claims 88s should be parsed successfully 88s with blank payload 88s is expected to be a kind of JSON::JWT 88s header 88s should be parsed successfully 88s claims 88s should be parsed successfully 88s RS384 88s when OpenSSL::PKey::RSA key given 88s behaves like success_signature_verification 88s is expected to be a kind of JSON::JWT 88s header 88s should be parsed successfully 88s claims 88s should be parsed successfully 88s with blank payload 88s is expected to be a kind of JSON::JWT 88s header 88s should be parsed successfully 88s claims 88s should be parsed successfully 88s when JSON::JWK key given 88s behaves like success_signature_verification 88s is expected to be a kind of JSON::JWT 88s header 88s should be parsed successfully 88s claims 88s should be parsed successfully 88s with blank payload 88s is expected to be a kind of JSON::JWT 88s header 88s should be parsed successfully 88s claims 88s should be parsed successfully 88s RS512 88s when OpenSSL::PKey::RSA key given 88s behaves like success_signature_verification 88s is expected to be a kind of JSON::JWT 88s header 88s should be parsed successfully 88s claims 88s should be parsed successfully 88s with blank payload 88s is expected to be a kind of JSON::JWT 88s header 88s should be parsed successfully 88s claims 88s should be parsed successfully 88s when JSON::JWK key given 88s behaves like success_signature_verification 88s is expected to be a kind of JSON::JWT 88s header 88s should be parsed successfully 88s claims 88s should be parsed successfully 88s with blank payload 88s is expected to be a kind of JSON::JWT 88s header 88s should be parsed successfully 88s claims 88s should be parsed successfully 88s ES256 88s when OpenSSL::PKey::EC key given 88s behaves like success_signature_verification 88s is expected to be a kind of JSON::JWT 88s header 88s should be parsed successfully 88s claims 88s should be parsed successfully 88s with blank payload 88s is expected to be a kind of JSON::JWT 88s header 88s should be parsed successfully 88s claims 88s should be parsed successfully 88s when JSON::JWK key given 88s behaves like success_signature_verification 88s is expected to be a kind of JSON::JWT 88s header 88s should be parsed successfully 88s claims 88s should be parsed successfully 88s with blank payload 88s is expected to be a kind of JSON::JWT 88s header 88s should be parsed successfully 88s claims 88s should be parsed successfully 88s ES384 88s when OpenSSL::PKey::EC key given 88s behaves like success_signature_verification 88s is expected to be a kind of JSON::JWT 88s header 88s should be parsed successfully 88s claims 88s should be parsed successfully 88s with blank payload 88s is expected to be a kind of JSON::JWT 88s header 88s should be parsed successfully 88s claims 88s should be parsed successfully 88s when JSON::JWK key given 88s behaves like success_signature_verification 88s is expected to be a kind of JSON::JWT 88s header 88s should be parsed successfully 88s claims 88s should be parsed successfully 88s with blank payload 88s is expected to be a kind of JSON::JWT 88s header 88s should be parsed successfully 88s claims 88s should be parsed successfully 88s ES512 88s when OpenSSL::PKey::EC key given 88s behaves like success_signature_verification 88s is expected to be a kind of JSON::JWT 88s header 88s should be parsed successfully 88s claims 88s should be parsed successfully 88s with blank payload 88s is expected to be a kind of JSON::JWT 88s header 88s should be parsed successfully 88s claims 88s should be parsed successfully 88s when JSON::JWK key given 88s behaves like success_signature_verification 88s is expected to be a kind of JSON::JWT 88s header 88s should be parsed successfully 88s claims 88s should be parsed successfully 88s with blank payload 88s is expected to be a kind of JSON::JWT 88s header 88s should be parsed successfully 88s claims 88s should be parsed successfully 88s ES256K 88s when OpenSSL::PKey::EC key given 88s behaves like success_signature_verification 88s is expected to be a kind of JSON::JWT 88s header 88s should be parsed successfully 88s claims 88s should be parsed successfully 88s with blank payload 88s is expected to be a kind of JSON::JWT 88s header 88s should be parsed successfully 88s claims 88s should be parsed successfully 88s when JSON::JWK key given 88s behaves like success_signature_verification 88s is expected to be a kind of JSON::JWT 88s header 88s should be parsed successfully 88s claims 88s should be parsed successfully 88s with blank payload 88s is expected to be a kind of JSON::JWT 88s header 88s should be parsed successfully 88s claims 88s should be parsed successfully 88s when JSON::JWK::Set key given 88s when jwk is found by given kid 88s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 88s otherwise 88s is expected to raise JSON::JWK::Set::KidNotFound 88s unknown algorithm 88s is expected to raise JSON::JWS::UnexpectedAlgorithm 88s #to_json 88s as default 88s should JSONize payload 88s with blank payload 88s should JSONize payload 88s when syntax option given 88s when general 88s should return General JWS JSON Serialization 88s with blank payload 88s should return General JWS JSON Serialization 88s when not signed yet 88s should not fail 88s with blank payload 88s should not fail 88s when flattened 88s should return Flattened JWS JSON Serialization 88s with blank payload 88s should return Flattened JWS JSON Serialization 88s when not signed yet 88s should not fail 88s with blank payload 88s should not fail 88s 88s JSON::JWT 88s version 88s is expected not to be blank 88s #initialize 88s doesn't try to modify a frozen hash 88s when not signed nor encrypted 88s is expected to == "eyJ0eXAiOiJKV1QiLCJhbGciOiJub25lIn0.eyJpc3MiOiJqb2UiLCJleHAiOjEzMDA4MTkzODAsImh0dHA6Ly9leGFtcGxlLmNvbS9pc19yb290Ijp0cnVlfQ." 88s #content_type 88s is expected to == "application/jwt" 88s #sign 88s HS256 88s is expected to be a kind of JSON::JWS 88s HS384 88s is expected to be a kind of JSON::JWS 88s HS512 88s is expected to be a kind of JSON::JWS 88s RS256 88s is expected to be a kind of JSON::JWS 88s RS384 88s is expected to be a kind of JSON::JWS 88s RS512 88s is expected to be a kind of JSON::JWS 88s when no algirithm specified 88s when key is String 88s alg 88s is expected to == :HS256 88s when key is RSA key 88s alg 88s is expected to == :RS256 88s when key is EC key 88s when prime256v1 88s alg 88s is expected to == :ES256 88s when secp384r1 88s alg 88s is expected to == :ES384 88s when secp521r1 88s alg 88s is expected to == :ES512 88s when secp256k1 88s alg 88s is expected to == :ES256K 88s when key is JWK with kty=okt 88s alg 88s is expected to == :HS256 88s when key is JWK with kty=RSA 88s alg 88s is expected to == :RS256 88s when key is JWK with kty=EC 88s when prime256v1 88s alg 88s is expected to == :ES256 88s when secp384r1 88s alg 88s is expected to == :ES384 88s when secp521r1 88s alg 88s is expected to == :ES512 88s when secp256k1 88s alg 88s is expected to == :ES256K 88s when non-JWK key is given 88s should not set kid header automatically 88s when JWK is given 88s should set kid header automatically 88s object copy behaviour 88s when original JWT is modified 88s copied JWS 88s should be affected as shallow copy, but not as a simple reference 88s when copied JWS is modified 88s original JWT 88s should be affected as shallow copy, but not as a simple reference 88s #encrypt 88s should encryptable without signing 88s should encryptable after signed 88s should accept optional algorithm 88s should accept optional algorithm and encryption method 88s when non-JWK key is given 88s should not set kid header automatically 88s when JWK is given 88s should set kid header automatically 88s .decode 88s when not signed nor encrypted 88s no signature given 88s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 88s when signed 88s when no secret/key given 88s should do verification 88s when secret/key given 88s should do verification 88s when alg header malformed 88s from alg=HS256 88s to alg=none 88s is expected to raise JSON::JWT::VerificationFailed 88s from alg=RS256 88s to alg=none 88s is expected to raise JSON::JWT::UnexpectedAlgorithm 88s to alg=HS256 88s is expected to raise JSON::JWS::UnexpectedAlgorithm 88s from alg=PS512 88s to alg=PS256 88s when verification algorithm is specified 88s is expected to raise JSON::JWS::UnexpectedAlgorithm with "Unexpected alg header" 88s otherwise 88s is expected not to raise Exception 88s to alg=RS516 88s when verification algorithm is specified 89s is expected to raise JSON::JWS::UnexpectedAlgorithm with "Unexpected alg header" 89s otherwise 89s is expected not to raise Exception 89s when :skip_verification given as secret/key 89s should skip verification 89s when JSON Serialization given 89s when general 89s behaves like json_serialization_parser 89s when proper secret given 89s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 89s when verification skipped 89s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 89s when wrong secret given 89s is expected to raise JSON::JWT::VerificationFailed 89s when flattened 89s behaves like json_serialization_parser 89s when proper secret given 89s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 89s when verification skipped 89s is expected to == {"exp"=>1300819380, "http://example.com/is_root"=>true, "iss"=>"joe"} 89s when wrong secret given 89s is expected to raise JSON::JWT::VerificationFailed 89s when encrypted 89s should decryptable 89s when :skip_decryption given as secret/key 89s should skip verification 89s when alg & enc is specified 89s when expected 89s is expected not to raise Exception 89s when alg is unexpected 89s is expected to raise JSON::JWE::UnexpectedAlgorithm with "Unexpected alg header" 89s when enc is unexpected 89s is expected to raise JSON::JWE::UnexpectedAlgorithm with "Unexpected enc header" 89s when JSON parse failed 89s is expected to raise JSON::JWT::InvalidFormat 89s when unexpected format 89s when too few dots 89s is expected to raise JSON::JWT::InvalidFormat 89s when too many dots 89s is expected to raise JSON::JWT::InvalidFormat 89s when JWS & JWE can be mixed-up (CVE-2023-51774) 89s is expected to raise JSON::JWT::InvalidFormat 89s .pretty_generate 89s size 89s is expected to == 2 89s first 89s is expected to == "{\n \"typ\": \"JWT\",\n \"alg\": \"HS256\"\n}" 89s last 89s is expected to == "{\n \"iss\": \"joe\",\n \"exp\": 1300819380,\n \"http://example.com/is_root\": true\n}" 89s 89s Pending: (Failures listed here are expected and do not affect your suite's status) 89s 89s 1) interop with Nimbus JOSE Nimbus JOSE unavailable 89s # No reason given 89s # ./spec/interop/with_nimbus_jose_spec.rb:96 89s 89s 2) JSON::JWE encrypt! when plaintext given when alg=dir TODO 89s # Not yet implemented 89s # ./spec/json/jwe_spec.rb:35 89s 89s 3) JSON::JWE encrypt! when plaintext given when alg=A128KW TODO 89s # Not yet implemented 89s # ./spec/json/jwe_spec.rb:39 89s 89s 4) JSON::JWE encrypt! when plaintext given when alg=A256KW TODO 89s # Not yet implemented 89s # ./spec/json/jwe_spec.rb:43 89s 89s 5) JSON::JWE decrypt! when alg=A128KW TODO 89s # Not yet implemented 89s # ./spec/json/jwe_spec.rb:275 89s 89s 6) JSON::JWE decrypt! when alg=A256KW TODO 89s # Not yet implemented 89s # ./spec/json/jwe_spec.rb:279 89s 89s Finished in 2.1 seconds (files took 1 second to load) 89s 410 examples, 0 failures, 6 pending 89s 89s mv ./.gem2deb.lib lib 89s autopkgtest [18:49:19]: test gem2deb-test-runner: -----------------------] 89s gem2deb-test-runner PASS 89s autopkgtest [18:49:19]: test gem2deb-test-runner: - - - - - - - - - - results - - - - - - - - - - 90s autopkgtest [18:49:20]: @@@@@@@@@@@@@@@@@@@@ summary 90s gem2deb-test-runner PASS