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:
1 parent
1a85f8f6c2
commit
84e7d17fc2
2 files changed
+5
-2
No files matched your search
File renamed without changes.
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user