postfix_satellite_spec.rb 678 Bytes
Newer Older
1
2
3
require 'spec_helper'

describe 'postfix::satellite' do
Mickaël Canévet's avatar
Mickaël Canévet committed
4
5
6
7
8
9
10
11
  let :pre_condition do
    " class { 'augeas': }
    class { 'postfix':
      relayhost     => 'foo',
      mydestination => 'bar',
      mynetworks    => 'baz',
    }"
  end
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

  on_supported_os.each do |os, facts|
    context "on #{os}" do
      let(:facts) do
        facts.merge({
          :augeasversion => '1.2.0',
        })
      end

      it { is_expected.to compile.with_all_deps }
      it { is_expected.to contain_class('postfix::mta') }
      it { is_expected.to contain_postfix__virtual('@foo.example.com').with(
        :ensure      => 'present',
        :destination => 'root'
      ) }
    end
  end
29
end