Make FileSystemReceptionHandler more tolerant 30/72430/1
authorLianhao Lu <lianhao.lu@intel.com>
Fri, 9 Nov 2018 06:57:30 +0000 (14:57 +0800)
committerPamela Dragosh <pdragosh@research.att.com>
Mon, 12 Nov 2018 14:58:04 +0000 (14:58 +0000)
commit6987049afefcf3352143ed6357dc6df49a137e0a
treeed4569784ec1617497c0e60ba6f45d996f248ab3
parent9aba7691230b00e4b8f1c213f9d4fbd430078083
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>
(cherry picked from commit 70f9f24e6ed39a6ddb4afef02516af624f50079d)
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]