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

describe 'postfix::satellite' do
4
  let (:node) { 'foo.example.com' }
5
  let (:facts) { {
Mickaël Canévet's avatar
Mickaël Canévet committed
6
7
8
9
    :augeasversion   => '1.2.0',
    :lsbdistcodename => 'wheezy',
    :osfamily        => 'Debian',
    :rubyversion     => '1.9.3',
10
  } }
Mickaël Canévet's avatar
Mickaël Canévet committed
11
12
13
14
15
16
17
18
  let :pre_condition do
    " class { 'augeas': }
    class { 'postfix':
      relayhost     => 'foo',
      mydestination => 'bar',
      mynetworks    => 'baz',
    }"
  end
Mickaël Canévet's avatar
Mickaël Canévet committed
19
  it { should contain_class('postfix::mta') }
20
21
22
23
24
  it { should contain_postfix__virtual('@foo.example.com').with(
    :ensure      => 'present',
    :destination => 'root'
  ) }
end