Skip to content

Commit

Permalink
add version manage accept test (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
ffalor authored Aug 15, 2024
1 parent b308981 commit fd39233
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions spec/acceptance/falcon_install_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,34 @@ class { 'falcon':
it { is_expected.to be_installed }
end
end

context 'update_policy=platform_default and version_manage=true' do
manifest = <<-MANIFEST
file { '/tmp/stage':
ensure => 'directory',
before => Class['falcon'],
}

class { 'falcon':
falcon_cloud => 'api.us-2.crowdstrike.com',
client_id => Sensitive('#{ENV['FALCON_CLIENT_ID']}'),
client_secret => Sensitive('#{ENV['FALCON_CLIENT_SECRET']}'),
update_policy => 'platform_default',
sensor_tmp_dir => '/tmp/stage',
version_manage => true
cid => '#{ENV['FALCON_CID']}',
}
MANIFEST

it 'applies idempotently' do
apply_manifest(manifest, { catch_failures: true, debug: true })
apply_manifest(manifest, { catch_changes: true, debug: true })
end

describe package('falcon-sensor') do
it { is_expected.to be_installed }
end
end
end

describe 'proxy settings' do
Expand Down

0 comments on commit fd39233

Please sign in to comment.