summaryrefslogtreecommitdiff
path: root/spec/classes/openvpn_init_spec.rb
blob: cdfdea19834a38fdb30afd7692926531d3cd8ffb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'spec_helper'
 
describe 'openvpn', :type => :class do

  let (:facts) { { :concat_basedir => '/var/lib/puppet/concat' } }

  it { should create_class('openvpn') }
  it { should contain_class('concat::setup') }
  it { should contain_package('openvpn') }
  it { should contain_service('openvpn').with(
    'ensure'  => 'running',
    'enable'  => true
  ) }

  it { should contain_file('/etc/openvpn').with('ensure' => 'directory') }
  it { should contain_file('/etc/openvpn/keys').with('ensure' => 'directory') }

  it { should contain_concat__fragment('openvpn.default.header') }

end