Starting lpci, version 0.2.3 Logging execution to '/home/buildd/.local/state/lpci/log/lpci-20230908-040648.273953.log' Launching environment for focal/amd64 Checking for instance 'lpci-tree-519421-focal-amd64' in project 'lpci' in remote 'local' Instance exists and is not running. Starting instance. Running ['apt', 'update'] :: :: WARNING: apt does not have a stable CLI interface. Use with caution in scripts. :: :: Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease :: Hit:2 http://archive.ubuntu.com/ubuntu focal-updates InRelease :: Hit:3 http://archive.ubuntu.com/ubuntu focal-backports InRelease :: Hit:4 http://security.ubuntu.com/ubuntu focal-security InRelease :: Reading package lists... :: Building dependency tree... :: Reading state information... :: 101 packages can be upgraded. Run 'apt list --upgradable' to see them. Installing system packages Running ['apt', 'install', '-y', 'tox'] :: :: WARNING: apt does not have a stable CLI interface. Use with caution in scripts. :: :: Reading package lists... :: Building dependency tree... :: Reading state information... :: tox is already the newest version (3.13.2-2). :: 0 upgraded, 0 newly installed, 0 to remove and 101 not upgraded. Running command for the job... Running ['bash', '--noprofile', '--norc', '-ec', 'tox -e unit\n'] :: unit create: /build/lpci/project/.tox/unit :: unit installdeps: -r/build/lpci/project/tests/unit/requirements.txt, -r/build/lpci/project/requirements.txt :: unit installed: charmhelpers==1.2.1,charms.reactive==1.5.2,coverage==7.3.1,exceptiongroup==1.1.3,iniconfig==2.0.0,Jinja2==3.1.2,MarkupSafe==2.1.3,mock==5.1.0,netaddr==0.8.0,packaging==23.1,pbr==5.11.1,pluggy==1.3.0,pyaml==23.9.3,pytest==7.4.2,pytest-cov==4.1.0,PyYAML==6.0.1,tomli==2.0.1 :: unit run-test-pre: PYTHONHASHSEED='1443780989' :: unit run-test: commands[0] | pytest -v --cov=files --cov=reactive --cov=actions --cov-branch --cov-report=term-missing --cov-report=html :: ============================= test session starts ============================== :: platform linux -- Python 3.8.10, pytest-7.4.2, pluggy-1.3.0 -- /build/lpci/project/.tox/unit/bin/python :: cachedir: .tox/unit/.pytest_cache :: rootdir: /build/lpci/project :: configfile: pytest.ini :: plugins: cov-4.1.0 :: collecting ... collected 3 items :: :: tests/unit/test_autocert_kubernetes.py::TestAutocert::test_create_secret PASSED [ 33%] :: tests/unit/test_autocert_kubernetes.py::TestAutocert::test_no_change_secret PASSED [ 66%] :: tests/unit/test_autocert_kubernetes.py::TestAutocert::test_update_secret PASSED [100%] :: :: ---------- coverage: platform linux, python 3.8.10-final-0 ----------- :: Name Stmts Miss Branch BrPart Cover Missing :: ---------------------------------------------------------------------------- :: actions/actions.py 41 41 6 0 0% 2-58 :: files/autocert_kubernetes.py 49 4 14 3 89% 34-35, 72, 98 :: files/check_autocert_status.py 43 43 14 0 0% 3-61 :: reactive/autocert.py 292 292 92 0 0% 1-466 :: ---------------------------------------------------------------------------- :: TOTAL 425 380 126 3 10% :: Coverage HTML written to dir htmlcov :: :: :: ============================== 3 passed in 0.24s =============================== :: ___________________________________ summary ____________________________________ :: unit: commands succeeded :: congratulations :)