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
759 changes: 0 additions & 759 deletions Z_WIP_TestingPrep/oas_services_testing_prep.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ participant "/v1/notify-device-object-deletions" as notifyDOD #LightBlue


group Preparation
Data --\\o Postman : {servers, collectionInput (controllerInfo, subscriberInfo)}
Data --\\o Postman : {servers, collectionInput}
activate Postman
Postman --\\o Collection : {servers, collectionInput}
end

group /v1/add-controller
Collection --\\o Postman: {servers, controllerInfo}
Postman -> addCtrl: {controllerInfo}
Collection --\\o Postman: {servers}
Postman -> addCtrl: {dummyControllerInfo}
addCtrl <-- Postman: ResponseCode
note right Postman #Orange
check for ResponseCode == 204
Expand All @@ -46,71 +46,71 @@ group /v1/listen-to-controllers
end

group /v1/remove-controller
Collection --\\o Postman: {servers, controllerInfo}
Postman -> removeCtrl: {controllerInfo}
Collection --\\o Postman: {servers}
Postman -> removeCtrl: {dummyControllerInfo}
removeCtrl <-- Postman: ResponseCode
note right Postman #Orange
check for ResponseCode == 204
end note
end

group /v1/notify-controller-attribute-value-changes
Collection --\\o Postman: {servers, subscriberInfo}
Postman -> notifyCAVC: {subscriberInfo}
Collection --\\o Postman: {servers}
Postman -> notifyCAVC: {dummySubscriberInfo}
notifyCAVC <-- Postman: ResponseCode
note right Postman #Orange
check for ResponseCode == 204
end note
end

group /v1/notify-controller-object-creations
Collection --\\o Postman: {servers, subscriberInfo}
Postman -> notifyCOC: {subscriberInfo}
Collection --\\o Postman: {servers}
Postman -> notifyCOC: {dummySubscriberInfo}
notifyCOC <-- Postman: ResponseCode
note right Postman #Orange
check for ResponseCode == 204
end note
end

group /v1/notify-controller-object-deletions
Collection --\\o Postman: {servers, subscriberInfo}
Postman -> notifyCOD: {subscriberInfo}
Collection --\\o Postman: {servers}
Postman -> notifyCOD: {dummySubscriberInfo}
notifyCOD <-- Postman: ResponseCode
note right Postman #Orange
check for ResponseCode == 204
end note
end

group /v1/notify-device-alarms
Collection --\\o Postman: {servers, subscriberInfo}
Postman -> notifyAlarm: {subscriberInfo}
Collection --\\o Postman: {servers}
Postman -> notifyAlarm: {dummySubscriberInfo}
notifyAlarm <-- Postman: ResponseCode
note right Postman #Orange
check for ResponseCode == 204
end note
end

group /v1/notify-device-attribute-value-changes
Collection --\\o Postman: {servers, subscriberInfo}
Postman -> notifyDAVC: {subscriberInfo}
Collection --\\o Postman: {servers}
Postman -> notifyDAVC: {dummySubscriberInfo}
notifyDAVC <-- Postman: ResponseCode
note right Postman #Orange
check for ResponseCode == 204
end note
end

group /v1/notify-device-object-creations
Collection --\\o Postman: {servers, subscriberInfo}
Postman -> notifyDOC: {subscriberInfo}
Collection --\\o Postman: {servers}
Postman -> notifyDOC: {dummySubscriberInfo}
notifyDOC <-- Postman: ResponseCode
note right Postman #Orange
check for ResponseCode == 204
end note
end

group /v1/notify-device-object-deletions
Collection --\\o Postman: {servers, subscriberInfo}
Postman -> notifyDOD: {subscriberInfo}
Collection --\\o Postman: {servers}
Postman -> notifyDOD: {dummySubscriberInfo}
notifyDOD <-- Postman: ResponseCode
note right Postman #Orange
check for ResponseCode == 204
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions testing/2_functional/invalidOrMissingRequestBody/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Testing for invalidOrMissingRequestBody

## Components
![Components](./diagrams/np-invalidOrMissingRequestBody-components.png)


## v1.1.0
![Sequence](./v1.1.0/diagrams/NotificationProxy+diagram.invalidOrMissingRequestBody.png)
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@startuml np-invalidOrMissingRequestBody-components

