aboutsummaryrefslogtreecommitdiff
path: root/spec/classes/samba__server__ads_spec.rb
blob: a174bef6fc5a788100db77253b1cc60e4f37457e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'spec_helper'

describe 'samba::server::ads', :type => :class do
  let( :facts ) { { :osfamily => 'Debian' } }
  context "Default config" do
    it { should contain_exec('join-active-directory') }
  end

  context "No join" do
    let ( :params ) { { 'perform_join' => false }}
    it { should_not contain_exec('join-active-directory') }
  end

  context "Join 'forced'" do
    let ( :params ) { { 'perform_join' => true }}
    it { should contain_exec('join-active-directory') }
  end
end