Mercurial > repos > other > Puppet
view modules/apache/spec/classes/mod/dev_spec.rb @ 257:675c1cc61eaf
Update Apache module to get CentOS 8 support
Unfortunately it only fixes some bits. mod_wsgi still needs
other approaches
This also overrides the vhost modification to make them come last
in the import order (after module loading)
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 22 Dec 2019 14:43:29 -0500 |
parents | 37675581a273 |
children | d9352a684e62 |
line wrap: on
line source
require 'spec_helper' describe 'apache::mod::dev', :type => :class do let(:pre_condition) {[ 'include apache' ]} it_behaves_like "a mod class, without including apache" [ ['RedHat', '6', 'Santiago', 'Linux'], ['Debian', '6', 'squeeze', 'Linux'], ['FreeBSD', '9', 'FreeBSD', 'FreeBSD'], ].each do |osfamily, operatingsystemrelease, lsbdistcodename, kernel| context "on a #{osfamily} OS" do let :facts do { :lsbdistcodename => lsbdistcodename, :osfamily => osfamily, :operatingsystem => osfamily, :operatingsystemrelease => operatingsystemrelease, :is_pe => false, :concat_basedir => '/foo', :id => 'root', :path => '/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin', :kernel => kernel } end it { is_expected.to contain_class('apache::dev') } end end end