Watch
0
0
Fork
You've already forked hyperhive
0

swarm-controller: serve the notification router's flows at /api/notify/flows

This commit is contained in:
atlas 2026-10-24 03:49:58 +02:00 • committed by mara
commit e2e124755d
3 changed files with 154 additions and 1 deletions

View file

@ -2113,6 +2113,14 @@ mod tests {
events(DeliveryKind::PullRequest),
["pull_request", "pull_request_assign"]
);
// The events a stored flow's source may name are the ones the hooks
// deliver to the router.
let mut routed = events(DeliveryKind::Issues);
routed.extend(events(DeliveryKind::PullRequest));
routed.sort_unstable();
let mut sources = swarm_wire::notify_flows::SOURCE_EVENTS.to_vec();
sources.sort_unstable();
assert_eq!(routed, sources);
}
#[test]