summaryrefslogtreecommitdiffstats
path: root/models-sim/policy-models-sim-pdp/src/test/resources
diff options
context:
space:
mode:
authora.sreekumar <ajith.sreekumar@est.tech>2019-05-14 15:10:11 +0000
committera.sreekumar <ajith.sreekumar@est.tech>2019-05-14 15:10:11 +0000
commitceb3ced528288d9869d14930ca88907547a20c93 (patch)
tree4eaf8872ef8cb22509138ddd2d418832a1df8865 /models-sim/policy-models-sim-pdp/src/test/resources
parentcee63084a9ebe9f91dc7afa490d18572448e6668 (diff)
Adding pdp simulator for testing purposes2.0.12.0.0
Change-Id: I809e229bf363f3b18942b20521b05e2dc06643b4 Issue-ID: POLICY-1768 Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
Diffstat (limited to 'models-sim/policy-models-sim-pdp/src/test/resources')
-rw-r--r--models-sim/policy-models-sim-pdp/src/test/resources/EmptyConfigParameters.json2
-rw-r--r--models-sim/policy-models-sim-pdp/src/test/resources/InvalidParameters.json3
-rw-r--r--models-sim/policy-models-sim-pdp/src/test/resources/NoParameters.json0
-rw-r--r--models-sim/policy-models-sim-pdp/src/test/resources/PdpSimulatorConfigParameters.json9
-rw-r--r--models-sim/policy-models-sim-pdp/src/test/resources/PdpSimulatorConfigParameters_InvalidName.json4
-rw-r--r--models-sim/policy-models-sim-pdp/src/test/resources/PdpSimulatorConfigParameters_sim.json9
-rw-r--r--models-sim/policy-models-sim-pdp/src/test/resources/TestConfigParameters.json9
-rw-r--r--models-sim/policy-models-sim-pdp/src/test/resources/dummyProperties.json43
-rw-r--r--models-sim/policy-models-sim-pdp/src/test/resources/topic.properties22
-rw-r--r--models-sim/policy-models-sim-pdp/src/test/resources/topic_sim.properties22
10 files changed, 123 insertions, 0 deletions
diff --git a/models-sim/policy-models-sim-pdp/src/test/resources/EmptyConfigParameters.json b/models-sim/policy-models-sim-pdp/src/test/resources/EmptyConfigParameters.json
new file mode 100644
index 000000000..7a73a41bf
--- /dev/null
+++ b/models-sim/policy-models-sim-pdp/src/test/resources/EmptyConfigParameters.json
@@ -0,0 +1,2 @@
+{
+} \ No newline at end of file
diff --git a/models-sim/policy-models-sim-pdp/src/test/resources/InvalidParameters.json b/models-sim/policy-models-sim-pdp/src/test/resources/InvalidParameters.json
new file mode 100644
index 000000000..de2040cc8
--- /dev/null
+++ b/models-sim/policy-models-sim-pdp/src/test/resources/InvalidParameters.json
@@ -0,0 +1,3 @@
+{
+ "name" : []
+} \ No newline at end of file
diff --git a/models-sim/policy-models-sim-pdp/src/test/resources/NoParameters.json b/models-sim/policy-models-sim-pdp/src/test/resources/NoParameters.json
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/models-sim/policy-models-sim-pdp/src/test/resources/NoParameters.json
diff --git a/models-sim/policy-models-sim-pdp/src/test/resources/PdpSimulatorConfigParameters.json b/models-sim/policy-models-sim-pdp/src/test/resources/PdpSimulatorConfigParameters.json
new file mode 100644
index 000000000..e1772c1c7
--- /dev/null
+++ b/models-sim/policy-models-sim-pdp/src/test/resources/PdpSimulatorConfigParameters.json
@@ -0,0 +1,9 @@
+{
+ "name":"PdpSimulatorParameterGroup",
+ "pdpStatusParameters":{
+ "timeIntervalMs": 120000,
+ "pdpType":"apex",
+ "description":"Pdp Heartbeat",
+ "supportedPolicyTypes":[{"name":"onap.policies.controlloop.operational.Apex","version":"1.0.0"}]
+ }
+} \ No newline at end of file
diff --git a/models-sim/policy-models-sim-pdp/src/test/resources/PdpSimulatorConfigParameters_InvalidName.json b/models-sim/policy-models-sim-pdp/src/test/resources/PdpSimulatorConfigParameters_InvalidName.json
new file mode 100644
index 000000000..0f316a32e
--- /dev/null
+++ b/models-sim/policy-models-sim-pdp/src/test/resources/PdpSimulatorConfigParameters_InvalidName.json
@@ -0,0 +1,4 @@
+{
+ "name":" ",
+ "timeIntervalMs": 5000
+} \ No newline at end of file
diff --git a/models-sim/policy-models-sim-pdp/src/test/resources/PdpSimulatorConfigParameters_sim.json b/models-sim/policy-models-sim-pdp/src/test/resources/PdpSimulatorConfigParameters_sim.json
new file mode 100644
index 000000000..d583b81da
--- /dev/null
+++ b/models-sim/policy-models-sim-pdp/src/test/resources/PdpSimulatorConfigParameters_sim.json
@@ -0,0 +1,9 @@
+{
+ "name":"PdpSimulatorParameterGroup",
+ "pdpStatusParameters":{
+ "timeIntervalMs": 120000,
+ "pdpType":"apex",
+ "description":"Pdp Heartbeat",
+ "supportedPolicyTypes":[{"name":"onap.policies.controlloop.operational.Apex","version":"1.0.0"}]
+ }
+}
diff --git a/models-sim/policy-models-sim-pdp/src/test/resources/TestConfigParameters.json b/models-sim/policy-models-sim-pdp/src/test/resources/TestConfigParameters.json
new file mode 100644
index 000000000..360b02095
--- /dev/null
+++ b/models-sim/policy-models-sim-pdp/src/test/resources/TestConfigParameters.json
@@ -0,0 +1,9 @@
+{
+ "name":"PdpSimulatorParameterGroup",
+ "pdpStatusParameters":{
+ "timeIntervalMs": 120000,
+ "pdpType":"apex",
+ "description":"Pdp heartbeat",
+ "supportedPolicyTypes":[{"name":"onap.policies.controlloop.operational.Apex","version":"1.0.0"}]
+ }
+} \ No newline at end of file
diff --git a/models-sim/policy-models-sim-pdp/src/test/resources/dummyProperties.json b/models-sim/policy-models-sim-pdp/src/test/resources/dummyProperties.json
new file mode 100644
index 000000000..849b86e69
--- /dev/null
+++ b/models-sim/policy-models-sim-pdp/src/test/resources/dummyProperties.json
@@ -0,0 +1,43 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 2,
+ "deploymentPort": 65522,
+ "policy_type_impl": "onap.policies.controlloop.operational.apex.sampledomain.Impl",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "FirstProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "standardIo": true
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ },
+ "eventInputParameters": {
+ "TheFileConsumer1": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "src/test/resources/events/TestPojoEvent.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ }
+} \ No newline at end of file
diff --git a/models-sim/policy-models-sim-pdp/src/test/resources/topic.properties b/models-sim/policy-models-sim-pdp/src/test/resources/topic.properties
new file mode 100644
index 000000000..9f3c21dff
--- /dev/null
+++ b/models-sim/policy-models-sim-pdp/src/test/resources/topic.properties
@@ -0,0 +1,22 @@
+# ============LICENSE_START=======================================================
+# Copyright (C) 2019 Nordix Foundation.
+# ================================================================================
+# 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.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+
+noop.sink.topics=POLICY-PDP-PAP
+noop.sink.topics.POLICY-PDP-PAP.servers=anyserver
+noop.source.topics=POLICY-PDP-PAP
+noop.source.topics.POLICY-PDP-PAP.servers=anyserver \ No newline at end of file
diff --git a/models-sim/policy-models-sim-pdp/src/test/resources/topic_sim.properties b/models-sim/policy-models-sim-pdp/src/test/resources/topic_sim.properties
new file mode 100644
index 000000000..2bdf8c7b1
--- /dev/null
+++ b/models-sim/policy-models-sim-pdp/src/test/resources/topic_sim.properties
@@ -0,0 +1,22 @@
+# ============LICENSE_START=======================================================
+# Copyright (C) 2019 Nordix Foundation.
+# ================================================================================
+# 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.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+
+dmaap.sink.topics=POLICY-PDP-PAP
+dmaap.sink.topics.POLICY-PDP-PAP.servers=localhost:6845
+dmaap.source.topics=POLICY-PDP-PAP
+dmaap.source.topics.POLICY-PDP-PAP.servers=localhost:6845