From 66cce3f7afce095871b339440f7816389ddc614a Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Mon, 5 Oct 2020 11:31:40 -0400 Subject: Make simulator parameters optional Modified the simulator to make the DMaaP and GRPC parameters optional so that a simulator can be started without them. Also added parameter validation, as that was not being performed on the DMaaP or GRPC parameters. Also modified the validation so-as not to require the rest server parameter field contained within the DMaaP parameter class. Issue-ID: POLICY-2858 Change-Id: I85dde93c7baf863eca2cb10eab37806f3e08a087 Signed-off-by: Jim Hahn --- .../src/test/resources/invalidDmaapParameters.json | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 models-sim/policy-models-simulators/src/test/resources/invalidDmaapParameters.json (limited to 'models-sim/policy-models-simulators/src/test/resources/invalidDmaapParameters.json') diff --git a/models-sim/policy-models-simulators/src/test/resources/invalidDmaapParameters.json b/models-sim/policy-models-simulators/src/test/resources/invalidDmaapParameters.json new file mode 100644 index 000000000..ff6790144 --- /dev/null +++ b/models-sim/policy-models-simulators/src/test/resources/invalidDmaapParameters.json @@ -0,0 +1,7 @@ +{ + "dmaapProvider": {}, + "restServers": [], + "topicSinks": [], + "topicSources": [], + "topicServers": [] +} -- cgit 1.2.3-korg