integration test issues fix for sdwan and sotn 93/68093/1
authorshashikanth.vh <shashikanth.vh@huawei.com>
Thu, 20 Sep 2018 12:29:25 +0000 (17:59 +0530)
committershashikanth.vh <shashikanth.vh@huawei.com>
Thu, 20 Sep 2018 12:29:30 +0000 (17:59 +0530)
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>
dmaap-listener/src/main/java/org/onap/ccsdk/sli/northbound/dmaapclient/SdncAaiDmaapConsumer.java

index fa9544f..3733fa6 100644 (file)
@@ -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);
                 }
             }
         }