Skip to content

Commit

Permalink
stages(kickstart): add unit tests for clearpart
Browse files Browse the repository at this point in the history
  • Loading branch information
mvo5 committed Nov 3, 2023
1 parent e4580bd commit 4dcb91b
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions stages/test/test_kickstart.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,55 @@
},
"expected": "lang en_US.UTF-8\nkeyboard us\ntimezone UTC",
},
{
"options": {"zerombr": "true"},
"expected": "zerombr",
},
{
"options": {"clearpart": {}},
"expected": "clearpart",
},
{
"options": {"clearpart": {"all": True}},
"expected": "clearpart --all",
},
{
"options": {"clearpart": {"drives": ["hda","hdb"]}},
"expected": "clearpart --drives=hda,hdb",
},
{
"options": {"clearpart": {"drives": ["hda"]}},
"expected": "clearpart --drives=hda",
},
{
"options": {"clearpart": {"list": ["sda2","sda3"]}},
"expected": "clearpart --list=sda2,sda3",
},
{
"options": {"clearpart": {"list": ["sda2"]}},
"expected": "clearpart --list=sda2",
},
{
"options": {"clearpart": {"disklabel": "some-label"}},
"expected": "clearpart --disklabel=some-label",
},
{
"options": {"clearpart": {"linux": True}},
"expected": "clearpart --linux",
},
{
"options": {
"clearpart": {
"all": True,
"drives": ["hda", "hdb"],
"list": ["sda2","sda3"],
"disklabel": "some-label",
"linux": True,
}
},
"expected": "clearpart --all --drives=hda,hdb --list=sda2,sda3 --disklabel=some-label --linux",
},

]


Expand Down

0 comments on commit 4dcb91b

Please sign in to comment.