postfix_mta_spec.rb 541 Bytes
Newer Older
1
2
3
4
require 'spec_helper'

describe 'postfix::mta' do
  let (:facts) { {
Mickaël Canévet's avatar
Mickaël Canévet committed
5
6
    :lsbdistcodename => 'wheezy',
    :osfamily        => 'Debian',
7
  } }
Mickaël Canévet's avatar
Mickaël Canévet committed
8
9
10
11
12
13
14
  let :pre_condition do
    "class { 'postfix':
      mydestination => 'bar',
      mynetworks    => 'baz',
      relayhost     => 'foo',
    }"
  end
15

Raphaël Pinson's avatar
Raphaël Pinson committed
16
17
18
  it { is_expected.to contain_postfix__config('mydestination').with_value('bar') }
  it { is_expected.to contain_postfix__config('mynetworks').with_value('baz') }
  it { is_expected.to contain_postfix__config('relayhost').with_value('foo') }
19
end