Loading spec/spec_helper_local.rb +43 −21 Original line number Diff line number Diff line Loading @@ -7,10 +7,7 @@ end # Set up freeradius::params with the redhat values, so we have something # to test for in the freeradius spec without defining separate tests for # every OS shared_context 'redhat_params' do let(:pre_condition) do [ 'class freeradius::params { redhat_params_class = 'class freeradius::params { $fr_basepath = "/etc/raddb" $fr_configdir = "mods-config" $fr_db_dir = "\${localstatedir}/lib/radiusd" Loading @@ -30,7 +27,13 @@ shared_context 'redhat_params' do $fr_wbpriv_user = "wbpriv" $fr_wpa_supplicant = "wpa_supplicant" $radacctdir = "\${logdir}/radacct" }' } include freeradius::params' shared_context 'redhat_params' do let(:pre_condition) do [ redhat_params_class, ] end end Loading @@ -40,7 +43,26 @@ end shared_context 'freeradius_default' do let(:pre_condition) do [ redhat_params_class, 'class { freeradius: }' ] end end # Some common dependencies for things based on names for redhat systems shared_context 'redhat_common_dependencies' do let(:pre_condition) do [ redhat_params_class, "package { 'freeradius': }", "group { 'radiusd': }", "service { 'radiusd': }", "file { '/etc/raddb': ensure => directory }", "file { '/etc/raddb/certs': ensure => directory }", "file { '/etc/raddb/clients.d': ensure => directory }", "file { '/etc/raddb/dictionary.d': ensure => directory }", "file { '/etc/raddb/mods-config': ensure => directory }", "file { '/etc/raddb/scripts': ensure => directory }", ] end end Loading
spec/spec_helper_local.rb +43 −21 Original line number Diff line number Diff line Loading @@ -7,10 +7,7 @@ end # Set up freeradius::params with the redhat values, so we have something # to test for in the freeradius spec without defining separate tests for # every OS shared_context 'redhat_params' do let(:pre_condition) do [ 'class freeradius::params { redhat_params_class = 'class freeradius::params { $fr_basepath = "/etc/raddb" $fr_configdir = "mods-config" $fr_db_dir = "\${localstatedir}/lib/radiusd" Loading @@ -30,7 +27,13 @@ shared_context 'redhat_params' do $fr_wbpriv_user = "wbpriv" $fr_wpa_supplicant = "wpa_supplicant" $radacctdir = "\${logdir}/radacct" }' } include freeradius::params' shared_context 'redhat_params' do let(:pre_condition) do [ redhat_params_class, ] end end Loading @@ -40,7 +43,26 @@ end shared_context 'freeradius_default' do let(:pre_condition) do [ redhat_params_class, 'class { freeradius: }' ] end end # Some common dependencies for things based on names for redhat systems shared_context 'redhat_common_dependencies' do let(:pre_condition) do [ redhat_params_class, "package { 'freeradius': }", "group { 'radiusd': }", "service { 'radiusd': }", "file { '/etc/raddb': ensure => directory }", "file { '/etc/raddb/certs': ensure => directory }", "file { '/etc/raddb/clients.d': ensure => directory }", "file { '/etc/raddb/dictionary.d': ensure => directory }", "file { '/etc/raddb/mods-config': ensure => directory }", "file { '/etc/raddb/scripts': ensure => directory }", ] end end