diff --git a/pkg/blueprint/disk_customizations.go b/pkg/blueprint/disk_customizations.go index 800063a2b9..09b92099fd 100644 --- a/pkg/blueprint/disk_customizations.go +++ b/pkg/blueprint/disk_customizations.go @@ -189,7 +189,7 @@ func decodePlain(v *PartitionCustomization, data []byte) error { return nil } -// descodeBtrfs decodes the data into a struct that only embeds the +// decodeBtrfs decodes the data into a struct that only embeds the // BtrfsVolumeCustomization with DisallowUnknownFields. This ensures that when // the type is btrfs, none of the fields for plain or lvm are used. func decodeBtrfs(v *PartitionCustomization, data []byte) error { diff --git a/pkg/blueprint/filesystem_customizations_test.go b/pkg/blueprint/filesystem_customizations_test.go index cb4860c525..fbb85f0817 100644 --- a/pkg/blueprint/filesystem_customizations_test.go +++ b/pkg/blueprint/filesystem_customizations_test.go @@ -50,13 +50,13 @@ func TestFilesystemCustomizationUnmarshalTOMLUnhappy(t *testing.T) { err: `toml: line 0: TOML unmarshal: mountpoint must be string, got "42" of type int64`, }, { - name: "misize nor string nor int", + name: "minsize nor string nor int", input: `mountpoint="/" minsize = true`, err: `toml: line 0: TOML unmarshal: error decoding minsize value for mountpoint "/": failed to convert value "true" to number`, }, { - name: "misize not parseable", + name: "minsize not parseable", input: `mountpoint="/" minsize = "20 KG"`, err: `toml: line 0: TOML unmarshal: error decoding minsize value for mountpoint "/": unknown data size units in string: 20 KG`, @@ -84,12 +84,12 @@ func TestFilesystemCustomizationUnmarshalJSONUnhappy(t *testing.T) { err: `JSON unmarshal: mountpoint must be string, got "42" of type float64`, }, { - name: "misize nor string nor int", + name: "minsize nor string nor int", input: `{"mountpoint":"/", "minsize": true}`, err: `JSON unmarshal: error decoding minsize value for mountpoint "/": failed to convert value "true" to number`, }, { - name: "misize not parseable", + name: "minsize not parseable", input: `{ "mountpoint": "/", "minsize": "20 KG"}`, err: `JSON unmarshal: error decoding minsize value for mountpoint "/": unknown data size units in string: 20 KG`, },