diff --git a/spec/classes/letsencrypt_install_spec.rb b/spec/classes/letsencrypt_install_spec.rb index 1cf15d53..ad03bbf8 100644 --- a/spec/classes/letsencrypt_install_spec.rb +++ b/spec/classes/letsencrypt_install_spec.rb @@ -29,6 +29,7 @@ end describe 'with configure_epel => true' do + let(:facts) { { osfamily: 'RedHat', operatingsystem: 'RedHat', operatingsystemrelease: '7.0.1406', operatingsystemmajrelease: '7' } } let(:additional_params) { { install_method: 'package', configure_epel: true } } it { is_expected.to compile } diff --git a/spec/classes/letsencrypt_spec.rb b/spec/classes/letsencrypt_spec.rb index 7e01b052..c0bd74c3 100644 --- a/spec/classes/letsencrypt_spec.rb +++ b/spec/classes/letsencrypt_spec.rb @@ -109,7 +109,7 @@ end context 'on unknown operating systems' do - let(:facts) { { osfamily: 'Darwin', path: '/usr/bin' } } + let(:facts) { { osfamily: 'Darwin', operatingsystem: 'Darwin', operatingsystemrelease: '14.5.0', path: '/usr/bin' } } let(:params) { { email: 'foo@example.com' } } describe 'with defaults' do @@ -122,7 +122,7 @@ end context 'on EL7 operating system' do - let(:facts) { { osfamily: 'RedHat', operatingsystemrelease: '7.2', path: '/usr/bin' } } + let(:facts) { { osfamily: 'RedHat', operatingsystem: 'RedHat', operatingsystemrelease: '7.2', path: '/usr/bin' } } let(:params) { { email: 'foo@example.com' } } describe 'with defaults' do