-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GH-188
events_mgmt
adding support for Adobe Runtime
Actions as webhooks
#187
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a few first comments
events_test/src/main/java/com/adobe/aio/event/publish/PublishServiceTester.java
Outdated
Show resolved
Hide resolved
GH-128
adding support for runtime webhook registrations
GH-128
adding support for runtime webhook registrationsGH-188
events_mgmt
adding support for Adobe Runtime
Actions as webhooks
events_test/src/main/java/com/adobe/aio/event/publish/PublishServiceTester.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a few requests:
events_test/src/test/java/com/adobe/aio/event/util/DataNodeUtil.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll propose some cleanup in my own PR
events_mgmt/src/main/java/com/adobe/aio/event/management/model/RegistrationUpdateModel.java
Outdated
Show resolved
Hide resolved
@@ -58,11 +61,16 @@ public class RegistrationUpdateModel { | |||
this.webhookUrl = webhookUrl; | |||
this.eventsOfInterestInputModels = eventsOfInterestInputModels; | |||
if (DeliveryType.fromFriendlyName(deliveryType).isWebhookDelivery() && StringUtils.isEmpty(webhookUrl)) { | |||
throw new IllegalArgumentException( | |||
"Registration is a webhook registration, but missing a webhook url"); | |||
if (StringUtils.isNotEmpty(runtimeAction)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we move this condition inside the enclosing if
by adding && StringUtils.isEmpty(runtimeAction)
?
events_test/src/main/java/com/adobe/aio/event/management/RegistrationServiceTester.java
Outdated
Show resolved
Hide resolved
events_mgmt/src/main/java/com/adobe/aio/event/management/model/Event.java
Outdated
Show resolved
Hide resolved
I pushed some cleanup against your branch see #189 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
Adding support for managing runtime webhook registrations
Related Issue
events_mgmt
add support for AdobeRuntime
Actions as webhooks #188Motivation and Context
To enable integration testing for runtime webhook registrations.
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: