Skip to content

Commit

Permalink
interfaces/builtin: updated mount-control unit tests to reflect alpha…
Browse files Browse the repository at this point in the history
…betization

Signed-off-by: Oliver Calder <oliver.calder@canonical.com>
  • Loading branch information
olivercalder authored and mvo5 committed May 25, 2023
1 parent 866ac41 commit a91821c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions interfaces/builtin/mount_control_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ func (s *MountControlInterfaceSuite) TestAppArmorSpec(c *C) {

expectedMountLine3 := `mount fstype=(` +
`aufs,autofs,btrfs,ext2,ext3,ext4,hfs,iso9660,jfs,msdos,ntfs,ramfs,` +
`reiserfs,squashfs,tmpfs,ubifs,udf,ufs,vfat,zfs,xfs` +
`reiserfs,squashfs,tmpfs,ubifs,udf,ufs,vfat,xfs,zfs` +
`) options=(ro) "/dev/sda{0,1}" -> "/var/snap/consumer/common/**{,/}",`
c.Assert(spec.SnippetForTag("snap.consumer.app"), testutil.Contains, expectedMountLine3)
expectedUmountLine3 := `umount "/var/snap/consumer/common/**{,/}",`
Expand All @@ -355,7 +355,7 @@ func (s *MountControlInterfaceSuite) TestAppArmorSpec(c *C) {

expectedMountLine5 := `mount fstype=(` +
`aufs,autofs,btrfs,ext2,ext3,ext4,hfs,iso9660,jfs,msdos,ntfs,ramfs,` +
`reiserfs,squashfs,tmpfs,ubifs,udf,ufs,vfat,zfs,xfs` +
`reiserfs,squashfs,tmpfs,ubifs,udf,ufs,vfat,xfs,zfs` +
`) options=(rw) "/dev/sd[abc]" -> "/media/someuser/**{,/}",`
c.Assert(spec.SnippetForTag("snap.consumer.app"), testutil.Contains, expectedMountLine5)
expectedUmountLine5 := `umount "/media/someuser/**{,/}",`
Expand Down

0 comments on commit a91821c

Please sign in to comment.