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
c4525fd0
Commit
c4525fd0
authored
Jul 14, 2019
by
YannGarcia
Browse files
Review Validate UETAG
parent
0a214f26
Changes
5
Hide whitespace changes
Inline
Side-by-side
etc/AtsMec/AtsMec.cfg
View file @
c4525fd0
...
...
@@ -7,8 +7,8 @@ LibCommon_Time.PX_TAC := 30.0
LibCommon_Sync.PX_TSYNC_TIME_LIMIT := 30.0;
LibCommon_Sync.PX_TSHUT_DOWN_TIME_LIMIT := 30.0;
#
LibItsHttp_Pics.PICS_HEADER_HOST := "172.28.4.87"
LibItsHttp_Pics.PICS_HEADER_HOST := "192.168.0.17"
LibItsHttp_Pics.PICS_HEADER_HOST := "172.28.4.87"
#
LibItsHttp_Pics.PICS_HEADER_HOST := "192.168.0.17"
LibItsHttp_Pics.PICS_HEADER_CONTENT_TYPE := "application/json"
...
...
@@ -38,7 +38,7 @@ LogEventTypes:= Yes
[TESTPORT_PARAMETERS]
# In this section you can specify parameters that are passed to Test Ports.
system.httpPort.params := "HTTP(codecs=json:json_codec)/TCP(debug=1,server=1
9
2.
168.0.1
7,port=8081,use_ssl=0)"
system.httpPort.params := "HTTP(codecs=json:json_codec)/TCP(debug=1,server=1
7
2.
28.4.8
7,port=8081,use_ssl=0)"
[DEFINE]
# In this section you can create macro definitions,
...
...
@@ -67,8 +67,10 @@ system.httpPort.params := "HTTP(codecs=json:json_codec)/TCP(debug=1,server=192.1
#AtsMec_UEidentityAPI_TestCases.TC_MEC_SRV_UETAG_001_OK
#AtsMec_UEidentityAPI_TestCases.TC_MEC_SRV_UETAG_001_BR
#AtsMec_UEidentityAPI_TestCases.TC_MEC_SRV_UETAG_001_NF
AtsMec_UEidentityAPI_TestCases.TC_MEC_SRV_UETAG_002_OK
#
AtsMec_UEidentityAPI_TestCases.TC_MEC_SRV_UETAG_002_OK
#AtsMec_UEidentityAPI_TestCases.TC_MEC_SRV_UETAG_002_BR
AtsMec_UEidentityAPI_TestCases.TC_MEC_SRV_UETAG_002_PF
#AtsMec_UEidentityAPI_TestCases.TC_MEC_SRV_UELOC_001_OK
#AtsMec_UEidentityAPI_TestCases.TC_MEC_SRV_UELOC_001_BR
#AtsMec_UEidentityAPI_TestCases.TC_MEC_SRV_UELOC_001_NF
...
...
ttcn/AtsMec/AtsMec_TestControl.ttcn
View file @
c4525fd0
...
...
@@ -28,6 +28,7 @@ module AtsMec_TestControl {
execute
(
TC_MEC_SRV_UETAG_001_NF
());
execute
(
TC_MEC_SRV_UETAG_002_OK
());
execute
(
TC_MEC_SRV_UETAG_002_BR
());
execute
(
TC_MEC_SRV_UETAG_002_PF
());
}
if
(
PICS_LOCATION_API_SUPPORTED
)
{
execute
(
TC_MEC_SRV_UELOC_001_OK
());
...
...
ttcn/AtsMec/AtsMec_UEidentityAPI_TestCases.ttcn
View file @
c4525fd0
...
...
@@ -310,7 +310,7 @@ module AtsMec_UEidentityAPI_TestCases {
// Preamble
f_init_default_headers_list
(
-
,
-
,
v_headers
);
// Verify that the user is not register yet
if
(
f_check_user_register_state
(
-
,
v_headers
)
!
=
-
1
)
{
if
(
f_check_user_register_state
(
-
,
v_headers
)
=
=
-
1
)
{
log
(
"*** "
&
testcasename
()
&
": INCONC: Wrong initial conditions ***"
);
f_selfOrClientSyncAndVerdict
(
c_prDone
,
e_timeout
);
}
...
...
@@ -341,12 +341,12 @@ module AtsMec_UEidentityAPI_TestCases {
alt
{
[]
httpPort
.
receive
(
mw_http_response
(
mw_http_response_400_bad_request
(
mw_http_response_400_bad_request
/*
(
mw_http_message_body_json(
mw_body_json_ue_identity_problem_details(
mw_problem_details(
-, -, 400
))))))
{
))))
*/
))
{
tc_ac
.
stop
;
log
(
"*** "
&
testcasename
()
&
": PASS: IUT successfully responds with a ProblemDetails set to 403 Forbidden ***"
);
...
...
@@ -366,7 +366,7 @@ module AtsMec_UEidentityAPI_TestCases {
* @desc Check that the IUT responds with ProblemDetails on information an invalid URI
* @see https://forge.etsi.org/gitlab/mec/MEC-tests/blob/master/Test%20Purposes/SRV/UeIdentity/PlatUeIdentity.tplan2
*/
testcase
TC_MEC_SRV_UETAG_002_PF
()
runs
on
HttpComponent
system
HttpTestAdapter
{
testcase
TC_MEC_SRV_UETAG_002_PF
()
runs
on
HttpComponent
system
HttpTestAdapter
{
// FIXME Which IE protocol should be invalid?
// Local variables
var
HeaderLines
v_headers
;
...
...
@@ -384,11 +384,6 @@ module AtsMec_UEidentityAPI_TestCases {
// Preamble
f_init_default_headers_list
(
-
,
-
,
v_headers
);
// Verify that the user is not register yet
if
(
f_check_user_register_state
(
-
,
v_headers
)
==
-
1
)
{
log
(
"*** "
&
testcasename
()
&
": INCONC: Wrong initial conditions ***"
);
f_selfOrClientSyncAndVerdict
(
c_prDone
,
e_timeout
);
}
httpPort
.
send
(
m_http_request
(
m_http_request_post
(
...
...
@@ -399,7 +394,7 @@ module AtsMec_UEidentityAPI_TestCases {
m_ue_identity_tag_info
(
{
m_ue_identity_tag_item
(
PX_UE_IDENTITY_TAG
,
PX_UE_IDENTITY_TAG
_INVALID_STATE
,
UNREGISTERED
)
}
...
...
@@ -424,7 +419,7 @@ module AtsMec_UEidentityAPI_TestCases {
))))))
{
tc_ac
.
stop
;
log
(
"*** "
&
testcasename
()
&
": PASS: IUT successfully responds with a ProblemDetails set to 4
04 Not Foun
d ***"
);
log
(
"*** "
&
testcasename
()
&
": PASS: IUT successfully responds with a ProblemDetails set to 4
12 Precondition Faile
d ***"
);
f_selfOrClientSyncAndVerdict
(
c_tbDone
,
e_success
);
}
[]
tc_ac
.
timeout
{
...
...
ttcn/LibMec/UEidentityAPI/ttcn/UEidentityAPI_Pixits.ttcn
View file @
c4525fd0
...
...
@@ -12,6 +12,8 @@ module UEidentityAPI_Pixits {
modulepar
universal
charstring
PX_UE_IDENTITY_TAG
:=
"UeTagA"
;
modulepar
universal
charstring
PX_UE_IDENTITY_TAG_INVALID_STATE
:=
"UeTagC"
;
modulepar
universal
charstring
PX_UE_IDENTITY_TAG_UNKNOWN
:=
"UeTagW"
;
}
// End of module UEidentityAPI_Pixits
ttcn/LibMec/ttcn/LibMec_Functions.ttcn
View file @
c4525fd0
...
...
@@ -124,6 +124,7 @@ module LibMec_Functions {
}
}
// End of 'alt' statement
//log("<<< f_check_user_register_state: v_result: ", v_result);
return
v_result
;
}
// End of function f_check_user_register_state
...
...
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