Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions testing/2_functional/unknownTargetObject/v2.0.1/Receiver/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
# Functional Testing of Unknown Target Object (in RequestBody) Handling of the Receivers

Two separate testcase collections are provided, due to all device change/alarm *regard*-services being deprecated.

### Not deprecated services

The service to regard controller attribute value changes is not deprecated.

![Overview](./mwdi+diagram.unknownTargetObject.receiver.png)

Notes:
- (1) `/v1/regard-controller-attribute-value-change`: for both known and unknown mount-names a 204 is returned
(1) `/v1/regard-controller-attribute-value-change`: for both known and unknown mount-names a 204 is returned

### Deprecated services

The services to regard device notifications (including alarms) are all deprecated.

![Overview](./_deprecated-services%20tests/mwdi+diagram.unknownTargetObject.receiver.deprecated.png)

Notes:
- (2) `/v1/regard-device-attribute-value-change`: 500 expected
- the mount-name is provided by the Controller/device itself, not by a 3rd party application or a user, therefore the provided mount-name can be considered valid
- if it is not known by MWDI then this is not a client/caller error (400), but a MWDI (i.e. server) error
Expand All @@ -24,5 +38,5 @@ Notes:
Note:
- testing both (4.1) and (4.2) with the same simulator is not possible, as the simulators currently only return a single fixed answer
- therefore two separate simulators are provided:
- `MicroWaveDeviceInventory+simu.unknownTargetObject.unknownMountName.receiver.yaml`: for all tests except (4.2) and (5.2)
- `MicroWaveDeviceInventory+simu.unknownTargetObject.unknownClass.receiver.yaml`: just for (4.2) and (5.2)
- `MicroWaveDeviceInventory+simu.unknownTargetObject.unknownMountName.receiver.deprecated.yaml`: for all tests except (4.2) and (5.2)
- `MicroWaveDeviceInventory+simu.unknownTargetObject.unknownClass.receiver.deprecated.yaml`: just for (4.2) and (5.2)
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
[
{
"mode": "debug",
"serverList": [
{
"serverName": "dummy",
"dummyUri": "ping.openBackhaul.com"
},
{
"serverName": "mwdi",
"server": "http://IP_ADRESS:PORT",
"pathToControlConstruct": "/core-model-1-4:network-control-domain=cache/control-construct={mountName}",
"authorizationCode": "YOUR_BASIC_AUTH_CODE",
"operationKey": "Operation key not yet provided.",
"userName": "Thorsten Heinze",
"originator": "InterfaceValidator_TR532v2.0",
"xCorrelator": "00000000-0000-0000-0000-000000000532",
"traceIndicator": "1",
"customerJourney": ""
},
{
"serverName": "mwdi in mwdi+simulator.unknownTargetObject.unknownMountName.receiver.deprecated",
"server": "http://localhost:3012",
"pathToControlConstruct": "/core-model-1-4:network-control-domain=cache/control-construct={mountName}",
"authorizationCode": "",
"operationKey": "Operation key not yet provided.",
"userName": "Thorsten Heinze",
"originator": "InterfaceValidator_TR532v2.0",
"xCorrelator": "00000000-0000-0000-0000-000000000532",
"traceIndicator": "1",
"customerJourney": ""
},
{
"serverName": "mwdi in mwdi+simulator.unknownTargetObject.unknownClass.receiver.deprecated",
"server": "http://localhost:3013",
"pathToControlConstruct": "/core-model-1-4:network-control-domain=cache/control-construct={mountName}",
"authorizationCode": "",
"operationKey": "Operation key not yet provided.",
"userName": "Thorsten Heinze",
"originator": "InterfaceValidator_TR532v2.0",
"xCorrelator": "00000000-0000-0000-0000-000000000532",
"traceIndicator": "1",
"customerJourney": ""
}
],
"collectionInputList": [
{
"collectionName": "unknownTargetObject.unknownMountName.receiver.deprecated",
"serverToBeApplied": "mwdi",
"mountName": "513250004",
"linkId": "101550001",
"kindOfReference": "dynamic",
"deviceAlarm_mountName": "513250008",
"deviceAlarm_alarmTypeId": "siae-alarms-1-0:radioEquipConcatenationAlarm",
"attributeValueChange_target": "513250006/logical-termination-point=LTP-MWPS-TTP-ODU-A/ltp-augment-1-0:ltp-augment-pac",
"attributeValueChange_attributeName": "external-label",
"attributeValueChange_newValue": "513559992A",
"objectCreation_target": "513250007/forwarding-domain=VLAN-FD/fc=VLAN-500"
},
{
"collectionName": "unknownTargetObject.unknownClass.receiver.deprecated",
"serverToBeApplied": "mwdi",
"mountName": "513250004",
"linkId": "101550001",
"kindOfReference": "dynamic",
"deviceAlarm_mountName": "513250008",
"deviceAlarm_alarmTypeId": "siae-alarms-1-0:radioEquipConcatenationAlarm",
"attributeValueChange_target": "513250006/logical-termination-point=LTP-MWPS-TTP-ODU-A/ltp-augment-1-0:ltp-augment-pac",
"attributeValueChange_attributeName": "external-label",
"attributeValueChange_newValue": "513559992A",
"objectCreation_target": "513250007/forwarding-domain=VLAN-FD/fc=VLAN-500"
},
{
"collectionName": "unknownTargetObject.unknownMountName.receiver.deprecated_simulator",
"serverToBeApplied": "mwdi in mwdi+simulator.unknownTargetObject.unknownMountName.receiver.deprecated",
"mountName": "305250001",
"linkId": "101550001",
"kindOfReference": "static",
"suffixUrlEncodingIsRequired": true,
"deviceAlarm_mountName": "513250008",
"deviceAlarm_alarmTypeId": "siae-alarms-1-0:radioEquipConcatenationAlarm",
"attributeValueChange_target": "513250006/logical-termination-point=LTP-MWPS-TTP-ODU-A/ltp-augment-1-0:ltp-augment-pac",
"attributeValueChange_attributeName": "external-label",
"attributeValueChange_newValue": "513559992A",
"objectCreation_target": "513250007/forwarding-domain=VLAN-FD/fc=VLAN-500"
},
{
"collectionName": "unknownTargetObject.unknownClass.receiver.deprecated_simulator",
"serverToBeApplied": "mwdi in mwdi+simulator.unknownTargetObject.unknownClass.receiver.deprecated",
"mountName": "305250001",
"linkId": "101550001",
"kindOfReference": "static",
"suffixUrlEncodingIsRequired": true,
"deviceAlarm_mountName": "513250008",
"deviceAlarm_alarmTypeId": "siae-alarms-1-0:radioEquipConcatenationAlarm",
"attributeValueChange_target": "513250006/logical-termination-point=LTP-MWPS-TTP-ODU-A/ltp-augment-1-0:ltp-augment-pac",
"attributeValueChange_attributeName": "external-label",
"attributeValueChange_newValue": "513559992A",
"objectCreation_target": "513250007/forwarding-domain=VLAN-FD/fc=VLAN-500"
}
]
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
@startuml mwdi+diagram.unknownTargetObject.receiver.deprecated
skinparam responseMessageBelowArrow true

title
mwdi+testcase.unknownTargetObject.receiver.deprecated
end title

participant "Postman" as Postman
participant "Data" as Data
participant "Collection" as Collection

participant "/v1/regard-device-alarm" as RDA
participant "/v1/regard-device-attribute-value-change" as RDAVC
participant "/v1/regard-device-object-deletion" as RDOD
participant "/v1/regard-device-object-creation" as RDOC

group Preparation
Data --\\o Postman : {servers, collection-input-list}
activate Postman
Postman --\\o Collection : {servers, collection-input-list}
end

group /v1/regard-device-alarm
Collection --\\o Postman : {servers, collection-input-list}
Postman -> RDA : {requestBody with unknown mountName in resource}
Postman <-- RDA : 500
note right Postman #Orange
check for 500
end note
end

group /v1/regard-device-attribute-value-change
Collection --\\o Postman : {servers, collection-input-list}
Postman -> RDAVC : {requestBody with unknown mountName in object-path}
Postman <-- RDAVC : 500
note right Postman #Orange
check for 500
end note
end

group /v1/regard-device-object-deletion
Collection --\\o Postman : {servers, (object-creation) target}
Postman -> RDOD : {requestBody with unknown mountName in object-path}
Postman <-- RDOD : 500
note right Postman #Orange
check for 500
end note
end

group /v1/regard-device-object-deletion
Collection --\\o Postman : {servers, (object-creation) target}
Postman -> RDOD : {requestBody with known mountName, but unknown class in object-path}
Postman <-- RDOD : 533
note right Postman #Orange
check for 533
end note
end

group /v1/regard-device-object-creation
Collection --\\o Postman : {servers, target}
Postman -> RDOC : {requestBody with unknown mountName in object-path}
Postman <-- RDOC : 404
note right Postman #Orange
check for 404
end note
end

group /v1/regard-device-object-creation
Collection --\\o Postman : {servers, target}
Postman -> RDOC : {requestBody with known mountName, but unknown class in object-path}
Postman <-- RDOC : 404
note right Postman #Orange
check for 404
end note
end

deactivate Postman

@enduml
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading