summaryrefslogtreecommitdiffstats
path: root/spec/fixtures/unit/provider/mount
diff options
context:
space:
mode:
authorDaniel Pittman <daniel@rimspace.net>2011-03-02 19:06:57 -0800
committerDaniel Pittman <daniel@rimspace.net>2011-03-03 16:29:37 -0800
commit0f6faf5e138e6d11e79b2430b4e6fa6139442509 (patch)
treeeba4624e042fbd367daa0a36c6d2e61c1d2ac03f /spec/fixtures/unit/provider/mount
parentf490526726a5f35437cda11652ae9977d89279e5 (diff)
downloadpuppet-0f6faf5e138e6d11e79b2430b4e6fa6139442509.tar.gz
puppet-0f6faf5e138e6d11e79b2430b4e6fa6139442509.tar.xz
puppet-0f6faf5e138e6d11e79b2430b4e6fa6139442509.zip
(#6582) Eliminate the old fakedata helper method.
This is replaced with the new my_fixture{,s} methods; old fixture data is ported into the spec tests at the same time, but left where it was against unit tests that require it. Reviewed-By: Nick Lewis <nick@puppetlabs.com>
Diffstat (limited to 'spec/fixtures/unit/provider/mount')
-rw-r--r--spec/fixtures/unit/provider/mount/parsed/freebsd.fstab7
-rw-r--r--spec/fixtures/unit/provider/mount/parsed/linux.fstab11
-rw-r--r--spec/fixtures/unit/provider/mount/parsed/solaris.fstab11
3 files changed, 29 insertions, 0 deletions
diff --git a/spec/fixtures/unit/provider/mount/parsed/freebsd.fstab b/spec/fixtures/unit/provider/mount/parsed/freebsd.fstab
new file mode 100644
index 000000000..a41104236
--- /dev/null
+++ b/spec/fixtures/unit/provider/mount/parsed/freebsd.fstab
@@ -0,0 +1,7 @@
+# Device Mountpoint FStype Options Dump Pass#
+/dev/ad0s1b none swap sw 0 0
+/dev/ad0s1a / ufs rw 1 1
+/dev/ad0s1e /tmp ufs rw 2 2
+/dev/ad0s1f /usr ufs rw 2 2
+/dev/ad0s1d /var ufs rw 2 2
+/dev/acd0 /cdrom cd9660 ro,noauto 0 0
diff --git a/spec/fixtures/unit/provider/mount/parsed/linux.fstab b/spec/fixtures/unit/provider/mount/parsed/linux.fstab
new file mode 100644
index 000000000..b1debff9c
--- /dev/null
+++ b/spec/fixtures/unit/provider/mount/parsed/linux.fstab
@@ -0,0 +1,11 @@
+# A sample fstab, typical for a Fedora system
+/dev/vg00/lv00 / ext3 defaults 1 1
+LABEL=/boot /boot ext3 defaults 1 2
+devpts /dev/pts devpts gid=5,mode=620 0
+tmpfs /dev/shm tmpfs defaults 0
+LABEL=/home /home ext3 defaults 1 2
+/home /homes auto bind 0 2
+proc /proc proc defaults 0 0
+/dev/vg00/lv01 /spare ext3 defaults 1 2
+sysfs /sys sysfs defaults 0 0
+LABEL=SWAP-hda6 swap swap defaults 0 0
diff --git a/spec/fixtures/unit/provider/mount/parsed/solaris.fstab b/spec/fixtures/unit/provider/mount/parsed/solaris.fstab
new file mode 100644
index 000000000..54afc898c
--- /dev/null
+++ b/spec/fixtures/unit/provider/mount/parsed/solaris.fstab
@@ -0,0 +1,11 @@
+#device device mount FS fsck mount mount
+#to mount to fsck point type pass at boot options
+#
+fd - /dev/fd fd - no -
+/proc - /proc proc - no -
+/dev/dsk/c0d0s0 /dev/rdsk/c0d0s0 / ufs 1 no -
+/dev/dsk/c0d0p0:boot - /boot pcfs - no -
+/devices - /devices devfs - no -
+ctfs - /system/contract ctfs - no -
+objfs - /system/object objfs - no -
+#swap - /tmp tmpfs - yes -