fleet/cmd/fleetctl/testdata/gitops/team_config_webhook.yml
Scott Gress f14664268a
Allow setting failing policy webhook for team via GitOps (#25715)
for #24471 

This PR adds missing support for updating a team's failing policy
webhook via GitOps:
* If `team_settings.webhook_settings.failing_policies_webhook` is not
set, the webhook will be disabled and all settings cleared.
* If `team_settings.webhook_settings.failing_policies_webhook` is set,
the webhook will be configured according to the specified settings.

A new test has been added to verify this functionality, and I tested it
locally using the `fleetctl gitops` command.

---------

Co-authored-by: Dante Catalfamo <43040593+dantecatalfamo@users.noreply.github.com>
2025-01-30 11:21:43 -06:00

15 lines
No EOL
365 B
YAML

name: "${TEST_TEAM_NAME}"
team_settings:
secrets:
- secret: "SampleSecret123-team"
- secret: "ABC-team"
webhook_settings:
host_status_webhook:
enable_host_status_webhook: true
destination_url: http://coolwebhook.biz
days_count: 1
host_percentage: 50
software:
queries:
policies:
agent_options: