0s autopkgtest [14:55:09]: starting date and time: 2024-11-09 14:55:09+0000 0s autopkgtest [14:55:09]: git checkout: 0acbae0a WIP show VirtSubproc stderr in real-time 0s autopkgtest [14:55:09]: host juju-7f2275-prod-proposed-migration-environment-2; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.1m6xccq9/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-s390x --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-2@bos03-s390x-12.secgroup --name adt-plucky-s390x-pass-audit-20241109-145509-juju-7f2275-prod-proposed-migration-environment-2-fe7b1c34-aa95-4274-a0d4-03c68b25430a --image adt/ubuntu-plucky-s390x-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-2 --net-id=net_prod-proposed-migration-s390x -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'"'"'' --mirror=http://ftpmaster.internal/ubuntu/ 111s autopkgtest [14:57:00]: testbed dpkg architecture: s390x 111s autopkgtest [14:57:00]: testbed apt version: 2.9.8 111s autopkgtest [14:57:00]: @@@@@@@@@@@@@@@@@@@@ test bed setup 112s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [73.9 kB] 112s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [15.3 kB] 112s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [104 kB] 112s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [7016 B] 112s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [1004 kB] 114s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x Packages [125 kB] 114s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/universe s390x Packages [696 kB] 115s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse s390x Packages [16.6 kB] 116s Fetched 2043 kB in 4s (519 kB/s) 116s Reading package lists... 118s Reading package lists... 118s Building dependency tree... 118s Reading state information... 118s Calculating upgrade... 118s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 118s Reading package lists... 118s Building dependency tree... 118s Reading state information... 118s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 118s Hit:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease 119s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 119s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 119s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 119s Reading package lists... 119s Reading package lists... 120s Building dependency tree... 120s Reading state information... 120s Calculating upgrade... 120s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 120s Reading package lists... 120s Building dependency tree... 120s Reading state information... 120s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 122s autopkgtest [14:57:11]: testbed running kernel: Linux 6.11.0-8-generic #8-Ubuntu SMP Mon Sep 16 12:49:35 UTC 2024 123s autopkgtest [14:57:12]: @@@@@@@@@@@@@@@@@@@@ apt-source pass-audit 124s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed/universe pass-audit 1.2-1.2 (dsc) [2160 B] 124s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/universe pass-audit 1.2-1.2 (tar) [56.6 kB] 124s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/universe pass-audit 1.2-1.2 (asc) [963 B] 124s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/universe pass-audit 1.2-1.2 (diff) [4328 B] 124s gpgv: Signature made Sun Sep 8 17:32:35 2024 UTC 124s gpgv: using RSA key 406220C8B8552802378CCE411F5C7A8B45564314 124s gpgv: issuer "bage@debian.org" 124s gpgv: Can't check signature: No public key 124s dpkg-source: warning: cannot verify inline signature for ./pass-audit_1.2-1.2.dsc: no acceptable signature found 124s autopkgtest [14:57:13]: testing package pass-audit version 1.2-1.2 125s autopkgtest [14:57:14]: build not needed 125s autopkgtest [14:57:14]: test unittests: preparing testbed 126s Reading package lists... 126s Building dependency tree... 126s Reading state information... 126s Starting pkgProblemResolver with broken count: 0 126s Starting 2 pkgProblemResolver with broken count: 0 126s Done 126s The following additional packages will be installed: 126s libjs-jquery libjs-jquery-hotkeys libjs-jquery-isonscreen 126s libjs-jquery-metadata libjs-jquery-tablesorter 126s libjs-jquery-throttle-debounce pass pass-extension-audit python3-all 126s python3-coverage python3-iniconfig python3-packaging python3-pluggy 126s python3-pytest python3-pytest-cov python3-python-zxcvbn-rs-py tree 126s Suggested packages: 126s libxml-simple-perl python ruby python-coverage-doc 126s Recommended packages: 126s javascript-common git qrencode wl-clipboard xclip 126s The following NEW packages will be installed: 126s autopkgtest-satdep libjs-jquery libjs-jquery-hotkeys libjs-jquery-isonscreen 126s libjs-jquery-metadata libjs-jquery-tablesorter 126s libjs-jquery-throttle-debounce pass pass-extension-audit python3-all 126s python3-coverage python3-iniconfig python3-packaging python3-pluggy 126s python3-pytest python3-pytest-cov python3-python-zxcvbn-rs-py tree 126s 0 upgraded, 18 newly installed, 0 to remove and 0 not upgraded. 126s Need to get 2303 kB/2304 kB of archives. 126s After this operation, 8771 kB of additional disk space will be used. 126s Get:1 /tmp/autopkgtest.iKOVIy/1-autopkgtest-satdep.deb autopkgtest-satdep s390x 0 [740 B] 126s Get:2 http://ftpmaster.internal/ubuntu plucky/main s390x libjs-jquery all 3.6.1+dfsg+~3.5.14-1 [328 kB] 127s Get:3 http://ftpmaster.internal/ubuntu plucky/universe s390x libjs-jquery-hotkeys all 0~20130707+git2d51e3a9+dfsg-2.1 [11.5 kB] 127s Get:4 http://ftpmaster.internal/ubuntu plucky/universe s390x libjs-jquery-metadata all 12-4 [6582 B] 127s Get:5 http://ftpmaster.internal/ubuntu plucky/universe s390x libjs-jquery-tablesorter all 1:2.31.3+dfsg1-4 [192 kB] 127s Get:6 http://ftpmaster.internal/ubuntu plucky/universe s390x libjs-jquery-throttle-debounce all 1.1+dfsg.1-2 [12.5 kB] 127s Get:7 http://ftpmaster.internal/ubuntu plucky/universe s390x tree s390x 2.1.1-2ubuntu3 [50.9 kB] 127s Get:8 http://ftpmaster.internal/ubuntu plucky/universe s390x pass all 1.7.4-7 [34.7 kB] 127s Get:9 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-python-zxcvbn-rs-py s390x 0.1.1-2 [1160 kB] 128s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/universe s390x pass-extension-audit all 1.2-1.2 [15.8 kB] 128s Get:11 http://ftpmaster.internal/ubuntu plucky/main s390x python3-all s390x 3.12.6-0ubuntu1 [890 B] 128s Get:12 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-coverage s390x 7.4.4+dfsg1-0ubuntu2 [147 kB] 129s Get:13 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-iniconfig all 1.1.1-2 [6024 B] 129s Get:14 http://ftpmaster.internal/ubuntu plucky/main s390x python3-packaging all 24.1-1 [41.4 kB] 129s Get:15 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-pluggy all 1.5.0-1 [21.0 kB] 129s Get:16 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-pytest all 8.3.2-1 [251 kB] 129s Get:17 http://ftpmaster.internal/ubuntu plucky/universe s390x libjs-jquery-isonscreen all 1.2.0-1.1 [3244 B] 129s Get:18 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-pytest-cov all 5.0.0-1 [21.3 kB] 129s Fetched 2303 kB in 3s (869 kB/s) 129s Selecting previously unselected package libjs-jquery. 129s (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 ... 55520 files and directories currently installed.) 129s Preparing to unpack .../00-libjs-jquery_3.6.1+dfsg+~3.5.14-1_all.deb ... 129s Unpacking libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 129s Selecting previously unselected package libjs-jquery-hotkeys. 129s Preparing to unpack .../01-libjs-jquery-hotkeys_0~20130707+git2d51e3a9+dfsg-2.1_all.deb ... 129s Unpacking libjs-jquery-hotkeys (0~20130707+git2d51e3a9+dfsg-2.1) ... 129s Selecting previously unselected package libjs-jquery-metadata. 129s Preparing to unpack .../02-libjs-jquery-metadata_12-4_all.deb ... 129s Unpacking libjs-jquery-metadata (12-4) ... 129s Selecting previously unselected package libjs-jquery-tablesorter. 129s Preparing to unpack .../03-libjs-jquery-tablesorter_1%3a2.31.3+dfsg1-4_all.deb ... 129s Unpacking libjs-jquery-tablesorter (1:2.31.3+dfsg1-4) ... 129s Selecting previously unselected package libjs-jquery-throttle-debounce. 129s Preparing to unpack .../04-libjs-jquery-throttle-debounce_1.1+dfsg.1-2_all.deb ... 129s Unpacking libjs-jquery-throttle-debounce (1.1+dfsg.1-2) ... 129s Selecting previously unselected package tree. 129s Preparing to unpack .../05-tree_2.1.1-2ubuntu3_s390x.deb ... 129s Unpacking tree (2.1.1-2ubuntu3) ... 129s Selecting previously unselected package pass. 129s Preparing to unpack .../06-pass_1.7.4-7_all.deb ... 129s Unpacking pass (1.7.4-7) ... 129s Selecting previously unselected package python3-python-zxcvbn-rs-py. 129s Preparing to unpack .../07-python3-python-zxcvbn-rs-py_0.1.1-2_s390x.deb ... 129s Unpacking python3-python-zxcvbn-rs-py (0.1.1-2) ... 129s Selecting previously unselected package pass-extension-audit. 129s Preparing to unpack .../08-pass-extension-audit_1.2-1.2_all.deb ... 129s Unpacking pass-extension-audit (1.2-1.2) ... 129s Selecting previously unselected package python3-all. 129s Preparing to unpack .../09-python3-all_3.12.6-0ubuntu1_s390x.deb ... 129s Unpacking python3-all (3.12.6-0ubuntu1) ... 129s Selecting previously unselected package python3-coverage. 129s Preparing to unpack .../10-python3-coverage_7.4.4+dfsg1-0ubuntu2_s390x.deb ... 129s Unpacking python3-coverage (7.4.4+dfsg1-0ubuntu2) ... 129s Selecting previously unselected package python3-iniconfig. 129s Preparing to unpack .../11-python3-iniconfig_1.1.1-2_all.deb ... 129s Unpacking python3-iniconfig (1.1.1-2) ... 129s Selecting previously unselected package python3-packaging. 129s Preparing to unpack .../12-python3-packaging_24.1-1_all.deb ... 129s Unpacking python3-packaging (24.1-1) ... 129s Selecting previously unselected package python3-pluggy. 129s Preparing to unpack .../13-python3-pluggy_1.5.0-1_all.deb ... 129s Unpacking python3-pluggy (1.5.0-1) ... 129s Selecting previously unselected package python3-pytest. 129s Preparing to unpack .../14-python3-pytest_8.3.2-1_all.deb ... 129s Unpacking python3-pytest (8.3.2-1) ... 129s Selecting previously unselected package libjs-jquery-isonscreen. 129s Preparing to unpack .../15-libjs-jquery-isonscreen_1.2.0-1.1_all.deb ... 129s Unpacking libjs-jquery-isonscreen (1.2.0-1.1) ... 129s Selecting previously unselected package python3-pytest-cov. 129s Preparing to unpack .../16-python3-pytest-cov_5.0.0-1_all.deb ... 129s Unpacking python3-pytest-cov (5.0.0-1) ... 129s Selecting previously unselected package autopkgtest-satdep. 130s Preparing to unpack .../17-1-autopkgtest-satdep.deb ... 130s Unpacking autopkgtest-satdep (0) ... 130s Setting up python3-iniconfig (1.1.1-2) ... 130s Setting up python3-all (3.12.6-0ubuntu1) ... 130s Setting up python3-coverage (7.4.4+dfsg1-0ubuntu2) ... 130s Setting up libjs-jquery-throttle-debounce (1.1+dfsg.1-2) ... 130s Setting up python3-packaging (24.1-1) ... 130s Setting up tree (2.1.1-2ubuntu3) ... 130s Setting up pass (1.7.4-7) ... 130s Setting up python3-pluggy (1.5.0-1) ... 130s Setting up python3-python-zxcvbn-rs-py (0.1.1-2) ... 130s Setting up libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 130s Setting up libjs-jquery-hotkeys (0~20130707+git2d51e3a9+dfsg-2.1) ... 130s Setting up python3-pytest (8.3.2-1) ... 130s Setting up pass-extension-audit (1.2-1.2) ... 130s Setting up libjs-jquery-metadata (12-4) ... 130s Setting up libjs-jquery-isonscreen (1.2.0-1.1) ... 130s Setting up libjs-jquery-tablesorter (1:2.31.3+dfsg1-4) ... 130s Setting up python3-pytest-cov (5.0.0-1) ... 130s Setting up autopkgtest-satdep (0) ... 130s Processing triggers for man-db (2.12.1-3) ... 132s (Reading database ... 56039 files and directories currently installed.) 132s Removing autopkgtest-satdep (0) ... 133s autopkgtest [14:57:22]: test unittests: [----------------------- 137s ============================= test session starts ============================== 137s platform linux -- Python 3.12.7+, pytest-8.3.2, pluggy-1.5.0 137s rootdir: /tmp/autopkgtest.iKOVIy/autopkgtest_tmp 137s plugins: typeguard-4.4.1, cov-5.0.0 137s collected 42 items 137s 137s tests/test_audit.py .....FF [ 16%] 138s tests/test_main.py .....FFFFF.. [ 45%] 138s tests/test_msg.py ........ [ 64%] 138s tests/test_pass.py .............. [ 97%] 139s tests/test_pwned.py . [100%] 139s 139s =================================== FAILURES =================================== 139s _______________________ TestPassAudit.test_zxcvbn_strong _______________________ 139s 139s self = 139s 139s def test_zxcvbn_strong(self): 139s """Testing: pass audit for strong password with zxcvbn.""" 139s data = tests.getdata('Password/good') 139s audit = pass_audit.audit.PassAudit(data, True) 139s > weak = audit.zxcvbn() 139s 139s tests/test_audit.py:51: 139s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 139s 139s self = 139s 139s def zxcvbn(self): 139s """Password strength estimaton usuing Dropbox' zxcvbn.""" 139s if not ZXCVBN: 139s raise ImportError(name='zxcvbn') 139s 139s weak = [] 139s for path, entry in self.data.items(): 139s if self.verbose: 139s print(f"Checking {path}") 139s if entry.get('password', '') == '': 139s continue 139s password = entry['password'] 139s user_input = list(entry.values()) + path.split(os.sep) 139s if password in user_input: 139s user_input.remove(password) 139s results = zxcvbn(password, user_inputs=user_input) 139s > if results['score'] <= 2: 139s E TypeError: 'zxcvbn_rs_py.Entropy' object is not subscriptable 139s 139s /usr/lib/python3/dist-packages/pass_audit/audit.py:90: TypeError 139s ----------------------------- Captured stdout call ----------------------------- 139s Checking Password/good/1 139s ________________________ TestPassAudit.test_zxcvbn_weak ________________________ 139s 139s self = 139s 139s def test_zxcvbn_weak(self): 139s """Testing: pass audit for weak password with zxcvbn.""" 139s data = tests.getdata('Password/pwned/1') 139s audit = pass_audit.audit.PassAudit(data, True) 139s > weak = audit.zxcvbn() 139s 139s tests/test_audit.py:43: 139s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 139s 139s self = 139s 139s def zxcvbn(self): 139s """Password strength estimaton usuing Dropbox' zxcvbn.""" 139s if not ZXCVBN: 139s raise ImportError(name='zxcvbn') 139s 139s weak = [] 139s for path, entry in self.data.items(): 139s if self.verbose: 139s print(f"Checking {path}") 139s if entry.get('password', '') == '': 139s continue 139s password = entry['password'] 139s user_input = list(entry.values()) + path.split(os.sep) 139s if password in user_input: 139s user_input.remove(password) 139s results = zxcvbn(password, user_inputs=user_input) 139s > if results['score'] <= 2: 139s E TypeError: 'zxcvbn_rs_py.Entropy' object is not subscriptable 139s 139s /usr/lib/python3/dist-packages/pass_audit/audit.py:90: TypeError 139s ----------------------------- Captured stdout call ----------------------------- 139s Checking Password/pwned/1 139s _______________________ TestMain.test_main_passwords_all _______________________ 139s 139s self = 139s 139s @mock.patch('requests.get', tests.mock_request) 139s def test_main_passwords_all(self): 139s """Testing: pass audit .""" 139s cmd = [''] 139s > self.main(cmd) 139s 139s tests/test_main.py:104: 139s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 139s tests/__init__.py:129: in main 139s pass_audit.__main__.main() 139s /usr/lib/python3/dist-packages/pass_audit/__main__.py:130: in main 139s weak = audit.zxcvbn() 139s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 139s 139s self = 139s 139s def zxcvbn(self): 139s """Password strength estimaton usuing Dropbox' zxcvbn.""" 139s if not ZXCVBN: 139s raise ImportError(name='zxcvbn') 139s 139s weak = [] 139s for path, entry in self.data.items(): 139s if self.verbose: 139s print(f"Checking {path}") 139s if entry.get('password', '') == '': 139s continue 139s password = entry['password'] 139s user_input = list(entry.values()) + path.split(os.sep) 139s if password in user_input: 139s user_input.remove(password) 139s results = zxcvbn(password, user_inputs=user_input) 139s > if results['score'] <= 2: 139s E TypeError: 'zxcvbn_rs_py.Entropy' object is not subscriptable 139s 139s /usr/lib/python3/dist-packages/pass_audit/audit.py:90: TypeError 139s ----------------------------- Captured stdout call ----------------------------- 139s  . Auditing whole store - this may take some time 139s  w Imposible to read dummy from the password store: gpg: WARNING: unsafe permissions on homedir '/tmp/autopkgtest.iKOVIy/autopkgtest_tmp/tests/assets/gnupg' 139s gpg: decrypt_message failed: Unknown system error 139s  139s  w Password breached: P@ssw0rd from Password/pwned/1 has been breached 52579 time(s). 139s  w Password breached: correct horse battery staple from Password/pwned/2 has been breached 3 time(s). 139s  w Password breached: correcthorsebatterystaple from Password/pwned/3 has been breached 120 time(s). 139s  w Password breached: ILoveYou from Password/pwned/4 has been breached 1386 time(s). 139s  w Password breached: password from Password/pwned/5 has been breached 3730471 time(s). 139s  w Password breached: a from Password/pwned/6 has been breached 123422 time(s). 139s  w Password breached: iamagenius from Password/pwned/7 has been breached 411 time(s). 139s ____________________ TestMain.test_main_passwords_duplicate ____________________ 139s 139s self = 139s 139s @mock.patch('requests.get', tests.mock_request) 139s def test_main_passwords_duplicate(self): 139s """Testing: pass audit for duplicates.""" 139s shutil.copy(os.path.join(self.store.prefix, 'Password/good/1.gpg'), 139s os.path.join(self.store.prefix, 'Password/good/10.gpg')) 139s cmd = ['Password/good'] 139s > self.main(cmd) 139s 139s tests/test_main.py:91: 139s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 139s tests/__init__.py:129: in main 139s pass_audit.__main__.main() 139s /usr/lib/python3/dist-packages/pass_audit/__main__.py:130: in main 139s weak = audit.zxcvbn() 139s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 139s 139s self = 139s 139s def zxcvbn(self): 139s """Password strength estimaton usuing Dropbox' zxcvbn.""" 139s if not ZXCVBN: 139s raise ImportError(name='zxcvbn') 139s 139s weak = [] 139s for path, entry in self.data.items(): 139s if self.verbose: 139s print(f"Checking {path}") 139s if entry.get('password', '') == '': 139s continue 139s password = entry['password'] 139s user_input = list(entry.values()) + path.split(os.sep) 139s if password in user_input: 139s user_input.remove(password) 139s results = zxcvbn(password, user_inputs=user_input) 139s > if results['score'] <= 2: 139s E TypeError: 'zxcvbn_rs_py.Entropy' object is not subscriptable 139s 139s /usr/lib/python3/dist-packages/pass_audit/audit.py:90: TypeError 139s ______________________ TestMain.test_main_passwords_good _______________________ 139s 139s self = 139s 139s @mock.patch('requests.get', tests.mock_request) 139s def test_main_passwords_good(self): 139s """Testing: pass audit Password/good.""" 139s cmd = ['Password/good'] 139s > self.main(cmd) 139s 139s tests/test_main.py:98: 139s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 139s tests/__init__.py:129: in main 139s pass_audit.__main__.main() 139s /usr/lib/python3/dist-packages/pass_audit/__main__.py:130: in main 139s weak = audit.zxcvbn() 139s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 139s 139s self = 139s 139s def zxcvbn(self): 139s """Password strength estimaton usuing Dropbox' zxcvbn.""" 139s if not ZXCVBN: 139s raise ImportError(name='zxcvbn') 139s 139s weak = [] 139s for path, entry in self.data.items(): 139s if self.verbose: 139s print(f"Checking {path}") 139s if entry.get('password', '') == '': 139s continue 139s password = entry['password'] 139s user_input = list(entry.values()) + path.split(os.sep) 139s if password in user_input: 139s user_input.remove(password) 139s results = zxcvbn(password, user_inputs=user_input) 139s > if results['score'] <= 2: 139s E TypeError: 'zxcvbn_rs_py.Entropy' object is not subscriptable 139s 139s /usr/lib/python3/dist-packages/pass_audit/audit.py:90: TypeError 139s ____________________ TestMain.test_main_passwords_notpwned _____________________ 139s 139s self = 139s 139s @mock.patch('requests.get', tests.mock_request) 139s def test_main_passwords_notpwned(self): 139s """Testing: pass audit Password/notpwned.""" 139s cmd = ['Password/notpwned'] 139s > self.main(cmd) 139s 139s tests/test_main.py:77: 139s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 139s tests/__init__.py:129: in main 139s pass_audit.__main__.main() 139s /usr/lib/python3/dist-packages/pass_audit/__main__.py:130: in main 139s weak = audit.zxcvbn() 139s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 139s 139s self = 139s 139s def zxcvbn(self): 139s """Password strength estimaton usuing Dropbox' zxcvbn.""" 139s if not ZXCVBN: 139s raise ImportError(name='zxcvbn') 139s 139s weak = [] 139s for path, entry in self.data.items(): 139s if self.verbose: 139s print(f"Checking {path}") 139s if entry.get('password', '') == '': 139s continue 139s password = entry['password'] 139s user_input = list(entry.values()) + path.split(os.sep) 139s if password in user_input: 139s user_input.remove(password) 139s results = zxcvbn(password, user_inputs=user_input) 139s > if results['score'] <= 2: 139s E TypeError: 'zxcvbn_rs_py.Entropy' object is not subscriptable 139s 139s /usr/lib/python3/dist-packages/pass_audit/audit.py:90: TypeError 139s ______________________ TestMain.test_main_passwords_pwned ______________________ 139s 139s self = 139s 139s @mock.patch('requests.get', tests.mock_request) 139s def test_main_passwords_pwned(self): 139s """Testing: pass audit Password/pwned.""" 139s cmd = ['Password/pwned'] 139s > self.main(cmd) 139s 139s tests/test_main.py:83: 139s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 139s tests/__init__.py:129: in main 139s pass_audit.__main__.main() 139s /usr/lib/python3/dist-packages/pass_audit/__main__.py:130: in main 139s weak = audit.zxcvbn() 139s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 139s 139s self = 139s 139s def zxcvbn(self): 139s """Password strength estimaton usuing Dropbox' zxcvbn.""" 139s if not ZXCVBN: 139s raise ImportError(name='zxcvbn') 139s 139s weak = [] 139s for path, entry in self.data.items(): 139s if self.verbose: 139s print(f"Checking {path}") 139s if entry.get('password', '') == '': 139s continue 139s password = entry['password'] 139s user_input = list(entry.values()) + path.split(os.sep) 139s if password in user_input: 139s user_input.remove(password) 139s results = zxcvbn(password, user_inputs=user_input) 139s > if results['score'] <= 2: 139s E TypeError: 'zxcvbn_rs_py.Entropy' object is not subscriptable 139s 139s /usr/lib/python3/dist-packages/pass_audit/audit.py:90: TypeError 139s ----------------------------- Captured stdout call ----------------------------- 139s  w Password breached: P@ssw0rd from Password/pwned/1 has been breached 52579 time(s). 139s  w Password breached: correct horse battery staple from Password/pwned/2 has been breached 3 time(s). 139s  w Password breached: correcthorsebatterystaple from Password/pwned/3 has been breached 120 time(s). 139s  w Password breached: ILoveYou from Password/pwned/4 has been breached 1386 time(s). 139s  w Password breached: password from Password/pwned/5 has been breached 3730471 time(s). 139s  w Password breached: a from Password/pwned/6 has been breached 123422 time(s). 139s  w Password breached: iamagenius from Password/pwned/7 has been breached 411 time(s). 139s 139s ---------- coverage: platform linux, python 3.12.7-final-0 ----------- 139s Name Stmts Miss Branch BrPart Cover Missing 139s -------------------------------------------------------------------------------------------------------- 139s /usr/lib/python3/dist-packages/pass_audit/__init__.py 10 0 0 0 100% 139s /usr/lib/python3/dist-packages/pass_audit/__main__.py 81 19 24 1 73% 108-112, 132-150, 154-155 139s /usr/lib/python3/dist-packages/pass_audit/audit.py 80 4 36 4 93% 13-14, 77, 87->89, 90->80, 91 139s /usr/lib/python3/dist-packages/pass_audit/msg.py 41 0 12 3 94% 38->exit, 49->exit, 55->exit 139s /usr/lib/python3/dist-packages/pass_audit/passwordstore.py 114 4 52 5 95% 59, 107-108, 111->118, 124->118, 155, 166->164 139s -------------------------------------------------------------------------------------------------------- 139s TOTAL 326 27 124 13 89% 139s 139s FAIL Required test coverage of 94% not reached. Total coverage: 89.33% 139s =========================== short test summary info ============================ 139s FAILED tests/test_audit.py::TestPassAudit::test_zxcvbn_strong - TypeError: 'z... 139s FAILED tests/test_audit.py::TestPassAudit::test_zxcvbn_weak - TypeError: 'zxc... 139s FAILED tests/test_main.py::TestMain::test_main_passwords_all - TypeError: 'zx... 139s FAILED tests/test_main.py::TestMain::test_main_passwords_duplicate - TypeErro... 139s FAILED tests/test_main.py::TestMain::test_main_passwords_good - TypeError: 'z... 139s FAILED tests/test_main.py::TestMain::test_main_passwords_notpwned - TypeError... 139s FAILED tests/test_main.py::TestMain::test_main_passwords_pwned - TypeError: '... 139s ========================= 7 failed, 35 passed in 5.16s ========================= 139s autopkgtest [14:57:28]: test unittests: -----------------------] 139s autopkgtest [14:57:28]: test unittests: - - - - - - - - - - results - - - - - - - - - - 139s unittests FAIL non-zero exit status 1 140s autopkgtest [14:57:29]: @@@@@@@@@@@@@@@@@@@@ summary 140s unittests FAIL non-zero exit status 1 151s virt: nova [W] Using flock in prodstack6-s390x 151s virt: Creating nova instance adt-plucky-s390x-pass-audit-20241109-145509-juju-7f2275-prod-proposed-migration-environment-2-fe7b1c34-aa95-4274-a0d4-03c68b25430a from image adt/ubuntu-plucky-s390x-server-20241109.img (UUID 3dcdd533-c66f-4d57-9732-52a74843bc00)...