summaryrefslogtreecommitdiffstats
path: root/src/test/resources/validation-result
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/validation-result
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/validation-result')
-rw-r--r--src/test/resources/validation-result/test-validation-service-beans.xml38
-rw-r--r--src/test/resources/validation-result/vserver-create-event.json163
2 files changed, 201 insertions, 0 deletions
diff --git a/src/test/resources/validation-result/test-validation-service-beans.xml b/src/test/resources/validation-result/test-validation-service-beans.xml
new file mode 100644
index 0000000..9a67d0a
--- /dev/null
+++ b/src/test/resources/validation-result/test-validation-service-beans.xml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+============LICENSE_START===================================================
+Copyright (c) 2018 Amdocs
+============================================================================
+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.
+============LICENSE_END=====================================================
+-->
+
+<beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+ http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
+
+ <import resource="../oxm-reader/oxm-reader-beans.xml" />
+
+ <context:property-placeholder location="classpath:event-reader.properties" />
+
+ <bean id="eventReaderConfig" class="org.onap.aai.validation.config.EventReaderConfig" />
+
+ <bean id="jsonReader" class="org.onap.aai.validation.reader.JsonReader" />
+
+ <bean id="eventReader" class="org.onap.aai.validation.reader.EventReader">
+ <constructor-arg ref="eventReaderConfig" />
+ <constructor-arg ref="jsonReader" />
+ <constructor-arg ref="oxmReader" />
+ </bean>
+</beans>
diff --git a/src/test/resources/validation-result/vserver-create-event.json b/src/test/resources/validation-result/vserver-create-event.json
new file mode 100644
index 0000000..21e4da8
--- /dev/null
+++ b/src/test/resources/validation-result/vserver-create-event.json
@@ -0,0 +1,163 @@
+{
+ "cambria.partition": "AAI",
+ "event-header": {
+ "id": "20160525162737-61c49d41-5338-4755-af54-06cee9fe4acf",
+ "timestamp": "20160525-16:27:37:353",
+ "source-name": "RO",
+ "domain": "devINT1",
+ "sequence-number": "0",
+ "severity": "NORMAL",
+ "event-type": "AAI-EVENT",
+ "version": "v7",
+ "action": "CREATE",
+ "entity-type": "vserver",
+ "top-entity-type": "cloud-region",
+ "entity-link": "https://dummy-host.onap.org:8443/aai/v7/cloud-infrastructure/cloud-regions/cloud-region/region1/AAIregion1/tenants/tenant/example-tenant-id-val-88551/vservers/vserver/example-vserver-id-val-34666"
+ },
+ "entity": {
+ "cloud-owner": "region1",
+ "cloud-region-id": "AAIregion1",
+ "tenants": {
+ "tenant": [
+ {
+ "tenant-id": "example-tenant-id-val-88551",
+ "tenant-name": "example-tenant-name-val-88551",
+ "vservers": {
+ "vserver": [
+ {
+ "vserver-id": "example-vserver-id-val-34666",
+ "vserver-name": "example-vserver-name-val-34666",
+ "vserver-name2": "example-vserver-name2-val-34666",
+ "prov-status": "PREPROV",
+ "vserver-selflink": "example-vserver-selflink-val-34666",
+ "in-maint": true,
+ "is-closed-loop-disabled": true,
+ "resource-version": "1464193654",
+ "volumes": {
+ "volume": [
+ {
+ "volume-id": "example-volume-id-val-79195",
+ "volume-selflink": "example-volume-selflink-val-79195",
+ "resource-version": "1464193654",
+ "relationship-list": {
+
+ }
+ }
+ ]
+ },
+ "relationship-list": {
+
+ },
+ "l-interfaces": {
+ "l-interface": [
+ {
+ "interface-name": "example-interface-name-val-25679",
+ "interface-role": "example-interface-role-val-25679",
+ "v6-wan-link-ip": "example-v6-wan-link-ip-val-25679",
+ "selflink": "example-selflink-val-25679",
+ "interface-id": "example-interface-id-val-25679",
+ "macaddr": "example-macaddr-val-25679",
+ "network-name": "example-network-name-val-25679",
+ "resource-version": "1464193654",
+ "vlans": {
+ "vlan": [
+ {
+ "vlan-interface": "example-vlan-interface-val-28675",
+ "vlan-id-inner": 22278797,
+ "vlan-id-outer": 22278797,
+ "resource-version": "1464193654",
+ "speed-value": "example-speed-value-val-28675",
+ "speed-units": "example-speed-units-val-28675",
+ "vlan-description": "example-vlan-description-val-28675",
+ "relationship-list": {
+
+ },
+ "l3-interface-ipv4-address-list": [
+ {
+ "l3-interface-ipv4-address": "example-l3-interface-ipv4-address-val-39271",
+ "l3-interface-ipv4-prefix-length": 78868308,
+ "vlan-id-inner": 78868308,
+ "vlan-id-outer": 78868308,
+ "is-floating": true,
+ "resource-version": "1464193654",
+ "relationship-list": {
+
+ }
+ }
+ ],
+ "l3-interface-ipv6-address-list": [
+ {
+ "l3-interface-ipv6-address": "example-l3-interface-ipv6-address-val-4005",
+ "l3-interface-ipv6-prefix-length": 78340763,
+ "vlan-id-inner": 78340763,
+ "vlan-id-outer": 78340763,
+ "is-floating": true,
+ "resource-version": "1464193654",
+ "relationship-list": {
+
+ }
+ }
+ ]
+ }
+ ]
+ },
+ "sriov-vfs": {
+ "sriov-vf": [
+ {
+ "pci-id": "example-pci-id-val-85354",
+ "vf-vlan-filter": "example-vf-vlan-filter-val-85354",
+ "vf-mac-filter": "example-vf-mac-filter-val-85354",
+ "vf-vlan-strip": true,
+ "vf-vlan-anti-spoof-check": true,
+ "vf-mac-anti-spoof-check": true,
+ "vf-mirrors": "example-vf-mirrors-val-85354",
+ "vf-broadcast-allow": true,
+ "vf-unknown-multicast-allow": true,
+ "vf-unknown-unicast-allow": true,
+ "resource-version": "1464193654",
+ "relationship-list": {
+
+ }
+ }
+ ]
+ },
+ "relationship-list": {
+
+ },
+ "l3-interface-ipv4-address-list": [
+ {
+ "l3-interface-ipv4-address": "example-l3-interface-ipv4-address-val-21446",
+ "l3-interface-ipv4-prefix-length": 71127022,
+ "vlan-id-inner": 71127022,
+ "vlan-id-outer": 71127022,
+ "is-floating": true,
+ "resource-version": "1464193654",
+ "relationship-list": {
+
+ }
+ }
+ ],
+ "l3-interface-ipv6-address-list": [
+ {
+ "l3-interface-ipv6-address": "example-l3-interface-ipv6-address-val-88071",
+ "l3-interface-ipv6-prefix-length": 55080281,
+ "vlan-id-inner": 55080281,
+ "vlan-id-outer": 55080281,
+ "is-floating": true,
+ "resource-version": "1464193654",
+ "relationship-list": {
+
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+} \ No newline at end of file