Skip to content

Commit

Permalink
blueprint: tiny naming/style tweaks for the disk customization tests
Browse files Browse the repository at this point in the history
Small non-functional tweaks for the disk customization tests.

C.f.:
osbuild#1041 (comment)
osbuild#1041 (comment)
  • Loading branch information
mvo5 committed Nov 26, 2024
1 parent a03879c commit 1461a24
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/blueprint/disk_customizations_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1192,14 +1192,14 @@ func TestPartitionCustomizationUnmarshalJSON(t *testing.T) {
input: `{
"type": "lvm",
"name": "myvg",
"minsize": 106300440576,
"minsize": "99 GiB",
"logical_volumes": [
{
"name": "homelv",
"mountpoint": "/home",
"label": "home",
"fs_type": "ext4",
"minsize": 2147483648
"minsize": "2 GiB"
},
{
"name": "loglv",
Expand Down Expand Up @@ -1227,7 +1227,7 @@ func TestPartitionCustomizationUnmarshalJSON(t *testing.T) {
},
{
Name: "loglv",
MinSize: 3 * datasizes.GiB,
MinSize: 3221225472,
FilesystemTypedCustomization: blueprint.FilesystemTypedCustomization{
Mountpoint: "/var/log",
Label: "log",
Expand All @@ -1238,11 +1238,11 @@ func TestPartitionCustomizationUnmarshalJSON(t *testing.T) {
},
},
},
"bad-type": {
"bad-type/unknown": {
input: `{"type":"not-a-partition-type"}`,
errorMsg: "JSON unmarshal: unknown partition type: not-a-partition-type",
},
"number": {
"bad-type/number": {
input: `{"type":5}`,
errorMsg: "JSON unmarshal: json: cannot unmarshal number into Go struct field .type of type string",
},
Expand Down

0 comments on commit 1461a24

Please sign in to comment.