Skip to content

Commit

Permalink
add test for config file existence
Browse files Browse the repository at this point in the history
  • Loading branch information
derekwbrown committed Nov 22, 2023
1 parent b5b8877 commit f118e30
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@
sa_conf_path = "#{ENV['ProgramData']}\\Datadog\\security-agent.yaml"
sp_conf_path = "#{ENV['ProgramData']}\\Datadog\\system-probe.yaml"
end
expect(File).to exist(sa_conf_path)
expect(File).to exist(sp_conf_path)

f = File.read(sa_conf_path)
confYaml = YAML.load(f)
if !confYaml
Expand Down

0 comments on commit f118e30

Please sign in to comment.