summaryrefslogtreecommitdiff
path: root/puppet/modules/openvpn/spec/classes
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2016-07-21 12:13:33 -0700
committerelijah <elijah@riseup.net>2016-07-21 12:13:33 -0700
commit2df23a682b9a1a99502c79d7112dcefeecf63619 (patch)
tree80b3acab77cad9323f21bad035f31f660fad8ddd /puppet/modules/openvpn/spec/classes
parentd6719731dce8ee7e048a16a447a426abcaa44f24 (diff)
git subrepo clone https://leap.se/git/puppet_openvpn puppet/modules/openvpn
subrepo: subdir: "puppet/modules/openvpn" merged: "ba7ec7a" upstream: origin: "https://leap.se/git/puppet_openvpn" branch: "master" commit: "ba7ec7a" git-subrepo: version: "0.3.0" origin: "https://github.com/ingydotnet/git-subrepo" commit: "cb2995b"
Diffstat (limited to 'puppet/modules/openvpn/spec/classes')
-rw-r--r--puppet/modules/openvpn/spec/classes/openvpn_init_spec.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/puppet/modules/openvpn/spec/classes/openvpn_init_spec.rb b/puppet/modules/openvpn/spec/classes/openvpn_init_spec.rb
new file mode 100644
index 00000000..cdfdea19
--- /dev/null
+++ b/puppet/modules/openvpn/spec/classes/openvpn_init_spec.rb
@@ -0,0 +1,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