skinparam componentStyle rectangle

title
NotificationProxy+test.functional.invalidOrMissingRequestBody
end title

package "invalidOrMissingRequestBody" {
component [<u>Postman</u>\n\nNotificationProxy+test.invalidOrMissingRequestBody.json] as TCC #Orange
component [<u>Application under Test</u>\n\nNotificationProxy] as AUT #LightBlue

TCC -> AUT

}

@enduml
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
@startuml NotificationProxy+diagram.invalidOrMissingRequestBody
skinparam responseMessageBelowArrow true

title
NotificationProxy+test.invalidOrMissingRequestBody
end title

participant "Postman\n" as Postman #Orange
participant "Data\n" as Data
participant "Collection\n" as Collection

participant "/v1/add-controller" as addCtrl #LightBlue
participant "/v1/remove-controller" as removeCtrl #LightBlue
participant "/v1/notify-controller-attribute-value-changes" as notifyCAVC #LightBlue
participant "/v1/notify-controller-object-creations" as notifyCOC #LightBlue
participant "/v1/notify-controller-object-deletions" as notifyCOD #LightBlue
participant "/v1/notify-device-alarms" as notifyAlarm #LightBlue
participant "/v1/notify-device-attribute-value-changes" as notifyDAVC #LightBlue
participant "/v1/notify-device-object-creations" as notifyDOC #LightBlue
participant "/v1/notify-device-object-deletions" as notifyDOD #LightBlue


group Preparation
Data --\\o Postman : {servers, collectionInput}
activate Postman
Postman --\\o Collection : {servers, collectionInput}
end

group /v1/add-controller
Collection --\\o Postman: {servers}
Postman -> addCtrl: {1. missing requestBody \n2. invalid requestBody}
addCtrl <-- Postman: ResponseCode
note right Postman #Orange
check for ResponseCode == 400
end note
end

group /v1/remove-controller
Collection --\\o Postman: {servers}
Postman -> removeCtrl: {1. missing requestBody \n2. invalid requestBody}
removeCtrl <-- Postman: ResponseCode
note right Postman #Orange
check for ResponseCode == 400
end note
end

group /v1/notify-controller-attribute-value-changes
Collection --\\o Postman: {servers}
Postman -> notifyCAVC: {1. missing requestBody \n2. invalid requestBody}
notifyCAVC <-- Postman: ResponseCode
note right Postman #Orange
check for ResponseCode == 400
end note
end

group /v1/notify-controller-object-creations
Collection --\\o Postman: {servers}
Postman -> notifyCOC: {1. missing requestBody \n2. invalid requestBody}
notifyCOC <-- Postman: ResponseCode
note right Postman #Orange
check for ResponseCode == 400
end note
end

group /v1/notify-controller-object-deletions
Collection --\\o Postman: {servers}
Postman -> notifyCOD: {1. missing requestBody \n2. invalid requestBody}
notifyCOD <-- Postman: ResponseCode
note right Postman #Orange
check for ResponseCode == 400
end note
end

group /v1/notify-device-alarms
Collection --\\o Postman: {servers}
Postman -> notifyAlarm: {1. missing requestBody \n2. invalid requestBody}
notifyAlarm <-- Postman: ResponseCode
note right Postman #Orange
check for ResponseCode == 400
end note
end

group /v1/notify-device-attribute-value-changes
Collection --\\o Postman: {servers}
Postman -> notifyDAVC: {1. missing requestBody \n2. invalid requestBody}
notifyDAVC <-- Postman: ResponseCode
note right Postman #Orange
check for ResponseCode == 400
end note
end

group /v1/notify-device-object-creations
Collection --\\o Postman: {servers}
Postman -> notifyDOC: {1. missing requestBody \n2. invalid requestBody}
notifyDOC <-- Postman: ResponseCode
note right Postman #Orange
check for ResponseCode == 400
end note
end

group /v1/notify-device-object-deletions
Collection --\\o Postman: {servers}
Postman -> notifyDOD: {1. missing requestBody \n2. invalid requestBody}
notifyDOD <-- Postman: ResponseCode
note right Postman #Orange
check for ResponseCode == 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