swarm-controller: serve the notification router's flows at /api/notify/flows
This commit is contained in:
parent
bb08fac33c
commit
e2e124755d
3 changed files with 154 additions and 1 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue