Fix missing valid properties in validation of FIM and YARA agent options (#8707)

This commit is contained in:
Martin Angers
2022-11-14 15:50:41 -05:00
committed by GitHub
parent 928b4be2c2
commit 54bb5448a0
3 changed files with 25 additions and 0 deletions
+17
View File
@@ -1323,6 +1323,23 @@ spec:
`,
wantErr: `422 Validation Failed: host_percentage must be > 0 to enable the host status webhook`,
},
{
desc: "config with FIM values for agent options (#8699)",
spec: `
apiVersion: v1
kind: config
spec:
agent_options:
config:
file_paths:
ssh:
- /home/%/.ssh/authorized_keys
exclude_paths:
ssh:
- /home/ubuntu/.ssh/authorized_keys
`,
wantOutput: `[+] applied fleet config`,
},
}
// NOTE: Integrations required fields are not tested (Jira/Zendesk) because
// they require a complex setup to mock the client that would communicate