Skip to content

Commit

Permalink
Add policy to testdata for script run
Browse files Browse the repository at this point in the history
  • Loading branch information
iansltx committed Oct 2, 2024
1 parent b0ca774 commit 0c5ac1f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/spec/testdata/team_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ policies:
resolution: There is no resolution for this policy.
query: SELECT 1 FROM osquery_info WHERE start_time < 0;
- path: ./team_install_software.policies.yml
- name: Script run policy
platform: linux
description: This should run a script on failure
query: SELECT * from osquery_info;
run_script:
- path: ./lib/collect-fleetd-logs.sh
software:
packages:
- path: ./microsoft-teams.pkg.software.yml
Expand Down
2 changes: 2 additions & 0 deletions pkg/spec/testdata/top.policies2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
description: This policy should always fail.
resolution: There is no resolution for this policy.
query: SELECT 1 FROM osquery_info WHERE start_time < 0;
run_script:
- path: ./lib/collect-fleetd-logs.sh

0 comments on commit 0c5ac1f

Please sign in to comment.