Commit 7e73130a authored by YannGarcia's avatar YannGarcia
Browse files

Bug fixed againt Mockoon

parent 3d66f5e4
......@@ -241,7 +241,7 @@ system.httpPort_notif.params := "HTTP(codecs=json:json_codec)/TCP(debug=1,server
#AtsMec_TrafficManagementAPI_TestCases.TC_MEC_MEC015_SRV_TM_003_OK_01
#AtsMec_TrafficManagementAPI_TestCases.TC_MEC_MEC015_SRV_TM_003_OK_02
# Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application
AtsMec_TrafficManagementAPI_TestCases.TC_MEC_MEC015_SRV_TM_003_BR_01
#AtsMec_TrafficManagementAPI_TestCases.TC_MEC_MEC015_SRV_TM_003_BR_01
#AtsMec_TrafficManagementAPI_TestCases.TC_MEC_MEC015_SRV_TM_003_BR_02
#AtsMec_TrafficManagementAPI_TestCases.TC_MEC_MEC015_SRV_TM_003_BR_03
# Check that the IUT responds with the configured bandwidth allocation when queried by a MEC Application
......@@ -249,7 +249,7 @@ AtsMec_TrafficManagementAPI_TestCases.TC_MEC_MEC015_SRV_TM_003_BR_01
# Check that the IUT responds with an error when a request for an unknown URI is sent by a MEC Application
#AtsMec_TrafficManagementAPI_TestCases.TC_MEC_MEC015_SRV_TM_004_NF
# Check that the IUT updates the requested bandwidth requirements when commanded by a MEC Application
#AtsMec_TrafficManagementAPI_TestCases.TC_MEC_MEC015_SRV_TM_005_OK
AtsMec_TrafficManagementAPI_TestCases.TC_MEC_MEC015_SRV_TM_005_OK
# Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application
#AtsMec_TrafficManagementAPI_TestCases.TC_MEC_MEC015_SRV_TM_005_BR
# Check that the IUT responds with an error when a request for an unknown URI is sent by a MEC Application
......
......@@ -633,22 +633,22 @@ module AtsMec_MultiAccessSteeringInfoAPI_TestCases {
alt {
[] httpPort.receive(
mw_http_response(
mw_http_response_ok(
mw_http_message_body_json(
mw_body_json_mts_session_info(
mw_mts_session_info(
PX_APP_INSTANCE_ID,
APPLICATION_SPECIFIC_MTS_ALLOCATION, // Request type
mw_qosd_1, // QoS
LowCost, // MtsMode
Downlink, // TrafficDirection
{
m_session_filter(
"10.10.10.10",
{"1010"}
)
} // FlowFilter
)))))) -> value v_response {
mw_http_response_201_created(
mw_http_message_body_json(
mw_body_json_mts_session_info(
mw_mts_session_info(
PX_APP_INSTANCE_ID,
APPLICATION_SPECIFIC_MTS_ALLOCATION, // Request type
mw_qosd_1, // QoS
LowCost, // MtsMode
Downlink, // TrafficDirection
{
m_session_filter(
"10.10.10.10",
{"1010"}
)
} // FlowFilter
)))))) -> value v_response {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: IUT successfully responds with an updated MtsSessionInfo ***");
......
......@@ -699,7 +699,7 @@ module AtsMec_TrafficManagementAPI_TestCases {
mw_http_message_body_json(
mw_body_json_bw_info(
mw_bw_info(
PX_APP_INSTANCE_ID
v_app_instance_id
)))))) -> value v_response {
tc_ac.stop;
......
LibIts @ 913d1303
Subproject commit 26b8f58bf5d2d4a09b9e63061a6d871a927f8985
Subproject commit 913d130353cf716ab620edbafcb56d2213dc344d
......@@ -54,17 +54,17 @@ module TrafficManagementAPI_Functions {
alt {
[] httpPort.receive(
mw_http_response(
mw_http_response_ok(
mw_http_message_body_json(
mw_body_json_bw_info(
mw_bw_info(
p_app_instance_id
)))))) -> value v_response {
mw_http_response_201_created(
mw_http_message_body_json(
mw_body_json_bw_info(
mw_bw_info(
p_app_instance_id
)))))) -> value v_response {
var charstring_list v_bw_allocation_id;
tc_ac.stop;
log("f_create_bw_allocation_resource: BwInfo recsource created: ", v_response);
log("f_create_bw_allocation_resource: BwInfo resource created: ", v_response);
f_get_header(valueof(v_response.response.header), "Location", v_bw_allocation_id);
if (lengthof(v_bw_allocation_id) != 0) {
p_bw_allocation_id := v_bw_allocation_id[0];
......@@ -96,6 +96,7 @@ module TrafficManagementAPI_Functions {
mw_http_response(
mw_http_response_204_no_content
)) {
tc_ac.stop;
}
[] tc_ac.timeout {
log("f_delete_bw_allocation_resource: Expected message not received");
......@@ -137,17 +138,17 @@ module TrafficManagementAPI_Functions {
alt {
[] httpPort.receive(
mw_http_response(
mw_http_response_ok(
mw_http_message_body_json(
mw_body_json_mts_session_info(
mw_mts_session_info(
p_app_instance_id
)))))) -> value v_response {
mw_http_response_201_created(
mw_http_message_body_json(
mw_body_json_mts_session_info(
mw_mts_session_info(
p_app_instance_id
)))))) -> value v_response {
var charstring_list v_mts_session_info_id;
tc_ac.stop;
log("f_create_mts_session_info_resource: BwInfo recsource created: ", v_response);
log("f_create_mts_session_info_resource: BwInfo resource created: ", v_response);
f_get_header(valueof(v_response.response.header), "Location", v_mts_session_info_id);
if (lengthof(v_mts_session_info_id) != 0) {
p_mts_session_id := v_mts_session_info_id[0];
......@@ -179,6 +180,7 @@ module TrafficManagementAPI_Functions {
mw_http_response(
mw_http_response_204_no_content
)) {
tc_ac.stop;
}
[] tc_ac.timeout {
log("f_delete_mts_session_info_resource: Expected message not received");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment