nova/nova/tests/unit/privsep
Michael Still 3aa702686b Style corrections for privsep usage.
We always import privsep modules like this:

    import nova.privsep.libvirt

Not like this:

    from nova.privsep import libvirt

This is because it makes it obvious at the caller that a priviledged
operation is occuring:

    nova.privsep.libvirt.destroy_root_filesystem()

Not just:

    libvirt.destroy_root_filesystem()

This is especially true when the imported module is called "libvirt",
which is a very common term in the codebase and super hard to grep
for specific uses of.

I've corrected the existing style mismatches to make things consistent.
Note that the next patch in this series covers this case with a
hacking check.

Change-Id: Ief177dbcb018da6fbad13bb0ff153fc47292d5b9
2019-04-01 23:35:53 +00:00
..
__init__.py Move libvirt usages of chown to privsep. 2017-09-08 03:07:57 +10:00
test_fs.py Move configurable mkfs to privsep. 2018-04-04 06:29:32 +10:00
test_idmapshift.py Style corrections for privsep usage. 2019-04-01 23:35:53 +00:00
test_libvirt.py Style corrections for privsep usage. 2019-04-01 23:35:53 +00:00
test_linux_net.py Move create_tap_dev into privsep. 2019-02-19 03:29:44 +00:00
test_path.py Move last_bytes into the path module 2017-11-06 10:30:21 +02:00
test_utils.py Fix circular import in nova.privsep.utils 2019-01-03 17:21:10 -05:00