summaryrefslogtreecommitdiffstats
path: root/services/services-onappf/src/test/resources
diff options
context:
space:
mode:
authora.sreekumar <ajith.sreekumar@est.tech>2019-04-08 12:38:21 +0000
committera.sreekumar <ajith.sreekumar@est.tech>2019-04-08 12:38:21 +0000
commitf2f9e5e8c4ce5c3ff75cbe6f6f4e2de5e4b3f3fb (patch)
treec74ae073e6e79092fece00d87dcedbafac6c11cd /services/services-onappf/src/test/resources
parent50b84774797677791fb2111cf97b9f2ff65cb3e2 (diff)
Changes to handle PdpUpdate and PdpStateChange messages
1) Adding listeners and handlers for PdpUpdate messages. 2) Adding listeners and handlers for PdpStateChange messages. 3) Some changes to accomodate recent changes in the models. 4) Test cases. Change-Id: I66644d94fd2a242738d9b0f78e5d0ece76342057 Issue-ID: POLICY-1453 Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
Diffstat (limited to 'services/services-onappf/src/test/resources')
-rw-r--r--services/services-onappf/src/test/resources/ApexStarterConfigParameters.json3
-rw-r--r--services/services-onappf/src/test/resources/ApexStarterConfigParameters_InvalidName.json2
-rw-r--r--services/services-onappf/src/test/resources/dummyProperties.json43
3 files changed, 45 insertions, 3 deletions
diff --git a/services/services-onappf/src/test/resources/ApexStarterConfigParameters.json b/services/services-onappf/src/test/resources/ApexStarterConfigParameters.json
index dad7408dc..6b9df6014 100644
--- a/services/services-onappf/src/test/resources/ApexStarterConfigParameters.json
+++ b/services/services-onappf/src/test/resources/ApexStarterConfigParameters.json
@@ -1,9 +1,8 @@
{
"name":"ApexStarterParameterGroup",
"pdpStatusParameters":{
- "timeInterval": 2,
+ "timeIntervalMs": 2000,
"pdpName":"apex-pdp",
- "version":"0.0.1",
"pdpType":"apex",
"description":"Pdp status for HealthCheck",
"supportedPolicyTypes":[{"name":"policy1","version":"1.0"},{"name":"policy2","version":"1.0"}]
diff --git a/services/services-onappf/src/test/resources/ApexStarterConfigParameters_InvalidName.json b/services/services-onappf/src/test/resources/ApexStarterConfigParameters_InvalidName.json
index a7273ae2b..0f316a32e 100644
--- a/services/services-onappf/src/test/resources/ApexStarterConfigParameters_InvalidName.json
+++ b/services/services-onappf/src/test/resources/ApexStarterConfigParameters_InvalidName.json
@@ -1,4 +1,4 @@
{
"name":" ",
- "timeInterval": 5
+ "timeIntervalMs": 5000
} \ No newline at end of file
diff --git a/services/services-onappf/src/test/resources/dummyProperties.json b/services/services-onappf/src/test/resources/dummyProperties.json
new file mode 100644
index 000000000..849b86e69
--- /dev/null
+++ b/services/services-onappf/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