summaryrefslogtreecommitdiff
path: root/tests/integration_tests/instances.py
diff options
context:
space:
mode:
authorJames Falcon <TheRealFalcon@users.noreply.github.com>2020-11-19 11:54:35 -0600
committerGitHub <noreply@github.com>2020-11-19 12:54:35 -0500
commit9707a08a82161cd4129f6cdd10978cde50bea747 (patch)
tree7ace18165737d19e48eee144d23f36eb9333fe9b /tests/integration_tests/instances.py
parentbfaee8cc9b8fd23dbc118ae548fc2ca695a0d707 (diff)
downloadvyos-cloud-init-9707a08a82161cd4129f6cdd10978cde50bea747.tar.gz
vyos-cloud-init-9707a08a82161cd4129f6cdd10978cde50bea747.zip
Make mount in place for tests work (#667)
IMAGE_SOURCE = 'IN_PLACE' wasn't working previously. Replaced LXD launch with an init, then mount, then start.
Diffstat (limited to 'tests/integration_tests/instances.py')
-rw-r--r--tests/integration_tests/instances.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/integration_tests/instances.py b/tests/integration_tests/instances.py
index 0db7c07b..67a6fb92 100644
--- a/tests/integration_tests/instances.py
+++ b/tests/integration_tests/instances.py
@@ -5,8 +5,6 @@ from tempfile import NamedTemporaryFile
from pycloudlib.instance import BaseInstance
-import cloudinit
-from cloudinit.subp import subp
from tests.integration_tests import integration_settings
try:
@@ -129,18 +127,3 @@ class IntegrationOciInstance(IntegrationInstance):
class IntegrationLxdContainerInstance(IntegrationInstance):
use_sudo = False
-
- def __init__(self, cloud: 'IntegrationCloud', instance: BaseInstance,
- settings=integration_settings):
- super().__init__(cloud, instance, settings)
- if self.settings.CLOUD_INIT_SOURCE == 'IN_PLACE':
- self._mount_source()
-
- def _mount_source(self):
- command = (
- 'lxc config device add {name} host-cloud-init disk '
- 'source={cloudinit_path} '
- 'path=/usr/lib/python3/dist-packages/cloudinit'
- ).format(
- name=self.instance.name, cloudinit_path=cloudinit.__path__[0])
- subp(command.split())