aboutsummaryrefslogtreecommitdiff
path: root/spec/classes
diff options
context:
space:
mode:
authorAdam Jahn <ajjahn@gmail.com>2015-12-07 16:18:42 -0500
committerAdam Jahn <ajjahn@gmail.com>2015-12-07 16:18:42 -0500
commitf2e9e5f32e0af0d83d8380b94decc522ff87fa30 (patch)
tree48b794ef7f379e878d39a8b16b0ad2d3e694677a /spec/classes
parent95cb988077ec2f5c79e4a2bd67d4b252fdc8739c (diff)
downloadpuppet-samba-f2e9e5f32e0af0d83d8380b94decc522ff87fa30.tar.gz
puppet-samba-f2e9e5f32e0af0d83d8380b94decc522ff87fa30.tar.bz2
Add support for Debian 8. closes #47
Diffstat (limited to 'spec/classes')
-rw-r--r--spec/classes/samba__server__service_spec.rb14
1 files changed, 12 insertions, 2 deletions
diff --git a/spec/classes/samba__server__service_spec.rb b/spec/classes/samba__server__service_spec.rb
index ada7f21..4352ec2 100644
--- a/spec/classes/samba__server__service_spec.rb
+++ b/spec/classes/samba__server__service_spec.rb
@@ -7,8 +7,18 @@ describe 'samba::server::service' do
it { should contain_service('samba').with_require('Class[Samba::Server::Config]') }
context 'Debian' do
- let(:facts) {{ :osfamily => 'Debian', :operatingsystem => 'Debian' }}
- it { should contain_service('samba') }
+ context 'wheezy' do
+ let(:facts) {{ :osfamily => 'Debian',
+ :operatingsystem => 'Debian',
+ :operatingsystemmajrelease => '7' }}
+ it { should contain_service('samba') }
+ end
+ context 'jessie' do
+ let(:facts) {{ :osfamily => 'Debian',
+ :operatingsystem => 'Debian',
+ :operatingsystemmajrelease => '8' }}
+ it { should contain_service('smbd') }
+ end
end
context 'Ubuntu' do