diff options
| author | Markus Roberts <Markus@reality.com> | 2010-10-15 12:43:06 -0700 |
|---|---|---|
| committer | Markus Roberts <Markus@reality.com> | 2010-11-16 11:24:39 -0800 |
| commit | 866205624873d0a6ab17c03061e89d74a3a77019 (patch) | |
| tree | 5ffcd6dc4af7d8bc6f07e29ec715b6ea21367bc2 /spec/unit/provider/mount_spec.rb | |
| parent | fbb096a1eb6394da3199c03645986a1315132272 (diff) | |
| download | puppet-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-x | spec/unit/provider/mount_spec.rb | 9 |
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") |
