diff options
author | Josh Cooper <josh@puppetlabs.com> | 2011-07-27 17:04:45 -0700 |
---|---|---|
committer | Jacob Helwig <jacob@puppetlabs.com> | 2011-08-19 13:52:57 -0700 |
commit | 925af9586a0e209a031c46c81225c6925837a49a (patch) | |
tree | 0d74b67dab9aca61b9342e2c4a6dc4de67d9c133 /spec/unit/type/ssh_authorized_key_spec.rb | |
parent | 04965d7d7a9cd34265d41c5870e6043ff24b3e4d (diff) | |
download | puppet-925af9586a0e209a031c46c81225c6925837a49a.tar.gz puppet-925af9586a0e209a031c46c81225c6925837a49a.tar.xz puppet-925af9586a0e209a031c46c81225c6925837a49a.zip |
(#8663) Disable spec tests for unsupported functionality on Windows
The mount, shell, and ssh_authorized_key types are not supported on
Windows, so these spec tests have been disabled when running on
Windows.
One of the compiler spec tests fails on Windows because
Puppet::Util.execute attempts to execute a program named "git rev-parse
HEAD". This has different semantics than Unix, where the command is
splatted, Kernel.exec(*command). Since this truly is a Windows bug, I
removed the fails_on_windows tag and updated ticket #8410.
Reviewed-by: Jacob Helwig <jacob@puppetlabs.com>
(cherry picked from commit d9ce88d10707268fe41c8f3ad1166137fe8e202f)
Diffstat (limited to 'spec/unit/type/ssh_authorized_key_spec.rb')
-rwxr-xr-x | spec/unit/type/ssh_authorized_key_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/type/ssh_authorized_key_spec.rb b/spec/unit/type/ssh_authorized_key_spec.rb index 41413763c..db58dc9f3 100755 --- a/spec/unit/type/ssh_authorized_key_spec.rb +++ b/spec/unit/type/ssh_authorized_key_spec.rb @@ -3,7 +3,7 @@ require 'spec_helper' ssh_authorized_key = Puppet::Type.type(:ssh_authorized_key) -describe ssh_authorized_key do +describe ssh_authorized_key, :unless => Puppet.features.microsoft_windows? do include PuppetSpec::Files before do @@ -182,7 +182,7 @@ describe ssh_authorized_key do proc { @class.new(:name => "whev", :type => :rsa, :target => "/tmp/here") }.should_not raise_error end - it "should use the user's path if not explicitly specified", :fails_on_windows => true do + it "should use the user's path if not explicitly specified" do @class.new(:name => "whev", :user => 'root').should(:target).should == File.expand_path("~root/.ssh/authorized_keys") end @@ -228,7 +228,7 @@ describe ssh_authorized_key do end - describe "when user is specified", :unless => Puppet.features.microsoft_windows? do + describe "when user is specified" do it "should determine target" do resource = @class.create( |