Make FileSystemReceptionHandler more tolerant 72/72272/2
authorLianhao Lu <lianhao.lu@intel.com>
Fri, 9 Nov 2018 06:57:30 +0000 (14:57 +0800)
committerLianhao Lu <lianhao.lu@intel.com>
Mon, 12 Nov 2018 07:55:37 +0000 (15:55 +0800)
commit70f9f24e6ed39a6ddb4afef02516af624f50079d
treecf1ecb8bff087d757f41bb31f6921dd6f17dc63c
parent789f09f2430440d6be44a5fad26715d002aff757
Make FileSystemReceptionHandler more tolerant

Make FileSystemReceptionHandler tolerant of exceptions thrown when
parsing tosca template and be able to handle new incoming csar.

Also added the unit test for FileSystemReceptionHandler.

Change-Id: I0f1647f6f952576a8e61adca4d027990706d1411
Issue-ID: POLICY-837
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/FileSystemReceptionHandler.java
plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/FileSystemReceptionHandlerConfigurationParameterGroup.java
plugins/reception-plugins/src/test/java/org/onap/policy/distribution/reception/handling/sdc/TestFileSystemReceptionHandler.java [new file with mode: 0644]
plugins/reception-plugins/src/test/java/org/onap/policy/distribution/reception/handling/sdc/TestFileSystemReceptionHandlerConfigurationParameterGroup.java [new file with mode: 0644]
plugins/reception-plugins/src/test/resources/handling-filesystem.json [new file with mode: 0644]
plugins/reception-plugins/src/test/resources/handling-filesystemInvalid.json [new file with mode: 0644]