diff options
author | Serdar Sutay <serdar@opscode.com> | 2014-10-10 23:34:25 -0700 |
---|---|---|
committer | Serdar Sutay <serdar@opscode.com> | 2014-10-10 23:34:25 -0700 |
commit | 0cbe1b778df3b6e10b7e7552d3b0699c843465ce (patch) | |
tree | 93c685c38943b80e468235d5d324338847510cb4 /spec | |
parent | ed9fdcb3e1f0e40f88f74a538c64981c29d74b66 (diff) | |
parent | b5a9bfd10ad06311c1a8d0f4c296378bb9103978 (diff) | |
download | chef-0cbe1b778df3b6e10b7e7552d3b0699c843465ce.tar.gz |
Merge pull request #2211 from opscode/sersut/rebase-chef-2187
Rebase CHEF-2187: change default group mapping for SLES to gpasswd
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 |