Skip to content
Snippets Groups Projects
Commit e3dd0893 authored by aahmad's avatar aahmad
Browse files

TP CSE/ESC/BV/001 corrected in the ATS. TC still has a TODO on initial...

TP CSE/ESC/BV/001 corrected in the ATS.  TC still has a TODO on initial condition.  Modified TC structure to run on CseSimu.
parent 46e7a737
No related branches found
No related tags found
No related merge requests found
...@@ -1360,10 +1360,10 @@ module OneM2M_Templates { ...@@ -1360,10 +1360,10 @@ module OneM2M_Templates {
*/ */
template SecurityInfo mw_contentSecurityInfo (in SecurityInfoType p_securityInfoType, in XSD.Base64Binary p_escertkeMessage) := { template SecurityInfo mw_contentSecurityInfo (in SecurityInfoType p_securityInfoType, in XSD.Base64Binary p_escertkeMessage) := {
securityInfoType := p_securityInfoType, securityInfoType := p_securityInfoType,
dasRequest := ?, dasRequest := *,
dasResponse := ?, dasResponse := *,
esprimRandObject := ?, esprimRandObject := *,
esprimObject := ?, esprimObject := *,
escertkeMessage := p_escertkeMessage escertkeMessage := p_escertkeMessage
} }
......
...@@ -83,10 +83,10 @@ module OneM2M_Testcases_CSE_Release_2_SEC_STF531 { ...@@ -83,10 +83,10 @@ module OneM2M_Testcases_CSE_Release_2_SEC_STF531 {
testcase TC_CSE_ESC_BV_001() runs on CseSimu system CseSystem { testcase TC_CSE_ESC_BV_001() runs on CseSimu system CseSystem {
var MsgIn v_response; var MsgIn v_response;
var template RequestPrimitive v_requestNotify := m_notify; var RequestPrimitive v_requestNotify;
var PrimitiveContent v_primitiveContentResponse;
//Test component configuration //Test component configuration
f_cf02Up(); f_cf02UpCse1();
// Test adapter configuration // Test adapter configuration
...@@ -100,17 +100,17 @@ module OneM2M_Testcases_CSE_Release_2_SEC_STF531 { ...@@ -100,17 +100,17 @@ module OneM2M_Testcases_CSE_Release_2_SEC_STF531 {
v_requestNotify.primitiveContent := {securityInfo := m_contentSecurityInfo(int6)}; v_requestNotify.primitiveContent := {securityInfo := m_contentSecurityInfo(int6)};
v_requestNotify.primitiveContent.securityInfo.escertkeMessage := str2oct("VExTIE1lc3NhZ2U6IENsaWVudCBIZWxsbw=="); v_requestNotify.primitiveContent.securityInfo.escertkeMessage := str2oct("VExTIE1lc3NhZ2U6IENsaWVudCBIZWxsbw==");
v_primitiveContentResponse.securityInfo := mw_contentSecurityInfo(int6, str2oct("VExTIE1lc3NhZ2VzOiBTZXJ2ZXIgSGVsbG8sIENlcnRpZmljYXRlKiwgU2VydmVyS2V5RXhjaGFuZ2UqLCBDZXJ0aWZpY2F0ZVJlcXVlc3QqLCBTZXJ2ZXJIZWxsb0RvbmU="));
mccPort.send(m_request(v_requestNotify)); mccPort.send(m_request(v_requestNotify));
tc_ac.start; tc_ac.start;
alt { alt {
[] mccPort.receive(mw_response(mw_responsePrimitive(int2000, mw_contentSecurityInfo(int6, str2oct("VExTIE1lc3NhZ2VzOiBTZXJ2ZXIgSGVsbG8sIENlcnRpZmljYXRlKiwgU2VydmVyS2V5RXhjaGFuZ2UqLCBDZXJ0aWZpY2F0ZVJlcXVlc3QqLCBTZXJ2ZXJIZWxsb0RvbmU=")))))-> value v_response { [] mccPort.receive(mw_response(mw_responsePrimitive(int2000,v_primitiveContentResponse)))-> value v_response {
tc_ac.stop; tc_ac.stop;
setverdict(pass, __SCOPE__ & ": Message 2 received successfully"); setverdict(pass, __SCOPE__ & ": Message 2 received successfully");
} }
[] mccPort.receive(mw_response(mw_responsePrimitiveOK)) -> value v_response { [] mccPort.receive(mw_response(mw_responsePrimitiveOK)) -> value v_response {
tc_ac.stop; tc_ac.stop;
setverdict(fail, __SCOPE__ & ": Wrong Message received (Should be Message 2)"); setverdict(fail, __SCOPE__ & ": Wrong SecurityInfo (securityInfoType ¦¦ escertkeMessage ) Message received");
} }
[] mccPort.receive(mw_response(mw_responsePrimitiveKO)) -> value v_response { [] mccPort.receive(mw_response(mw_responsePrimitiveKO)) -> value v_response {
tc_ac.stop; tc_ac.stop;
...@@ -121,8 +121,8 @@ module OneM2M_Testcases_CSE_Release_2_SEC_STF531 { ...@@ -121,8 +121,8 @@ module OneM2M_Testcases_CSE_Release_2_SEC_STF531 {
} }
} }
f_cse_postamble_deleteResources(); f_cse_postamble_deleteResourcesCSE();
f_cf02Down(); f_cf02DownCseSimuMaster();
} }
} // end of group ESCertKE } // end of group ESCertKE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment