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
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Functional Testing of Invalid or Missing RequestBody Handling of the Receivers of Notifications

For the receiver services the OAS contains a requestBody. The tests therefore are executed with both an invalid requestBody and with a missing requestBody. In all cases a 400 response is expected.

Note:
- The *regard*-services for device and alarm notifications have been deprecated with MWDI v2.0.0.
- The *regard*-service for controller notifications however remains in use.
- The testcase collections therefore have been splitted.

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

For the receiver services the OAS contains a requestBody. The tests therefore are executed with both an invalid requestBody and with a missing requestBody. In all cases a 400 response is expected.

**Deprecated services**
![OverviewDeprecated](./_deprecated-services/mwdi+diagram.invalidOrMissingRequestBody.receiver.deprecated.png)
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
[
{
"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.invalidOrMissingRequestBody.receiver.deprecated",
"server": "http://localhost:3010",
"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": "invalidOrMissingRequestBody.receiver.deprecated",
"serverToBeApplied": "mwdi",
"mountName": "513250004",
"linkId": "101550001",
"kindOfReference": "dynamic"
},
{
"collectionName": "invalidOrMissingRequestBody.receiver.deprecated_simulator",
"serverToBeApplied": "mwdi in mwdi+simulator.invalidOrMissingRequestBody.receiver.deprecated",
"mountName": "305250001",
"linkId": "101550001",
"kindOfReference": "static",
"suffixUrlEncodingIsRequired": true
}
]
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
@startuml mwdi+diagram.invalidOrMissingRequestBody.receiver.deprecated
skinparam responseMessageBelowArrow true

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

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

participant "/v1/regard-controller-attribute-value-change" as RCAVC
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}
activate Postman
Postman --\\o Collection : {servers}
end

note over Postman, RCAVC
For each service there are two testcases to be executed.
Both tests differ in the provided requestBody:
- an invalid requestBody according to OAS
- no requestBody provided at all
end note

group /v1/regard-device-alarm
Collection --\\o Postman : {servers}
Postman -> RDA : (a) {invalidRequestBody} \n(b) no requestBody
Postman <-- RDA : 400
note right Postman #Orange
check for 400
end note
end

group /v1/regard-device-attribute-value-change
Collection --\\o Postman : {servers}
Postman -> RDAVC : (a) {invalidRequestBody} \n(b) no requestBody
Postman <-- RDAVC : 400
note right Postman #Orange
check for 400
end note
end

group /v1/regard-device-object-deletion
Collection --\\o Postman : {servers}
Postman -> RDOD : (a) {invalidRequestBody} \n(b) no requestBody
Postman <-- RDOD : 400
note right Postman #Orange
check for 400
end note
end

group /v1/regard-device-object-creation
Collection --\\o Postman : {servers}
Postman -> RDOC : (a) {invalidRequestBody} \n(b) no requestBody
Postman <-- RDOC : 400
note right Postman #Orange
check for 400
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