postfix_augeas_spec.rb 926 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',
10
    :path            => '/foo/bar',
Raphaël Pinson's avatar
Raphaël Pinson committed
11
  } }
Mickaël Canévet's avatar
Mickaël Canévet committed
12
13
14
  let :pre_condition do
    "include ::augeas"
  end
Raphaël Pinson's avatar
Raphaël Pinson committed
15

Raphaël Pinson's avatar
Raphaël Pinson committed
16
  it { is_expected.to contain_augeas__lens('postfix_transport').with(
Raphaël Pinson's avatar
Raphaël Pinson committed
17
18
19
20
21
    :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'
  ) }
Raphaël Pinson's avatar
Raphaël Pinson committed
22
  it { is_expected.to contain_augeas__lens('postfix_virtual').with(
Raphaël Pinson's avatar
Raphaël Pinson committed
23
24
25
26
27
28
    :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