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:
parent
fc9108e16e
commit
40096e189b
3 changed files with 72 additions and 0 deletions
29
test/stages_tests/zipl/a.json
Normal file
29
test/stages_tests/zipl/a.json
Normal 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": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
31
test/stages_tests/zipl/b.json
Normal file
31
test/stages_tests/zipl/b.json
Normal 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
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
12
test/stages_tests/zipl/diff.json
Normal file
12
test/stages_tests/zipl/diff.json
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"added_files": [],
|
||||
"deleted_files": [],
|
||||
"differences": {
|
||||
"/etc/zipl.conf": {
|
||||
"content": [
|
||||
"sha256:516d31e6606c4bc28dfe9f6e3cf6c438f8be22781b7132f6a4b2ea0b3735ab42",
|
||||
"sha256:156c06c8cac3adedea18063ea5a391851f5bc603695cf0cb8c982d3ad857ad6d"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue