Skip to content

Commit

Permalink
Add test for disabling activity webhooks
Browse files Browse the repository at this point in the history
  • Loading branch information
dantecatalfamo committed Jan 10, 2025
1 parent b023800 commit 1a4b51e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions server/service/integration_core_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5081,6 +5081,23 @@ func (s *integrationTestSuite) TestActivitiesWebhookConfig() {
`{"webhook_url": "http://some/url"}`,
0,
)

s.DoRaw(
"PATCH", "/api/latest/fleet/config", []byte(
`{}`,
), http.StatusOK,
)

s.lastActivityOfTypeMatches(
fleet.ActivityTypeDisabledActivityAutomations{}.ActivityName(),
``,
0,
)

appConfig = s.getConfig()
require.False(t, appConfig.WebhookSettings.ActivitiesWebhook.Enable)
require.Empty(t, appConfig.WebhookSettings.ActivitiesWebhook.DestinationURL)

}

func (s *integrationTestSuite) TestHostStatusWebhookConfig() {
Expand Down

0 comments on commit 1a4b51e

Please sign in to comment.