Skip to content

Commit

Permalink
test: add a test config with dos partition table
Browse files Browse the repository at this point in the history
Add a new test config with a dos partition table type.  This is a copy
of the LVM test config with the extra /data partition removed to make it
valid (max 4 partitions).

Only test on CentOS 9 and 10 to avoid growing the test cases by too
much.
  • Loading branch information
achilleas-k committed Dec 10, 2024
1 parent 181cd79 commit 25ac080
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/config-map.json
Original file line number Diff line number Diff line change
Expand Up @@ -364,5 +364,14 @@
"rhel-10*",
"rhel-9*"
]
},
"./configs/partitioning-dos-lvm.json": {
"image-types": [
"ami"
],
"distros": [
"centos-10",
"centos-9"
]
}
}
73 changes: 73 additions & 0 deletions test/configs/partitioning-dos-lvm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"name": "partitioning-dos-lvm",
"blueprint": {
"customizations": {
"disk": {
"type": "dos",
"partitions": [
{
"type": "lvm",
"name": "testvg",
"minsize": 10737418240,
"logical_volumes": [
{
"name": "homelv",
"mountpoint": "/home",
"label": "home",
"fs_type": "ext4",
"minsize": "2 GiB"
},
{
"name": "shadowmanlv",
"mountpoint": "/home/shadowman",
"fs_type": "ext4",
"minsize": "5 GiB"
},
{
"name": "foolv",
"mountpoint": "/foo",
"fs_type": "ext4",
"minsize": "1 GiB"
},
{
"name": "usrlv",
"mountpoint": "/usr",
"fs_type": "ext4",
"minsize": "4 GiB"
},
{
"name": "optlv",
"mountpoint": "/opt",
"fs_type": "ext4",
"minsize": 1073741824
},
{
"name": "medialv",
"mountpoint": "/media",
"fs_type": "ext4",
"minsize": 1073741824
},
{
"name": "roothomelv",
"mountpoint": "/root",
"fs_type": "ext4",
"minsize": "1 GiB"
},
{
"name": "srvlv",
"mountpoint": "/srv",
"fs_type": "ext4",
"minsize": 1073741824
},
{
"name": "swap-lv",
"fs_type": "swap",
"minsize": "1 GiB"
}
]
}
]
}
}
}
}
1 change: 1 addition & 0 deletions test/configs/partitioning-lvm.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"blueprint": {
"customizations": {
"disk": {
"type": "gpt",
"partitions": [
{
"mountpoint": "/data",
Expand Down

0 comments on commit 25ac080

Please sign in to comment.