-
Notifications
You must be signed in to change notification settings - Fork 484
Closed
Description
I'm trying to check my mount points with goss. It reports an error about missing mount options but the options are there.
$ cat mounts.yml
mount:
/zpool/media/download:
exists: true
opts:
- rw
- relatime
- posixacl
source: zpool/media/download
filesystem: zfs
/home:
exists: true
opts:
- rw
- noatime
- compress=zstd
- ssd
- discard
- subvol=@home
source: /dev/mapper/cryptroot
filesystem: btrfs
$ goss -g mounts.yml validate -f tap
1..8
ok 1 - Mount: /home: exists: matches expectation: [true]
not ok 2 - Mount: /home: opts: doesn't match, expect: [["rw","noatime","compress=zstd","ssd","discard","subvol=@home"]] found: [["rw","noatime"]]
ok 3 - Mount: /home: source: matches expectation: ["/dev/mapper/cryptroot"]
ok 4 - Mount: /home: filesystem: matches expectation: ["btrfs"]
ok 5 - Mount: /zpool/media/download: exists: matches expectation: [true]
not ok 6 - Mount: /zpool/media/download: opts: doesn't match, expect: [["rw","relatime","posixacl"]] found: [["rw","relatime"]]
ok 7 - Mount: /zpool/media/download: source: matches expectation: ["zpool/media/download"]
ok 8 - Mount: /zpool/media/download: filesystem: matches expectation: ["zfs"]
$ goss -v
goss version v0.3.7
Any idea what I'm doing wrong?