summaryrefslogtreecommitdiffstats
path: root/spec/unit/provider/ssh_authorized_key/parsed_spec.rb
diff options
context:
space:
mode:
authorJosh Cooper <josh@puppetlabs.com>2011-07-27 17:04:45 -0700
committerJacob Helwig <jacob@puppetlabs.com>2011-08-19 13:52:57 -0700
commit925af9586a0e209a031c46c81225c6925837a49a (patch)
tree0d74b67dab9aca61b9342e2c4a6dc4de67d9c133 /spec/unit/provider/ssh_authorized_key/parsed_spec.rb
parent04965d7d7a9cd34265d41c5870e6043ff24b3e4d (diff)
downloadpuppet-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/provider/ssh_authorized_key/parsed_spec.rb')
-rwxr-xr-xspec/unit/provider/ssh_authorized_key/parsed_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/provider/ssh_authorized_key/parsed_spec.rb b/spec/unit/provider/ssh_authorized_key/parsed_spec.rb
index 8a7fe755c..a7798be54 100755
--- a/spec/unit/provider/ssh_authorized_key/parsed_spec.rb
+++ b/spec/unit/provider/ssh_authorized_key/parsed_spec.rb
@@ -5,7 +5,7 @@ require 'puppet_spec/files'
provider_class = Puppet::Type.type(:ssh_authorized_key).provider(:parsed)
-describe provider_class do
+describe provider_class, :unless => Puppet.features.microsoft_windows? do
include PuppetSpec::Files
before :each do
@@ -77,7 +77,7 @@ describe provider_class do
end
end
-describe provider_class do
+describe provider_class, :unless => Puppet.features.microsoft_windows? do
before :each do
@resource = Puppet::Type.type(:ssh_authorized_key).new(:name => "foo", :user => "random_bob")
@@ -128,7 +128,7 @@ describe provider_class do
end
end
- describe "and a user has been specified with no target", :fails_on_windows => true do
+ describe "and a user has been specified with no target" do
before :each do
@resource[:user] = "nobody"
#
@@ -189,7 +189,7 @@ describe provider_class do
end
end
- describe "and a invalid user has been specified with no target", :fails_on_windows => true do
+ describe "and a invalid user has been specified with no target" do
it "should catch an exception and raise a Puppet error" do
@resource[:user] = "thisusershouldnotexist"