unit tests install packages on test system

Bug #1964298 reported by Xav Paice
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
charm-cloudstats
New
Undecided
Unassigned

Bug Description

When running unit tests, apt is not mocked out and the test attempts to install pacakges including python3-jinja2. This fails when not running as root, and we shouldn't be installing packages like that during unit tests in any case.

This starts with:

test_06_config_changed_ready (test_charm.TestCharm)
Test config changed when ready. ... juju-log: Installing python3-jinja2 with options: ['--option=Dpkg::Options::=--force-confold']

but is also present in several other tests.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.