Commits (2)
......@@ -2,12 +2,6 @@
"folders": [
{
"path": "."
},
{
"path": "../../tmp/xer_decoding_issue"
},
{
"path": "../cise-ais-adaptor"
}
],
"settings": {
......
[MODULE_PARAMETERS]
# This section shall contain the values of all parameters that are defined in your TTCN-3 modules.
#LibCommon_Time.PX_TAC := 60.0
# IUT roles
LibCise_Pics.PICS_IUT_CDM_NODE_EI_NA := false
LibCise_Pics.PICS_IUT_CDM_NODE_EI_NA := true
LibCise_Pics.PICS_IUT_CDM_NODE_EI_NN := false
LibCise_Pics.PICS_IUT_CDM_ADAPTOR := false
LibCise_Pics.PICS_IUT_CDM_CISE_SIMU_EI_NA := true
LibCise_Pics.PICS_IUT_CDM_CISE_SIMU_EI_NA := false
# Communication messages
LibCise_Pics.PICS_CDM_PULL := true
......@@ -29,9 +31,9 @@ LibCise_Pics.PICS_CDM_RISK_SERVICE := true
LibCise_Pics.PICS_CDM_CARGO_SERVICE := true
# LibCise
LibCise_Pics.PICS_CISE_CERTIFICATES_DB_PATH := "/home/ygarcia/dev/cise-data-model/keystore"
LibCise_Pics.PICS_CISE_TS_CERTIFICATE := "signing.de.cnit.simulator1.pem" #"sim1_node01.node01.eucise.fr.pem"
LibCise_Pics.PICS_CISE_TS_SIGNING_PRIVATE_KEY := "signing.de.cnit.simulator1.p8.pem" #"sim1_node01.node01.eucise.fr.pkcs8"
LibCise_Pics.PICS_CISE_CERTIFICATES_DB_PATH := "/home/y.garcia/dev/cise-data-model/keystore"
LibCise_Pics.PICS_CISE_TS_CERTIFICATE := "signing.de.cnit.test1.cer" #"sim1_node01.node01.eucise.fr.pem"
LibCise_Pics.PICS_CISE_TS_SIGNING_PRIVATE_KEY := "signing.de.cnit.test1.privkey.pem" #"sim1_node01.node01.eucise.fr.pkcs8"
LibCise_Pics.PICS_CISE_TS_CERTIFICATE_PAST := "cise_expired.crt"
LibCise_Pics.PICS_CISE_TS_SIGNING_PRIVATE_KEY_PAST := "cise_expired.key"
LibCise_Pics.PICS_CISE_TS_CERTIFICATE_FUTURE := "cert_future.crt"
......@@ -40,21 +42,23 @@ LibCise_Pics.PICS_CISE_TS_SIGNING_PRIVATE_PASSWD := ""
LibCise_Pics.PICS_HEADER_HOST_UT := "172.25.1.58" # Adaptor
# LibHttp
LibHttp_Pics.PICS_HEADER_HOST := "10.50.1.201"
LibHttp_Pics.PICS_HEADER_HOST := "10.50.1.121"
LibHttp_Pics.PICS_HEADER_CONTENT_TYPE := "application/xml"
LibHttp_Pics.PICS_USE_TOKEN_HEADER := true
#LibHttp_Pics.PICS_TOKEN_HEADER := "Basic WrongToken"
LibCise_Pics.PICS_CISE_ADAPTOR_URI := "/cise-adapter/api/v1/messages"
LibCise_Pics.PICS_CISE_PULL_REQUEST_URI := "messages" #"api/messages"
LibCise_Pics.PICS_PULL_RESPONSE_URI := "messages"
LibCise_Pics.PICS_CISE_ADAPTOR_URI := "/cise-adapter/api/v1/messages"
# LibCise test parameters
# Asynchronous Ack
LibCise_Pixits.PX_CISE_REQUEST_ACK := false
# Services
LibCise_Pixits.PX_CISE_SENDER_SERVICE_ID := "de.cnit.simulator1.vessel.pull.provider"
LibCise_Pixits.PX_CISE_RECIPIENT_SERVICE_ID := "de.cnit.testsystem1.vessel.pull.consumer"
LibCise_Pixits.PX_CISE_SENDER_SERVICE_ID := "de.cnit.test1.vessel.pull.consumer"
LibCise_Pixits.PX_CISE_RECIPIENT_SERVICE_ID := "de.cnit.test2.vessel.pull.provider"
# Discovery
LibCise_Pixits.PX_CISE_DISCOVERY_PROFILE_SERVICE_ID := "cx.simlsa3-nodecx.vessel.push.consumer"
LibCise_Pixits.PX_CISE_DISCOVERY_PROFILE_SERVICE_ID := "de.cnit.test2.vessel.push.consumer"
LibCise_Pixits.PX_CISE_SEA_BASSIN := mediterranean
LibCise_Pixits.PX_DATA_FRESHNESS_TYPE := unknown
# Vessel infornmation
......@@ -101,7 +105,8 @@ LogEventTypes:= Yes
# I1 interface
## Unsecured
system.httpPort.params := "HTTP(codecs=xml:xml_codec;json:json_codec)/TCP(debug=1,server=10.50.1.25)"
system.httpPort_notif.params := "HTTP(codecs=xml:xml_codec;json:json_codec)/TCP(debug=1,server_mode=1,local_port=8200)"
#system.httpPort.params := "HTTP(codecs=xml:xml_codec;json:json_codec)/TCP(debug=1,server=adapter.int.cnit.de.testcisenet.eu)"
system.httpPort_notif.params := "HTTP(codecs=xml:xml_codec;json:json_codec)/TCP(debug=1,server_mode=1,local_port=8888)"
#### For multiple component
CISEAdapter1.httpPort.params := "HTTP(codecs=xml:xml_codec;json:json_codec)/TCP(debug=1,server=172.25.1.54,port=8200)"
CISEAdapter1.httpPort_notif.params := "HTTP(codecs=xml:xml_codec;json:json_codec)/TCP(debug=1,server_mode=1,local_port=8310)"
......@@ -148,7 +153,7 @@ system.utPort.params := "HTTP(codecs=xml:xml_codec;json:json_codec)/TCP(debug=1,
# Check that the IUT responds with an HTTP 200 OK Acknowledgment response when receiving a PullRequest for Vessel service - no Acknowledgment required
#AtsCise_TestCases.TC_CDM_NODE_EI_NA_PULL_REQUEST_BV_01_01
# Check that the IUT sends a PullResponse before reponse timout expiry when receiving a PullRequest with timeout on response - no Acknowledgment required
#AtsCise_TestCases.TC_CDM_NODE_EI_NA_PULL_REQUEST_BV_01_02
AtsCise_TestCases.TC_CDM_NODE_EI_NA_PULL_REQUEST_BV_01_02
# Check that the IUT responds with an HTTP 200 OK Acknowledgment response when receiving a PullRequest for a unknown vessel - no Acknowledgment required
#AtsCise_TestCases.TC_CDM_NODE_EI_NA_PULL_REQUEST_BV_01_03
# Check that the IUT responds with an HTTP 200 OK Acknowledgment response when receiving a PullRequest with filter - no Acknowledgment required
......@@ -164,7 +169,7 @@ system.utPort.params := "HTTP(codecs=xml:xml_codec;json:json_codec)/TCP(debug=1,
# Check that the IUT responds with an HTTP 200 OK Acknowledgment response and an error code when receiving a PullRequest with a date/time far in future (one month)
#AtsCise_TestCases.TC_CDM_NODE_EI_NA_PULL_REQUEST_BO_01_05
# Check that the IUT responds with an HTTP 200 OK Acknowledgment response and an error code when receiving a PullRequest with an invalid filter (Selector entry does not exist)
AtsCise_TestCases.TC_CDM_NODE_EI_NA_PULL_REQUEST_BO_01_06
#AtsCise_TestCases.TC_CDM_NODE_EI_NA_PULL_REQUEST_BO_01_06
# Check that the IUT responds with an HTTP 200 OK Acknowledgment response when receiving a PullRequest for Action service - no Acknowledgment required
#AtsCise_TestCases.TC_CDM_NODE_EI_NA_PULL_REQUEST_BV_02_01
......@@ -478,7 +483,7 @@ AtsCise_TestCases.TC_CDM_NODE_EI_NA_PULL_REQUEST_BO_01_06
# Simulate peer adapter of CISE node IUT
AtsCise_TestCases.TC_CDM_CISE_SIMU_EI_NA_PULL_BV_01
#AtsCise_TestCases.TC_CDM_CISE_SIMU_EI_NA_PULL_BV_01
[GROUPS]
# In this section you can specify groups of hosts. These groups can be used inside the
......
Subproject commit 6901c1c381950f308d2b1643e90757248ae99eab
Subproject commit 6959b8be419f3755de6f888e24bfdc8de07383a7
......@@ -56,7 +56,8 @@ module AtsCise_TestCases {
in template (omit) Service p_recipient,
in template (omit) XmlEntityPayload p_entity_payload := omit,
in template (omit) PayloadSelector p_payload_selector := omit,
in template (value) PullRequest_1.discoveryProfiles_list p_discovery_profiles := {}
in template (value) PullRequest_1.discoveryProfiles_list p_discovery_profiles := {},
in template (present) XmlEntityPayload p_pull_response_entity_payload := ?
) runs on CiseComponent {
// Local variables
var boolean v_recv_sync_ack := true;
......@@ -163,8 +164,11 @@ module AtsCise_TestCases {
-, -,
success,
-, -, -,
v_correlation_id
)))))) -> value v_request {
v_correlation_id,
-, -,
mw_core_entity_payload_derivations_payload(
p_pull_response_entity_payload
))))))) -> value v_request {
tc_ac.stop;
 
if (not(f_verify_sign_pull_response(v_request.request.body.xml_body, ""/*v_pull_response_canonicalized*/))) {
......@@ -1202,7 +1206,7 @@ module AtsCise_TestCases {
} // End of testcase TC_CDM_NODE_EI_NA_PULL_REQUEST_BO_01_02
 
/**
* @desc Check that the IUT responds with an HTTP 200 OK Acknowledgment response and an error code when receiving a PullRequest with an inconsistent Service Operation type
* @desc Check that the IUT responds with an HTTP 200 OK Acknowledgment response and an error code when receiving a PullRequest with an unknown serviceID
*/
testcase TC_CDM_NODE_EI_NA_PULL_REQUEST_BO_01_03() runs on CiseComponent system CiseTestAdapter {
// Local variables