diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/platform_spec.rb | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/spec/unit/platform_spec.rb b/spec/unit/platform_spec.rb index 5b880dc0cf..9a65cbe878 100644 --- a/spec/unit/platform_spec.rb +++ b/spec/unit/platform_spec.rb @@ -286,8 +286,20 @@ describe Chef::Platform do end it "should use the Systemd service provider on SLES12" do - pmap = Chef::Platform.find("SUSE", "12.0") - pmap[:service].should eql(Chef::Provider::Service::Systemd) + pmap = Chef::Platform.find("SUSE", "12.0") + pmap[:service].should eql(Chef::Provider::Service::Systemd) + end + + it "should use the SUSE group provider on SLES11" do + 1.upto(3) do |sp| + pmap = Chef::Platform.find("SUSE", "11.#{sp}") + pmap[:group].should eql(Chef::Provider::Group::Suse) + end + end + + it "should use the Gpasswd group provider on SLES12" do + pmap = Chef::Platform.find("SUSE", "12.0") + pmap[:group].should eql(Chef::Provider::Group::Gpasswd) end end |