From 6261a6058cba8f5c0da0be36067ce1c6223c5ffc Mon Sep 17 00:00:00 2001 From: liboNet Date: Wed, 8 Aug 2018 08:08:10 +0800 Subject: Initial moduel structure for SDC handling This submission defines the initial module structure for this handling and add the IConfiguration implementation and test code, use the json format as the configuration. rename the class name to sensible one with PSSD prefix. remove static variable to make it possible for more than one subscription to SDC. improve the validate func to validate each mandatory parameters and check the int parameter's value Change-Id: I3106ad9d4535b1251eae064e803805b92378f6f1 Issue-ID: POLICY-956 Signed-off-by: liboNet --- .../src/test/resources/handling-sdcInvalid.json | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 plugins/reception-plugins/src/test/resources/handling-sdcInvalid.json (limited to 'plugins/reception-plugins/src/test/resources/handling-sdcInvalid.json') diff --git a/plugins/reception-plugins/src/test/resources/handling-sdcInvalid.json b/plugins/reception-plugins/src/test/resources/handling-sdcInvalid.json new file mode 100644 index 00000000..ababea48 --- /dev/null +++ b/plugins/reception-plugins/src/test/resources/handling-sdcInvalid.json @@ -0,0 +1,26 @@ +{ + "name" : "parameterConfig1", + "asdcAddress": "localhost", + "messageBusAddress": [ + "a.com", + "b.com", + "c.com" + ], + "user": "tbdsdc-1480", + "password": "tbdsdc-1480", + "pollingInterval":-1, + "pollingTimeout":-2, + "consumerId": "policy-id", + "artifactTypes": [ + "TOSCA_CSAR", + "HEAT" + ], + "consumerGroup": "policy-group", + "environmentName": "environmentName", + "keystorePath": "null", + "keystorePassword": "null", + "activeserverTlsAuth": false, + "isFilterinEmptyResources": true, + "isUseHttpsWithDmaap": false +} + -- cgit 1.2.3-korg