0s autopkgtest [07:50:36]: starting date and time: 2025-02-19 07:50:36+0000 0s autopkgtest [07:50:36]: git checkout: 325255d2 Merge branch 'pin-any-arch' into 'ubuntu/production' 0s autopkgtest [07:50:36]: host juju-7f2275-prod-proposed-migration-environment-15; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.d9y_akh2/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:pass-audit --apt-upgrade pass-audit --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=pass-audit/1.2-1.2 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-ppc64el --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-15@bos03-ppc64el-32.secgroup --name adt-plucky-ppc64el-pass-audit-20250219-075036-juju-7f2275-prod-proposed-migration-environment-15-926a2384-de82-468d-8a81-57c464d194b8 --image adt/ubuntu-plucky-ppc64el-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-15 --net-id=net_prod-proposed-migration-ppc64el -e TERM=linux -e ''"'"'http_proxy=http://squid.internal:3128'"'"'' -e ''"'"'https_proxy=http://squid.internal:3128'"'"'' -e ''"'"'no_proxy=127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,novalocal,internal,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,10.24.0.0/24,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com,radosgw.ps5.canonical.com'"'"'' --mirror=http://ftpmaster.internal/ubuntu/ 83s autopkgtest [07:51:59]: testbed dpkg architecture: ppc64el 84s autopkgtest [07:52:00]: testbed apt version: 2.9.29 84s autopkgtest [07:52:00]: @@@@@@@@@@@@@@@@@@@@ test bed setup 84s autopkgtest [07:52:00]: testbed release detected to be: None 85s autopkgtest [07:52:01]: updating testbed package index (apt update) 85s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [110 kB] 85s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 86s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 86s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 86s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [734 kB] 86s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [14.6 kB] 86s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [3120 B] 86s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [73.3 kB] 86s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el Packages [91.9 kB] 86s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/restricted ppc64el Packages [760 B] 86s Get:11 http://ftpmaster.internal/ubuntu plucky-proposed/universe ppc64el Packages [638 kB] 86s Get:12 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse ppc64el Packages [6324 B] 86s Fetched 1673 kB in 1s (1635 kB/s) 87s Reading package lists... 88s + lsb_release --codename --short 88s + RELEASE=plucky 88s + cat 88s + [ plucky != trusty ] 88s + DEBIAN_FRONTEND=noninteractive eatmydata apt-get -y --allow-downgrades -o Dpkg::Options::=--force-confnew dist-upgrade 88s Reading package lists... 88s Building dependency tree... 88s Reading state information... 88s Calculating upgrade... 88s The following NEW packages will be installed: 88s libapt-pkg7.0 88s The following packages will be upgraded: 88s apt apt-utils dhcpcd-base rsyslog 88s 4 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 88s Need to get 3731 kB of archives. 88s After this operation, 3926 kB of additional disk space will be used. 88s Get:1 http://ftpmaster.internal/ubuntu plucky/main ppc64el libapt-pkg7.0 ppc64el 2.9.30 [1152 kB] 89s Get:2 http://ftpmaster.internal/ubuntu plucky/main ppc64el apt ppc64el 2.9.30 [1439 kB] 89s Get:3 http://ftpmaster.internal/ubuntu plucky/main ppc64el apt-utils ppc64el 2.9.30 [228 kB] 89s Get:4 http://ftpmaster.internal/ubuntu plucky/main ppc64el dhcpcd-base ppc64el 1:10.1.0-7 [280 kB] 89s Get:5 http://ftpmaster.internal/ubuntu plucky/main ppc64el rsyslog ppc64el 8.2412.0-2ubuntu1 [632 kB] 89s Fetched 3731 kB in 1s (5123 kB/s) 89s Selecting previously unselected package libapt-pkg7.0:ppc64el. 90s (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 ... 106322 files and directories currently installed.) 90s Preparing to unpack .../libapt-pkg7.0_2.9.30_ppc64el.deb ... 90s Unpacking libapt-pkg7.0:ppc64el (2.9.30) ... 90s Setting up libapt-pkg7.0:ppc64el (2.9.30) ... 90s (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 ... 106371 files and directories currently installed.) 90s Preparing to unpack .../apt_2.9.30_ppc64el.deb ... 90s Unpacking apt (2.9.30) over (2.9.29) ... 90s Setting up apt (2.9.30) ... 91s (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 ... 106371 files and directories currently installed.) 91s Preparing to unpack .../apt-utils_2.9.30_ppc64el.deb ... 91s Unpacking apt-utils (2.9.30) over (2.9.29) ... 91s Preparing to unpack .../dhcpcd-base_1%3a10.1.0-7_ppc64el.deb ... 91s Unpacking dhcpcd-base (1:10.1.0-7) over (1:10.1.0-6) ... 91s Preparing to unpack .../rsyslog_8.2412.0-2ubuntu1_ppc64el.deb ... 91s Unpacking rsyslog (8.2412.0-2ubuntu1) over (8.2412.0-1ubuntu1) ... 91s Setting up apt-utils (2.9.30) ... 91s Setting up rsyslog (8.2412.0-2ubuntu1) ... 91s info: The user `syslog' is already a member of `adm'. 92s Setting up dhcpcd-base (1:10.1.0-7) ... 92s Processing triggers for man-db (2.13.0-1) ... 94s Processing triggers for libc-bin (2.40-4ubuntu1) ... 94s + rm /etc/apt/preferences.d/force-downgrade-to-release.pref 94s + /usr/lib/apt/apt-helper analyze-pattern ?true 94s + uname -r 94s + sed s/\./\\./g 94s + running_kernel_pattern=^linux-.*6\.12\.0-15-generic.* 94s + apt list ?obsolete 94s + tail -n+2 94s + cut -d/ -f1 94s + grep -v ^linux-.*6\.12\.0-15-generic.* 95s + true 95s + obsolete_pkgs= 95s + DEBIAN_FRONTEND=noninteractive eatmydata apt-get -y purge --autoremove 95s Reading package lists... 95s Building dependency tree... 95s Reading state information... 95s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 95s + grep -q trusty /etc/lsb-release 95s + [ ! -d /usr/share/doc/unattended-upgrades ] 95s + [ ! -d /usr/share/doc/lxd ] 95s + [ ! -d /usr/share/doc/lxd-client ] 95s + [ ! -d /usr/share/doc/snapd ] 95s + type iptables 95s + cat 95s + chmod 755 /etc/rc.local 96s + . /etc/rc.local 96s + iptables -w -t mangle -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu 96s + iptables -A OUTPUT -d 10.255.255.1/32 -p tcp -j DROP 96s + iptables -A OUTPUT -d 10.255.255.2/32 -p tcp -j DROP 96s + uname -m 96s + [ ppc64le = ppc64le ] 96s + systemctl is-active keyboard-setup.service 96s + [ active = failed ] 96s + [ -d /run/systemd/system ] 96s + systemd-detect-virt --quiet --vm 96s + mkdir -p /etc/systemd/system/systemd-random-seed.service.d/ 96s + cat 96s + grep -q lz4 /etc/initramfs-tools/initramfs.conf 96s + echo COMPRESS=lz4 96s autopkgtest [07:52:12]: upgrading testbed (apt dist-upgrade and autopurge) 96s Reading package lists... 96s Building dependency tree... 96s Reading state information... 96s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 96s Starting 2 pkgProblemResolver with broken count: 0 96s Done 96s Entering ResolveByKeep 97s 97s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 97s Reading package lists... 97s Building dependency tree... 97s Reading state information... 97s Starting pkgProblemResolver with broken count: 0 97s Starting 2 pkgProblemResolver with broken count: 0 97s Done 98s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 98s autopkgtest [07:52:14]: rebooting testbed after setup commands that affected boot 132s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 141s autopkgtest [07:52:57]: testbed running kernel: Linux 6.12.0-15-generic #15-Ubuntu SMP Tue Feb 4 16:32:08 UTC 2025 145s autopkgtest [07:53:01]: @@@@@@@@@@@@@@@@@@@@ apt-source pass-audit 147s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed/universe pass-audit 1.2-1.2 (dsc) [2160 B] 147s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/universe pass-audit 1.2-1.2 (tar) [56.6 kB] 147s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/universe pass-audit 1.2-1.2 (asc) [963 B] 147s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/universe pass-audit 1.2-1.2 (diff) [4328 B] 147s gpgv: Signature made Sun Sep 8 17:32:35 2024 UTC 147s gpgv: using RSA key 406220C8B8552802378CCE411F5C7A8B45564314 147s gpgv: issuer "bage@debian.org" 147s gpgv: Can't check signature: No public key 147s dpkg-source: warning: cannot verify inline signature for ./pass-audit_1.2-1.2.dsc: no acceptable signature found 147s autopkgtest [07:53:03]: testing package pass-audit version 1.2-1.2 147s autopkgtest [07:53:03]: build not needed 148s autopkgtest [07:53:04]: test unittests: preparing testbed 148s Reading package lists... 148s Building dependency tree... 148s Reading state information... 148s Starting pkgProblemResolver with broken count: 0 148s Starting 2 pkgProblemResolver with broken count: 0 148s Done 148s The following NEW packages will be installed: 148s libjs-jquery libjs-jquery-hotkeys libjs-jquery-isonscreen 148s libjs-jquery-metadata libjs-jquery-tablesorter 148s libjs-jquery-throttle-debounce pass pass-extension-audit python3-all 148s python3-coverage python3-iniconfig python3-packaging python3-pluggy 148s python3-pytest python3-pytest-cov python3-python-zxcvbn-rs-py python3.12 148s python3.12-minimal tree 149s 0 upgraded, 19 newly installed, 0 to remove and 0 not upgraded. 149s Need to get 5542 kB of archives. 149s After this operation, 22.4 MB of additional disk space will be used. 149s Get:1 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3.12-minimal ppc64el 3.12.9-1 [2465 kB] 149s Get:2 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3.12 ppc64el 3.12.9-1 [671 kB] 149s Get:3 http://ftpmaster.internal/ubuntu plucky/main ppc64el libjs-jquery all 3.6.1+dfsg+~3.5.14-1 [328 kB] 149s Get:4 http://ftpmaster.internal/ubuntu plucky/universe ppc64el libjs-jquery-metadata all 12-4 [6582 B] 149s Get:5 http://ftpmaster.internal/ubuntu plucky/universe ppc64el libjs-jquery-tablesorter all 1:2.31.3+dfsg1-4 [192 kB] 149s Get:6 http://ftpmaster.internal/ubuntu plucky/universe ppc64el libjs-jquery-throttle-debounce all 1.1+dfsg.1-2 [12.5 kB] 149s Get:7 http://ftpmaster.internal/ubuntu plucky/universe ppc64el tree ppc64el 2.1.1-2ubuntu3 [54.4 kB] 149s Get:8 http://ftpmaster.internal/ubuntu plucky/universe ppc64el pass all 1.7.4-7 [34.7 kB] 149s Get:9 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-python-zxcvbn-rs-py ppc64el 0.2.0-1 [1243 kB] 149s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/universe ppc64el pass-extension-audit all 1.2-1.2 [15.8 kB] 149s Get:11 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-all ppc64el 3.13.1-1~exp2 [896 B] 149s Get:12 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-coverage ppc64el 7.4.4+dfsg1-0ubuntu3 [151 kB] 149s Get:13 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-iniconfig all 1.1.1-2 [6024 B] 149s Get:14 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-packaging all 24.2-1 [51.5 kB] 149s Get:15 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-pluggy all 1.5.0-1 [21.0 kB] 149s Get:16 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-pytest all 8.3.4-1 [252 kB] 149s Get:17 http://ftpmaster.internal/ubuntu plucky/universe ppc64el libjs-jquery-hotkeys all 0.2.0-1 [13.3 kB] 149s Get:18 http://ftpmaster.internal/ubuntu plucky/universe ppc64el libjs-jquery-isonscreen all 1.2.0-1.1 [3244 B] 149s Get:19 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-pytest-cov all 5.0.0-1 [21.3 kB] 150s Fetched 5542 kB in 1s (6101 kB/s) 150s Selecting previously unselected package python3.12-minimal. 150s (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 ... 106371 files and directories currently installed.) 150s Preparing to unpack .../00-python3.12-minimal_3.12.9-1_ppc64el.deb ... 150s Unpacking python3.12-minimal (3.12.9-1) ... 150s Selecting previously unselected package python3.12. 150s Preparing to unpack .../01-python3.12_3.12.9-1_ppc64el.deb ... 150s Unpacking python3.12 (3.12.9-1) ... 150s Selecting previously unselected package libjs-jquery. 150s Preparing to unpack .../02-libjs-jquery_3.6.1+dfsg+~3.5.14-1_all.deb ... 150s Unpacking libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 150s Selecting previously unselected package libjs-jquery-metadata. 150s Preparing to unpack .../03-libjs-jquery-metadata_12-4_all.deb ... 150s Unpacking libjs-jquery-metadata (12-4) ... 150s Selecting previously unselected package libjs-jquery-tablesorter. 150s Preparing to unpack .../04-libjs-jquery-tablesorter_1%3a2.31.3+dfsg1-4_all.deb ... 150s Unpacking libjs-jquery-tablesorter (1:2.31.3+dfsg1-4) ... 150s Selecting previously unselected package libjs-jquery-throttle-debounce. 150s Preparing to unpack .../05-libjs-jquery-throttle-debounce_1.1+dfsg.1-2_all.deb ... 150s Unpacking libjs-jquery-throttle-debounce (1.1+dfsg.1-2) ... 150s Selecting previously unselected package tree. 150s Preparing to unpack .../06-tree_2.1.1-2ubuntu3_ppc64el.deb ... 150s Unpacking tree (2.1.1-2ubuntu3) ... 150s Selecting previously unselected package pass. 150s Preparing to unpack .../07-pass_1.7.4-7_all.deb ... 150s Unpacking pass (1.7.4-7) ... 150s Selecting previously unselected package python3-python-zxcvbn-rs-py. 150s Preparing to unpack .../08-python3-python-zxcvbn-rs-py_0.2.0-1_ppc64el.deb ... 150s Unpacking python3-python-zxcvbn-rs-py (0.2.0-1) ... 150s Selecting previously unselected package pass-extension-audit. 150s Preparing to unpack .../09-pass-extension-audit_1.2-1.2_all.deb ... 150s Unpacking pass-extension-audit (1.2-1.2) ... 150s Selecting previously unselected package python3-all. 150s Preparing to unpack .../10-python3-all_3.13.1-1~exp2_ppc64el.deb ... 150s Unpacking python3-all (3.13.1-1~exp2) ... 150s Selecting previously unselected package python3-coverage. 150s Preparing to unpack .../11-python3-coverage_7.4.4+dfsg1-0ubuntu3_ppc64el.deb ... 150s Unpacking python3-coverage (7.4.4+dfsg1-0ubuntu3) ... 150s Selecting previously unselected package python3-iniconfig. 150s Preparing to unpack .../12-python3-iniconfig_1.1.1-2_all.deb ... 150s Unpacking python3-iniconfig (1.1.1-2) ... 150s Selecting previously unselected package python3-packaging. 150s Preparing to unpack .../13-python3-packaging_24.2-1_all.deb ... 150s Unpacking python3-packaging (24.2-1) ... 150s Selecting previously unselected package python3-pluggy. 150s Preparing to unpack .../14-python3-pluggy_1.5.0-1_all.deb ... 150s Unpacking python3-pluggy (1.5.0-1) ... 150s Selecting previously unselected package python3-pytest. 150s Preparing to unpack .../15-python3-pytest_8.3.4-1_all.deb ... 150s Unpacking python3-pytest (8.3.4-1) ... 150s Selecting previously unselected package libjs-jquery-hotkeys. 151s Preparing to unpack .../16-libjs-jquery-hotkeys_0.2.0-1_all.deb ... 151s Unpacking libjs-jquery-hotkeys (0.2.0-1) ... 151s Selecting previously unselected package libjs-jquery-isonscreen. 151s Preparing to unpack .../17-libjs-jquery-isonscreen_1.2.0-1.1_all.deb ... 151s Unpacking libjs-jquery-isonscreen (1.2.0-1.1) ... 151s Selecting previously unselected package python3-pytest-cov. 151s Preparing to unpack .../18-python3-pytest-cov_5.0.0-1_all.deb ... 151s Unpacking python3-pytest-cov (5.0.0-1) ... 151s Setting up python3-iniconfig (1.1.1-2) ... 151s Setting up python3.12-minimal (3.12.9-1) ... 152s Setting up python3.12 (3.12.9-1) ... 153s Setting up python3-all (3.13.1-1~exp2) ... 153s Setting up python3-coverage (7.4.4+dfsg1-0ubuntu3) ... 153s Setting up libjs-jquery-throttle-debounce (1.1+dfsg.1-2) ... 153s Setting up python3-packaging (24.2-1) ... 154s Setting up tree (2.1.1-2ubuntu3) ... 154s Setting up pass (1.7.4-7) ... 154s Setting up python3-pluggy (1.5.0-1) ... 154s Setting up python3-python-zxcvbn-rs-py (0.2.0-1) ... 154s Setting up libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 154s Setting up libjs-jquery-hotkeys (0.2.0-1) ... 154s Setting up python3-pytest (8.3.4-1) ... 155s Setting up pass-extension-audit (1.2-1.2) ... 155s Setting up libjs-jquery-metadata (12-4) ... 155s Setting up libjs-jquery-isonscreen (1.2.0-1.1) ... 155s Setting up libjs-jquery-tablesorter (1:2.31.3+dfsg1-4) ... 155s Setting up python3-pytest-cov (5.0.0-1) ... 155s Processing triggers for man-db (2.13.0-1) ... 156s Processing triggers for systemd (257.2-3ubuntu1) ... 157s autopkgtest [07:53:13]: test unittests: [----------------------- 164s ============================= test session starts ============================== 164s platform linux -- Python 3.12.9, pytest-8.3.4, pluggy-1.5.0 164s rootdir: /tmp/autopkgtest.2rMBGe/autopkgtest_tmp 164s plugins: typeguard-4.4.1, cov-5.0.0 164s collected 42 items 164s 165s tests/test_audit.py .....FF [ 16%] 166s tests/test_main.py .....FFFFF.. [ 45%] 166s tests/test_msg.py ........ [ 64%] 166s tests/test_pass.py .............. [ 97%] 166s tests/test_pwned.py . [100%] 166s 166s =================================== FAILURES =================================== 166s _______________________ TestPassAudit.test_zxcvbn_strong _______________________ 166s 166s self = 166s 166s def test_zxcvbn_strong(self): 166s """Testing: pass audit for strong password with zxcvbn.""" 166s data = tests.getdata('Password/good') 166s audit = pass_audit.audit.PassAudit(data, True) 166s > weak = audit.zxcvbn() 166s 166s tests/test_audit.py:51: 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s 166s self = 166s 166s def zxcvbn(self): 166s """Password strength estimaton usuing Dropbox' zxcvbn.""" 166s if not ZXCVBN: 166s raise ImportError(name='zxcvbn') 166s 166s weak = [] 166s for path, entry in self.data.items(): 166s if self.verbose: 166s print(f"Checking {path}") 166s if entry.get('password', '') == '': 166s continue 166s password = entry['password'] 166s user_input = list(entry.values()) + path.split(os.sep) 166s if password in user_input: 166s user_input.remove(password) 166s results = zxcvbn(password, user_inputs=user_input) 166s > if results['score'] <= 2: 166s E TypeError: 'zxcvbn_rs_py.Entropy' object is not subscriptable 166s 166s /usr/lib/python3/dist-packages/pass_audit/audit.py:90: TypeError 166s ----------------------------- Captured stdout call ----------------------------- 166s Checking Password/good/1 166s ________________________ TestPassAudit.test_zxcvbn_weak ________________________ 166s 166s self = 166s 166s def test_zxcvbn_weak(self): 166s """Testing: pass audit for weak password with zxcvbn.""" 166s data = tests.getdata('Password/pwned/1') 166s audit = pass_audit.audit.PassAudit(data, True) 166s > weak = audit.zxcvbn() 166s 166s tests/test_audit.py:43: 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s 166s self = 166s 166s def zxcvbn(self): 166s """Password strength estimaton usuing Dropbox' zxcvbn.""" 166s if not ZXCVBN: 166s raise ImportError(name='zxcvbn') 166s 166s weak = [] 166s for path, entry in self.data.items(): 166s if self.verbose: 166s print(f"Checking {path}") 166s if entry.get('password', '') == '': 166s continue 166s password = entry['password'] 166s user_input = list(entry.values()) + path.split(os.sep) 166s if password in user_input: 166s user_input.remove(password) 166s results = zxcvbn(password, user_inputs=user_input) 166s > if results['score'] <= 2: 166s E TypeError: 'zxcvbn_rs_py.Entropy' object is not subscriptable 166s 166s /usr/lib/python3/dist-packages/pass_audit/audit.py:90: TypeError 166s ----------------------------- Captured stdout call ----------------------------- 166s Checking Password/pwned/1 166s _______________________ TestMain.test_main_passwords_all _______________________ 166s 166s self = 166s 166s @mock.patch('requests.get', tests.mock_request) 166s def test_main_passwords_all(self): 166s """Testing: pass audit .""" 166s cmd = [''] 166s > self.main(cmd) 166s 166s tests/test_main.py:104: 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s tests/__init__.py:129: in main 166s pass_audit.__main__.main() 166s /usr/lib/python3/dist-packages/pass_audit/__main__.py:130: in main 166s weak = audit.zxcvbn() 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s 166s self = 166s 166s def zxcvbn(self): 166s """Password strength estimaton usuing Dropbox' zxcvbn.""" 166s if not ZXCVBN: 166s raise ImportError(name='zxcvbn') 166s 166s weak = [] 166s for path, entry in self.data.items(): 166s if self.verbose: 166s print(f"Checking {path}") 166s if entry.get('password', '') == '': 166s continue 166s password = entry['password'] 166s user_input = list(entry.values()) + path.split(os.sep) 166s if password in user_input: 166s user_input.remove(password) 166s results = zxcvbn(password, user_inputs=user_input) 166s > if results['score'] <= 2: 166s E TypeError: 'zxcvbn_rs_py.Entropy' object is not subscriptable 166s 166s /usr/lib/python3/dist-packages/pass_audit/audit.py:90: TypeError 166s ----------------------------- Captured stdout call ----------------------------- 166s  . Auditing whole store - this may take some time 166s  w Imposible to read dummy from the password store: gpg: WARNING: unsafe permissions on homedir '/tmp/autopkgtest.2rMBGe/autopkgtest_tmp/tests/assets/gnupg' 166s gpg: decrypt_message failed: Unknown system error 166s  166s  w Password breached: P@ssw0rd from Password/pwned/1 has been breached 52579 time(s). 166s  w Password breached: correct horse battery staple from Password/pwned/2 has been breached 3 time(s). 166s  w Password breached: correcthorsebatterystaple from Password/pwned/3 has been breached 120 time(s). 166s  w Password breached: ILoveYou from Password/pwned/4 has been breached 1386 time(s). 166s  w Password breached: password from Password/pwned/5 has been breached 3730471 time(s). 166s  w Password breached: a from Password/pwned/6 has been breached 123422 time(s). 166s  w Password breached: iamagenius from Password/pwned/7 has been breached 411 time(s). 166s ____________________ TestMain.test_main_passwords_duplicate ____________________ 166s 166s self = 166s 166s @mock.patch('requests.get', tests.mock_request) 166s def test_main_passwords_duplicate(self): 166s """Testing: pass audit for duplicates.""" 166s shutil.copy(os.path.join(self.store.prefix, 'Password/good/1.gpg'), 166s os.path.join(self.store.prefix, 'Password/good/10.gpg')) 166s cmd = ['Password/good'] 166s > self.main(cmd) 166s 166s tests/test_main.py:91: 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s tests/__init__.py:129: in main 166s pass_audit.__main__.main() 166s /usr/lib/python3/dist-packages/pass_audit/__main__.py:130: in main 166s weak = audit.zxcvbn() 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s 166s self = 166s 166s def zxcvbn(self): 166s """Password strength estimaton usuing Dropbox' zxcvbn.""" 166s if not ZXCVBN: 166s raise ImportError(name='zxcvbn') 166s 166s weak = [] 166s for path, entry in self.data.items(): 166s if self.verbose: 166s print(f"Checking {path}") 166s if entry.get('password', '') == '': 166s continue 166s password = entry['password'] 166s user_input = list(entry.values()) + path.split(os.sep) 166s if password in user_input: 166s user_input.remove(password) 166s results = zxcvbn(password, user_inputs=user_input) 166s > if results['score'] <= 2: 166s E TypeError: 'zxcvbn_rs_py.Entropy' object is not subscriptable 166s 166s /usr/lib/python3/dist-packages/pass_audit/audit.py:90: TypeError 166s ______________________ TestMain.test_main_passwords_good _______________________ 166s 166s self = 166s 166s @mock.patch('requests.get', tests.mock_request) 166s def test_main_passwords_good(self): 166s """Testing: pass audit Password/good.""" 166s cmd = ['Password/good'] 166s > self.main(cmd) 166s 166s tests/test_main.py:98: 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s tests/__init__.py:129: in main 166s pass_audit.__main__.main() 166s /usr/lib/python3/dist-packages/pass_audit/__main__.py:130: in main 166s weak = audit.zxcvbn() 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s 166s self = 166s 166s def zxcvbn(self): 166s """Password strength estimaton usuing Dropbox' zxcvbn.""" 166s if not ZXCVBN: 166s raise ImportError(name='zxcvbn') 166s 166s weak = [] 166s for path, entry in self.data.items(): 166s if self.verbose: 166s print(f"Checking {path}") 166s if entry.get('password', '') == '': 166s continue 166s password = entry['password'] 166s user_input = list(entry.values()) + path.split(os.sep) 166s if password in user_input: 166s user_input.remove(password) 166s results = zxcvbn(password, user_inputs=user_input) 166s > if results['score'] <= 2: 166s E TypeError: 'zxcvbn_rs_py.Entropy' object is not subscriptable 166s 166s /usr/lib/python3/dist-packages/pass_audit/audit.py:90: TypeError 166s ____________________ TestMain.test_main_passwords_notpwned _____________________ 166s 166s self = 166s 166s @mock.patch('requests.get', tests.mock_request) 166s def test_main_passwords_notpwned(self): 166s """Testing: pass audit Password/notpwned.""" 166s cmd = ['Password/notpwned'] 166s > self.main(cmd) 166s 166s tests/test_main.py:77: 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s tests/__init__.py:129: in main 166s pass_audit.__main__.main() 166s /usr/lib/python3/dist-packages/pass_audit/__main__.py:130: in main 166s weak = audit.zxcvbn() 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s 166s self = 166s 166s def zxcvbn(self): 166s """Password strength estimaton usuing Dropbox' zxcvbn.""" 166s if not ZXCVBN: 166s raise ImportError(name='zxcvbn') 166s 166s weak = [] 166s for path, entry in self.data.items(): 166s if self.verbose: 166s print(f"Checking {path}") 166s if entry.get('password', '') == '': 166s continue 166s password = entry['password'] 166s user_input = list(entry.values()) + path.split(os.sep) 166s if password in user_input: 166s user_input.remove(password) 166s results = zxcvbn(password, user_inputs=user_input) 166s > if results['score'] <= 2: 166s E TypeError: 'zxcvbn_rs_py.Entropy' object is not subscriptable 166s 166s /usr/lib/python3/dist-packages/pass_audit/audit.py:90: TypeError 166s ______________________ TestMain.test_main_passwords_pwned ______________________ 166s 166s self = 166s 166s @mock.patch('requests.get', tests.mock_request) 166s def test_main_passwords_pwned(self): 166s """Testing: pass audit Password/pwned.""" 166s cmd = ['Password/pwned'] 166s > self.main(cmd) 166s 166s tests/test_main.py:83: 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s tests/__init__.py:129: in main 166s pass_audit.__main__.main() 166s /usr/lib/python3/dist-packages/pass_audit/__main__.py:130: in main 166s weak = audit.zxcvbn() 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s 166s self = 166s 166s def zxcvbn(self): 166s """Password strength estimaton usuing Dropbox' zxcvbn.""" 166s if not ZXCVBN: 166s raise ImportError(name='zxcvbn') 166s 166s weak = [] 166s for path, entry in self.data.items(): 166s if self.verbose: 166s print(f"Checking {path}") 166s if entry.get('password', '') == '': 166s continue 166s password = entry['password'] 166s user_input = list(entry.values()) + path.split(os.sep) 166s if password in user_input: 166s user_input.remove(password) 166s results = zxcvbn(password, user_inputs=user_input) 166s > if results['score'] <= 2: 166s E TypeError: 'zxcvbn_rs_py.Entropy' object is not subscriptable 166s 166s /usr/lib/python3/dist-packages/pass_audit/audit.py:90: TypeError 166s ----------------------------- Captured stdout call ----------------------------- 166s  w Password breached: P@ssw0rd from Password/pwned/1 has been breached 52579 time(s). 166s  w Password breached: correct horse battery staple from Password/pwned/2 has been breached 3 time(s). 166s  w Password breached: correcthorsebatterystaple from Password/pwned/3 has been breached 120 time(s). 166s  w Password breached: ILoveYou from Password/pwned/4 has been breached 1386 time(s). 166s  w Password breached: password from Password/pwned/5 has been breached 3730471 time(s). 166s  w Password breached: a from Password/pwned/6 has been breached 123422 time(s). 166s  w Password breached: iamagenius from Password/pwned/7 has been breached 411 time(s). 166s 166s ---------- coverage: platform linux, python 3.12.9-final-0 ----------- 166s Name Stmts Miss Branch BrPart Cover Missing 166s -------------------------------------------------------------------------------------------------------- 166s /usr/lib/python3/dist-packages/pass_audit/__init__.py 10 0 0 0 100% 166s /usr/lib/python3/dist-packages/pass_audit/__main__.py 81 19 24 1 73% 108-112, 132-150, 154-155 166s /usr/lib/python3/dist-packages/pass_audit/audit.py 80 4 36 4 93% 13-14, 77, 87->89, 90->80, 91 166s /usr/lib/python3/dist-packages/pass_audit/msg.py 41 0 12 3 94% 38->exit, 49->exit, 55->exit 166s /usr/lib/python3/dist-packages/pass_audit/passwordstore.py 114 4 52 5 95% 59, 107-108, 111->118, 124->118, 155, 166->164 166s -------------------------------------------------------------------------------------------------------- 166s TOTAL 326 27 124 13 89% 166s 166s FAIL Required test coverage of 94% not reached. Total coverage: 89.33% 166s =========================== short test summary info ============================ 166s FAILED tests/test_audit.py::TestPassAudit::test_zxcvbn_strong - TypeError: 'z... 166s FAILED tests/test_audit.py::TestPassAudit::test_zxcvbn_weak - TypeError: 'zxc... 166s FAILED tests/test_main.py::TestMain::test_main_passwords_all - TypeError: 'zx... 166s FAILED tests/test_main.py::TestMain::test_main_passwords_duplicate - TypeErro... 166s FAILED tests/test_main.py::TestMain::test_main_passwords_good - TypeError: 'z... 166s FAILED tests/test_main.py::TestMain::test_main_passwords_notpwned - TypeError... 166s FAILED tests/test_main.py::TestMain::test_main_passwords_pwned - TypeError: '... 166s ========================= 7 failed, 35 passed in 8.45s ========================= 167s ============================= test session starts ============================== 167s platform linux -- Python 3.13.2, pytest-8.3.4, pluggy-1.5.0 167s rootdir: /tmp/autopkgtest.2rMBGe/autopkgtest_tmp 167s plugins: typeguard-4.4.1, cov-5.0.0 167s collected 42 items 167s 168s tests/test_audit.py .....FF [ 16%] 169s tests/test_main.py .....FFFFF.. [ 45%] 169s tests/test_msg.py ........ [ 64%] 169s tests/test_pass.py .............. [ 97%] 169s tests/test_pwned.py . [100%] 169s 169s =================================== FAILURES =================================== 169s _______________________ TestPassAudit.test_zxcvbn_strong _______________________ 169s 169s self = 169s 169s def test_zxcvbn_strong(self): 169s """Testing: pass audit for strong password with zxcvbn.""" 169s data = tests.getdata('Password/good') 169s audit = pass_audit.audit.PassAudit(data, True) 169s > weak = audit.zxcvbn() 169s 169s tests/test_audit.py:51: 169s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 169s 169s self = 169s 169s def zxcvbn(self): 169s """Password strength estimaton usuing Dropbox' zxcvbn.""" 169s if not ZXCVBN: 169s raise ImportError(name='zxcvbn') 169s 169s weak = [] 169s for path, entry in self.data.items(): 169s if self.verbose: 169s print(f"Checking {path}") 169s if entry.get('password', '') == '': 169s continue 169s password = entry['password'] 169s user_input = list(entry.values()) + path.split(os.sep) 169s if password in user_input: 169s user_input.remove(password) 169s results = zxcvbn(password, user_inputs=user_input) 169s > if results['score'] <= 2: 169s E TypeError: 'zxcvbn_rs_py.Entropy' object is not subscriptable 169s 169s /usr/lib/python3/dist-packages/pass_audit/audit.py:90: TypeError 169s ----------------------------- Captured stdout call ----------------------------- 169s Checking Password/good/1 169s ________________________ TestPassAudit.test_zxcvbn_weak ________________________ 169s 169s self = 169s 169s def test_zxcvbn_weak(self): 169s """Testing: pass audit for weak password with zxcvbn.""" 169s data = tests.getdata('Password/pwned/1') 169s audit = pass_audit.audit.PassAudit(data, True) 169s > weak = audit.zxcvbn() 169s 169s tests/test_audit.py:43: 169s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 169s 169s self = 169s 169s def zxcvbn(self): 169s """Password strength estimaton usuing Dropbox' zxcvbn.""" 169s if not ZXCVBN: 169s raise ImportError(name='zxcvbn') 169s 169s weak = [] 169s for path, entry in self.data.items(): 169s if self.verbose: 169s print(f"Checking {path}") 169s if entry.get('password', '') == '': 169s continue 169s password = entry['password'] 169s user_input = list(entry.values()) + path.split(os.sep) 169s if password in user_input: 169s user_input.remove(password) 169s results = zxcvbn(password, user_inputs=user_input) 169s > if results['score'] <= 2: 169s E TypeError: 'zxcvbn_rs_py.Entropy' object is not subscriptable 169s 169s /usr/lib/python3/dist-packages/pass_audit/audit.py:90: TypeError 169s ----------------------------- Captured stdout call ----------------------------- 169s Checking Password/pwned/1 169s _______________________ TestMain.test_main_passwords_all _______________________ 169s 169s self = 169s 169s @mock.patch('requests.get', tests.mock_request) 169s def test_main_passwords_all(self): 169s """Testing: pass audit .""" 169s cmd = [''] 169s > self.main(cmd) 169s 169s tests/test_main.py:104: 169s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 169s tests/__init__.py:129: in main 169s pass_audit.__main__.main() 169s /usr/lib/python3/dist-packages/pass_audit/__main__.py:130: in main 169s weak = audit.zxcvbn() 169s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 169s 169s self = 169s 169s def zxcvbn(self): 169s """Password strength estimaton usuing Dropbox' zxcvbn.""" 169s if not ZXCVBN: 169s raise ImportError(name='zxcvbn') 169s 169s weak = [] 169s for path, entry in self.data.items(): 169s if self.verbose: 169s print(f"Checking {path}") 169s if entry.get('password', '') == '': 169s continue 169s password = entry['password'] 169s user_input = list(entry.values()) + path.split(os.sep) 169s if password in user_input: 169s user_input.remove(password) 169s results = zxcvbn(password, user_inputs=user_input) 169s > if results['score'] <= 2: 169s E TypeError: 'zxcvbn_rs_py.Entropy' object is not subscriptable 169s 169s /usr/lib/python3/dist-packages/pass_audit/audit.py:90: TypeError 169s ----------------------------- Captured stdout call ----------------------------- 169s  . Auditing whole store - this may take some time 169s  w Imposible to read dummy from the password store: gpg: WARNING: unsafe permissions on homedir '/tmp/autopkgtest.2rMBGe/autopkgtest_tmp/tests/assets/gnupg' 169s gpg: decrypt_message failed: Unknown system error 169s  169s  w Password breached: P@ssw0rd from Password/pwned/1 has been breached 52579 time(s). 169s  w Password breached: correct horse battery staple from Password/pwned/2 has been breached 3 time(s). 169s  w Password breached: correcthorsebatterystaple from Password/pwned/3 has been breached 120 time(s). 169s  w Password breached: ILoveYou from Password/pwned/4 has been breached 1386 time(s). 169s  w Password breached: password from Password/pwned/5 has been breached 3730471 time(s). 169s  w Password breached: a from Password/pwned/6 has been breached 123422 time(s). 169s  w Password breached: iamagenius from Password/pwned/7 has been breached 411 time(s). 169s ____________________ TestMain.test_main_passwords_duplicate ____________________ 169s 169s self = 169s 169s @mock.patch('requests.get', tests.mock_request) 169s def test_main_passwords_duplicate(self): 169s """Testing: pass audit for duplicates.""" 169s shutil.copy(os.path.join(self.store.prefix, 'Password/good/1.gpg'), 169s os.path.join(self.store.prefix, 'Password/good/10.gpg')) 169s cmd = ['Password/good'] 169s > self.main(cmd) 169s 169s tests/test_main.py:91: 169s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 169s tests/__init__.py:129: in main 169s pass_audit.__main__.main() 169s /usr/lib/python3/dist-packages/pass_audit/__main__.py:130: in main 169s weak = audit.zxcvbn() 169s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 169s 169s self = 169s 169s def zxcvbn(self): 169s """Password strength estimaton usuing Dropbox' zxcvbn.""" 169s if not ZXCVBN: 169s raise ImportError(name='zxcvbn') 169s 169s weak = [] 169s for path, entry in self.data.items(): 169s if self.verbose: 169s print(f"Checking {path}") 169s if entry.get('password', '') == '': 169s continue 169s password = entry['password'] 169s user_input = list(entry.values()) + path.split(os.sep) 169s if password in user_input: 169s user_input.remove(password) 169s results = zxcvbn(password, user_inputs=user_input) 169s > if results['score'] <= 2: 169s E TypeError: 'zxcvbn_rs_py.Entropy' object is not subscriptable 169s 169s /usr/lib/python3/dist-packages/pass_audit/audit.py:90: TypeError 169s ______________________ TestMain.test_main_passwords_good _______________________ 169s 169s self = 169s 169s @mock.patch('requests.get', tests.mock_request) 169s def test_main_passwords_good(self): 169s """Testing: pass audit Password/good.""" 169s cmd = ['Password/good'] 169s > self.main(cmd) 169s 169s tests/test_main.py:98: 169s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 169s tests/__init__.py:129: in main 169s pass_audit.__main__.main() 169s /usr/lib/python3/dist-packages/pass_audit/__main__.py:130: in main 169s weak = audit.zxcvbn() 169s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 169s 169s self = 169s 169s def zxcvbn(self): 169s """Password strength estimaton usuing Dropbox' zxcvbn.""" 169s if not ZXCVBN: 169s raise ImportError(name='zxcvbn') 169s 169s weak = [] 169s for path, entry in self.data.items(): 169s if self.verbose: 169s print(f"Checking {path}") 169s if entry.get('password', '') == '': 169s continue 169s password = entry['password'] 169s user_input = list(entry.values()) + path.split(os.sep) 169s if password in user_input: 169s user_input.remove(password) 169s results = zxcvbn(password, user_inputs=user_input) 169s > if results['score'] <= 2: 169s E TypeError: 'zxcvbn_rs_py.Entropy' object is not subscriptable 169s 169s /usr/lib/python3/dist-packages/pass_audit/audit.py:90: TypeError 169s ____________________ TestMain.test_main_passwords_notpwned _____________________ 169s 169s self = 169s 169s @mock.patch('requests.get', tests.mock_request) 169s def test_main_passwords_notpwned(self): 169s """Testing: pass audit Password/notpwned.""" 169s cmd = ['Password/notpwned'] 169s > self.main(cmd) 169s 169s tests/test_main.py:77: 169s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 169s tests/__init__.py:129: in main 169s pass_audit.__main__.main() 169s /usr/lib/python3/dist-packages/pass_audit/__main__.py:130: in main 169s weak = audit.zxcvbn() 169s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 169s 169s self = 169s 169s def zxcvbn(self): 169s """Password strength estimaton usuing Dropbox' zxcvbn.""" 169s if not ZXCVBN: 169s raise ImportError(name='zxcvbn') 169s 169s weak = [] 169s for path, entry in self.data.items(): 169s if self.verbose: 169s print(f"Checking {path}") 169s if entry.get('password', '') == '': 169s continue 169s password = entry['password'] 169s user_input = list(entry.values()) + path.split(os.sep) 169s if password in user_input: 169s user_input.remove(password) 169s results = zxcvbn(password, user_inputs=user_input) 169s > if results['score'] <= 2: 169s E TypeError: 'zxcvbn_rs_py.Entropy' object is not subscriptable 169s 169s /usr/lib/python3/dist-packages/pass_audit/audit.py:90: TypeError 169s ______________________ TestMain.test_main_passwords_pwned ______________________ 169s 169s self = 169s 169s @mock.patch('requests.get', tests.mock_request) 169s def test_main_passwords_pwned(self): 169s """Testing: pass audit Password/pwned.""" 169s cmd = ['Password/pwned'] 169s > self.main(cmd) 169s 169s tests/test_main.py:83: 169s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 169s tests/__init__.py:129: in main 169s pass_audit.__main__.main() 169s /usr/lib/python3/dist-packages/pass_audit/__main__.py:130: in main 169s weak = audit.zxcvbn() 169s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 169s 169s self = 169s 169s def zxcvbn(self): 169s """Password strength estimaton usuing Dropbox' zxcvbn.""" 169s if not ZXCVBN: 169s raise ImportError(name='zxcvbn') 169s 169s weak = [] 169s for path, entry in self.data.items(): 169s if self.verbose: 169s print(f"Checking {path}") 169s if entry.get('password', '') == '': 169s continue 169s password = entry['password'] 169s user_input = list(entry.values()) + path.split(os.sep) 169s if password in user_input: 169s user_input.remove(password) 169s results = zxcvbn(password, user_inputs=user_input) 169s > if results['score'] <= 2: 169s E TypeError: 'zxcvbn_rs_py.Entropy' object is not subscriptable 169s 169s /usr/lib/python3/dist-packages/pass_audit/audit.py:90: TypeError 169s ----------------------------- Captured stdout call ----------------------------- 169s  w Password breached: P@ssw0rd from Password/pwned/1 has been breached 52579 time(s). 169s  w Password breached: correct horse battery staple from Password/pwned/2 has been breached 3 time(s). 169s  w Password breached: correcthorsebatterystaple from Password/pwned/3 has been breached 120 time(s). 169s  w Password breached: ILoveYou from Password/pwned/4 has been breached 1386 time(s). 169s  w Password breached: password from Password/pwned/5 has been breached 3730471 time(s). 169s  w Password breached: a from Password/pwned/6 has been breached 123422 time(s). 169s  w Password breached: iamagenius from Password/pwned/7 has been breached 411 time(s). 169s 169s ---------- coverage: platform linux, python 3.13.2-final-0 ----------- 169s Name Stmts Miss Branch BrPart Cover Missing 169s -------------------------------------------------------------------------------------------------------- 169s /usr/lib/python3/dist-packages/pass_audit/__init__.py 10 0 0 0 100% 169s /usr/lib/python3/dist-packages/pass_audit/__main__.py 81 19 24 1 73% 108-112, 132-150, 154-155 169s /usr/lib/python3/dist-packages/pass_audit/audit.py 80 4 36 4 93% 13-14, 77, 87->89, 90->80, 91 169s /usr/lib/python3/dist-packages/pass_audit/msg.py 41 0 12 3 94% 38->exit, 49->exit, 55->exit 169s /usr/lib/python3/dist-packages/pass_audit/passwordstore.py 114 4 52 5 95% 59, 107-108, 111->118, 124->118, 155, 166->164 169s -------------------------------------------------------------------------------------------------------- 169s TOTAL 326 27 124 13 89% 169s 169s FAIL Required test coverage of 94% not reached. Total coverage: 89.33% 169s =========================== short test summary info ============================ 169s FAILED tests/test_audit.py::TestPassAudit::test_zxcvbn_strong - TypeError: 'z... 169s FAILED tests/test_audit.py::TestPassAudit::test_zxcvbn_weak - TypeError: 'zxc... 169s FAILED tests/test_main.py::TestMain::test_main_passwords_all - TypeError: 'zx... 169s FAILED tests/test_main.py::TestMain::test_main_passwords_duplicate - TypeErro... 169s FAILED tests/test_main.py::TestMain::test_main_passwords_good - TypeError: 'z... 169s FAILED tests/test_main.py::TestMain::test_main_passwords_notpwned - TypeError... 169s FAILED tests/test_main.py::TestMain::test_main_passwords_pwned - TypeError: '... 169s ========================= 7 failed, 35 passed in 2.81s ========================= 170s autopkgtest [07:53:26]: test unittests: -----------------------] 170s unittests FAIL non-zero exit status 1 170s autopkgtest [07:53:26]: test unittests: - - - - - - - - - - results - - - - - - - - - - 171s autopkgtest [07:53:27]: @@@@@@@@@@@@@@@@@@@@ summary 171s unittests FAIL non-zero exit status 1 187s nova [W] Using flock in prodstack6-ppc64el 187s Creating nova instance adt-plucky-ppc64el-pass-audit-20250219-075036-juju-7f2275-prod-proposed-migration-environment-15-926a2384-de82-468d-8a81-57c464d194b8 from image adt/ubuntu-plucky-ppc64el-server-20250218.img (UUID 9318aa34-3d3c-43c5-86d2-aaf9390f2f5d)... 187s nova [W] Timed out waiting for 0eff800a-6fab-4dc3-84aa-73362f8fc755 to get deleted.