Skip to content

Commit 1498149

Browse files
committed
Add testcase for the work-around in apache::mod:dav_svn
1 parent 183489e commit 1498149

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# frozen_string_literal: true
2+
3+
require 'spec_helper_acceptance'
4+
5+
describe 'apache::mod::dav_svn class' do
6+
context 'dav_svn module with authz_svn disabled' do
7+
pp = <<-MANIFEST
8+
class { 'apache': }
9+
class { 'apache::mod::dav_svn':
10+
authz_svn_enabled => false,
11+
}
12+
MANIFEST
13+
14+
it 'applies with no errors' do
15+
apply_manifest(pp, catch_failures: true)
16+
end
17+
18+
it 'applies a second time without changes' do
19+
apply_manifest(pp, catch_changes: true)
20+
end
21+
end
22+
23+
context 'dav_svn module with authz_svn enabled' do
24+
pp = <<-MANIFEST
25+
class { 'apache': }
26+
class { 'apache::mod::dav_svn':
27+
authz_svn_enabled => true,
28+
}
29+
MANIFEST
30+
31+
it 'applies with no errors' do
32+
apply_manifest(pp, catch_failures: true)
33+
end
34+
35+
it 'applies a second time without changes' do
36+
apply_manifest(pp, catch_changes: true)
37+
end
38+
end
39+
end

0 commit comments

Comments
 (0)