summaryrefslogtreecommitdiffstats
path: root/spec/unit/provider/mount_spec.rb
diff options
context:
space:
mode:
authorMarkus Roberts <Markus@reality.com>2010-10-15 12:43:06 -0700
committerMarkus Roberts <Markus@reality.com>2010-11-16 11:24:39 -0800
commit866205624873d0a6ab17c03061e89d74a3a77019 (patch)
tree5ffcd6dc4af7d8bc6f07e29ec715b6ea21367bc2 /spec/unit/provider/mount_spec.rb
parentfbb096a1eb6394da3199c03645986a1315132272 (diff)
downloadpuppet-866205624873d0a6ab17c03061e89d74a3a77019.tar.gz
puppet-866205624873d0a6ab17c03061e89d74a3a77019.tar.xz
puppet-866205624873d0a6ab17c03061e89d74a3a77019.zip
Fix for #4279 -- mount detection on HP-UX
This is based on the discussion on ticket, simplified slightly and with test adjustment.
Diffstat (limited to 'spec/unit/provider/mount_spec.rb')
-rwxr-xr-xspec/unit/provider/mount_spec.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/spec/unit/provider/mount_spec.rb b/spec/unit/provider/mount_spec.rb
index 55a52b44a..b034214ee 100755
--- a/spec/unit/provider/mount_spec.rb
+++ b/spec/unit/provider/mount_spec.rb
@@ -113,7 +113,14 @@ describe Puppet::Provider::Mount do
@mounter.should be_mounted
end
- it "should match ' on <name>' if the operating system is not Darwin or Solaris" do
+ it "should match '^<name> on' if the operating system is HP-UX" do
+ Facter.stubs(:value).with("operatingsystem").returns("HP-UX")
+ @mounter.expects(:mountcmd).returns("/ on /dev/dsk/whatever\n/var on /dev/dsk/other")
+
+ @mounter.should be_mounted
+ end
+
+ it "should match ' on <name>' if the operating system is not Darwin, Solaris, or HP-UX" do
Facter.stubs(:value).with("operatingsystem").returns("Debian")
@mounter.expects(:mountcmd).returns("/dev/dsk/whatever on / and stuff\n/dev/other/disk on /var and stuff")