Skip to content

Commit

Permalink
fix: fstab tests
Browse files Browse the repository at this point in the history
  • Loading branch information
slntopp committed Dec 11, 2024
1 parent 78ab83c commit 22cb109
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions providers/os/resources/fstab_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,23 @@ UUID=b411dc99-f0a0-4c87-9e05-184977be8539 /home ext4 defaults 0 2`
Device: "UUID=0a3407de-014b-458b-b5c1-848e92a327a3",
Mountpoint: "/",
Fstype: "ext4",
Options: "defaults",
Options: []string{"defaults"},
Dump: ptr.To(0),
Fsck: ptr.To(1),
}, entries[0])
require.Equal(t, FstabEntry{
Device: "UUID=f9fe0b69-a280-415d-a03a-a32752370dee",
Mountpoint: "none",
Fstype: "swap",
Options: "defaults",
Options: []string{"defaults"},
Dump: ptr.To(0),
Fsck: ptr.To(0),
}, entries[1])
require.Equal(t, FstabEntry{
Device: "UUID=b411dc99-f0a0-4c87-9e05-184977be8539",
Mountpoint: "/home",
Fstype: "ext4",
Options: "defaults",
Options: []string{"defaults"},
Dump: ptr.To(0),
Fsck: ptr.To(2),
}, entries[2])
Expand All @@ -65,19 +65,19 @@ UUID=b411dc99-f0a0-4c87-9e05-184977be8539 /home ext4 defaults`
Device: "UUID=0a3407de-014b-458b-b5c1-848e92a327a3",
Mountpoint: "/",
Fstype: "ext4",
Options: "defaults",
Options: []string{"defaults"},
}, entries[0])
require.Equal(t, FstabEntry{
Device: "UUID=f9fe0b69-a280-415d-a03a-a32752370dee",
Mountpoint: "none",
Fstype: "swap",
Options: "defaults",
Options: []string{"defaults"},
}, entries[1])
require.Equal(t, FstabEntry{
Device: "UUID=b411dc99-f0a0-4c87-9e05-184977be8539",
Mountpoint: "/home",
Fstype: "ext4",
Options: "defaults",
Options: []string{"defaults"},
}, entries[2])
})

Expand All @@ -97,23 +97,23 @@ LABEL=UEFI /boot/efi vfat umask=0077 0 1`
Device: "LABEL=cloudimg-rootfs",
Mountpoint: "/",
Fstype: "ext4",
Options: "discard,commit=30,errors=remount-ro",
Options: []string{"discard,commit=30,errors=remount-ro"},
Dump: ptr.To(0),
Fsck: ptr.To(1),
}, entries[0])
require.Equal(t, FstabEntry{
Device: "LABEL=BOOT",
Mountpoint: "/boot",
Fstype: "ext4",
Options: "defaults",
Options: []string{"defaults"},
Dump: ptr.To(0),
Fsck: ptr.To(2),
}, entries[1])
require.Equal(t, FstabEntry{
Device: "LABEL=UEFI",
Mountpoint: "/boot/efi",
Fstype: "vfat",
Options: "umask=0077",
Options: []string{"umask=0077"},
Dump: ptr.To(0),
Fsck: ptr.To(1),
}, entries[2])
Expand Down

0 comments on commit 22cb109

Please sign in to comment.