diff options
author | shashikanth.vh <shashikanth.vh@huawei.com> | 2018-09-20 17:59:25 +0530 |
---|---|---|
committer | shashikanth.vh <shashikanth.vh@huawei.com> | 2018-09-20 17:59:30 +0530 |
commit | 481cf0c75af442dc223b803e4de8e797b931581d (patch) | |
tree | b2a1e40d19b87f36db8eb52bc7ed691216a07bcc | |
parent | 4ea2182f617e8e4d80469d96a76128de72be7ee2 (diff) |
integration test issues fix for sdwan and sotn
On topology discovery, ESR will be updated with pnf relationship
resulting in update ESR event causing topology discovery to run in loop.
Change-Id: I80d98d5b11f05d395e342479352656364fe071d4
Issue-ID: SDNC-357
Signed-off-by: shashikanth.vh <shashikanth.vh@huawei.com>
-rw-r--r-- | dmaap-listener/src/main/java/org/onap/ccsdk/sli/northbound/dmaapclient/SdncAaiDmaapConsumer.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dmaap-listener/src/main/java/org/onap/ccsdk/sli/northbound/dmaapclient/SdncAaiDmaapConsumer.java b/dmaap-listener/src/main/java/org/onap/ccsdk/sli/northbound/dmaapclient/SdncAaiDmaapConsumer.java index fa9544f3f..3733fa604 100644 --- a/dmaap-listener/src/main/java/org/onap/ccsdk/sli/northbound/dmaapclient/SdncAaiDmaapConsumer.java +++ b/dmaap-listener/src/main/java/org/onap/ccsdk/sli/northbound/dmaapclient/SdncAaiDmaapConsumer.java @@ -132,10 +132,12 @@ public class SdncAaiDmaapConsumer extends SdncDmaapConsumerImpl { context.put(((String)key).replaceAll("-", ""), eventHeader.get((String)key)); } else { String action = (String) eventHeader.get((String) key); - if (action.equalsIgnoreCase("delete")) { + if (action.equalsIgnoreCase("create")) { + context.put((String)key,"Update"); + } else if (action.equalsIgnoreCase("delete")) { context.put((String) key, "Delete"); } else { - context.put((String) key, "Update"); + throw new IOException("Action type not supported " + action); } } } |