dikhan/pagerduty-client

FakePagerDutyEventsClient - Status returned doesn't match PagerDuty API

anjo-swe opened this issue · 2 comments

From what i can tell PagerDuty Events API V2 will always return success if everything was ok.

When using FakePagerDutyEventsClient in a test i instead received success-trigger.

return EventResult.successEvent("success-" + incident.getEventAction().getEventType(), "Event processed", incident.getDedupKey());

Can this be changed to match PagerDuty API?

Regards,
Andreas

PR created (#10), let me know what you think