Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
MEC - Multi-access Edge Computing
MEC TTCN-3 Test Suite
Commits
7e73130a
Commit
7e73130a
authored
May 12, 2021
by
YannGarcia
Browse files
Bug fixed againt Mockoon
parent
3d66f5e4
Changes
5
Hide whitespace changes
Inline
Side-by-side
etc/AtsMec/AtsMec_Mockoon.cf_
View file @
7e73130a
...
...
@@ -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
...
...
ttcn/AtsMec/AtsMec_MultiAccessSteeringInfoAPI_TestCases.ttcn
View file @
7e73130a
...
...
@@ -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 ***"
);
...
...
ttcn/AtsMec/AtsMec_TrafficManagementAPI_TestCases.ttcn
View file @
7e73130a
...
...
@@ -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
ttcn/LibMec/TrafficManagementAPI/ttcn/TrafficManagementAPI_Functions.ttcn
View file @
7e73130a
...
...
@@ -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 re
c
source 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 re
c
source 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"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment