Skip to content

Commit

Permalink
ensure facts are in specs
Browse files Browse the repository at this point in the history
  • Loading branch information
nate st. germain committed Feb 8, 2019
1 parent 5233479 commit b5c183f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/classes/configure_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
end

context 'on Amazon Linux' do
let(:facts) { {'os' => { 'release' => { 'major' => '2'}, 'name' => 'Amazon', 'family' => 'RedHat'} } }
let(:facts) { {'operatingsystemmajrelease' => '2', 'os' => { 'release' => { 'major' => '2'}, 'name' => 'Amazon', 'family' => 'RedHat'} } }
let(:pre_condition) { "class { 'threatstack': deploy_key => '#{deploy_key}', ts_hostname => '#{ts_hostname}', rulesets => ['Default Ruleset', 'Service Ruleset'], agent_config_args => [{'log.level' => 'debug'}]}" }

it { should contain_exec('threatstack-agent-setup').with(
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
end

context 'on Amazon' do
let(:facts) { {'os' => { 'name' => 'Amazon', 'family' => 'RedHat'} } }
let(:facts) { {'operatingsystemmajrelease' => '2', 'os' => { 'name' => 'Amazon', 'family' => 'RedHat'} } }
let(:params) { { :deploy_key => "#{deploy_key}" } }

it 'should compile' do should create_class('threatstack') end
Expand Down

0 comments on commit b5c183f

Please sign in to comment.