aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/resources/event
diff options
context:
space:
mode:
authorIoannis Sotiropoulos <Ioannis.Sotiropoulos@amdocs.com>2018-07-26 10:01:12 +0100
committerIoannis Sotiropoulos <Ioannis.Sotiropoulos@amdocs.com>2018-07-26 10:01:12 +0100
commit9f0385738187dc18fa479b8498d63e382723f5ea (patch)
tree8cd1a703d7bc5c36e4c02844d630f73959e9dcfc /src/test/resources/event
parentd892ea32d6fdda9d75f3d9dbbf809f6230d36176 (diff)
Increase code coverage
Add tests to increase code coverage above 50 percent. Change-Id: Ie4f7517d7984b301e2bea7a2262307032c820700 Issue-ID: AAI-1425 Signed-off-by: Ioannis Sotiropoulos <Ioannis.Sotiropoulos@amdocs.com>
Diffstat (limited to 'src/test/resources/event')
-rw-r--r--src/test/resources/event/champ-update-notification-raw-with-relationship.json72
1 files changed, 72 insertions, 0 deletions
diff --git a/src/test/resources/event/champ-update-notification-raw-with-relationship.json b/src/test/resources/event/champ-update-notification-raw-with-relationship.json
new file mode 100644
index 0000000..31fb02f
--- /dev/null
+++ b/src/test/resources/event/champ-update-notification-raw-with-relationship.json
@@ -0,0 +1,72 @@
+{
+ "header":{
+ "event-type":"update-notification-raw",
+ "request-id":"5491ee71-28e8-41f4-bd8c-bc10ab8d17e6",
+ "source-name":"CHAMP",
+ "timestamp":"20180725T093333Z"
+ },
+ "body":{
+ "transaction-id":"5491ee71-28e8-41f4-bd8c-bc10ab8d17e6",
+ "relationship":{
+ "source":{
+ "type":"vserver",
+ "relationship":false,
+ "properties":{
+ "aai-last-mod-ts":1531240845176,
+ "in-maint":false,
+ "aai-uuid":"537494bd-1e8a-4198-9712-8cefa0f80457",
+ "vserver-name":"test-vserver",
+ "aai-created-ts":1531240845176,
+ "last-mod-source-of-truth":"Gizmo-Creator",
+ "vserver-id":"VSER1",
+ "source-of-truth":"Gizmo-Creator",
+ "vserver-name2":"alt-test-vserver",
+ "vserver-selflink":"http://1.2.3.4/moreInfo",
+ "is-closed-loop-disabled":false,
+ "aai-node-type":"vserver"
+ },
+ "key":122904760,
+ "object":true
+ },
+ "type":"tosca.relationships.HostedOn",
+ "relationship":true,
+ "properties":{
+ "aai-last-mod-ts":1532511213006,
+ "aai-uuid":"b9c7d24a-64a5-4b89-a10a-a89ce58b1caa",
+ "SVC-INFRA":"OUT",
+ "prevent-delete":"IN",
+ "aai-created-ts":1532511213006,
+ "delete-other-v":"NONE",
+ "contains-other-v":"NONE"
+ },
+ "key":"3dxpuf-2169x4-2ck5-2pjqz4",
+ "target":{
+ "type":"pserver",
+ "relationship":false,
+ "properties":{
+ "ptnii-equip-name":"e-name",
+ "aai-last-mod-ts":1528745939872,
+ "equip-type":"server",
+ "equip-vendor":"HP",
+ "fqdn":"myhost.onap.net",
+ "purpose":"my-purpose",
+ "aai-created-ts":1528745939872,
+ "ipv4-oam-address":"1.2.3.4",
+ "source-of-truth":"ma-postman",
+ "aai-node-type":"pserver",
+ "hostname":"ma-host2-20180611-04",
+ "equip-model":"DL380p-nd",
+ "in-maint":"false",
+ "aai-uuid":"981c0494-c742-4d75-851c-8194bbbd8a96",
+ "resource-version":"1477013499",
+ "last-mod-source-of-truth":"ma-postman"
+ },
+ "key":163844176,
+ "object":true
+ },
+ "object":false
+ },
+ "operation":"STORE",
+ "timestamp":1532511213729
+ }
+} \ No newline at end of file