aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/org/onap
diff options
context:
space:
mode:
authorakanshad <akansha.dua@amdocs.com>2019-03-28 14:27:01 +0530
committerakanshad <akansha.dua@amdocs.com>2019-03-29 10:06:51 +0530
commita5e02123aea6f24850470a3f54865cfed6540740 (patch)
treeff87310ce7dbd6f3beb78407cc1c8030151b41b7 /src/main/java/org/onap
parentdb00c26116449ef0a4a882811545fc5c2cb1d34f (diff)
Test Cases & Modification of ExtApi Listener Implementation
Issue-ID: EXTAPI-204 Change-Id: I3526151c16c6fba111bec78635a32ffbed8d81b8 Signed-off-by: akanshad <akansha.dua@amdocs.com>
Diffstat (limited to 'src/main/java/org/onap')
-rwxr-xr-xsrc/main/java/org/onap/nbi/apis/hub/HubResource.java1
-rw-r--r--src/main/java/org/onap/nbi/apis/hub/ListenerResource.java1
2 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/onap/nbi/apis/hub/HubResource.java b/src/main/java/org/onap/nbi/apis/hub/HubResource.java
index a37c522..28e1313 100755
--- a/src/main/java/org/onap/nbi/apis/hub/HubResource.java
+++ b/src/main/java/org/onap/nbi/apis/hub/HubResource.java
@@ -72,6 +72,7 @@ public class HubResource extends ResourceManagement {
@RequestParam MultiValueMap<String, String> params, @RequestHeader(required = false) String targetURL) {
logger.debug("POST request for subscription : {}", subscription);
if(targetURL != null) {
+ Subscriber subscriber = subscriptionService.createSubscription(subscription);
return extApiClientForHub.postEventSubscription(subscription,targetURL);
}else {
Subscriber subscriber = subscriptionService.createSubscription(subscription);
diff --git a/src/main/java/org/onap/nbi/apis/hub/ListenerResource.java b/src/main/java/org/onap/nbi/apis/hub/ListenerResource.java
index def2ff0..aa236d1 100644
--- a/src/main/java/org/onap/nbi/apis/hub/ListenerResource.java
+++ b/src/main/java/org/onap/nbi/apis/hub/ListenerResource.java
@@ -33,7 +33,6 @@ import org.onap.nbi.apis.hub.model.Event;
@RestController
@RequestMapping("/listener")
-@EnableScheduling
public class ListenerResource extends ResourceManagement {
@Autowired