diff options
author | Chris Patterson <cpatterson@microsoft.com> | 2021-12-14 11:53:56 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-14 10:53:56 -0600 |
commit | 3da3bdae5e5b41bb3a9f6b23c8573c8fbc23e629 (patch) | |
tree | dea3aa2f6aeceeadee748719a8e4fa88dfa05eeb /cloudinit/apport.py | |
parent | 9a6e65a2a575055aadc1802004dbe3f343a54b89 (diff) | |
download | vyos-cloud-init-3da3bdae5e5b41bb3a9f6b23c8573c8fbc23e629.tar.gz vyos-cloud-init-3da3bdae5e5b41bb3a9f6b23c8573c8fbc23e629.zip |
tests/cmd/query: fix test run as root and add coverage for defaults (#1156)
test_handle_args_error_on_invalid_vaname_paths() would fail when run
as root due to invocation of load_userdata() on the default user/vendor
data locations under the instance link.
- Mock load_userdata() for this test case to avoid loads.
- Update _setup_paths() to configure cloud_dir in temporary location.
- Add new test case to verify that the default locations are loaded
when unspecified.
LP: #1825027
Signed-off-by: Chris Patterson <cpatterson@microsoft.com>
Diffstat (limited to 'cloudinit/apport.py')
0 files changed, 0 insertions, 0 deletions