From 50fdfca221554d0433b7608777285ec94b7a1b62 Mon Sep 17 00:00:00 2001 From: "Chaturvedi, Anand (ac204h)" Date: Fri, 1 Sep 2017 15:35:26 -0400 Subject: Junit Cases for Application Controller. Issue-ID: APPC-168 Change-Id: Iacfc853bef0b641599c60055ac05b1fd090ee3f8 Signed-off-by: Chaturvedi, Anand (ac204h) --- .../provider/src/test/resources/dg_activate_test | 3 ++ .../provider/src/test/resources/dummy.properties | 38 ++++++++++++++++++++++ .../src/test/resources/json/Appc_UniTest.json | 1 + .../src/test/resources/xml/Appc_UniTest.xml | 5 +++ 4 files changed, 47 insertions(+) create mode 100644 appc-directed-graph/dg-loader/provider/src/test/resources/dg_activate_test create mode 100644 appc-directed-graph/dg-loader/provider/src/test/resources/dummy.properties create mode 100644 appc-directed-graph/dg-loader/provider/src/test/resources/json/Appc_UniTest.json create mode 100644 appc-directed-graph/dg-loader/provider/src/test/resources/xml/Appc_UniTest.xml (limited to 'appc-directed-graph/dg-loader/provider/src/test/resources') diff --git a/appc-directed-graph/dg-loader/provider/src/test/resources/dg_activate_test b/appc-directed-graph/dg-loader/provider/src/test/resources/dg_activate_test new file mode 100644 index 000000000..895e177d5 --- /dev/null +++ b/appc-directed-graph/dg-loader/provider/src/test/resources/dg_activate_test @@ -0,0 +1,3 @@ +# MODULE NAME:RPC NAME:VERSION:MODE +# Example -> APPC:GetDeviceRunningConfiguration:3.0.0:sync +Appc:UniTest:4.0.0:sync \ No newline at end of file diff --git a/appc-directed-graph/dg-loader/provider/src/test/resources/dummy.properties b/appc-directed-graph/dg-loader/provider/src/test/resources/dummy.properties new file mode 100644 index 000000000..4545f89af --- /dev/null +++ b/appc-directed-graph/dg-loader/provider/src/test/resources/dummy.properties @@ -0,0 +1,38 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APPC +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Copyright (C) 2017 Amdocs +# ============================================================================= +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# ============LICENSE_END========================================================= +### + +org.openecomp.sdnc.sli.dbtype=jdbc + +org.openecomp.sdnc.sli.jdbc.hosts= +org.openecomp.sdnc.sli.jdbc.url= +org.openecomp.sdnc.sli.jdbc.database= +org.openecomp.sdnc.sli.jdbc.user= +org.openecomp.sdnc.sli.jdbc.password= +org.openecomp.sdnc.sli.jdbc.connection.name= + +org.openecomp.sdnc.sli.jdbc.connection.timeout=50 +org.openecomp.sdnc.sli.jdbc.request.timeout=100 +org.openecomp.sdnc.sli.jdbc.limit.init=10 +org.openecomp.sdnc.sli.jdbc.limit.min=10 +org.openecomp.sdnc.sli.jdbc.limit.max=20 diff --git a/appc-directed-graph/dg-loader/provider/src/test/resources/json/Appc_UniTest.json b/appc-directed-graph/dg-loader/provider/src/test/resources/json/Appc_UniTest.json new file mode 100644 index 000000000..2a6e49b1b --- /dev/null +++ b/appc-directed-graph/dg-loader/provider/src/test/resources/json/Appc_UniTest.json @@ -0,0 +1 @@ +[{"id":"1606180e.6254c","type":"dgstart","name":"DGSTART","outputs":1,"x":494.75,"y":149.75,"z":"7174441c.9fb7f4","wires":[["f650067e.2ad7e"]]},{"id":"f650067e.2ad7e","type":"service-logic","name":"Appc 4.0.0","module":"Appc","version":"4.0.0","comments":"","xml":"","outputs":1,"x":642.75,"y":151.75,"z":"7174441c.9fb7f4","wires":[["10b2117c.ee118f"]]},{"id":"e928ee64.3762c","type":"block","name":"block","xml":"\n","atomic":"false","comments":"","outputs":1,"x":952.75,"y":145.75,"z":"7174441c.9fb7f4","wires":[["342ce050.4a2fe8"]]},{"id":"342ce050.4a2fe8","type":"returnSuccess","name":"return success","xml":"\n\n","comments":"","x":1115.75,"y":146.75,"z":"7174441c.9fb7f4","wires":[]},{"id":"10b2117c.ee118f","type":"method","name":"unitTest","xml":"\n","comments":"","outputs":1,"x":815.75,"y":147.75,"z":"7174441c.9fb7f4","wires":[["e928ee64.3762c"]]}] diff --git a/appc-directed-graph/dg-loader/provider/src/test/resources/xml/Appc_UniTest.xml b/appc-directed-graph/dg-loader/provider/src/test/resources/xml/Appc_UniTest.xml new file mode 100644 index 000000000..6eca1043d --- /dev/null +++ b/appc-directed-graph/dg-loader/provider/src/test/resources/xml/Appc_UniTest.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file -- cgit 1.2.3-korg