postfix_augeas_spec.rb 874 Bytes
Newer Older
Raphaël Pinson's avatar
Raphaël Pinson committed
1
2
3
4
require 'spec_helper'

describe 'postfix::augeas' do
  let (:facts) { {
Mickaël Canévet's avatar
Mickaël Canévet committed
5
6
    :augeasversion   => '1.2.0',
    :lsbdistcodename => 'wheezy',
Raphaël Pinson's avatar
Raphaël Pinson committed
7
8
    :operatingsystem => 'Debian',
    :osfamily        => 'Debian',
Mickaël Canévet's avatar
Mickaël Canévet committed
9
    :rubyversion     => '1.9.3',
Raphaël Pinson's avatar
Raphaël Pinson committed
10
  } }
Mickaël Canévet's avatar
Mickaël Canévet committed
11
12
13
  let :pre_condition do
    "include ::augeas"
  end
Raphaël Pinson's avatar
Raphaël Pinson committed
14
15
16
17
18
19
20
21
22
23
24
25
26
27

  it { should contain_augeas__lens('postfix_transport').with(
    :ensure      => 'present',
    :lens_source => 'puppet:///modules/postfix/lenses/postfix_transport.aug',
    :test_source => 'puppet:///modules/postfix/lenses/test_postfix_transport.aug',
    :stock_since => '1.0.0'
  ) }
  it { should contain_augeas__lens('postfix_virtual').with(
    :ensure      => 'present',
    :lens_source => 'puppet:///modules/postfix/lenses/postfix_virtual.aug',
    :test_source => 'puppet:///modules/postfix/lenses/test_postfix_virtual.aug',
    :stock_since => '1.0.0'
  ) }
end