Closed pzmrzy closed 5 years ago
The subscription itself is ready. Constantly validating if function exists is an overkill. Adding dependency check (don't allow to delete function that has subscription depending on it) makes more sense.
Anyway, this is covered in https://github.com/vmware/dispatch/issues/30
Bug Report
When create a subscription with a function doesn't exist, the subscription is still ready
Expected behavior
Dispatch should return error when create a subscription with invalid function.
Current behavior
Steps to reproduce
dispatch create subscription xxx --name test --event-type some_event_type
dispatch get subscription
, it will return a subscription with function namexxx
Impact