Skip to content

Commit

Permalink
add spec test for (default) docroot directory
Browse files Browse the repository at this point in the history
, which is now a parameter to init.pp
  • Loading branch information
igalic committed Nov 7, 2014
1 parent e4aadd5 commit 38d7970
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions spec/classes/apache_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
it { is_expected.to contain_user("www-data") }
it { is_expected.to contain_group("www-data") }
it { is_expected.to contain_class("apache::service") }
it { is_expected.to contain_file("/var/www").with(
'ensure' => 'directory',
)
}
it { is_expected.to contain_file("/etc/apache2/sites-enabled").with(
'ensure' => 'directory',
'recurse' => 'true',
Expand Down Expand Up @@ -225,6 +229,10 @@
it { is_expected.to contain_user("apache") }
it { is_expected.to contain_group("apache") }
it { is_expected.to contain_class("apache::service") }
it { is_expected.to contain_file("/var/www/html").with(
'ensure' => 'directory',
)
}
it { is_expected.to contain_file("/etc/httpd/conf.d").with(
'ensure' => 'directory',
'recurse' => 'true',
Expand Down Expand Up @@ -498,6 +506,10 @@
it { is_expected.to contain_user("www") }
it { is_expected.to contain_group("www") }
it { is_expected.to contain_class("apache::service") }
it { is_expected.to contain_file("/usr/local/www/apache22/data").with(
'ensure' => 'directory',
)
}
it { is_expected.to contain_file("/usr/local/etc/apache22/Vhosts").with(
'ensure' => 'directory',
'recurse' => 'true',
Expand Down

0 comments on commit 38d7970

Please sign in to comment.