diff options
Diffstat (limited to 'src/test/resources')
-rw-r--r-- | src/test/resources/application.properties | 32 | ||||
-rw-r--r-- | src/test/resources/cells.json | 125 | ||||
-rw-r--r-- | src/test/resources/logback.xml | 27 | ||||
-rw-r--r-- | src/test/resources/org/onap/a1pesimulator/service/VesBrokerControllerTest_pm_ves.json | 35 | ||||
-rw-r--r-- | src/test/resources/ue.json | 20 | ||||
-rw-r--r-- | src/test/resources/vnf.config | 7 |
6 files changed, 246 insertions, 0 deletions
diff --git a/src/test/resources/application.properties b/src/test/resources/application.properties new file mode 100644 index 0000000..97c855b --- /dev/null +++ b/src/test/resources/application.properties @@ -0,0 +1,32 @@ +# +# Copyright (C) 2021 Samsung Electronics +# 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 +# + +vnf.config.file=src/test/resources/vnf.config +ves.collector.protocol=someProtocol +ves.collector.endpoint=/somePath +ves.pm.maxPoolSize=10 +ves.defaultInterval=10 +ves.defaultFailureDuration=120 + +ves.failing.throughput=1 +ves.failing.latency=500 +# in sec +ves.failing.checkout.delay=15 + +topology.cell.config.file=src/test/resources/cells.json +topology.cell.range=5 +topology.ue.config.file=src/test/resources/ue.json + +refresher.fixed.rate.ms=60000 + +restapi.version=v1
\ No newline at end of file diff --git a/src/test/resources/cells.json b/src/test/resources/cells.json new file mode 100644 index 0000000..bd44bb7 --- /dev/null +++ b/src/test/resources/cells.json @@ -0,0 +1,125 @@ +{ + "cellList": [ + { + "Cell": { + "networkId": "RAN001", + "nodeId": "Chn0000", + "physicalCellId": 0, + "pnfName": "ncserver1", + "sectorNumber": 0, + "latitude": "50.11", + "longitude": "19.98" + }, + "neighbor": [ + { + "nodeId": "Chn0002", + "blacklisted": "false" + }, + { + "nodeId": "Chn0003", + "blacklisted": "false" + }, + { + "nodeId": "Chn0001", + "blacklisted": "false" + } + ] + }, + { + "Cell": { + "networkId": "RAN001", + "nodeId": "Chn0001", + "physicalCellId": 1, + "pnfName": "ncserver1", + "sectorNumber": 0, + "latitude": "50.06", + "longitude": "20.03" + }, + "neighbor": [ + { + "nodeId": "Chn0004", + "blacklisted": "false" + }, + { + "nodeId": "Chn0000", + "blacklisted": "false" + }, + { + "nodeId": "Chn0002", + "blacklisted": "false" + } + ] + }, + { + "Cell": { + "networkId": "RAN001", + "nodeId": "Chn0002", + "physicalCellId": 3, + "pnfName": "ncserver1", + "sectorNumber": 0, + "latitude": "50.06", + "longitude": "19.94" + }, + "neighbor": [ + { + "nodeId": "Chn0004", + "blacklisted": "false" + }, + { + "nodeId": "Chn0000", + "blacklisted": "false" + }, + { + "nodeId": "Chn0003", + "blacklisted": "false" + }, + { + "nodeId": "Chn0001", + "blacklisted": "false" + } + ] + }, + { + "Cell": { + "networkId": "RAN001", + "nodeId": "Chn0003", + "physicalCellId": 4, + "pnfName": "ncserver1", + "sectorNumber": 0, + "latitude": "50.11", + "longitude": "19.88" + }, + "neighbor": [ + { + "nodeId": "Chn0002", + "blacklisted": "false" + }, + { + "nodeId": "Chn0000", + "blacklisted": "false" + } + ] + }, + { + "Cell": { + "networkId": "RAN001", + "nodeId": "Chn0004", + "physicalCellId": 6, + "pnfName": "ncserver1", + "sectorNumber": 0, + "latitude": "50.01", + "longitude": "19.99" + }, + "neighbor": [ + { + "nodeId": "Chn0002", + "blacklisted": "false" + }, + { + "nodeId": "Chn0001", + "blacklisted": "false" + } + ] + } + ] +} diff --git a/src/test/resources/logback.xml b/src/test/resources/logback.xml new file mode 100644 index 0000000..1a162e3 --- /dev/null +++ b/src/test/resources/logback.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + ~ Copyright (C) 2021 Samsung Electronics + ~ 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 + --> + +<configuration> + + <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> + <layout class="ch.qos.logback.classic.PatternLayout"> + <Pattern>%d{yyyy-MM-dd HH:mm:ss} %-5level %logger{36} - %msg%n</Pattern> + </layout> + </appender> + + <root level="INFO"> + <appender-ref ref="STDOUT"/> + </root> + +</configuration> diff --git a/src/test/resources/org/onap/a1pesimulator/service/VesBrokerControllerTest_pm_ves.json b/src/test/resources/org/onap/a1pesimulator/service/VesBrokerControllerTest_pm_ves.json new file mode 100644 index 0000000..8c59897 --- /dev/null +++ b/src/test/resources/org/onap/a1pesimulator/service/VesBrokerControllerTest_pm_ves.json @@ -0,0 +1,35 @@ +{ + "event": { + "commonEventHeader": { + "version": "4.0.1", + "vesEventListenerVersion": "7.0.1", + "domain": "measurement", + "eventName": "Measurement_vIsbcMmc", + "eventId": "measurement0000259", + "sequence": 3, + "priority": "Normal", + "reportingEntityId": "cc305d54-75b4-431b-adb2-eb6b9e541234", + "reportingEntityName": "ibcx0001vm002oam001", + "sourceId": "de305d54-75b4-431b-adb2-eb6b9e546014", + "sourceName": "ibcx0001vm002ssc001", + "nfVendorName": "Samsung", + "nfNamingCode": "ibcx", + "nfcNamingCode": "ssc", + "startEpochMicrosec": 1413378172000000, + "lastEpochMicrosec": 1413378172000000, + "timeZoneOffset": "UTC-05:30" + }, + "measurementFields": { + "additionalMeasurements": [ + { + "name": "latency", + "hashMap": { + "value": "[[100-150]]" + } + } + ], + "measurementInterval": 5, + "measurementFieldsVersion": "4.0" + } + } +} diff --git a/src/test/resources/ue.json b/src/test/resources/ue.json new file mode 100644 index 0000000..437df08 --- /dev/null +++ b/src/test/resources/ue.json @@ -0,0 +1,20 @@ +[ + { + "id": "mobile_samsung_s10", + "latitude": "50.09", + "longitude": "19.94", + "cellId": "Chn0000" + }, + { + "id": "mobile_samsung_s20", + "latitude": "50.05", + "longitude": "19.95", + "cellId": "Chn0002" + }, + { + "id": "emergency_police_111", + "latitude": "50.035", + "longitude": "19.97", + "cellId": "Chn0002" + } +] diff --git a/src/test/resources/vnf.config b/src/test/resources/vnf.config new file mode 100644 index 0000000..09a2553 --- /dev/null +++ b/src/test/resources/vnf.config @@ -0,0 +1,7 @@ +vesHost=someVesCollectorIP +vesPort=someVesCollectorPort +vesUser=someVesUser +vesPassword=someVesPassword +vnfId=someVnfId +vnfName=someVnfName +unknownProperty=doNotFail |