diff options
author | Chad Smith <chad.smith@canonical.com> | 2022-01-10 15:05:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-10 16:05:52 -0600 |
commit | 57ccd89b6af7d3551915df56f548b7617dfcebf9 (patch) | |
tree | 0293f8acb930e09f7868812eac17cd411e273771 /tests/integration_tests/conftest.py | |
parent | 26de41a36ac6191f8a93e7ba40fea6ac3628b1e6 (diff) | |
download | vyos-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/integration_tests/conftest.py')
0 files changed, 0 insertions, 0 deletions