summaryrefslogtreecommitdiff
path: root/tests/unittests/test_net.py
diff options
context:
space:
mode:
authorChad Smith <chad.smith@canonical.com>2022-01-10 15:05:52 -0700
committerGitHub <noreply@github.com>2022-01-10 16:05:52 -0600
commit57ccd89b6af7d3551915df56f548b7617dfcebf9 (patch)
tree0293f8acb930e09f7868812eac17cd411e273771 /tests/unittests/test_net.py
parent26de41a36ac6191f8a93e7ba40fea6ac3628b1e6 (diff)
downloadvyos-cloud-init-57ccd89b6af7d3551915df56f548b7617dfcebf9.tar.gz
vyos-cloud-init-57ccd89b6af7d3551915df56f548b7617dfcebf9.zip
tests: mock LXD datasource detection in ds-identify on LXD containers (#1178)
On LXD containers /dev/lxd/sock will always exist. Mock dscheck_LXD to return 1 (NOT_FOUND) to avoid leaking into test environment and returning LXD as detected. We have integration tests covering proper LXD datasource detection so we don't need a Unit test validating the [ -S /dev/lxd/sock] that is in ds-identify.
Diffstat (limited to 'tests/unittests/test_net.py')
0 files changed, 0 insertions, 0 deletions