diff options
author | Scott Moser <smoser@brickies.net> | 2016-10-24 10:31:21 -0400 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2016-10-24 10:36:01 -0400 |
commit | 1e55f4127f356b930e2c1ad36dcb6bed24f3beb2 (patch) | |
tree | 5ad6c1171159b1daa031bb03ddcd8bdf903c07c8 /upstart/cloud-log-shutdown.conf | |
parent | f6ae1f9cb1495b14623eed60bef5afbdec85f607 (diff) | |
download | vyos-cloud-init-1e55f4127f356b930e2c1ad36dcb6bed24f3beb2.tar.gz vyos-cloud-init-1e55f4127f356b930e2c1ad36dcb6bed24f3beb2.zip |
unittests: do not read system /etc/cloud/cloud.cfg.d
Many of the unit tests in test_data would inadvertantly read the
system's /etc/cloud/cloud.cfg and /etc/cloud/cloud.cfg.d.
This was first noticed on a system deployed by MAAS, where
files in /etc/cloud/cloud.cfg.d/ are root read-only.
This changes those tests to actually make use of
FilesystemMockingTestCase functionality and adds 'reRoot()' to that
class which is easier to use for at least this use case.
LP: #1635350
Diffstat (limited to 'upstart/cloud-log-shutdown.conf')
0 files changed, 0 insertions, 0 deletions