Commit 86ef47ee authored by Matthieu FAURE's avatar Matthieu FAURE

FEAT Have functional unit-tests for apache class

parent ac42161e
Pipeline #6488 passed with stages
in 14 minutes and 40 seconds
......@@ -6,9 +6,14 @@ fixtures:
stdlib: "puppetlabs/stdlib"
archive: "puppet/archive"
redis: "puppet-redis"
apt: "puppetlabs-apt" # for Redis
apt: "puppetlabs-apt" # for Redis + PHP
augeasproviders_core: "herculesteam-augeasproviders_core" # for Redis
augeasproviders_sysctl: "herculesteam-augeasproviders_sysctl" # for Redis
epel: "stahnma-epel" # for Redis
mariadb: "puppetlabs-mysql"
translate: "puppetlabs/translate" # for Mysql
translate: "puppetlabs/translate" # for Mysql + concat
apache: "puppetlabs-apache"
concat: "puppetlabs-concat" # for Apache
php: "puppet-php"
zyprepo: "puppet-zypprepo" # for PHP
inifile: "puppetlabs-inifile" # for PHP
require 'spec_helper'
describe 'nextcloud::apache' do
on_supported_os.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }
let(:pre_condition) do
"
class { 'nextcloud':
db_password => 'S3cr#TPassw0rdz',
nc_admin_username => 'ncadmin',
nc_admin_password => 'ncadminPassword',
manage_apache => true,
}
"
end
it { is_expected.to compile }
it { is_expected.to contain_class('php') }
it { is_expected.to contain_class('apache::mod::proxy') }
it { is_expected.to contain_class('apache::mod::proxy_fcgi') }
it { is_expected.to contain_apache__vhost('nextcloud.example.org') }
end
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment