test: new test to check zipl stage

The zipl stage is a fairly simple stage that just creates a file
in /etc called zipl.conf with a single configurable option, which
is called `timeout`. Check the file gets properly created with
the desired hash and verify that setting the timeout works.
This commit is contained in:
Christian Kellner 2020-01-13 14:03:27 +01:00 committed by Tom Gundersen
parent fc9108e16e
commit 40096e189b
3 changed files with 72 additions and 0 deletions

View file

@ -0,0 +1,29 @@
{
"build": {
"pipeline": {
"stages": [
{
"name": "org.osbuild.dnf",
"options": {
"releasever": "30",
"basearch": "x86_64",
"install_weak_deps": false,
"repos": [
"sha256:9f596e18f585bee30ac41c11fb11a83ed6b11d5b341c1cb56ca4015d7717cb97"
],
"packages": [
"dnf"
]
}
}
]
},
"runner": "org.osbuild.fedora30"
},
"stages": [
{
"name": "org.osbuild.zipl",
"options": {}
}
]
}

View file

@ -0,0 +1,31 @@
{
"build": {
"pipeline": {
"stages": [
{
"name": "org.osbuild.dnf",
"options": {
"releasever": "30",
"basearch": "x86_64",
"install_weak_deps": false,
"repos": [
"sha256:9f596e18f585bee30ac41c11fb11a83ed6b11d5b341c1cb56ca4015d7717cb97"
],
"packages": [
"dnf"
]
}
}
]
},
"runner": "org.osbuild.fedora30"
},
"stages": [
{
"name": "org.osbuild.zipl",
"options": {
"timeout": 1
}
}
]
}

View file

@ -0,0 +1,12 @@
{
"added_files": [],
"deleted_files": [],
"differences": {
"/etc/zipl.conf": {
"content": [
"sha256:516d31e6606c4bc28dfe9f6e3cf6c438f8be22781b7132f6a4b2ea0b3735ab42",
"sha256:156c06c8cac3adedea18063ea5a391851f5bc603695cf0cb8c982d3ad857ad6d"
]
}
}
}