test: align test with reality: we always want to push sync jobs on push (#98676)

At some point (since 1a7017d14ec1a1ebd31ad4567fa301f0012f5ee3?) we have started always scheduling a sync job when a push
comes in. Let's align the test with reality.
This commit is contained in:
Mariell Hoversholm authored and GitHub committed 2025-01-08 14:46:54 +01:00
1 parent 1a85f8f6c2
commit 84e7d17fc2
2 files changed
+5 -2

No files matched your search

@@ -72,8 +72,11 @@ func TestParseWebhooks(t *testing.T) {
URL: "https://github.com/grafana/git-ui-sync-demo/pull/12",
},
}},
{"push", "ignored", provisioning.WebhookResponse{
Code: http.StatusAccepted, // parsed but nothing required
{"push", "nothing_relevant", provisioning.WebhookResponse{
Code: http.StatusAccepted,
Job: &provisioning.JobSpec{ // we want to always push a sync job
Action: provisioning.JobActionSync,
},
}},
{"push", "nested", provisioning.WebhookResponse{
Code: http.StatusAccepted,