diff options
author | kaustubh-d <kaustubh@clogeny.com> | 2013-08-09 10:24:25 -0500 |
---|---|---|
committer | adamedx <adamed@opscode.com> | 2013-08-19 21:24:42 -0700 |
commit | f755e911a2f58ef461dce5f773bc13f4b71be22f (patch) | |
tree | f07efe4e8719bebe7b8fb836b78bd2cdc5387015 /spec/functional/resource/link_spec.rb | |
parent | bae70fad595be4810b0fc29cc892153279dd2d8b (diff) | |
download | chef-f755e911a2f58ef461dce5f773bc13f4b71be22f.tar.gz |
aix does not allow link creation to nonexistent files.
Diffstat (limited to 'spec/functional/resource/link_spec.rb')
-rw-r--r-- | spec/functional/resource/link_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/functional/resource/link_spec.rb b/spec/functional/resource/link_spec.rb index fd13353bad..36bc858a74 100644 --- a/spec/functional/resource/link_spec.rb +++ b/spec/functional/resource/link_spec.rb @@ -340,7 +340,7 @@ describe Chef::Resource::Link do it 'create errors out' do if windows? lambda { resource.run_action(:create) }.should raise_error(Errno::EACCES) - elsif os_x? or solaris? or freebsd? + elsif os_x? or solaris? or freebsd? or aix? lambda { resource.run_action(:create) }.should raise_error(Errno::EPERM) else lambda { resource.run_action(:create) }.should raise_error(Errno::EISDIR) @@ -502,7 +502,7 @@ describe Chef::Resource::Link do it 'errors out' do if windows? lambda { resource.run_action(:create) }.should raise_error(Errno::EACCES) - elsif os_x? or solaris? or freebsd? + elsif os_x? or solaris? or freebsd? or aix? lambda { resource.run_action(:create) }.should raise_error(Errno::EPERM) else lambda { resource.run_action(:create) }.should raise_error(Errno::EISDIR) @@ -554,7 +554,7 @@ describe Chef::Resource::Link do resource.run_action(:create) File.exists?(target_file).should be_true # OS X gets angry about this sort of link. Bug in OS X, IMO. - pending('OS X/FreeBSD symlink? and readlink working on hard links to symlinks', :if => (os_x? or freebsd?)) do + pending('OS X/FreeBSD/AIX symlink? and readlink working on hard links to symlinks', :if => (os_x? or freebsd? or aix?)) do symlink?(target_file).should be_true readlink(target_file).should == canonicalize(@other_target) end @@ -571,7 +571,7 @@ describe Chef::Resource::Link do end context 'and the link does not yet exist' do it 'links to the target file' do - pending('OS X/FreeBSD fails to create hardlinks to broken symlinks', :if => (os_x? or freebsd?)) do + pending('OS X/FreeBSD/AIX fails to create hardlinks to broken symlinks', :if => (os_x? or freebsd? or aix?)) do resource.run_action(:create) # Windows and Unix have different definitions of exists? here, and that's OK. if windows? |