Skip to content

Commit

Permalink
Define facts to make spec tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Gale committed May 3, 2023
1 parent c19cd28 commit c8289a6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/classes/sysctl_base_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

describe 'sysctl::base', :type => :class do

let(:facts) do
{
:osfamily => 'RedHat',
:operatingsystemmajrelease => '8',
}
end

it { should create_class('sysctl::base') }
it { should contain_file('/etc/sysctl.d') }

Expand Down
7 changes: 7 additions & 0 deletions spec/defines/sysctl_init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
describe 'sysctl', :type => :define do
let(:title) { 'net.ipv4.ip_forward'}

let(:facts) do
{
:osfamily => 'RedHat',
:operatingsystemmajrelease => '8',
}
end

context 'present' do
let(:params) { { :value => '1' } }

Expand Down

0 comments on commit c8289a6

Please sign in to comment.