diff options
author | Matt Robinson <matt@puppetlabs.com> | 2011-05-16 16:10:21 -0700 |
---|---|---|
committer | Matt Robinson <matt@puppetlabs.com> | 2011-05-17 09:57:26 -0700 |
commit | 9da1454e71b8330e929ac5616eefa44388c90832 (patch) | |
tree | 8055105961771b9b95a4b888c0599b26000603d6 /spec/unit/provider | |
parent | 47e4ac948504aa6fbd3487ca1b1e19f3c8884a79 (diff) | |
download | puppet-9da1454e71b8330e929ac5616eefa44388c90832.tar.gz puppet-9da1454e71b8330e929ac5616eefa44388c90832.tar.xz puppet-9da1454e71b8330e929ac5616eefa44388c90832.zip |
(#7507) Add ability to filter Ruby 1.9 spec failures
By running:
rspec spec --tag ~@fails_on_ruby_1.9.2
We can now just run the specs that pass under Ruby 1.9. Obviously in
the long term we want to have all the specs passing, but until then we
need notification when we regress. From now on new code will be
required to pass under Ruby 1.9, and Jenkins will give us email
notification if it doesn't or if we break something that was already
working.
Reviewed-by: Daniel Pittman <daniel@puppetlabs.com>
Diffstat (limited to 'spec/unit/provider')
-rwxr-xr-x | spec/unit/provider/mount/parsed_spec.rb | 2 | ||||
-rwxr-xr-x | spec/unit/provider/package/macports_spec.rb | 4 | ||||
-rwxr-xr-x | spec/unit/provider/service/init_spec.rb | 2 | ||||
-rwxr-xr-x | spec/unit/provider/service/src_spec.rb | 10 | ||||
-rwxr-xr-x | spec/unit/provider/user/user_role_add_spec.rb | 4 | ||||
-rwxr-xr-x | spec/unit/provider/zpool/solaris_spec.rb | 2 |
6 files changed, 12 insertions, 12 deletions
diff --git a/spec/unit/provider/mount/parsed_spec.rb b/spec/unit/provider/mount/parsed_spec.rb index 0293e0758..c38a3cfcb 100755 --- a/spec/unit/provider/mount/parsed_spec.rb +++ b/spec/unit/provider/mount/parsed_spec.rb @@ -39,7 +39,7 @@ FSTAB # it_should_behave_like "all parsedfile providers", # provider_class, my_fixtures('*.fstab') - describe "on Solaris", :if => Facter.value(:operatingsystem) == 'Solaris' do + describe "on Solaris", :if => Facter.value(:operatingsystem) == 'Solaris', :'fails_on_ruby_1.9.2' => true do before :each do @example_line = "/dev/dsk/c0d0s0 /dev/rdsk/c0d0s0 \t\t / \t ufs 1 no\t-" diff --git a/spec/unit/provider/package/macports_spec.rb b/spec/unit/provider/package/macports_spec.rb index 7d1acd537..8e08242d8 100755 --- a/spec/unit/provider/package/macports_spec.rb +++ b/spec/unit/provider/package/macports_spec.rb @@ -30,7 +30,7 @@ describe provider_class do it { should be_versionable } end - describe "when listing all instances" do + describe "when listing all instances", :'fails_on_ruby_1.9.2' => true do it "should call port -q installed" do provider_class.expects(:port).with("-q", :installed).returns("") provider_class.instances @@ -111,7 +111,7 @@ describe provider_class do provider.update end - it "should execute port install if the port is not installed" do + it "should execute port install if the port is not installed", :'fails_on_ruby_1.9.2' => true do resource[:name] = resource_name resource[:ensure] = :present provider.expects(:query).returns("") diff --git a/spec/unit/provider/service/init_spec.rb b/spec/unit/provider/service/init_spec.rb index d64e0fc5d..8374594e7 100755 --- a/spec/unit/provider/service/init_spec.rb +++ b/spec/unit/provider/service/init_spec.rb @@ -46,7 +46,7 @@ describe provider_class do results = (@services-exclude).collect {|x| "#{x}_instance"} @class.get_services(@class.defpath, exclude).should == results end - it "should omit a single service from the exclude list" do + it "should omit a single service from the exclude list", :'fails_on_ruby_1.9.2' => true do exclude = 'two' (@services-exclude.to_a).each do |inst| @class.expects(:new).with{|hash| hash[:name] == inst}.returns("#{inst}_instance") diff --git a/spec/unit/provider/service/src_spec.rb b/spec/unit/provider/service/src_spec.rb index 17f49994e..b45ca0c7c 100755 --- a/spec/unit/provider/service/src_spec.rb +++ b/spec/unit/provider/service/src_spec.rb @@ -44,7 +44,7 @@ describe provider_class do @provider.stop end - it "should execute status and return running if the subsystem is active" do + it "should execute status and return running if the subsystem is active", :'fails_on_ruby_1.9.2' => true do sample_output = <<_EOF_ Subsystem Group PID Status myservice tcpip 1234 active @@ -54,7 +54,7 @@ _EOF_ @provider.status.should == :running end - it "should execute status and return stopped if the subsystem is inoperative" do + it "should execute status and return stopped if the subsystem is inoperative", :'fails_on_ruby_1.9.2' => true do sample_output = <<_EOF_ Subsystem Group PID Status myservice tcpip inoperative @@ -64,7 +64,7 @@ _EOF_ @provider.status.should == :stopped end - it "should execute status and return nil if the status is not known" do + it "should execute status and return nil if the status is not known", :'fails_on_ruby_1.9.2' => true do sample_output = <<_EOF_ Subsystem Group PID Status myservice tcpip randomdata @@ -74,7 +74,7 @@ _EOF_ @provider.status.should == nil end - it "should execute restart which runs refresh" do + it "should execute restart which runs refresh", :'fails_on_ruby_1.9.2' => true do sample_output = <<_EOF_ #subsysname:synonym:cmdargs:path:uid:auditid:standin:standout:standerr:action:multi:contact:svrkey:svrmtype:priority:signorm:sigforce:display:waittime:grpname: myservice:::/usr/sbin/inetd:0:0:/dev/console:/dev/console:/dev/console:-O:-Q:-K:0:0:20:0:0:-d:20:tcpip: @@ -84,7 +84,7 @@ _EOF_ @provider.restart end - it "should execute restart which runs stopsrc then startsrc" do + it "should execute restart which runs stopsrc then startsrc", :'fails_on_ruby_1.9.2' => true do sample_output = <<_EOF_ #subsysname:synonym:cmdargs:path:uid:auditid:standin:standout:standerr:action:multi:contact:svrkey:svrmtype:priority:signorm:sigforce:display:waittime:grpname: myservice::--no-daemonize:/usr/sbin/puppetd:0:0:/dev/null:/var/log/puppet.log:/var/log/puppet.log:-O:-Q:-S:0:0:20:15:9:-d:20::" diff --git a/spec/unit/provider/user/user_role_add_spec.rb b/spec/unit/provider/user/user_role_add_spec.rb index b17ba68c8..5f2fc306e 100755 --- a/spec/unit/provider/user/user_role_add_spec.rb +++ b/spec/unit/provider/user/user_role_add_spec.rb @@ -40,7 +40,7 @@ describe provider_class do end end - describe "when calling transition" do + describe "when calling transition", :'fails_on_ruby_1.9.2' => true do it "should return the type set to whatever is passed in" do @provider.expects(:command).with(:modify).returns("foomod") @provider.transition("bar").include?("type=bar") @@ -120,7 +120,7 @@ describe provider_class do @provider.expects(:execute).with { |args| args.include?("-o") } end - it "should add -o when the user is being created" do + it "should add -o when the user is being created", :'fails_on_ruby_1.9.2' => true do @provider.stubs(:password=) @provider.create end diff --git a/spec/unit/provider/zpool/solaris_spec.rb b/spec/unit/provider/zpool/solaris_spec.rb index 7e3048a7a..39ee9c9ba 100755 --- a/spec/unit/provider/zpool/solaris_spec.rb +++ b/spec/unit/provider/zpool/solaris_spec.rb @@ -150,7 +150,7 @@ describe provider_class do end end - describe "when calling create" do + describe "when calling create", :'fails_on_ruby_1.9.2' => true do before do @resource.stubs(:[]).with(:pool).returns("mypool") @provider.stubs(:zpool) |