aboutsummaryrefslogtreecommitdiff
path: root/spec/classes/samba__server_spec.rb
blob: fce10bbcd9ec0a4095430f4cbab178481af114b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
require 'spec_helper'

describe 'samba::server' do
  let(:facts) {{ :osfamily => 'Debian' }}

  it { should contain_class('samba::server::install') }
  it { should contain_class('samba::server::config') }
  it { should contain_class('samba::server::service') }

  it { should contain_samba__server__option('interfaces') }
  it { should contain_samba__server__option('bind interfaces only') }
  it { should contain_samba__server__option('security') }
  it { should contain_samba__server__option('server string') }
  it { should contain_samba__server__option('unix password sync') }
  it { should contain_samba__server__option('workgroup') }
  it { should contain_samba__server__option('socket_options') }
  it { should contain_samba__server__option('deadtime') }
  it { should contain_samba__server__option('keepalive') }
  it { should contain_samba__server__option('load_printers') }
  it { should contain_samba__server__option('printing') }
  it { should contain_samba__server__option('printcap_name') }
  it { should contain_samba__server__option('disable_spoolss') }

  it { should contain_file('/sbin/check_samba_user').with_owner('root') }
  it { should contain_file('/sbin/add_samba_user').with_owner('root') }
end