From 38aee6eebb160d46287c63a979bb897b15bb2f96 Mon Sep 17 00:00:00 2001 From: Daniel Watkins Date: Mon, 22 Feb 2021 12:03:53 -0500 Subject: integration_tests: introduce lxd_use_exec mark (#802) pycloudlib has modified the way LXD executes tests (https://github.com/canonical/pycloudlib/pull/114): it will always use SSH to access them by default, instead of using `lxc exec`. This behaviour is transparent for them majority of cloud-init's integration tests, but some currently depend on using `lxc exec` to access instances with (intentionally) broken networking: obviously these are not accessible via SSH. pycloudlib retains support for switching an instance to use `lxc exec`. This commit introduces the `lxd_use_exec` mark, which tests can use to indicate to the integration testing framework that they should be so switched, and applies it to all applicable tests. --- tox.ini | 1 + 1 file changed, 1 insertion(+) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index 1887e582..0e2eae46 100644 --- a/tox.ini +++ b/tox.ini @@ -176,6 +176,7 @@ markers = oci: test will only run on OCI platform lxd_config_dict: set the config_dict passed on LXD instance creation lxd_container: test will only run in LXD container + lxd_use_exec: `execute` will use `lxc exec` instead of SSH lxd_vm: test will only run in LXD VM not_xenial: test cannot run on the xenial release not_bionic: test cannot run on the bionic release -- cgit v1.2.3