Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ricardo Cañuelo Navarro
lava
Commits
1d3768e6
Commit
1d3768e6
authored
Feb 18, 2020
by
Rémi Duraffort
Browse files
Add a simple test for the AppendOverlays feature
Signed-off-by:
Rémi Duraffort
<
remi.duraffort@linaro.org
>
parent
a9422c74
Changes
3
Hide whitespace changes
Inline
Side-by-side
tests/lava_dispatcher/pipeline_refs/kvm-overlays.yaml
0 → 100644
View file @
1d3768e6
-
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
}
tests/lava_dispatcher/sample_jobs/kvm-overlays.yaml
0 → 100644
View file @
1d3768e6
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
tests/lava_dispatcher/test_kvm.py
View file @
1d3768e6
...
...
@@ -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"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment