From 70f9f24e6ed39a6ddb4afef02516af624f50079d Mon Sep 17 00:00:00 2001 From: Lianhao Lu Date: Fri, 9 Nov 2018 14:57:30 +0800 Subject: 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 --- .../reception-plugins/src/test/resources/handling-filesystem.json | 5 +++++ .../src/test/resources/handling-filesystemInvalid.json | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 plugins/reception-plugins/src/test/resources/handling-filesystem.json create mode 100644 plugins/reception-plugins/src/test/resources/handling-filesystemInvalid.json (limited to 'plugins/reception-plugins/src/test/resources') diff --git a/plugins/reception-plugins/src/test/resources/handling-filesystem.json b/plugins/reception-plugins/src/test/resources/handling-filesystem.json new file mode 100644 index 00000000..6a402a7a --- /dev/null +++ b/plugins/reception-plugins/src/test/resources/handling-filesystem.json @@ -0,0 +1,5 @@ +{ + "name": "parameterConfig1", + "watchPath": "/tmp" +} + diff --git a/plugins/reception-plugins/src/test/resources/handling-filesystemInvalid.json b/plugins/reception-plugins/src/test/resources/handling-filesystemInvalid.json new file mode 100644 index 00000000..871b61c2 --- /dev/null +++ b/plugins/reception-plugins/src/test/resources/handling-filesystemInvalid.json @@ -0,0 +1,4 @@ +{ + "invalidKey": "/tmp" +} + -- cgit 1.2.3-korg