summaryrefslogtreecommitdiffstats
path: root/src/test/resources/rule-driven-validator/results
diff options
context:
space:
mode:
authorPrudence Au <prudence.au@amdocs.com>2018-08-13 17:06:59 -0400
committerPierre Rioux <pierre.rioux@amdocs.com>2018-08-21 11:21:26 -0400
commitc604f64b971491f8c9b953adce54b847d7946e26 (patch)
tree134f7fc91b4da9e04c564c92337d44df420c8df0 /src/test/resources/rule-driven-validator/results
parent3baa3ebd0000b15f1c54c736f4a307731b16b923 (diff)
Initial submission for validation service
Change-Id: I9372430f1ae347373d5a9a0c7a427d7bd393d61e Issue-ID: LOG-427 Signed-off-by: Prudence Au (prudence.au@amdocs.com) Signed-off-by: Geora Barsky <georab@amdocs.com> Signed-off-by: Pierre Rioux <pierre.rioux@amdocs.com>
Diffstat (limited to 'src/test/resources/rule-driven-validator/results')
-rw-r--r--src/test/resources/rule-driven-validator/results/expected/generic-vnf-create-event.exp.json35
-rw-r--r--src/test/resources/rule-driven-validator/results/expected/gizmo-pserver-create-event-invalid-ipaddress.exp.json24
-rw-r--r--src/test/resources/rule-driven-validator/results/expected/gizmo-pserver-create-event.exp.json13
-rw-r--r--src/test/resources/rule-driven-validator/results/expected/vserver-create-AAI-EVENT-devINT1-TRINITY-VNF-NAME-BAD.exp.json128
-rw-r--r--src/test/resources/rule-driven-validator/results/expected/vserver-create-AAI-EVENT-devINT1-TRINITY-VNF-NAME-GOOD.exp.json23
-rw-r--r--src/test/resources/rule-driven-validator/results/expected/vserver-create-event.exp.json208
-rw-r--r--src/test/resources/rule-driven-validator/results/expected/vserver-update-AAI-EVENT-devINT1.exp.json38
7 files changed, 469 insertions, 0 deletions
diff --git a/src/test/resources/rule-driven-validator/results/expected/generic-vnf-create-event.exp.json b/src/test/resources/rule-driven-validator/results/expected/generic-vnf-create-event.exp.json
new file mode 100644
index 0000000..ef0848a
--- /dev/null
+++ b/src/test/resources/rule-driven-validator/results/expected/generic-vnf-create-event.exp.json
@@ -0,0 +1,35 @@
+{
+ "validationId": "",
+ "validationTimestamp": "",
+ "entityId": {
+ "vnf-id": "e5365951-9d90-4853-afae-c34a0707e3b6"
+ },
+ "entityType": "generic-vnf",
+ "entityLink": "network/generic-vnfs/generic-vnf/e5365951-9d90-4853-afae-c34a0707e3b6",
+ "resourceVersion": "1476736914",
+ "entity":"fkdlfkdl",
+ "violations": [
+ {
+ "violationId": "f47ce3b89d92659086e986f674cec4a7bed54601b8007aac69c6157101973b90",
+ "category": "INVALID_VALUE",
+ "severity": "CRITICAL",
+ "violationType": "Rule",
+ "validationRule": "prov-status",
+ "violationDetails": {
+ "prov-status": null
+ },
+ "errorMessage": "Invalid prov-status value. Must be PREPROV, NVTPROV, PROV, CAPPED, DECOM, or RETIRED"
+ },
+ {
+ "violationId": "227d68c5fb944636cc9b8a08e8fcefadf13bfd1ba2c40547d664b7150f1ebc14",
+ "category": "INVALID_VALUE",
+ "severity": "MINOR",
+ "violationType": "Rule",
+ "validationRule": "valid_ipv4_addr",
+ "violationDetails": {
+ "ipv4-oam-address": ""
+ },
+ "errorMessage": "Invalid value - attribute is not a valid IPv4 address"
+ }
+ ]
+} \ No newline at end of file
diff --git a/src/test/resources/rule-driven-validator/results/expected/gizmo-pserver-create-event-invalid-ipaddress.exp.json b/src/test/resources/rule-driven-validator/results/expected/gizmo-pserver-create-event-invalid-ipaddress.exp.json
new file mode 100644
index 0000000..b6b851c
--- /dev/null
+++ b/src/test/resources/rule-driven-validator/results/expected/gizmo-pserver-create-event-invalid-ipaddress.exp.json
@@ -0,0 +1,24 @@
+{
+ "validationId":"5d37dd63-8289-4e0c-8da0-9007c1de4e39",
+ "validationTimestamp":"20180220T173524Z",
+ "entityId":{
+ "hostname":"myhost"
+ },
+ "entityType":"pserver",
+ "entityLink":"",
+ "resourceVersion":"1477013499",
+ "violations":[
+ {
+ "violationId":"f0c12d0f91779de43034ca5be323d0e0b076d228f49a998a910127af0da0009b",
+ "modelName":null,
+ "category":"INVALID_VALUE",
+ "severity":"MINOR",
+ "violationType":"Rule",
+ "validationRule":"valid_ipv4_addr",
+ "violationDetails":{
+ "vertex.properties.ipv4-oam-address":"1.2.3."
+ },
+ "errorMessage":"Invalid value - attribute is not a valid IPv4 address"
+ }
+ ]
+} \ No newline at end of file
diff --git a/src/test/resources/rule-driven-validator/results/expected/gizmo-pserver-create-event.exp.json b/src/test/resources/rule-driven-validator/results/expected/gizmo-pserver-create-event.exp.json
new file mode 100644
index 0000000..256a488
--- /dev/null
+++ b/src/test/resources/rule-driven-validator/results/expected/gizmo-pserver-create-event.exp.json
@@ -0,0 +1,13 @@
+{
+ "validationId":"f7c28a16-2bdf-40a9-9414-ad430e2550c8",
+ "validationTimestamp":"20180220T172745Z",
+ "entityId":{
+ "hostname":"myhost"
+ },
+ "entityType":"pserver",
+ "entityLink":"",
+ "resourceVersion":"1477013499",
+ "violations":[
+
+ ]
+} \ No newline at end of file
diff --git a/src/test/resources/rule-driven-validator/results/expected/vserver-create-AAI-EVENT-devINT1-TRINITY-VNF-NAME-BAD.exp.json b/src/test/resources/rule-driven-validator/results/expected/vserver-create-AAI-EVENT-devINT1-TRINITY-VNF-NAME-BAD.exp.json
new file mode 100644
index 0000000..a8a4ae2
--- /dev/null
+++ b/src/test/resources/rule-driven-validator/results/expected/vserver-create-AAI-EVENT-devINT1-TRINITY-VNF-NAME-BAD.exp.json
@@ -0,0 +1,128 @@
+{
+ "validationId": "VALIDATIONID",
+ "validationTimestamp": "TIMESTAMP",
+ "entityId": {
+ "vserver-id": "c385bb3e-6ebd-4898-bc92-792e0ac2db50"
+ },
+ "entityType": "vserver",
+ "entityLink": "cloud-infrastructure/cloud-regions/cloud-region/region1/AAIregion1/tenants/tenant/example-tenant-id-val-88551/vservers/vserver/example-vserver-id-val-34666",
+ "resourceVersion": "1475160142",
+ "violations": [
+ {
+ "violationId": "3855354af5e3da4383dd39beac0c814e5125e0afa3bf0332f9289aa6178db5d6",
+ "category": "INVALID_VALUE",
+ "severity": "CRITICAL",
+ "violationType": "Rule",
+ "validationRule": "prov-status",
+ "violationDetails": {
+ "prov-status": "ACTIVE"
+ },
+ "errorMessage": "Invalid prov-status value. Must be PREPROV, NVTPROV, PROV, CAPPED, DECOM, or RETIRED"
+ },
+ {
+ "violationId": "2adb3dbf7ab2acb68033608ab5641962a953f720a76a7fe8c143792851ca0901",
+ "category": "INVALID_NAME",
+ "severity": "MINOR",
+ "violationType": "Rule",
+ "validationRule": "vserver related to TRINITY image and generic-vnf.vnf-name matches naming convention",
+ "violationDetails": {
+ "relationship-list.relationship[*]": [
+ {
+ "related-to": "generic-vnf",
+ "related-link": "https://dummy-host.onap.org:8443/aai/v8/network/generic-vnfs/generic-vnf/ctpx12345v/",
+ "relationship-data": [
+ {
+ "relationship-key": "generic-vnf.vnf-id",
+ "relationship-value": "ctpx12345v"
+ }
+ ],
+ "related-to-property": [
+ {
+ "property-key": "generic-vnf.vnf-name",
+ "property-value": "ctpx12345v"
+ }
+ ]
+ },
+ {
+ "related-to": "vf-module",
+ "related-link": "https://dummy-host.onap.org:8443/aai/v8/network/generic-vnfs/generic-vnf/ctpx12345v/vf-modules/vf-module/ctpx12345v/",
+ "relationship-data": [
+ {
+ "relationship-key": "generic-vnf.vnf-id",
+ "relationship-value": "ctpx12345v"
+ },
+ {
+ "relationship-key": "vf-module.vf-module-id",
+ "relationship-value": "ctpx12345v"
+ }
+ ]
+ },
+ {
+ "related-to": "image",
+ "related-link": "https://dummy-host.onap.org:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/region1/AAIregion1/images/image/TRINITY-IMAGE/",
+ "relationship-data": [
+ {
+ "relationship-key": "cloud-region.cloud-owner",
+ "relationship-value": "region1"
+ },
+ {
+ "relationship-key": "cloud-region.cloud-region-id",
+ "relationship-value": "AAIregion1"
+ },
+ {
+ "relationship-key": "image.image-id",
+ "relationship-value": "TRINITY-IMAGE"
+ }
+ ],
+ "related-to-property": [
+ {
+ "property-key": "image.image-name",
+ "property-value": "TRINITY IMAGE"
+ }
+ ]
+ },
+ {
+ "related-to": "pserver",
+ "related-link": "https://dummy-host.onap.org:8443/aai/v8/cloud-infrastructure/pservers/pserver/TRINITY-PSERVER/",
+ "relationship-data": [
+ {
+ "relationship-key": "pserver.hostname",
+ "relationship-value": "TRINITY-PSERVER"
+ }
+ ],
+ "related-to-property": [
+ {
+ "property-key": "pserver.pserver-name2"
+ }
+ ]
+ },
+ {
+ "related-to": "flavor",
+ "related-link": "https://dummy-host.onap.org:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/region1/AAIregion1/flavors/flavor/TRINITY-Flavor/",
+ "relationship-data": [
+ {
+ "relationship-key": "cloud-region.cloud-owner",
+ "relationship-value": "region1"
+ },
+ {
+ "relationship-key": "cloud-region.cloud-region-id",
+ "relationship-value": "AAIregion1"
+ },
+ {
+ "relationship-key": "flavor.flavor-id",
+ "relationship-value": "TRINITY-Flavor"
+ }
+ ],
+ "related-to-property": [
+ {
+ "property-key": "flavor.flavor-name",
+ "property-value": "TRINITY Flavor"
+ }
+ ]
+ }
+ ]
+ },
+ "errorMessage": "Invalid name - if vserver is related to an image named TRINITY, then the related generic-vnf name must match xxxxnnnnv (where x = character and n = number)"
+ }
+ ]
+} \ No newline at end of file
diff --git a/src/test/resources/rule-driven-validator/results/expected/vserver-create-AAI-EVENT-devINT1-TRINITY-VNF-NAME-GOOD.exp.json b/src/test/resources/rule-driven-validator/results/expected/vserver-create-AAI-EVENT-devINT1-TRINITY-VNF-NAME-GOOD.exp.json
new file mode 100644
index 0000000..6e63d7f
--- /dev/null
+++ b/src/test/resources/rule-driven-validator/results/expected/vserver-create-AAI-EVENT-devINT1-TRINITY-VNF-NAME-GOOD.exp.json
@@ -0,0 +1,23 @@
+{
+ "validationId": "VALIDATIONID",
+ "validationTimestamp": "TIMESTAMP",
+ "entityId": {
+ "vserver-id": "c385bb3e-6ebd-4898-bc92-792e0ac2db50"
+ },
+ "entityType": "vserver",
+ "entityLink": "cloud-infrastructure/cloud-regions/cloud-region/region1/AAIregion1/tenants/tenant/example-tenant-id-val-88551/vservers/vserver/example-vserver-id-val-34666",
+ "resourceVersion": "1475160142",
+ "violations": [
+ {
+ "violationId": "3855354af5e3da4383dd39beac0c814e5125e0afa3bf0332f9289aa6178db5d6",
+ "category": "INVALID_VALUE",
+ "severity": "CRITICAL",
+ "violationType": "Rule",
+ "validationRule": "prov-status",
+ "violationDetails": {
+ "prov-status": "ACTIVE"
+ },
+ "errorMessage": "Invalid prov-status value. Must be PREPROV, NVTPROV, PROV, CAPPED, DECOM, or RETIRED"
+ }
+ ]
+} \ No newline at end of file
diff --git a/src/test/resources/rule-driven-validator/results/expected/vserver-create-event.exp.json b/src/test/resources/rule-driven-validator/results/expected/vserver-create-event.exp.json
new file mode 100644
index 0000000..7042c13
--- /dev/null
+++ b/src/test/resources/rule-driven-validator/results/expected/vserver-create-event.exp.json
@@ -0,0 +1,208 @@
+{
+ "validationId": "VALIDATIONID",
+ "validationTimestamp": "TIMESTAMP",
+ "entityId": {
+ "vserver-id": "example-vserver-id-val-34666"
+ },
+ "entityType": "vserver",
+ "entityLink": "cloud-infrastructure/cloud-regions/cloud-region/region1/AAIregion1/tenants/tenant/example-tenant-id-val-88551/vservers/vserver/example-vserver-id-val-34666",
+ "resourceVersion": "1464193654",
+ "violations": [
+ {
+ "violationId": "312ed832aed6adfff008732d5d3c4e03d46195ea38f2c305c4e58c9779e4721f",
+ "category": "INVALID_VALUE",
+ "severity": "CRITICAL",
+ "violationType": "Rule",
+ "validationRule": "prov-status",
+ "violationDetails": {
+ "prov-status": "INVALID"
+ },
+ "errorMessage": "Invalid prov-status value. Must be PREPROV, NVTPROV, PROV, CAPPED, DECOM, or RETIRED"
+ },
+ {
+ "violationId": "819a20606acf8eefa64ea06ddb1041edebdec7eb18c5695860eda5e3d1729460",
+ "modelName": null,
+ "category": "INVALID_NAME",
+ "severity": "MINOR",
+ "violationType": "Rule",
+ "validationRule": "vserver related to TRINITY image and generic-vnf.vnf-name matches naming convention",
+ "violationDetails": {
+ "relationship-list.relationship[*]": [
+ {
+ "related-to": "generic-vnf",
+ "related-link": "https://dummy-host.onap.org:8443/aai/v8/network/generic-vnfs/generic-vnf/bmsx0001v-1661/",
+ "relationship-data": [
+ {
+ "relationship-key": "generic-vnf.vnf-id",
+ "relationship-value": "bmsx0001v-1661"
+ }
+ ],
+ "related-to-property": [
+ {
+ "property-key": "generic-vnf.vnf-name",
+ "property-value": "bmsx000x"
+ }
+ ]
+ },
+ {
+ "related-to": "image",
+ "related-link": "https://dummy-host.onap.org:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/region1/AAIregion1/images/image/ee49d429-283d-4f79-9c58-e11cc38d8856/",
+ "relationship-data": [
+ {
+ "relationship-key": "cloud-region.cloud-owner",
+ "relationship-value": "region1"
+ },
+ {
+ "relationship-key": "cloud-region.cloud-region-id",
+ "relationship-value": "AAIregion1"
+ },
+ {
+ "relationship-key": "image.image-id",
+ "relationship-value": "ee49d429-283d-4f79-9c58-e11cc38d8856"
+ }
+ ],
+ "related-to-property": [
+ {
+ "property-key": "image.image-name",
+ "property-value": "TRINITY"
+ }
+ ]
+ },
+ {
+ "related-to": "pserver",
+ "related-link": "https://dummy-host.onap.org:8443/aai/v8/cloud-infrastructure/pservers/pserver/dpa2r03c007/",
+ "relationship-data": [
+ {
+ "relationship-key": "pserver.hostname",
+ "relationship-value": "dpa2r03c007"
+ }
+ ],
+ "related-to-property": [
+ {
+ "property-key": "pserver.pserver-name2"
+ }
+ ]
+ },
+ {
+ "related-to": "flavor",
+ "related-link": "https://dummy-host.onap.org:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/region1/AAIregion1/flavors/flavor/5288f576-d9c6-46fc-9dcb-f6946a2b3597/",
+ "relationship-data": [
+ {
+ "relationship-key": "cloud-region.cloud-owner",
+ "relationship-value": "region1"
+ },
+ {
+ "relationship-key": "cloud-region.cloud-region-id",
+ "relationship-value": "AAIregion1"
+ },
+ {
+ "relationship-key": "flavor.flavor-id",
+ "relationship-value": "5288f576-d9c6-46fc-9dcb-f6946a2b3597"
+ }
+ ],
+ "related-to-property": [
+ {
+ "property-key": "flavor.flavor-name",
+ "property-value": "l5.xLarge"
+ }
+ ]
+ }
+ ]
+ },
+ "errorMessage": "Invalid name - if vserver is related to an image named TRINITY, then the related generic-vnf name must match xxxxnnnnv (where x = character and n = number)"
+ },
+ {
+ "violationId": "50819193f02c57e6878573dbe4d8d43942ee0b20cb539aed817c067072733f6e",
+ "modelName": null,
+ "category": "INVALID_NAME",
+ "severity": "MINOR",
+ "violationType": "Rule",
+ "validationRule": "vserver is related to a TRINITY image and vserver-name matches naming convention",
+ "violationDetails": {
+ "relationship-list.relationship[*]": [
+ {
+ "related-to": "generic-vnf",
+ "related-link": "https://dummy-host.onap.org:8443/aai/v8/network/generic-vnfs/generic-vnf/bmsx0001v-1661/",
+ "relationship-data": [
+ {
+ "relationship-key": "generic-vnf.vnf-id",
+ "relationship-value": "bmsx0001v-1661"
+ }
+ ],
+ "related-to-property": [
+ {
+ "property-key": "generic-vnf.vnf-name",
+ "property-value": "bmsx000x"
+ }
+ ]
+ },
+ {
+ "related-to": "image",
+ "related-link": "https://dummy-host.onap.org:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/region1/AAIregion1/images/image/ee49d429-283d-4f79-9c58-e11cc38d8856/",
+ "relationship-data": [
+ {
+ "relationship-key": "cloud-region.cloud-owner",
+ "relationship-value": "region1"
+ },
+ {
+ "relationship-key": "cloud-region.cloud-region-id",
+ "relationship-value": "AAIregion1"
+ },
+ {
+ "relationship-key": "image.image-id",
+ "relationship-value": "ee49d429-283d-4f79-9c58-e11cc38d8856"
+ }
+ ],
+ "related-to-property": [
+ {
+ "property-key": "image.image-name",
+ "property-value": "TRINITY"
+ }
+ ]
+ },
+ {
+ "related-to": "pserver",
+ "related-link": "https://dummy-host.onap.org:8443/aai/v8/cloud-infrastructure/pservers/pserver/dpa2r03c007/",
+ "relationship-data": [
+ {
+ "relationship-key": "pserver.hostname",
+ "relationship-value": "dpa2r03c007"
+ }
+ ],
+ "related-to-property": [
+ {
+ "property-key": "pserver.pserver-name2"
+ }
+ ]
+ },
+ {
+ "related-to": "flavor",
+ "related-link": "https://dummy-host.onap.org:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/region1/AAIregion1/flavors/flavor/5288f576-d9c6-46fc-9dcb-f6946a2b3597/",
+ "relationship-data": [
+ {
+ "relationship-key": "cloud-region.cloud-owner",
+ "relationship-value": "region1"
+ },
+ {
+ "relationship-key": "cloud-region.cloud-region-id",
+ "relationship-value": "AAIregion1"
+ },
+ {
+ "relationship-key": "flavor.flavor-id",
+ "relationship-value": "5288f576-d9c6-46fc-9dcb-f6946a2b3597"
+ }
+ ],
+ "related-to-property": [
+ {
+ "property-key": "flavor.flavor-name",
+ "property-value": "l5.xLarge"
+ }
+ ]
+ }
+ ],
+ "vserver-name": "example-vserver-name-val-34666"
+ },
+ "errorMessage": "Invalid name - if vserver is related to an image named TRINITY, then the vserver name must match xxxxnnnnvmnnn (where x = character and n = number)"
+ }
+ ]
+} \ No newline at end of file
diff --git a/src/test/resources/rule-driven-validator/results/expected/vserver-update-AAI-EVENT-devINT1.exp.json b/src/test/resources/rule-driven-validator/results/expected/vserver-update-AAI-EVENT-devINT1.exp.json
new file mode 100644
index 0000000..4cf7264
--- /dev/null
+++ b/src/test/resources/rule-driven-validator/results/expected/vserver-update-AAI-EVENT-devINT1.exp.json
@@ -0,0 +1,38 @@
+{
+ "validationId": "VALIDATIONID",
+ "validationTimestamp": "TIMESTAMP",
+ "entityId": {
+ "vserver-id": "fd280243-cd5c-424e-b629-533cabe2a164"
+ },
+ "entityType": "vserver",
+ "entityLink": "cloud-infrastructure/cloud-regions/cloud-region/region1/AAIregion1/tenants/tenant/d52b9dea5d0f4e5d90be3590ac8c78a9/vservers/vserver/fd280243-cd5c-424e-b629-533cabe2a164",
+ "resourceVersion": "1476735222",
+ "violations": [
+ {
+ "violationId": "af7226e6b786fb8ad20e1ef088c1b04fd0408093405ca51559f001607ab758e0",
+ "category": "INVALID_VALUE",
+ "severity": "CRITICAL",
+ "violationType": "Rule",
+ "validationRule": "prov-status",
+ "violationDetails": {
+ "prov-status": null
+ },
+ "errorMessage": "Invalid prov-status value. Must be PREPROV, NVTPROV, PROV, CAPPED, DECOM, or RETIRED"
+ },
+ {
+ "violationId": "daf1c3d071651c081f05f913e0fe2ba4750d2a1fa1699d60a7693126615c4a07",
+ "category": "MISSING_REL",
+ "severity": "MINOR",
+ "violationType": "Rule",
+ "validationRule": "vserver is related to a vnf (vce or newvce or vpe or generic-vnf)",
+ "violationDetails": {
+ "relationship-list.relationship[*].related-to": [
+ "image",
+ "pserver",
+ "flavor"
+ ]
+ },
+ "errorMessage": "Missing relationship - a vserver must be related to a vnf (vce or newvce or vpe or generic-vnf)"
+ }
+ ]
+} \ No newline at end of file