Commit 1d3768e6 authored by Rémi Duraffort's avatar Rémi Duraffort
Browse files

Add a simple test for the AppendOverlays feature



Signed-off-by: default avatarRémi Duraffort <remi.duraffort@linaro.org>
parent a9422c74
- class: actions.deploy.image.DeployImagesAction
name: deployimages
pipeline:
- class: actions.deploy.download.DownloaderAction
name: download-retry
pipeline:
- {class: actions.deploy.download.HttpDownloadAction, name: http-download}
- class: actions.deploy.download.DownloaderAction
name: download-retry
pipeline:
- {class: actions.deploy.download.HttpDownloadAction, name: http-download}
- {class: actions.deploy.apply_overlay.AppendOverlays, name: append-overlays}
- class: actions.deploy.overlay.OverlayAction
name: lava-overlay
pipeline:
- {class: actions.deploy.overlay.VlandOverlayAction, name: lava-vland-overlay}
- {class: actions.deploy.overlay.MultinodeOverlayAction, name: lava-multinode-overlay}
- class: actions.deploy.testdef.TestDefinitionAction
name: test-definition
pipeline:
- {class: actions.deploy.testdef.GitRepoAction, name: git-repo-action}
- {class: actions.deploy.testdef.TestOverlayAction, name: test-overlay}
- {class: actions.deploy.testdef.TestInstallAction, name: test-install-overlay}
- {class: actions.deploy.testdef.TestRunnerAction, name: test-runscript-overlay}
- {class: actions.deploy.testdef.GitRepoAction, name: git-repo-action}
- {class: actions.deploy.testdef.TestOverlayAction, name: test-overlay}
- {class: actions.deploy.testdef.TestInstallAction, name: test-install-overlay}
- {class: actions.deploy.testdef.TestRunnerAction, name: test-runscript-overlay}
- {class: actions.deploy.overlay.CompressOverlay, name: compress-overlay}
- {class: actions.deploy.overlay.PersistentNFSOverlay, name: persistent-nfs-overlay}
- {class: actions.deploy.apply_overlay.ApplyOverlayGuest, name: apply-overlay-guest}
- {class: actions.deploy.environment.DeployDeviceEnvironment, name: deploy-device-env}
- class: actions.boot.qemu.BootQEMUImageAction
name: boot-image-retry
pipeline:
- class: actions.boot.qemu.BootQemuRetry
name: boot-qemu-image
pipeline:
- {class: actions.boot.qemu.CallQemuAction, name: execute-qemu}
- {class: actions.boot.AutoLoginAction, name: auto-login-action}
- {class: shell.ExpectShellSession, name: expect-shell-connection}
- {class: actions.boot.environment.ExportDeviceEnvironment, name: export-device-env}
- class: actions.test.shell.TestShellRetry
name: lava-test-retry
pipeline:
- {class: actions.test.shell.TestShellAction, name: lava-test-shell}
- class: power.FinalizeAction
name: finalize
pipeline:
- {class: power.PowerOff, name: power-off}
- {class: power.ReadFeedback, name: read-feedback}
device_type: qemu
job_name: qemu overlays example
timeouts:
job:
minutes: 20
action:
minutes: 5
priority: medium
visibility: public
actions:
- deploy:
timeout:
minutes: 20
to: tmpfs
images:
rootfs:
url: http://example.com/rootfs.ext4.xz
image_arg: -drive format=ext4,file={rootfs}
compression: xz
format: ext4
overlays:
modules:
url: http://example.com/modules.tar.gz
compression: gz
format: tar
path: /
os: debian
- boot:
method: qemu
media: tmpfs
failure_retry: 2
prompts:
- 'root@debian:~#'
- test:
failure_retry: 3
timeout:
minutes: 5
definitions:
- repository: git://git.linaro.org/lava-team/lava-functional-tests.git
from: git
path: lava-test-shell/smoke-tests-basic.yaml
name: smoke-tests
- repository: http://git.linaro.org/lava-team/lava-functional-tests.git
from: git
path: lava-test-shell/single-node/singlenode03.yaml
name: singlenode-advanced
context:
arch: amd64
......@@ -305,6 +305,17 @@ class TestKVMDownloadLocalDeploy(StdoutTestCase):
self.assertEqual(description_ref, self.job.pipeline.describe(False))
class TestKVMDeployOverlays(StdoutTestCase):
def setUp(self):
super().setUp()
factory = Factory()
self.job = factory.create_kvm_job("sample_jobs/kvm-overlays.yaml")
def test_pipeline(self):
description_ref = self.pipeline_reference("kvm-overlays.yaml", job=self.job)
self.assertEqual(description_ref, self.job.pipeline.describe(False))
def prepare_test_connection(failure=False):
if failure:
logfile = os.path.join(os.path.dirname(__file__), "kernel-login-error.txt")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment