0s autopkgtest [09:27:27]: starting date and time: 2025-04-14 09:27:27+0000 0s autopkgtest [09:27:27]: git checkout: 325255d2 Merge branch 'pin-any-arch' into 'ubuntu/production' 0s autopkgtest [09:27:27]: host juju-7f2275-prod-proposed-migration-environment-9; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.cddr29dt/out --timeout-copy=6000 --setup-commands 'ln -s /dev/null /etc/systemd/system/bluetooth.service; printf "http_proxy=http://squid.internal:3128\nhttps_proxy=http://squid.internal:3128\nno_proxy=127.0.0.1,127.0.1.1,localhost,localdomain,internal,login.ubuntu.com,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com,radosgw.ps5.canonical.com\n" >> /etc/environment' --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 -- lxd -r lxd-armhf-10.145.243.107 lxd-armhf-10.145.243.107:autopkgtest/ubuntu/plucky/armhf 19s autopkgtest [09:27:46]: testbed dpkg architecture: armhf 21s autopkgtest [09:27:48]: testbed apt version: 3.0.0 25s autopkgtest [09:27:52]: @@@@@@@@@@@@@@@@@@@@ test bed setup 26s autopkgtest [09:27:53]: testbed release detected to be: None 33s autopkgtest [09:28:00]: updating testbed package index (apt update) 35s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [265 kB] 36s Get:2 http://ftpmaster.internal/ubuntu plucky InRelease [265 kB] 36s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 36s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 36s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [5192 B] 36s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [9948 B] 36s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [204 kB] 36s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf Packages [3452 B] 36s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf c-n-f Metadata [288 B] 36s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/restricted armhf c-n-f Metadata [116 B] 36s Get:11 http://ftpmaster.internal/ubuntu plucky-proposed/universe armhf Packages [109 kB] 36s Get:12 http://ftpmaster.internal/ubuntu plucky-proposed/universe armhf c-n-f Metadata [4896 B] 36s Get:13 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse armhf c-n-f Metadata [116 B] 36s Get:14 http://ftpmaster.internal/ubuntu plucky/universe Sources [21.1 MB] 37s Get:15 http://ftpmaster.internal/ubuntu plucky/universe armhf Packages [15.3 MB] 42s Fetched 37.2 MB in 5s (7118 kB/s) 43s Reading package lists... 49s autopkgtest [09:28:16]: upgrading testbed (apt dist-upgrade and autopurge) 50s Reading package lists... 51s Building dependency tree... 51s Reading state information... 52s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 52s Starting 2 pkgProblemResolver with broken count: 0 52s Done 54s Entering ResolveByKeep 54s 55s Calculating upgrade... 56s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 58s Reading package lists... 58s Building dependency tree... 58s Reading state information... 59s Starting pkgProblemResolver with broken count: 0 59s Starting 2 pkgProblemResolver with broken count: 0 59s Done 60s Solving dependencies... 61s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 63s autopkgtest [09:28:30]: rebooting testbed after setup commands that affected boot 101s autopkgtest [09:29:08]: testbed running kernel: Linux 6.8.0-57-generic #59~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Mar 19 16:21:44 UTC 2 126s autopkgtest [09:29:33]: @@@@@@@@@@@@@@@@@@@@ apt-source pass-audit 136s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed/universe pass-audit 1.2-1.2 (dsc) [2160 B] 136s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/universe pass-audit 1.2-1.2 (tar) [56.6 kB] 136s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/universe pass-audit 1.2-1.2 (asc) [963 B] 136s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/universe pass-audit 1.2-1.2 (diff) [4328 B] 136s gpgv: Signature made Sun Sep 8 17:32:35 2024 UTC 136s gpgv: using RSA key 406220C8B8552802378CCE411F5C7A8B45564314 136s gpgv: issuer "bage@debian.org" 136s gpgv: Can't check signature: No public key 136s dpkg-source: warning: cannot verify inline signature for ./pass-audit_1.2-1.2.dsc: no acceptable signature found 136s autopkgtest [09:29:43]: testing package pass-audit version 1.2-1.2 138s autopkgtest [09:29:45]: build not needed 140s autopkgtest [09:29:47]: test unittests: preparing testbed 141s Reading package lists... 142s Building dependency tree... 142s Reading state information... 143s Starting pkgProblemResolver with broken count: 0 143s Starting 2 pkgProblemResolver with broken count: 0 143s Done 144s The following NEW packages will be installed: 144s libjs-jquery libjs-jquery-hotkeys libjs-jquery-isonscreen 144s libjs-jquery-metadata libjs-jquery-tablesorter 144s libjs-jquery-throttle-debounce pass pass-extension-audit python3-all 144s python3-coverage python3-iniconfig python3-pluggy python3-pytest 144s python3-pytest-cov python3-python-zxcvbn-rs-py tree 144s 0 upgraded, 16 newly installed, 0 to remove and 0 not upgraded. 144s Need to get 2167 kB of archives. 144s After this operation, 7732 kB of additional disk space will be used. 144s Get:1 http://ftpmaster.internal/ubuntu plucky/main armhf libjs-jquery all 3.6.1+dfsg+~3.5.14-1 [328 kB] 145s Get:2 http://ftpmaster.internal/ubuntu plucky/universe armhf libjs-jquery-metadata all 12-4 [6582 B] 145s Get:3 http://ftpmaster.internal/ubuntu plucky/universe armhf libjs-jquery-tablesorter all 1:2.31.3+dfsg1-4 [192 kB] 145s Get:4 http://ftpmaster.internal/ubuntu plucky/universe armhf libjs-jquery-throttle-debounce all 1.1+dfsg.1-2 [12.5 kB] 145s Get:5 http://ftpmaster.internal/ubuntu plucky/universe armhf tree armhf 2.1.1-2ubuntu3 [43.8 kB] 145s Get:6 http://ftpmaster.internal/ubuntu plucky/universe armhf pass all 1.7.4-7 [34.7 kB] 145s Get:7 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-python-zxcvbn-rs-py armhf 0.2.0-1build1 [1064 kB] 146s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/universe armhf pass-extension-audit all 1.2-1.2 [15.8 kB] 146s Get:9 http://ftpmaster.internal/ubuntu plucky/main armhf python3-all armhf 3.13.3-1 [880 B] 146s Get:10 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-coverage armhf 7.6.0+dfsg1-2build1 [152 kB] 146s Get:11 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-iniconfig all 1.1.1-2 [6024 B] 146s Get:12 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-pluggy all 1.5.0-1 [21.0 kB] 146s Get:13 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-pytest all 8.3.5-1 [252 kB] 146s Get:14 http://ftpmaster.internal/ubuntu plucky/universe armhf libjs-jquery-hotkeys all 0.2.0-1 [13.3 kB] 146s Get:15 http://ftpmaster.internal/ubuntu plucky/universe armhf libjs-jquery-isonscreen all 1.2.0-1.1 [3244 B] 146s Get:16 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-pytest-cov all 5.0.0-1 [21.3 kB] 147s Fetched 2167 kB in 2s (1025 kB/s) 147s Selecting previously unselected package libjs-jquery. 147s (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 ... 63969 files and directories currently installed.) 147s Preparing to unpack .../00-libjs-jquery_3.6.1+dfsg+~3.5.14-1_all.deb ... 147s Unpacking libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 147s Selecting previously unselected package libjs-jquery-metadata. 147s Preparing to unpack .../01-libjs-jquery-metadata_12-4_all.deb ... 147s Unpacking libjs-jquery-metadata (12-4) ... 147s Selecting previously unselected package libjs-jquery-tablesorter. 147s Preparing to unpack .../02-libjs-jquery-tablesorter_1%3a2.31.3+dfsg1-4_all.deb ... 147s Unpacking libjs-jquery-tablesorter (1:2.31.3+dfsg1-4) ... 147s Selecting previously unselected package libjs-jquery-throttle-debounce. 147s Preparing to unpack .../03-libjs-jquery-throttle-debounce_1.1+dfsg.1-2_all.deb ... 147s Unpacking libjs-jquery-throttle-debounce (1.1+dfsg.1-2) ... 147s Selecting previously unselected package tree. 147s Preparing to unpack .../04-tree_2.1.1-2ubuntu3_armhf.deb ... 147s Unpacking tree (2.1.1-2ubuntu3) ... 147s Selecting previously unselected package pass. 147s Preparing to unpack .../05-pass_1.7.4-7_all.deb ... 147s Unpacking pass (1.7.4-7) ... 147s Selecting previously unselected package python3-python-zxcvbn-rs-py. 147s Preparing to unpack .../06-python3-python-zxcvbn-rs-py_0.2.0-1build1_armhf.deb ... 147s Unpacking python3-python-zxcvbn-rs-py (0.2.0-1build1) ... 147s Selecting previously unselected package pass-extension-audit. 147s Preparing to unpack .../07-pass-extension-audit_1.2-1.2_all.deb ... 147s Unpacking pass-extension-audit (1.2-1.2) ... 147s Selecting previously unselected package python3-all. 147s Preparing to unpack .../08-python3-all_3.13.3-1_armhf.deb ... 147s Unpacking python3-all (3.13.3-1) ... 148s Selecting previously unselected package python3-coverage. 148s Preparing to unpack .../09-python3-coverage_7.6.0+dfsg1-2build1_armhf.deb ... 148s Unpacking python3-coverage (7.6.0+dfsg1-2build1) ... 148s Selecting previously unselected package python3-iniconfig. 148s Preparing to unpack .../10-python3-iniconfig_1.1.1-2_all.deb ... 148s Unpacking python3-iniconfig (1.1.1-2) ... 148s Selecting previously unselected package python3-pluggy. 148s Preparing to unpack .../11-python3-pluggy_1.5.0-1_all.deb ... 148s Unpacking python3-pluggy (1.5.0-1) ... 148s Selecting previously unselected package python3-pytest. 148s Preparing to unpack .../12-python3-pytest_8.3.5-1_all.deb ... 148s Unpacking python3-pytest (8.3.5-1) ... 148s Selecting previously unselected package libjs-jquery-hotkeys. 148s Preparing to unpack .../13-libjs-jquery-hotkeys_0.2.0-1_all.deb ... 148s Unpacking libjs-jquery-hotkeys (0.2.0-1) ... 148s Selecting previously unselected package libjs-jquery-isonscreen. 148s Preparing to unpack .../14-libjs-jquery-isonscreen_1.2.0-1.1_all.deb ... 148s Unpacking libjs-jquery-isonscreen (1.2.0-1.1) ... 148s Selecting previously unselected package python3-pytest-cov. 148s Preparing to unpack .../15-python3-pytest-cov_5.0.0-1_all.deb ... 148s Unpacking python3-pytest-cov (5.0.0-1) ... 148s Setting up python3-iniconfig (1.1.1-2) ... 148s Setting up python3-all (3.13.3-1) ... 148s Setting up python3-coverage (7.6.0+dfsg1-2build1) ... 148s Setting up libjs-jquery-throttle-debounce (1.1+dfsg.1-2) ... 148s Setting up tree (2.1.1-2ubuntu3) ... 148s Setting up pass (1.7.4-7) ... 148s Setting up python3-pluggy (1.5.0-1) ... 149s Setting up python3-python-zxcvbn-rs-py (0.2.0-1build1) ... 149s Setting up libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 149s Setting up libjs-jquery-hotkeys (0.2.0-1) ... 149s Setting up python3-pytest (8.3.5-1) ... 149s Setting up pass-extension-audit (1.2-1.2) ... 150s Setting up libjs-jquery-metadata (12-4) ... 150s Setting up libjs-jquery-isonscreen (1.2.0-1.1) ... 150s Setting up libjs-jquery-tablesorter (1:2.31.3+dfsg1-4) ... 150s Setting up python3-pytest-cov (5.0.0-1) ... 150s Processing triggers for man-db (2.13.0-1) ... 158s autopkgtest [09:30:05]: test unittests: [----------------------- 161s ============================= test session starts ============================== 161s platform linux -- Python 3.13.3, pytest-8.3.5, pluggy-1.5.0 161s rootdir: /tmp/autopkgtest.8x9vci/autopkgtest_tmp 161s plugins: typeguard-4.4.2, cov-5.0.0 161s collected 42 items 161s 163s 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.8x9vci/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.13.3-final-0 ----------- 166s Name Stmts Miss Branch BrPart Cover Missing 166s -------------------------------------------------------------------------------------------------------- 166s /usr/lib/python3/dist-packages/pass_audit/__init__.py 9 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 325 27 124 13 89% 166s 166s FAIL Required test coverage of 94% not reached. Total coverage: 89.31% 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 5.50s ========================= 167s autopkgtest [09:30:14]: test unittests: -----------------------] 171s unittests FAIL non-zero exit status 1 171s autopkgtest [09:30:18]: test unittests: - - - - - - - - - - results - - - - - - - - - - 174s autopkgtest [09:30:21]: @@@@@@@@@@@@@@@@@@@@ summary 174s unittests FAIL non-zero exit status 1