aboutsummaryrefslogtreecommitdiffstats
path: root/UniversalVesAdapter/src/main/resources
diff options
context:
space:
mode:
authorPooja03 <pm00501616@techmahindra.com>2019-03-13 20:17:35 +0530
committerPooja03 <pm00501616@techmahindra.com>2019-03-13 20:17:35 +0530
commita54913c3004c1aadfe39170683a485f5e959a18c (patch)
treefbf899d56139a7d7540455e33c96308416229824 /UniversalVesAdapter/src/main/resources
parent77a725f2d27977f15ce585b2cd73fc357799dfda (diff)
Test coverage for Mapper MS
Adding Some TestCases in Universal Adapter in Mapper to increase test coverage Change-Id: I71a3addea83ea71a9b4e89def9b1aa4d31c0a461 Issue-ID: DCAEGEN2-1265 Signed-off-by: Pooja03 <pm00501616@techmahindra.com>
Diffstat (limited to 'UniversalVesAdapter/src/main/resources')
-rw-r--r--UniversalVesAdapter/src/main/resources/kvTest.json15
1 files changed, 15 insertions, 0 deletions
diff --git a/UniversalVesAdapter/src/main/resources/kvTest.json b/UniversalVesAdapter/src/main/resources/kvTest.json
new file mode 100644
index 0000000..f6c5bac
--- /dev/null
+++ b/UniversalVesAdapter/src/main/resources/kvTest.json
@@ -0,0 +1,15 @@
+{
+ "app_preferences":{
+ "collectors":[
+ {
+ "identifier":"notification-id",
+ "subscriberTopic":"ONAP-COLLECTOR-RESTCONFTRAP",
+ "mapping-files":[
+ {
+ "defaultMappingFile-ONAP-COLLECTOR-RESTCONFTRAP":"<?xml version='1.0' encoding='UTF-8'?><smooks-resource-list xmlns='http://www.milyn.org/xsd/smooks-1.1.xsd' xmlns:jb='http://www.milyn.org/xsd/smooks/javabean-1.4.xsd' xmlns:json='http://www.milyn.org/xsd/smooks/json-1.1.xsd'><json:reader rootName='vesevent' keyWhitspaceReplacement='-'><json:keyMap><json:key from='date&amp;time' to='date-and-time' /><\/json:keyMap><\/json:reader><jb:bean class='org.onap.dcaegen2.ves.domain.ves7_0.VesEvent' beanId='vesEvent' createOnElement='vesevent'><jb:wiring property='event' beanIdRef='event' /><\/jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves7_0.Event' beanId='event' createOnElement='vesevent'><jb:wiring property='commonEventHeader' beanIdRef='commonEventHeader' /><jb:wiring property='pnfRegistrationFields' beanIdRef='pnfRegistrationFields' /><\/jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves7_0.CommonEventHeader' beanId='commonEventHeader' createOnElement='vesevent'><jb:expression property='version'>org.onap.dcaegen2.ves.domain.ves7_0.CommonEventHeader.Version._4_0_1<\/jb:expression><jb:expression property='eventType'>'pnfRegistration'<\/jb:expression><jb:expression property='vesEventListenerVersion'>org.onap.dcaegen2.ves.domain.ves7_0.CommonEventHeader.VesEventListenerVersion._7_0_1<\/jb:expression><jb:expression property='eventId' execOnElement='vesevent'>'registration_'+commonEventHeader.ts1<\/jb:expression><jb:expression property='reportingEntityName'>'VESMapper'<\/jb:expression><jb:expression property='domain'>org.onap.dcaegen2.ves.domain.ves7_0.CommonEventHeader.Domain.PNF_REGISTRATION<\/jb:expression><jb:expression property='eventName' execOnElement='vesevent'>commonEventHeader.domain<\/jb:expression><jb:value property='sequence' data='0' default='0' decoder='Long' /><jb:expression property='lastEpochMicrosec' execOnElement='vesevent'>commonEventHeader.ts1<\/jb:expression><jb:expression property='startEpochMicrosec' execOnElement='vesevent'>commonEventHeader.ts1<\/jb:expression><jb:expression property='priority'>org.onap.dcaegen2.ves.domain.ves7_0.CommonEventHeader.Priority.NORMAL<\/jb:expression><jb:value property='sourceName' data='notification/message/target' /><\/jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves7_0.PnfRegistrationFields' beanId='pnfRegistrationFields' createOnElement='vesevent'><jb:expression property='pnfRegistrationFieldsVersion'>org.onap.dcaegen2.ves.domain.ves7_0.PnfRegistrationFields.PnfRegistrationFieldsVersion._2_0<\/jb:expression><jb:value property='serialNumber' data='notification/message/content/onu/sn' /><\/jb:bean><\/smooks-resource-list>"
+ }
+ ]
+ }
+ ]
+ }
+} \ No newline at end of file