summaryrefslogtreecommitdiff
path: root/puppet/modules/site_apache/spec
diff options
context:
space:
mode:
Diffstat (limited to 'puppet/modules/site_apache/spec')
-rw-r--r--puppet/modules/site_apache/spec/classes/extensions.rb7
-rw-r--r--puppet/modules/site_apache/spec/spec_helper.rb6
2 files changed, 13 insertions, 0 deletions
diff --git a/puppet/modules/site_apache/spec/classes/extensions.rb b/puppet/modules/site_apache/spec/classes/extensions.rb
new file mode 100644
index 00000000..164034c2
--- /dev/null
+++ b/puppet/modules/site_apache/spec/classes/extensions.rb
@@ -0,0 +1,7 @@
+require File.expand_path(File.join(File.dirname(__FILE__),'../spec_helper'))
+
+describe 'site_apache::common::extensions' do
+ it "should include apache autostart" do
+ should contain_file('/etc/systemd/system/apache2.service.d/auto_restart.conf').with_source('puppet:///modules/site_apache/apache_auto_restart.conf')
+ end
+end
diff --git a/puppet/modules/site_apache/spec/spec_helper.rb b/puppet/modules/site_apache/spec/spec_helper.rb
new file mode 100644
index 00000000..dea9e892
--- /dev/null
+++ b/puppet/modules/site_apache/spec/spec_helper.rb
@@ -0,0 +1,6 @@
+require 'rspec-puppet'
+
+RSpec.configure do |c|
+ c.module_path = File.expand_path(File.join(File.dirname(__FILE__), '..', '..'))
+ c.color = true
+end