"Check that the IUT responds with an HTPP 200 OK Acknowledgment response when receiving a PullRequest from a known peer with a list of vessels in specified basin - no Acknowledgment required"
"Check that the IUT responds with an HTPP 200 OK Acknowledgment response when receiving a PullRequest from a known peer with a list of vessels in specified basin - no Acknowledgment required"
@@ -122,7 +122,224 @@ Package CISE {
to the ADAPTER entity
to the ADAPTER entity
}
}
}
}
} // End of TP_CDM_NODE_PULL_REQ_BV_01
} // End of TP_CDM_NODE_PULL_REQ_BV_01_01
Test Purpose {
TP Id "TP_CDM_NODE_PULL_REQ_BV_01_02"
Test objective
"Check that the IUT responds with an HTPP 200 OK Acknowledgment response when receiving a PullRequest from a known peer with a list of vessels in specified basin - no Acknowledgment required"
PICS Selection PICS_IUT_NODE and PICS_CDM_VESSEL_SERVICE
Initial conditions with {
the IUT entity isInIdleState
}
Expected behaviour
ensure that {
when {
the IUT entity receives a vGET containing
uri indicating value URI_PULL_REQUEST_GET,
body containing
vPullRequest containing
MessageID indicating value MESSAGE_ID,
CorrelationID indicating value CORELATION_ID,
CreationDateTime indicating value CURRENT_TIME,
Priority indicating value PRIORITY,
RequiresAck indicating value false,
Sender containing
ServiceID indicating value SERVICE_ID,
ServiceOperation indicating value Pull
;,
Recipient containing
ServiceID indicating value SERVICE_ID,
ServiceOperation indicating value Pull
;,
Payload containing
Vessel containing
IMONumber indicating value VESSEL_IMO_NUMBER,
Name indicating value VESSEL_NAME,
Location indicating value VESSEL_LOCATION,
ShipType indicating value VESSEL_SHIP_TYPE
// TODO Colour is a mandatory field
// TODO ExternalMarkings is a mandatory field
// TODO Metadata is a mandatory field
// TODO InvolvedEventRel is a mandatory field
// TODO DocumentRel is a mandatory field
// TODO VehiclesRel is a mandatory field
;
;,
PullType indicating value Request,
DiscoveryProfiles containing
country indicating value COUNTRY
;,
Signature indicating value any_value
;
;
;
from the ADAPTER entity
}
then {
the IUT entity sends a HTTP_RESPONSE containing
status_code set to "200 OK"
body containing
vAcknwoledgment containing
MessageID indicating value MESSAGE_ID,
CorrelationID indicating value CORELATION_ID,
Priority indicating value PRIORITY,
RequiresAck indicating value false,
Sender containing
ServiceID indicating value SERVICE_ID,
ServiceOperation indicating value Pull
;,
Recipient containing
ServiceID indicating value SERVICE_ID,
ServiceOperation indicating value Pull
;,
AckCode indicating value Success,
Signature indicating value any_value
;
;
;
to the ADAPTER entity and
the IUT entity sends a HTTP_RESPONSE containing
status_code set to "200 OK"
body containing
vPullResponse containing
MessageID indicating value MESSAGE_ID,
CorrelationID indicating value CORELATION_ID,
CreationDateTime indicating value CURRENT_TIME,
Priority indicating value PRIORITY,
RequiresAck indicating value false,
Sender containing
ServiceID indicating value SERVICE_ID,
ServiceOperation indicating value Pull
;,
Recipient containing
ServiceID indicating value SERVICE_ID,
ServiceOperation indicating value Pull
;,
ResultCode indicating value success,
Signature indicating value any_value
;
;
;
to the ADAPTER entity
}
}
} // End of TP_CDM_NODE_PULL_REQ_BV_01_02
Test Purpose {
TP Id "TP_CDM_NODE_PULL_REQ_BV_02"
Test objective
"Check that the IUT responds with an HTPP 200 OK Acknowledgment response when receiving a PullRequest from a known peer with a list of cargos in specified basin - no Acknowledgment required"