mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 06:00:46 -05:00
* feat(rds): add and remove a subscription's source identifiers SourceIds was write-once. CreateEventSubscription accepts the list and ModifyEventSubscription has no SourceIds member, so AddSourceIdentifierToSubscription and RemoveSourceIdentifierFromSubscription are the only way to change it and neither existed. Adding an id the subscription already carries is a no-op. The model declares only SourceNotFoundFault and SubscriptionNotFoundFault for these operations, so no fault fits a duplicate. Removing an id the subscription does not carry is SourceNotFound, which is the fault that does fit. * fix(rds): refuse a missing SubscriptionName as a parameter error SubscriptionName and SourceIdentifier are both required by the model, and only the identifier was checked. A missing name fell through to the subscription lookup and came back as SubscriptionNotFound, telling the caller the subscription does not exist when the request simply did not name one. The two required members now fail the same way on both operations. Also imports assertEquals in the new test rather than qualifying it inline.