0s autopkgtest [13:44:00]: starting date and time: 2025-03-22 13:44:00+0000 0s autopkgtest [13:44:00]: git checkout: 325255d2 Merge branch 'pin-any-arch' into 'ubuntu/production' 0s autopkgtest [13:44:00]: host juju-7f2275-prod-proposed-migration-environment-20; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.t395l6hz/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-20@bos03-ppc64el-8.secgroup --name adt-plucky-ppc64el-pass-audit-20250322-132114-juju-7f2275-prod-proposed-migration-environment-20-2b6504f5-b4e2-400a-a090-a95631cea381 --image adt/ubuntu-plucky-ppc64el-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-20 --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/ 76s autopkgtest [13:45:16]: testbed dpkg architecture: ppc64el 76s autopkgtest [13:45:16]: testbed apt version: 2.9.34 76s autopkgtest [13:45:16]: @@@@@@@@@@@@@@@@@@@@ test bed setup 76s autopkgtest [13:45:16]: testbed release detected to be: None 77s autopkgtest [13:45:17]: updating testbed package index (apt update) 77s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [126 kB] 78s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 78s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 78s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 78s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [292 kB] 78s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [1232 B] 78s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [12.2 kB] 78s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [30.7 kB] 78s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el Packages [42.4 kB] 78s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el c-n-f Metadata [1320 B] 78s Get:11 http://ftpmaster.internal/ubuntu plucky-proposed/restricted ppc64el c-n-f Metadata [120 B] 78s Get:12 http://ftpmaster.internal/ubuntu plucky-proposed/universe ppc64el Packages [195 kB] 78s Get:13 http://ftpmaster.internal/ubuntu plucky-proposed/universe ppc64el c-n-f Metadata [11.1 kB] 78s Get:14 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse ppc64el Packages [3456 B] 78s Get:15 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse ppc64el c-n-f Metadata [216 B] 80s Fetched 716 kB in 1s (839 kB/s) 81s Reading package lists... 81s autopkgtest [13:45:21]: upgrading testbed (apt dist-upgrade and autopurge) 82s Reading package lists... 82s Building dependency tree... 82s Reading state information... 82s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 82s Starting 2 pkgProblemResolver with broken count: 0 82s Done 83s Entering ResolveByKeep 83s 83s Calculating upgrade... 83s The following packages will be upgraded: 83s gcc-15-base ibverbs-providers libatomic1 libgcc-s1 libibverbs1 libstdc++6 83s 6 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 83s Need to get 1511 kB of archives. 83s After this operation, 0 B of additional disk space will be used. 83s Get:1 http://ftpmaster.internal/ubuntu plucky/main ppc64el libatomic1 ppc64el 15-20250319-1ubuntu1 [10.8 kB] 84s Get:2 http://ftpmaster.internal/ubuntu plucky/main ppc64el gcc-15-base ppc64el 15-20250319-1ubuntu1 [53.6 kB] 84s Get:3 http://ftpmaster.internal/ubuntu plucky/main ppc64el libgcc-s1 ppc64el 15-20250319-1ubuntu1 [40.1 kB] 84s Get:4 http://ftpmaster.internal/ubuntu plucky/main ppc64el libstdc++6 ppc64el 15-20250319-1ubuntu1 [901 kB] 85s Get:5 http://ftpmaster.internal/ubuntu plucky/main ppc64el libibverbs1 ppc64el 56.0-3ubuntu1 [74.1 kB] 85s Get:6 http://ftpmaster.internal/ubuntu plucky/main ppc64el ibverbs-providers ppc64el 56.0-3ubuntu1 [431 kB] 86s Fetched 1511 kB in 2s (763 kB/s) 86s (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 ... 107156 files and directories currently installed.) 86s Preparing to unpack .../libatomic1_15-20250319-1ubuntu1_ppc64el.deb ... 86s Unpacking libatomic1:ppc64el (15-20250319-1ubuntu1) over (15-20250315-1ubuntu1) ... 86s Preparing to unpack .../gcc-15-base_15-20250319-1ubuntu1_ppc64el.deb ... 86s Unpacking gcc-15-base:ppc64el (15-20250319-1ubuntu1) over (15-20250315-1ubuntu1) ... 86s Setting up gcc-15-base:ppc64el (15-20250319-1ubuntu1) ... 86s (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 ... 107156 files and directories currently installed.) 86s Preparing to unpack .../libgcc-s1_15-20250319-1ubuntu1_ppc64el.deb ... 86s Unpacking libgcc-s1:ppc64el (15-20250319-1ubuntu1) over (15-20250315-1ubuntu1) ... 86s Setting up libgcc-s1:ppc64el (15-20250319-1ubuntu1) ... 86s (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 ... 107156 files and directories currently installed.) 86s Preparing to unpack .../libstdc++6_15-20250319-1ubuntu1_ppc64el.deb ... 86s Unpacking libstdc++6:ppc64el (15-20250319-1ubuntu1) over (15-20250315-1ubuntu1) ... 86s Setting up libstdc++6:ppc64el (15-20250319-1ubuntu1) ... 86s (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 ... 107156 files and directories currently installed.) 86s Preparing to unpack .../libibverbs1_56.0-3ubuntu1_ppc64el.deb ... 86s Unpacking libibverbs1:ppc64el (56.0-3ubuntu1) over (55.0-1ubuntu1) ... 86s Preparing to unpack .../ibverbs-providers_56.0-3ubuntu1_ppc64el.deb ... 86s Unpacking ibverbs-providers:ppc64el (56.0-3ubuntu1) over (55.0-1ubuntu1) ... 86s Setting up libibverbs1:ppc64el (56.0-3ubuntu1) ... 86s Setting up ibverbs-providers:ppc64el (56.0-3ubuntu1) ... 86s Setting up libatomic1:ppc64el (15-20250319-1ubuntu1) ... 86s Processing triggers for libc-bin (2.41-1ubuntu2) ... 87s Reading package lists... 87s Building dependency tree... 87s Reading state information... 87s Starting pkgProblemResolver with broken count: 0 87s Starting 2 pkgProblemResolver with broken count: 0 87s Done 88s Solving dependencies... 88s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 91s autopkgtest [13:45:30]: testbed running kernel: Linux 6.14.0-11-generic #11-Ubuntu SMP Mon Mar 17 12:33:11 UTC 2025 91s autopkgtest [13:45:30]: @@@@@@@@@@@@@@@@@@@@ apt-source pass-audit 92s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed/universe pass-audit 1.2-1.2 (dsc) [2160 B] 92s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/universe pass-audit 1.2-1.2 (tar) [56.6 kB] 92s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/universe pass-audit 1.2-1.2 (asc) [963 B] 92s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/universe pass-audit 1.2-1.2 (diff) [4328 B] 92s gpgv: Signature made Sun Sep 8 17:32:35 2024 UTC 92s gpgv: using RSA key 406220C8B8552802378CCE411F5C7A8B45564314 92s gpgv: issuer "bage@debian.org" 92s gpgv: Can't check signature: No public key 92s dpkg-source: warning: cannot verify inline signature for ./pass-audit_1.2-1.2.dsc: no acceptable signature found 92s autopkgtest [13:45:32]: testing package pass-audit version 1.2-1.2 92s autopkgtest [13:45:32]: build not needed 93s autopkgtest [13:45:33]: test unittests: preparing testbed 93s Reading package lists... 93s Building dependency tree... 93s Reading state information... 93s Starting pkgProblemResolver with broken count: 0 93s Starting 2 pkgProblemResolver with broken count: 0 93s Done 94s The following NEW packages will be installed: 94s libjs-jquery libjs-jquery-hotkeys libjs-jquery-isonscreen 94s libjs-jquery-metadata libjs-jquery-tablesorter 94s libjs-jquery-throttle-debounce pass pass-extension-audit python3-all 94s python3-coverage python3-iniconfig python3-packaging python3-pluggy 94s python3-pytest python3-pytest-cov python3-python-zxcvbn-rs-py tree 94s 0 upgraded, 17 newly installed, 0 to remove and 0 not upgraded. 94s Need to get 2350 kB of archives. 94s After this operation, 8916 kB of additional disk space will be used. 94s Get:1 http://ftpmaster.internal/ubuntu plucky/main ppc64el libjs-jquery all 3.6.1+dfsg+~3.5.14-1 [328 kB] 94s Get:2 http://ftpmaster.internal/ubuntu plucky/universe ppc64el libjs-jquery-metadata all 12-4 [6582 B] 94s Get:3 http://ftpmaster.internal/ubuntu plucky/universe ppc64el libjs-jquery-tablesorter all 1:2.31.3+dfsg1-4 [192 kB] 95s Get:4 http://ftpmaster.internal/ubuntu plucky/universe ppc64el libjs-jquery-throttle-debounce all 1.1+dfsg.1-2 [12.5 kB] 95s Get:5 http://ftpmaster.internal/ubuntu plucky/universe ppc64el tree ppc64el 2.1.1-2ubuntu3 [54.4 kB] 95s Get:6 http://ftpmaster.internal/ubuntu plucky/universe ppc64el pass all 1.7.4-7 [34.7 kB] 95s Get:7 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-python-zxcvbn-rs-py ppc64el 0.2.0-1build1 [1183 kB] 96s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/universe ppc64el pass-extension-audit all 1.2-1.2 [15.8 kB] 96s Get:9 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-all ppc64el 3.13.2-2 [884 B] 96s Get:10 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-coverage ppc64el 7.6.0+dfsg1-2build1 [154 kB] 96s Get:11 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-iniconfig all 1.1.1-2 [6024 B] 96s Get:12 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-packaging all 24.2-1 [51.5 kB] 96s Get:13 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-pluggy all 1.5.0-1 [21.0 kB] 96s Get:14 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-pytest all 8.3.5-1 [252 kB] 96s Get:15 http://ftpmaster.internal/ubuntu plucky/universe ppc64el libjs-jquery-hotkeys all 0.2.0-1 [13.3 kB] 96s Get:16 http://ftpmaster.internal/ubuntu plucky/universe ppc64el libjs-jquery-isonscreen all 1.2.0-1.1 [3244 B] 96s Get:17 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-pytest-cov all 5.0.0-1 [21.3 kB] 96s Fetched 2350 kB in 2s (1221 kB/s) 96s Selecting previously unselected package libjs-jquery. 96s (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 ... 107156 files and directories currently installed.) 96s Preparing to unpack .../00-libjs-jquery_3.6.1+dfsg+~3.5.14-1_all.deb ... 96s Unpacking libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 96s Selecting previously unselected package libjs-jquery-metadata. 96s Preparing to unpack .../01-libjs-jquery-metadata_12-4_all.deb ... 96s Unpacking libjs-jquery-metadata (12-4) ... 96s Selecting previously unselected package libjs-jquery-tablesorter. 96s Preparing to unpack .../02-libjs-jquery-tablesorter_1%3a2.31.3+dfsg1-4_all.deb ... 96s Unpacking libjs-jquery-tablesorter (1:2.31.3+dfsg1-4) ... 96s Selecting previously unselected package libjs-jquery-throttle-debounce. 96s Preparing to unpack .../03-libjs-jquery-throttle-debounce_1.1+dfsg.1-2_all.deb ... 96s Unpacking libjs-jquery-throttle-debounce (1.1+dfsg.1-2) ... 96s Selecting previously unselected package tree. 96s Preparing to unpack .../04-tree_2.1.1-2ubuntu3_ppc64el.deb ... 96s Unpacking tree (2.1.1-2ubuntu3) ... 96s Selecting previously unselected package pass. 96s Preparing to unpack .../05-pass_1.7.4-7_all.deb ... 96s Unpacking pass (1.7.4-7) ... 96s Selecting previously unselected package python3-python-zxcvbn-rs-py. 96s Preparing to unpack .../06-python3-python-zxcvbn-rs-py_0.2.0-1build1_ppc64el.deb ... 96s Unpacking python3-python-zxcvbn-rs-py (0.2.0-1build1) ... 96s Selecting previously unselected package pass-extension-audit. 96s Preparing to unpack .../07-pass-extension-audit_1.2-1.2_all.deb ... 96s Unpacking pass-extension-audit (1.2-1.2) ... 96s Selecting previously unselected package python3-all. 96s Preparing to unpack .../08-python3-all_3.13.2-2_ppc64el.deb ... 96s Unpacking python3-all (3.13.2-2) ... 96s Selecting previously unselected package python3-coverage. 96s Preparing to unpack .../09-python3-coverage_7.6.0+dfsg1-2build1_ppc64el.deb ... 96s Unpacking python3-coverage (7.6.0+dfsg1-2build1) ... 96s Selecting previously unselected package python3-iniconfig. 96s Preparing to unpack .../10-python3-iniconfig_1.1.1-2_all.deb ... 96s Unpacking python3-iniconfig (1.1.1-2) ... 96s Selecting previously unselected package python3-packaging. 96s Preparing to unpack .../11-python3-packaging_24.2-1_all.deb ... 96s Unpacking python3-packaging (24.2-1) ... 96s Selecting previously unselected package python3-pluggy. 96s Preparing to unpack .../12-python3-pluggy_1.5.0-1_all.deb ... 96s Unpacking python3-pluggy (1.5.0-1) ... 96s Selecting previously unselected package python3-pytest. 96s Preparing to unpack .../13-python3-pytest_8.3.5-1_all.deb ... 96s Unpacking python3-pytest (8.3.5-1) ... 96s Selecting previously unselected package libjs-jquery-hotkeys. 96s Preparing to unpack .../14-libjs-jquery-hotkeys_0.2.0-1_all.deb ... 96s Unpacking libjs-jquery-hotkeys (0.2.0-1) ... 96s Selecting previously unselected package libjs-jquery-isonscreen. 96s Preparing to unpack .../15-libjs-jquery-isonscreen_1.2.0-1.1_all.deb ... 96s Unpacking libjs-jquery-isonscreen (1.2.0-1.1) ... 96s Selecting previously unselected package python3-pytest-cov. 96s Preparing to unpack .../16-python3-pytest-cov_5.0.0-1_all.deb ... 96s Unpacking python3-pytest-cov (5.0.0-1) ... 96s Setting up python3-iniconfig (1.1.1-2) ... 97s Setting up python3-all (3.13.2-2) ... 97s Setting up python3-coverage (7.6.0+dfsg1-2build1) ... 97s Setting up libjs-jquery-throttle-debounce (1.1+dfsg.1-2) ... 97s Setting up python3-packaging (24.2-1) ... 97s Setting up tree (2.1.1-2ubuntu3) ... 97s Setting up pass (1.7.4-7) ... 97s Setting up python3-pluggy (1.5.0-1) ... 97s Setting up python3-python-zxcvbn-rs-py (0.2.0-1build1) ... 97s Setting up libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 97s Setting up libjs-jquery-hotkeys (0.2.0-1) ... 97s Setting up python3-pytest (8.3.5-1) ... 98s Setting up pass-extension-audit (1.2-1.2) ... 98s Setting up libjs-jquery-metadata (12-4) ... 98s Setting up libjs-jquery-isonscreen (1.2.0-1.1) ... 98s Setting up libjs-jquery-tablesorter (1:2.31.3+dfsg1-4) ... 98s Setting up python3-pytest-cov (5.0.0-1) ... 98s Processing triggers for man-db (2.13.0-1) ... 100s autopkgtest [13:45:40]: test unittests: [----------------------- 101s ============================= test session starts ============================== 101s platform linux -- Python 3.13.2, pytest-8.3.5, pluggy-1.5.0 101s rootdir: /tmp/autopkgtest.fNfYg8/autopkgtest_tmp 101s plugins: typeguard-4.4.2, cov-5.0.0 101s collected 42 items 101s 102s tests/test_audit.py .....FF [ 16%] 103s tests/test_main.py .....FFFFF.. [ 45%] 103s tests/test_msg.py ........ [ 64%] 103s tests/test_pass.py .............. [ 97%] 103s tests/test_pwned.py . [100%] 103s 103s =================================== FAILURES =================================== 103s _______________________ TestPassAudit.test_zxcvbn_strong _______________________ 103s 103s self = 103s 103s def test_zxcvbn_strong(self): 103s """Testing: pass audit for strong password with zxcvbn.""" 103s data = tests.getdata('Password/good') 103s audit = pass_audit.audit.PassAudit(data, True) 103s > weak = audit.zxcvbn() 103s 103s tests/test_audit.py:51: 103s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 103s 103s self = 103s 103s def zxcvbn(self): 103s """Password strength estimaton usuing Dropbox' zxcvbn.""" 103s if not ZXCVBN: 103s raise ImportError(name='zxcvbn') 103s 103s weak = [] 103s for path, entry in self.data.items(): 103s if self.verbose: 103s print(f"Checking {path}") 103s if entry.get('password', '') == '': 103s continue 103s password = entry['password'] 103s user_input = list(entry.values()) + path.split(os.sep) 103s if password in user_input: 103s user_input.remove(password) 103s results = zxcvbn(password, user_inputs=user_input) 103s > if results['score'] <= 2: 103s E TypeError: 'zxcvbn_rs_py.Entropy' object is not subscriptable 103s 103s /usr/lib/python3/dist-packages/pass_audit/audit.py:90: TypeError 103s ----------------------------- Captured stdout call ----------------------------- 103s Checking Password/good/1 103s ________________________ TestPassAudit.test_zxcvbn_weak ________________________ 103s 103s self = 103s 103s def test_zxcvbn_weak(self): 103s """Testing: pass audit for weak password with zxcvbn.""" 103s data = tests.getdata('Password/pwned/1') 103s audit = pass_audit.audit.PassAudit(data, True) 103s > weak = audit.zxcvbn() 103s 103s tests/test_audit.py:43: 103s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 103s 103s self = 103s 103s def zxcvbn(self): 103s """Password strength estimaton usuing Dropbox' zxcvbn.""" 103s if not ZXCVBN: 103s raise ImportError(name='zxcvbn') 103s 103s weak = [] 103s for path, entry in self.data.items(): 103s if self.verbose: 103s print(f"Checking {path}") 103s if entry.get('password', '') == '': 103s continue 103s password = entry['password'] 103s user_input = list(entry.values()) + path.split(os.sep) 103s if password in user_input: 103s user_input.remove(password) 103s results = zxcvbn(password, user_inputs=user_input) 103s > if results['score'] <= 2: 103s E TypeError: 'zxcvbn_rs_py.Entropy' object is not subscriptable 103s 103s /usr/lib/python3/dist-packages/pass_audit/audit.py:90: TypeError 103s ----------------------------- Captured stdout call ----------------------------- 103s Checking Password/pwned/1 103s _______________________ TestMain.test_main_passwords_all _______________________ 103s 103s self = 103s 103s @mock.patch('requests.get', tests.mock_request) 103s def test_main_passwords_all(self): 103s """Testing: pass audit .""" 103s cmd = [''] 103s > self.main(cmd) 103s 103s tests/test_main.py:104: 103s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 103s tests/__init__.py:129: in main 103s pass_audit.__main__.main() 103s /usr/lib/python3/dist-packages/pass_audit/__main__.py:130: in main 103s weak = audit.zxcvbn() 103s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 103s 103s self = 103s 103s def zxcvbn(self): 103s """Password strength estimaton usuing Dropbox' zxcvbn.""" 103s if not ZXCVBN: 103s raise ImportError(name='zxcvbn') 103s 103s weak = [] 103s for path, entry in self.data.items(): 103s if self.verbose: 103s print(f"Checking {path}") 103s if entry.get('password', '') == '': 103s continue 103s password = entry['password'] 103s user_input = list(entry.values()) + path.split(os.sep) 103s if password in user_input: 103s user_input.remove(password) 103s results = zxcvbn(password, user_inputs=user_input) 103s > if results['score'] <= 2: 103s E TypeError: 'zxcvbn_rs_py.Entropy' object is not subscriptable 103s 103s /usr/lib/python3/dist-packages/pass_audit/audit.py:90: TypeError 103s ----------------------------- Captured stdout call ----------------------------- 103s  . Auditing whole store - this may take some time 103s  w Imposible to read dummy from the password store: gpg: WARNING: unsafe permissions on homedir '/tmp/autopkgtest.fNfYg8/autopkgtest_tmp/tests/assets/gnupg' 103s gpg: decrypt_message failed: Unknown system error 103s  103s  w Password breached: P@ssw0rd from Password/pwned/1 has been breached 52579 time(s). 103s  w Password breached: correct horse battery staple from Password/pwned/2 has been breached 3 time(s). 103s  w Password breached: correcthorsebatterystaple from Password/pwned/3 has been breached 120 time(s). 103s  w Password breached: ILoveYou from Password/pwned/4 has been breached 1386 time(s). 103s  w Password breached: password from Password/pwned/5 has been breached 3730471 time(s). 103s  w Password breached: a from Password/pwned/6 has been breached 123422 time(s). 103s  w Password breached: iamagenius from Password/pwned/7 has been breached 411 time(s). 103s ____________________ TestMain.test_main_passwords_duplicate ____________________ 103s 103s self = 103s 103s @mock.patch('requests.get', tests.mock_request) 103s def test_main_passwords_duplicate(self): 103s """Testing: pass audit for duplicates.""" 103s shutil.copy(os.path.join(self.store.prefix, 'Password/good/1.gpg'), 103s os.path.join(self.store.prefix, 'Password/good/10.gpg')) 103s cmd = ['Password/good'] 103s > self.main(cmd) 103s 103s tests/test_main.py:91: 103s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 103s tests/__init__.py:129: in main 103s pass_audit.__main__.main() 103s /usr/lib/python3/dist-packages/pass_audit/__main__.py:130: in main 103s weak = audit.zxcvbn() 103s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 103s 103s self = 103s 103s def zxcvbn(self): 103s """Password strength estimaton usuing Dropbox' zxcvbn.""" 103s if not ZXCVBN: 103s raise ImportError(name='zxcvbn') 103s 103s weak = [] 103s for path, entry in self.data.items(): 103s if self.verbose: 103s print(f"Checking {path}") 103s if entry.get('password', '') == '': 103s continue 103s password = entry['password'] 103s user_input = list(entry.values()) + path.split(os.sep) 103s if password in user_input: 103s user_input.remove(password) 103s results = zxcvbn(password, user_inputs=user_input) 103s > if results['score'] <= 2: 103s E TypeError: 'zxcvbn_rs_py.Entropy' object is not subscriptable 103s 103s /usr/lib/python3/dist-packages/pass_audit/audit.py:90: TypeError 103s ______________________ TestMain.test_main_passwords_good _______________________ 103s 103s self = 103s 103s @mock.patch('requests.get', tests.mock_request) 103s def test_main_passwords_good(self): 103s """Testing: pass audit Password/good.""" 103s cmd = ['Password/good'] 103s > self.main(cmd) 103s 103s tests/test_main.py:98: 103s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 103s tests/__init__.py:129: in main 103s pass_audit.__main__.main() 103s /usr/lib/python3/dist-packages/pass_audit/__main__.py:130: in main 103s weak = audit.zxcvbn() 103s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 103s 103s self = 103s 103s def zxcvbn(self): 103s """Password strength estimaton usuing Dropbox' zxcvbn.""" 103s if not ZXCVBN: 103s raise ImportError(name='zxcvbn') 103s 103s weak = [] 103s for path, entry in self.data.items(): 103s if self.verbose: 103s print(f"Checking {path}") 103s if entry.get('password', '') == '': 103s continue 103s password = entry['password'] 103s user_input = list(entry.values()) + path.split(os.sep) 103s if password in user_input: 103s user_input.remove(password) 103s results = zxcvbn(password, user_inputs=user_input) 103s > if results['score'] <= 2: 103s E TypeError: 'zxcvbn_rs_py.Entropy' object is not subscriptable 103s 103s /usr/lib/python3/dist-packages/pass_audit/audit.py:90: TypeError 103s ____________________ TestMain.test_main_passwords_notpwned _____________________ 103s 103s self = 103s 103s @mock.patch('requests.get', tests.mock_request) 103s def test_main_passwords_notpwned(self): 103s """Testing: pass audit Password/notpwned.""" 103s cmd = ['Password/notpwned'] 103s > self.main(cmd) 103s 103s tests/test_main.py:77: 103s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 103s tests/__init__.py:129: in main 103s pass_audit.__main__.main() 103s /usr/lib/python3/dist-packages/pass_audit/__main__.py:130: in main 103s weak = audit.zxcvbn() 103s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 103s 103s self = 103s 103s def zxcvbn(self): 103s """Password strength estimaton usuing Dropbox' zxcvbn.""" 103s if not ZXCVBN: 103s raise ImportError(name='zxcvbn') 103s 103s weak = [] 103s for path, entry in self.data.items(): 103s if self.verbose: 103s print(f"Checking {path}") 103s if entry.get('password', '') == '': 103s continue 103s password = entry['password'] 103s user_input = list(entry.values()) + path.split(os.sep) 103s if password in user_input: 103s user_input.remove(password) 103s results = zxcvbn(password, user_inputs=user_input) 103s > if results['score'] <= 2: 103s E TypeError: 'zxcvbn_rs_py.Entropy' object is not subscriptable 103s 103s /usr/lib/python3/dist-packages/pass_audit/audit.py:90: TypeError 103s ______________________ TestMain.test_main_passwords_pwned ______________________ 103s 103s self = 103s 103s @mock.patch('requests.get', tests.mock_request) 103s def test_main_passwords_pwned(self): 103s """Testing: pass audit Password/pwned.""" 103s cmd = ['Password/pwned'] 103s > self.main(cmd) 103s 103s tests/test_main.py:83: 103s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 103s tests/__init__.py:129: in main 103s pass_audit.__main__.main() 103s /usr/lib/python3/dist-packages/pass_audit/__main__.py:130: in main 103s weak = audit.zxcvbn() 103s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 103s 103s self = 103s 103s def zxcvbn(self): 103s """Password strength estimaton usuing Dropbox' zxcvbn.""" 103s if not ZXCVBN: 103s raise ImportError(name='zxcvbn') 103s 103s weak = [] 103s for path, entry in self.data.items(): 103s if self.verbose: 103s print(f"Checking {path}") 103s if entry.get('password', '') == '': 103s continue 103s password = entry['password'] 103s user_input = list(entry.values()) + path.split(os.sep) 103s if password in user_input: 103s user_input.remove(password) 103s results = zxcvbn(password, user_inputs=user_input) 103s > if results['score'] <= 2: 103s E TypeError: 'zxcvbn_rs_py.Entropy' object is not subscriptable 103s 103s /usr/lib/python3/dist-packages/pass_audit/audit.py:90: TypeError 103s ----------------------------- Captured stdout call ----------------------------- 103s  w Password breached: P@ssw0rd from Password/pwned/1 has been breached 52579 time(s). 103s  w Password breached: correct horse battery staple from Password/pwned/2 has been breached 3 time(s). 103s  w Password breached: correcthorsebatterystaple from Password/pwned/3 has been breached 120 time(s). 103s  w Password breached: ILoveYou from Password/pwned/4 has been breached 1386 time(s). 103s  w Password breached: password from Password/pwned/5 has been breached 3730471 time(s). 103s  w Password breached: a from Password/pwned/6 has been breached 123422 time(s). 103s  w Password breached: iamagenius from Password/pwned/7 has been breached 411 time(s). 103s 103s ---------- coverage: platform linux, python 3.13.2-final-0 ----------- 103s Name Stmts Miss Branch BrPart Cover Missing 103s -------------------------------------------------------------------------------------------------------- 103s /usr/lib/python3/dist-packages/pass_audit/__init__.py 9 0 0 0 100% 103s /usr/lib/python3/dist-packages/pass_audit/__main__.py 81 19 24 1 73% 108-112, 132-150, 154-155 103s /usr/lib/python3/dist-packages/pass_audit/audit.py 80 4 36 4 93% 13-14, 77, 87->89, 90->80, 91 103s /usr/lib/python3/dist-packages/pass_audit/msg.py 41 0 12 3 94% 38->exit, 49->exit, 55->exit 103s /usr/lib/python3/dist-packages/pass_audit/passwordstore.py 114 4 52 5 95% 59, 107-108, 111->118, 124->118, 155, 166->164 103s -------------------------------------------------------------------------------------------------------- 103s TOTAL 325 27 124 13 89% 103s 103s FAIL Required test coverage of 94% not reached. Total coverage: 89.31% 103s =========================== short test summary info ============================ 103s FAILED tests/test_audit.py::TestPassAudit::test_zxcvbn_strong - TypeError: 'z... 103s FAILED tests/test_audit.py::TestPassAudit::test_zxcvbn_weak - TypeError: 'zxc... 103s FAILED tests/test_main.py::TestMain::test_main_passwords_all - TypeError: 'zx... 103s FAILED tests/test_main.py::TestMain::test_main_passwords_duplicate - TypeErro... 103s FAILED tests/test_main.py::TestMain::test_main_passwords_good - TypeError: 'z... 103s FAILED tests/test_main.py::TestMain::test_main_passwords_notpwned - TypeError... 103s FAILED tests/test_main.py::TestMain::test_main_passwords_pwned - TypeError: '... 103s ========================= 7 failed, 35 passed in 3.23s ========================= 104s autopkgtest [13:45:44]: test unittests: -----------------------] 104s unittests FAIL non-zero exit status 1 104s autopkgtest [13:45:44]: test unittests: - - - - - - - - - - results - - - - - - - - - - 105s autopkgtest [13:45:45]: @@@@@@@@@@@@@@@@@@@@ summary 105s unittests FAIL non-zero exit status 1 122s nova [W] Using flock in prodstack6-ppc64el 122s Creating nova instance adt-plucky-ppc64el-pass-audit-20250322-132114-juju-7f2275-prod-proposed-migration-environment-20-2b6504f5-b4e2-400a-a090-a95631cea381 from image adt/ubuntu-plucky-ppc64el-server-20250322.img (UUID 8c6d15e1-2abf-4991-a719-890835523c0f)... 122s nova [W] Timed out waiting for 1ec702f1-4d31-4764-92b4-7da2afb071bd to get deleted.