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
102bdfb2
Commit
102bdfb2
authored
May 15, 2019
by
Yann Garcia
Browse files
Add UEinformationAPI tests
parent
d91c2529
Changes
7
Show whitespace changes
Inline
Side-by-side
ttcn/AtsMec/AtsMec_LocationAPI_TestCases.ttcn
View file @
102bdfb2
...
@@ -67,7 +67,7 @@ module AtsMec_LocationAPI_TestCases {
...
@@ -67,7 +67,7 @@ module AtsMec_LocationAPI_TestCases {
)
)
)
)
);
);
f_selfOrClientSyncAndVerdict
TestBody
(
c_prDone
,
e_success
);
f_selfOrClientSyncAndVerdict
(
c_prDone
,
e_success
);
// Test Body
// Test Body
tc_ac
.
start
;
tc_ac
.
start
;
...
@@ -80,11 +80,11 @@ module AtsMec_LocationAPI_TestCases {
...
@@ -80,11 +80,11 @@ module AtsMec_LocationAPI_TestCases {
mw_user_info
(
-
,
-
,
PX_ZONE_ID
)
mw_user_info
(
-
,
-
,
PX_ZONE_ID
)
)))))
->
value
v_response
{
)))))
->
value
v_response
{
log
(
"*** "
&
testcasename
()
&
": PASS: IUT successfully responds with a ZoneId ***"
);
log
(
"*** "
&
testcasename
()
&
": PASS: IUT successfully responds with a ZoneId ***"
);
f_selfOrClientSyncAndVerdict
TestBody
(
c_tbDone
,
e_success
);
f_selfOrClientSyncAndVerdict
(
c_tbDone
,
e_success
);
}
}
[]
tc_ac
.
timeout
{
[]
tc_ac
.
timeout
{
log
(
"*** "
&
testcasename
()
&
": INCONC: Expected message not received ***"
);
log
(
"*** "
&
testcasename
()
&
": INCONC: Expected message not received ***"
);
f_selfOrClientSyncAndVerdict
TestBody
(
c_tbDone
,
e_timeout
);
f_selfOrClientSyncAndVerdict
(
c_tbDone
,
e_timeout
);
}
}
}
// End of 'alt' statement
}
// End of 'alt' statement
...
...
ttcn/AtsMec/AtsMec_TestControl.ttcn
View file @
102bdfb2
...
@@ -11,6 +11,7 @@ module AtsMec_TestControl {
...
@@ -11,6 +11,7 @@ module AtsMec_TestControl {
// AtsMec
// AtsMec
import
from
AtsMec_LocationAPI_TestCases
all
;
import
from
AtsMec_LocationAPI_TestCases
all
;
import
from
AtsMec_UEidentityAPI_TestCases
all
;
import
from
AtsMec_UEidentityAPI_TestCases
all
;
import
from
AtsMec_UEinformation_TestCases
all
;
control
{
control
{
...
@@ -23,6 +24,9 @@ module AtsMec_TestControl {
...
@@ -23,6 +24,9 @@ module AtsMec_TestControl {
execute
(
TC_MEC_PLAT_MP1_UETAG_BV_002
());
execute
(
TC_MEC_PLAT_MP1_UETAG_BV_002
());
execute
(
TC_MEC_PLAT_MP1_UETAG_BV_003
());
execute
(
TC_MEC_PLAT_MP1_UETAG_BV_003
());
}
}
if
(
PICS_LOCATION_API_SUPPORTED
)
{
execute
(
TC_MEC_PLAT_MP1_INF_BV_001
());
}
}
}
}
}
...
...
ttcn/AtsMec/AtsMec_UEidentityAPI.ttcn
View file @
102bdfb2
...
@@ -67,7 +67,7 @@ module AtsMec_UEidentityAPI_TestCases {
...
@@ -67,7 +67,7 @@ module AtsMec_UEidentityAPI_TestCases {
)
)
)
)
);
);
f_selfOrClientSyncAndVerdict
TestBody
(
c_prDone
,
e_success
);
f_selfOrClientSyncAndVerdict
(
c_prDone
,
e_success
);
// Test Body
// Test Body
tc_ac
.
start
;
tc_ac
.
start
;
...
@@ -82,11 +82,11 @@ module AtsMec_UEidentityAPI_TestCases {
...
@@ -82,11 +82,11 @@ module AtsMec_UEidentityAPI_TestCases {
))))))
->
value
v_response
{
))))))
->
value
v_response
{
log
(
"*** "
&
testcasename
()
&
": PASS: IUT successfully responds with a UeIdentityTag ***"
);
log
(
"*** "
&
testcasename
()
&
": PASS: IUT successfully responds with a UeIdentityTag ***"
);
f_selfOrClientSyncAndVerdict
TestBody
(
c_tbDone
,
e_success
);
f_selfOrClientSyncAndVerdict
(
c_tbDone
,
e_success
);
}
}
[]
tc_ac
.
timeout
{
[]
tc_ac
.
timeout
{
log
(
"*** "
&
testcasename
()
&
": INCONC: Expected message not received ***"
);
log
(
"*** "
&
testcasename
()
&
": INCONC: Expected message not received ***"
);
f_selfOrClientSyncAndVerdict
TestBody
(
c_tbDone
,
e_timeout
);
f_selfOrClientSyncAndVerdict
(
c_tbDone
,
e_timeout
);
}
}
}
// End of 'alt' statement
}
// End of 'alt' statement
...
@@ -137,7 +137,7 @@ module AtsMec_UEidentityAPI_TestCases {
...
@@ -137,7 +137,7 @@ module AtsMec_UEidentityAPI_TestCases {
)
)
)
)
);
);
f_selfOrClientSyncAndVerdict
TestBody
(
c_prDone
,
e_success
);
f_selfOrClientSyncAndVerdict
(
c_prDone
,
e_success
);
// Test Body
// Test Body
tc_ac
.
start
;
tc_ac
.
start
;
...
@@ -151,11 +151,11 @@ module AtsMec_UEidentityAPI_TestCases {
...
@@ -151,11 +151,11 @@ module AtsMec_UEidentityAPI_TestCases {
{
*
,
mw_ue_identity_tag_item
(
PX_UE_IDENTITY_TAG
,
REGISTERED
),
*
}
{
*
,
mw_ue_identity_tag_item
(
PX_UE_IDENTITY_TAG
,
REGISTERED
),
*
}
))))))
->
value
v_response
{
))))))
->
value
v_response
{
log
(
"*** "
&
testcasename
()
&
": PASS: IUT successfully responds with a UeIdentityTag ***"
);
log
(
"*** "
&
testcasename
()
&
": PASS: IUT successfully responds with a UeIdentityTag ***"
);
f_selfOrClientSyncAndVerdict
TestBody
(
c_tbDone
,
e_success
);
f_selfOrClientSyncAndVerdict
(
c_tbDone
,
e_success
);
}
}
[]
tc_ac
.
timeout
{
[]
tc_ac
.
timeout
{
log
(
"*** "
&
testcasename
()
&
": INCONC: Expected message not received ***"
);
log
(
"*** "
&
testcasename
()
&
": INCONC: Expected message not received ***"
);
f_selfOrClientSyncAndVerdict
TestBody
(
c_tbDone
,
e_timeout
);
f_selfOrClientSyncAndVerdict
(
c_tbDone
,
e_timeout
);
}
}
}
// End of 'alt' statement
}
// End of 'alt' statement
...
@@ -206,7 +206,7 @@ module AtsMec_UEidentityAPI_TestCases {
...
@@ -206,7 +206,7 @@ module AtsMec_UEidentityAPI_TestCases {
)
)
)
)
);
);
f_selfOrClientSyncAndVerdict
TestBody
(
c_prDone
,
e_success
);
f_selfOrClientSyncAndVerdict
(
c_prDone
,
e_success
);
// Test Body
// Test Body
tc_ac
.
start
;
tc_ac
.
start
;
...
@@ -220,11 +220,11 @@ module AtsMec_UEidentityAPI_TestCases {
...
@@ -220,11 +220,11 @@ module AtsMec_UEidentityAPI_TestCases {
{
*
,
mw_ue_identity_tag_item
(
PX_UE_IDENTITY_TAG
,
UNREGISTERED
),
*
}
{
*
,
mw_ue_identity_tag_item
(
PX_UE_IDENTITY_TAG
,
UNREGISTERED
),
*
}
))))))
->
value
v_response
{
))))))
->
value
v_response
{
log
(
"*** "
&
testcasename
()
&
": PASS: IUT successfully responds with a UeIdentityTag ***"
);
log
(
"*** "
&
testcasename
()
&
": PASS: IUT successfully responds with a UeIdentityTag ***"
);
f_selfOrClientSyncAndVerdict
TestBody
(
c_tbDone
,
e_success
);
f_selfOrClientSyncAndVerdict
(
c_tbDone
,
e_success
);
}
}
[]
tc_ac
.
timeout
{
[]
tc_ac
.
timeout
{
log
(
"*** "
&
testcasename
()
&
": INCONC: Expected message not received ***"
);
log
(
"*** "
&
testcasename
()
&
": INCONC: Expected message not received ***"
);
f_selfOrClientSyncAndVerdict
TestBody
(
c_tbDone
,
e_timeout
);
f_selfOrClientSyncAndVerdict
(
c_tbDone
,
e_timeout
);
}
}
}
// End of 'alt' statement
}
// End of 'alt' statement
...
...
ttcn/LibMec/LocationAPI/ttcn/LocationAPI_Templates.ttcn
View file @
102bdfb2
...
@@ -9,16 +9,16 @@ module LocationAPI_Templates {
...
@@ -9,16 +9,16 @@ module LocationAPI_Templates {
template
(
value
)
UserInfo
m_user_info
(
template
(
value
)
UserInfo
m_user_info
(
in
universal
charstring
p_address
:=
PX_ADDRESS
,
in
universal
charstring
p_address
:=
PX_ADDRESS
,
in
universal
charstring
p_access
P
oint
I
d
:=
PX_ACCESS_POINT_ID
,
in
universal
charstring
p_access
_p
oint
_i
d
:=
PX_ACCESS_POINT_ID
,
in
universal
charstring
p_zone
I
d
:=
PX_ZONE_ID
,
in
universal
charstring
p_zone
_i
d
:=
PX_ZONE_ID
,
in
universal
charstring
p_resource
URL
:=
PX_RESOURCE_URL
,
in
universal
charstring
p_resource
_url
:=
PX_RESOURCE_URL
,
in
TimeStamp
p_time
S
tamp
:=
PX_TIME_STAMP
in
TimeStamp
p_time
_s
tamp
:=
PX_TIME_STAMP
)
:=
{
)
:=
{
address_
:=
p_address
,
address_
:=
p_address
,
accessPointId
:=
p_access
P
oint
I
d
,
accessPointId
:=
p_access
_p
oint
_i
d
,
zoneId
:=
p_zone
I
d
,
zoneId
:=
p_zone
_i
d
,
resourceURL
:=
p_resource
URL
,
resourceURL
:=
p_resource
_url
,
timeStamp
:=
p_time
S
tamp
,
timeStamp
:=
p_time
_s
tamp
,
locationInfo
:=
omit
,
locationInfo
:=
omit
,
contextLocationInfo
:=
omit
,
contextLocationInfo
:=
omit
,
ancillaryInfo
:=
omit
ancillaryInfo
:=
omit
...
@@ -26,21 +26,37 @@ module LocationAPI_Templates {
...
@@ -26,21 +26,37 @@ module LocationAPI_Templates {
template
(
present
)
UserInfo
mw_user_info
(
template
(
present
)
UserInfo
mw_user_info
(
template
(
present
)
universal
charstring
p_address
:=
?
,
template
(
present
)
universal
charstring
p_address
:=
?
,
template
(
present
)
universal
charstring
p_access
P
oint
I
d
:=
?
,
template
(
present
)
universal
charstring
p_access
_p
oint
_i
d
:=
?
,
template
(
present
)
universal
charstring
p_zone
I
d
:=
?
,
template
(
present
)
universal
charstring
p_zone
_i
d
:=
?
,
template
(
present
)
universal
charstring
p_resource
URL
:=
?
,
template
(
present
)
universal
charstring
p_resource
_url
:=
?
,
template
(
present
)
TimeStamp
p_time
S
tamp
:=
?
template
(
present
)
TimeStamp
p_time
_s
tamp
:=
?
)
:=
{
)
:=
{
address_
:=
p_address
,
address_
:=
p_address
,
accessPointId
:=
p_access
P
oint
I
d
,
accessPointId
:=
p_access
_p
oint
_i
d
,
zoneId
:=
p_zone
I
d
,
zoneId
:=
p_zone
_i
d
,
resourceURL
:=
p_resource
URL
,
resourceURL
:=
p_resource
_url
,
timeStamp
:=
p_time
S
tamp
,
timeStamp
:=
p_time
_s
tamp
,
locationInfo
:=
*
,
locationInfo
:=
*
,
contextLocationInfo
:=
*
,
contextLocationInfo
:=
*
,
ancillaryInfo
:=
*
ancillaryInfo
:=
*
}
// End of template mw_user_info
}
// End of template mw_user_info
template
(
omit
)
UserList
m_user_list
(
in
template
(
omit
)
UserInfos
p_userInfo
:=
omit
,
in
universal
charstring
p_resource_url
)
:=
{
user
:=
p_userInfo
,
resourceURL
:=
p_resource_url
}
// End of template m_user_list
template
UserList
mw_user_list
(
template
UserInfos
p_userInfo
:=
*
,
template
(
present
)
universal
charstring
p_resource_url
:=
?
)
:=
{
user
:=
p_userInfo
,
resourceURL
:=
p_resource_url
}
// End of template mw_user_list
template
(
value
)
LocationInfo
m_location_info
(
template
(
value
)
LocationInfo
m_location_info
(
in
float
p_latitude
,
in
float
p_latitude
,
in
float
p_longitude
,
in
float
p_longitude
,
...
@@ -64,31 +80,31 @@ module LocationAPI_Templates {
...
@@ -64,31 +80,31 @@ module LocationAPI_Templates {
}
// End of template mw_location_info
}
// End of template mw_location_info
template
(
value
)
ZoneInfo
m_zone_info
(
template
(
value
)
ZoneInfo
m_zone_info
(
in
universal
charstring
p_zone
I
d
:=
PX_ZONE_ID
,
in
universal
charstring
p_zone
_i
d
:=
PX_ZONE_ID
,
in
UInt32
p_number
OfA
ccess
P
oints
:=
PX_NB_ACCESS_POINTS
,
in
UInt32
p_number
_of_a
ccess
_p
oints
:=
PX_NB_ACCESS_POINTS
,
in
UInt32
p_number
OfU
nservicable
A
ccess
P
oints
:=
PX_NB_UNSERVICABLEL_ACCESS_POINTS
,
in
UInt32
p_number
_of_u
nservicable
_a
ccess
_p
oints
:=
PX_NB_UNSERVICABLEL_ACCESS_POINTS
,
in
UInt32
p_number
OfU
sers
:=
PX_NB_USERS
,
in
UInt32
p_number
_of_u
sers
:=
PX_NB_USERS
,
in
universal
charstring
p_resource
URL
:=
PX_RESOURCE_URL
in
universal
charstring
p_resource
_url
:=
PX_RESOURCE_URL
)
:=
{
)
:=
{
zoneId
:=
p_zone
I
d
,
zoneId
:=
p_zone
_i
d
,
numberOfAccessPoints
:=
p_number
OfA
ccess
P
oints
,
numberOfAccessPoints
:=
p_number
_of_a
ccess
_p
oints
,
numberOfUnservicableAccessPoints
:=
p_number
OfU
nservicable
A
ccess
P
oints
,
numberOfUnservicableAccessPoints
:=
p_number
_of_u
nservicable
_a
ccess
_p
oints
,
numberOfUsers
:=
p_number
OfU
sers
,
numberOfUsers
:=
p_number
_of_u
sers
,
resourceURL
:=
p_resource
URL
resourceURL
:=
p_resource
_url
}
// End of template m_zone_info
}
// End of template m_zone_info
template
(
present
)
ZoneInfo
mw_zone_info
(
template
(
present
)
ZoneInfo
mw_zone_info
(
template
(
present
)
universal
charstring
p_zone
I
d
:=
?
,
template
(
present
)
universal
charstring
p_zone
_i
d
:=
?
,
template
(
present
)
UInt32
p_number
OfA
ccess
P
oints
:=
?
,
template
(
present
)
UInt32
p_number
_of_a
ccess
_p
oints
:=
?
,
template
(
present
)
UInt32
p_number
OfU
nservicable
A
ccess
P
oints
:=
?
,
template
(
present
)
UInt32
p_number
_of_u
nservicable
_a
ccess
_p
oints
:=
?
,
template
(
present
)
UInt32
p_number
OfU
sers
:=
?
,
template
(
present
)
UInt32
p_number
_of_u
sers
:=
?
,
template
(
present
)
universal
charstring
p_resource
URL
:=
?
template
(
present
)
universal
charstring
p_resource
_url
:=
?
)
:=
{
)
:=
{
zoneId
:=
p_zone
I
d
,
zoneId
:=
p_zone
_i
d
,
numberOfAccessPoints
:=
p_number
OfA
ccess
P
oints
,
numberOfAccessPoints
:=
p_number
_of_a
ccess
_p
oints
,
numberOfUnservicableAccessPoints
:=
p_number
OfU
nservicable
A
ccess
P
oints
,
numberOfUnservicableAccessPoints
:=
p_number
_of_u
nservicable
_a
ccess
_p
oints
,
numberOfUsers
:=
p_number
OfU
sers
,
numberOfUsers
:=
p_number
_of_u
sers
,
resourceURL
:=
p_resource
URL
resourceURL
:=
p_resource
_url
}
// End of template mw_zone_info
}
// End of template mw_zone_info
}
// End of module LocationAPI_Templates
}
// End of module LocationAPI_Templates
ttcn/LibMec/ttcn/LibMec_Pics.ttcn
View file @
102bdfb2
...
@@ -7,6 +7,8 @@ module LibMec_Pics {
...
@@ -7,6 +7,8 @@ module LibMec_Pics {
modulepar
charstring
PICS_ME_APP_Q_ZONE_ID_URI
:=
"/exampleAPI/location/v2/zones/"
;
modulepar
charstring
PICS_ME_APP_Q_ZONE_ID_URI
:=
"/exampleAPI/location/v2/zones/"
;
modulepar
charstring
PICS_ME_APP_Q_USERS_LIST_URI
:=
"/exampleAPI/location/v2/users"
;
modulepar
charstring
PICS_ME_APP_Q_UE_IDENTITY_ID_URI
:=
"/exampleAPI/ui/v2/"
;
modulepar
charstring
PICS_ME_APP_Q_UE_IDENTITY_ID_URI
:=
"/exampleAPI/ui/v2/"
;
}
// End of module LibMec_Pics
}
// End of module LibMec_Pics
ttcn/patch_lib_http/LibItsHttp_JsonMessageBodyTypes.ttcn
View file @
102bdfb2
...
@@ -14,6 +14,7 @@ module LibItsHttp_JsonMessageBodyTypes {
...
@@ -14,6 +14,7 @@ module LibItsHttp_JsonMessageBodyTypes {
type
union
JsonBody
{
type
union
JsonBody
{
// TODO Add here your custom variants
// TODO Add here your custom variants
UserInfo
userInfo
,
UserInfo
userInfo
,
UserList
userList
,
ZoneInfo
zoneInfo
,
ZoneInfo
zoneInfo
,
ProblemDetails
problemDetails
,
ProblemDetails
problemDetails
,
UeIdentityTagInfo
ueIdentityTagInfo
,
UeIdentityTagInfo
ueIdentityTagInfo
,
...
...
ttcn/patch_lib_http/LibItsHttp_JsonTemplates.ttcn
View file @
102bdfb2
...
@@ -49,6 +49,18 @@ module LibItsHttp_JsonTemplates {
...
@@ -49,6 +49,18 @@ module LibItsHttp_JsonTemplates {
userInfo
:=
p_user_info
userInfo
:=
p_user_info
}
// End of template mw_body_json_user_info
}
// End of template mw_body_json_user_info
template
(
value
)
JsonBody
m_body_json_user_list
(
in
template
(
value
)
UserList
p_user_list
)
:=
{
userList
:=
p_user_list
}
// End of template m_body_json_user_list
template
(
present
)
JsonBody
mw_body_json_user_list
(
template
(
present
)
UserList
p_user_list
:=
?
)
:=
{
userList
:=
p_user_list
}
// End of template mw_body_json_user_list
template
(
value
)
JsonBody
m_body_json_zone_info
(
template
(
value
)
JsonBody
m_body_json_zone_info
(
in
template
(
value
)
ZoneInfo
p_zone_info
in
template
(
value
)
ZoneInfo
p_zone_info
)
:=
{
)
:=
{
...
...
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