Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
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
a75abed6
Commit
a75abed6
authored
Nov 20, 2019
by
YannGarcia
Browse files
Add FixedAccessInformationService test cases
parent
d1556ffa
Changes
29
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
1452 additions
and
975 deletions
+1452
-975
ttcn/AtsMec/AtsMec_AppLCM_TestCases.ttcn
ttcn/AtsMec/AtsMec_AppLCM_TestCases.ttcn
+1
-1
ttcn/AtsMec/AtsMec_FixedAccessInfoAPI_TestCases.ttcn
ttcn/AtsMec/AtsMec_FixedAccessInfoAPI_TestCases.ttcn
+536
-595
ttcn/AtsMec/AtsMec_MeoPkgm_TestCases.ttcn
ttcn/AtsMec/AtsMec_MeoPkgm_TestCases.ttcn
+1
-1
ttcn/AtsMec/AtsMec_MepmPkgm_TestCases.ttcn
ttcn/AtsMec/AtsMec_MepmPkgm_TestCases.ttcn
+83
-83
ttcn/AtsMec/AtsMec_RadioNodeLocationAPI_TestCases.ttcn
ttcn/AtsMec/AtsMec_RadioNodeLocationAPI_TestCases.ttcn
+20
-20
ttcn/LibMec/Ams/ttcn/Ams_Pixits.ttcn
ttcn/LibMec/Ams/ttcn/Ams_Pixits.ttcn
+8
-8
ttcn/LibMec/Ams/ttcn/Ams_Templates.ttcn
ttcn/LibMec/Ams/ttcn/Ams_Templates.ttcn
+4
-4
ttcn/LibMec/Ams/ttcn/Ams_TypesAndValues.ttcn
ttcn/LibMec/Ams/ttcn/Ams_TypesAndValues.ttcn
+4
-4
ttcn/LibMec/AppEna/ttcn/AppEnablementAPI_Templates.ttcn
ttcn/LibMec/AppEna/ttcn/AppEnablementAPI_Templates.ttcn
+15
-15
ttcn/LibMec/AppEna/ttcn/AppEnablementAPI_TypesAndValues.ttcn
ttcn/LibMec/AppEna/ttcn/AppEnablementAPI_TypesAndValues.ttcn
+4
-4
ttcn/LibMec/AppLCM/ttcn/AppLCM_Pixits.ttcn
ttcn/LibMec/AppLCM/ttcn/AppLCM_Pixits.ttcn
+17
-18
ttcn/LibMec/AppLCM/ttcn/AppLCM_TypesAndValues.ttcn
ttcn/LibMec/AppLCM/ttcn/AppLCM_TypesAndValues.ttcn
+1
-1
ttcn/LibMec/FixedAccessInformationAPI/ttcn/FixedAccessInformationServiceAPI_Pics.ttcn
...mationAPI/ttcn/FixedAccessInformationServiceAPI_Pics.ttcn
+5
-0
ttcn/LibMec/FixedAccessInformationAPI/ttcn/FixedAccessInformationServiceAPI_Pixits.ttcn
...tionAPI/ttcn/FixedAccessInformationServiceAPI_Pixits.ttcn
+31
-0
ttcn/LibMec/FixedAccessInformationAPI/ttcn/FixedAccessInformationServiceAPI_Templates.ttcn
...nAPI/ttcn/FixedAccessInformationServiceAPI_Templates.ttcn
+228
-0
ttcn/LibMec/FixedAccessInformationAPI/ttcn/FixedAccessInformationServiceAPI_TypesAndValues.ttcn
...ttcn/FixedAccessInformationServiceAPI_TypesAndValues.ttcn
+488
-0
ttcn/LibMec/Grant/ttcn/Grant_Pixits.ttcn
ttcn/LibMec/Grant/ttcn/Grant_Pixits.ttcn
+5
-6
ttcn/LibMec/Grant/ttcn/Grant_Templates.ttcn
ttcn/LibMec/Grant/ttcn/Grant_Templates.ttcn
+0
-202
ttcn/LibMec/LocationAPI/ttcn/LocationAPI_Pixits.ttcn
ttcn/LibMec/LocationAPI/ttcn/LocationAPI_Pixits.ttcn
+0
-12
ttcn/LibMec/LocationAPI/ttcn/LocationAPI_TypesAndValues.ttcn
ttcn/LibMec/LocationAPI/ttcn/LocationAPI_TypesAndValues.ttcn
+1
-1
No files found.
ttcn/AtsMec/AtsMec_AppLCM_TestCases.ttcn
View file @
a75abed6
...
...
@@ -1576,7 +1576,7 @@ group app_lcm__notification {
[]
httpPort_notif
.
receive
(
mw_http_request
(
mw_http_request_post
(
unichar2
char
(
PX_CALLBACK_URI
),
oct2char
(
unichar2
oct
(
PX_CALLBACK_URI
)
)
,
-
,
mw_http_message_body_json
(
mw_body_json_lcm_notification
(
...
...
ttcn/AtsMec/AtsMec_FixedAccessInfoAPI_TestCases.ttcn
View file @
a75abed6
This diff is collapsed.
Click to expand it.
ttcn/AtsMec/AtsMec_MeoPkgm_TestCases.ttcn
View file @
a75abed6
...
...
@@ -1213,7 +1213,7 @@ group pkg_management_notification {
[]
httpPort_notif
.
receive
(
mw_http_request
(
mw_http_request_post
(
unichar2
char
(
PX_CALLBACK_URI
),
oct2char
(
unichar2
oct
(
PX_CALLBACK_URI
)
)
,
-
,
mw_http_message_body_json
(
mw_body_json_app_package_notification
(
...
...
ttcn/AtsMec/AtsMec_MepmPkgm_TestCases.ttcn
View file @
a75abed6
...
...
@@ -73,18 +73,18 @@ module AtsMec_PkgMgmt_mm3_TestCases {
mw_http_response_ok
(
mw_http_message_body_json
(
mw_body_json_mepm_pkg_mgmt_response_list
(
{
*
,
mw_package_management
(
PX_ON_BOARDED_APP_PKG_ID
,
PX_APP_D_ID
,
-
,
-
,
-
,
-
),
*
}
{
*
,
mw_package_management
(
PX_ON_BOARDED_APP_PKG_ID
,
PX_APP_D_ID
,
-
,
-
,
-
,
-
),
*
}
)))))
->
value
v_response
{
tc_ac
.
stop
;
log
(
"*** "
&
testcasename
()
&
": PASS: IUT successfully responds with a Onboarded App Package list***"
);
...
...
@@ -153,7 +153,7 @@ module AtsMec_PkgMgmt_mm3_TestCases {
/**
* @desc: Check that MEPM returns the an App Package when requested
* ETSI GS MEC 010-2 2.0.10, clause 7.4.2.3.2
*
ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1 //OnboardedAppPkgInfo
*
ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1 //OnboardedAppPkgInfo
*/
testcase
TP_MEC_MEPM_PKGM_002_OK
()
runs
on
HttpComponent
system
HttpTestAdapter
{
// Local variables
...
...
@@ -185,16 +185,16 @@ module AtsMec_PkgMgmt_mm3_TestCases {
alt
{
[]
httpPort
.
receive
(
mw_http_response
(
mw_http_response_ok
(
mw_http_message_body_json
(
mw_http_response_ok
(
mw_http_message_body_json
(
mw_body_json_mepm_pkg_mgmt_response
(
mw_package_management
(
PX_ON_BOARDED_APP_PKG_ID
,
-
,
-
,
-
,
-
,
-
,
-
)
)
)
)
mw_package_management
(
PX_ON_BOARDED_APP_PKG_ID
,
-
,
-
,
-
,
-
,
-
,
-
)
)
)
)
))
->
value
v_response
{
tc_ac
.
stop
;
log
(
"*** "
&
testcasename
()
&
": PASS: IUT successfully responds with an Onboarded App Package info and 200 status code ***"
);
...
...
@@ -210,7 +210,7 @@ module AtsMec_PkgMgmt_mm3_TestCases {
/**
* @desc: Check that MEPM responds with an error when it receives
*
a request for returning a App Package referred with a wrong ID
*
a request for returning a App Package referred with a wrong ID
* @see: ETSI GS MEC 010-2 2.0.10, clause 7.4.2.3.2
*/
testcase
TP_MEC_MEPM_PKGM_002_NF
()
runs
on
HttpComponent
system
HttpTestAdapter
{
...
...
@@ -295,7 +295,7 @@ module AtsMec_PkgMgmt_mm3_TestCases {
mw_http_response
(
mw_http_response_ok
(
//@TODO: How to check if a file is present in the body?
)))
->
value
v_response
{
)))
->
value
v_response
{
tc_ac
.
stop
;
log
(
"*** "
&
testcasename
()
&
": PASS: IUT successfully responds with the app descriptor contained in the app pkg ***"
);
f_selfOrClientSyncAndVerdict
(
c_tbDone
,
e_success
);
...
...
@@ -308,9 +308,9 @@ module AtsMec_PkgMgmt_mm3_TestCases {
}
// End of testcase TP_MEC_MEPM_PKGM_003_OK
/**
/**
* @desc: Check that MEPM responds with an error when it receives
*
a request for returning a App Descriptor referred with a wrong App Package ID
*
a request for returning a App Descriptor referred with a wrong App Package ID
* @see: ETSI GS MEC 010-2 2.0.10, clause 7.4.4.3.2
*/
testcase
TP_MEC_MEPM_PKGM_003_NF
()
runs
on
HttpComponent
system
HttpTestAdapter
{
...
...
@@ -394,7 +394,7 @@ module AtsMec_PkgMgmt_mm3_TestCases {
mw_http_response
(
mw_http_response_ok
(
//@TODO: How to check if a file is present in the body?
)))
->
value
v_response
{
)))
->
value
v_response
{
tc_ac
.
stop
;
log
(
"*** "
&
testcasename
()
&
": PASS: IUT successfully responds with and APP Descriptor and a 200 ok status code ***"
);
f_selfOrClientSyncAndVerdict
(
c_tbDone
,
e_success
);
...
...
@@ -406,9 +406,9 @@ module AtsMec_PkgMgmt_mm3_TestCases {
}
// End of 'alt' statement
}
// End of testcase TP_MEC_MEPM_PKGM_004_OK
/**
/**
* @desc: Check that MEPM responds with an error when it receives
*
a request for returning a App Descriptor referred with a wrong App Package ID
*
a request for returning a App Descriptor referred with a wrong App Package ID
* @see: ETSI GS MEC 010-2 2.0.10, clause 7.4.4.3.2
*/
testcase
TP_MEC_MEPM_PKGM_004_NF
()
runs
on
HttpComponent
system
HttpTestAdapter
{
...
...
@@ -459,7 +459,7 @@ module AtsMec_PkgMgmt_mm3_TestCases {
group
pkg_mgmt_subscriptions
{
/**
/**
* @desc: Check that MEPM service returns an application package subscription when requested
* ETSI GS MEC 010-2 2.0.10, clause 7.4.5.3.1
*/
...
...
@@ -486,12 +486,12 @@ group pkg_mgmt_subscriptions {
"/"
&
PICS_ROOT_API
&
PX_MEPM_PKGM_SUBS
,
v_headers
,
m_http_message_body_json
(
m_body_json_mepm_pkgm_subscription
(
m_app_package_subscription
(
PX_CALLBACK_URI
,
PX_SUBSCRIPTION_TYPE
)
)
m_body_json_mepm_pkgm_subscription
(
m_app_package_subscription
(
PX_CALLBACK_URI
,
PX_SUBSCRIPTION_TYPE
)
)
)
)
));
...
...
@@ -506,11 +506,11 @@ group pkg_mgmt_subscriptions {
mw_http_response_ok
(
mw_http_message_body_json
(
mw_body_json_mepm_pkgm_subscription_info
(
mw_app_package_subscription_info
(
-
,
PX_SUBSCRIPTION_TYPE
,
PX_CALLBACK_URI
)
mw_app_package_subscription_info
(
-
,
PX_SUBSCRIPTION_TYPE
,
PX_CALLBACK_URI
)
)))))
->
value
v_response
{
tc_ac
.
stop
;
...
...
@@ -524,9 +524,9 @@ group pkg_mgmt_subscriptions {
}
// End of 'alt' statement
}
// End of testcase TP_MEC_MEPM_PKGM_005_OK
/**
/**
* @desc: Check that MEPM service sends an error when it receives a
*
malformed request for creating a new subscription on AppPackages
*
malformed request for creating a new subscription on AppPackages
* ETSI GS MEC 010-2 2.0.10, clause 7.4.5.3.1
*/
testcase
TP_MEC_MEPM_PKGM_005_BR
()
runs
on
HttpComponent
system
HttpTestAdapter
{
...
...
@@ -552,12 +552,12 @@ group pkg_mgmt_subscriptions {
"/"
&
PICS_ROOT_API
&
PX_MEPM_PKGM_SUBS
,
v_headers
,
m_http_message_body_json
(
m_body_json_mepm_pkgm_subscription_with_error
(
m_app_package_subscription_with_error
(
PX_CALLBACK_URI
,
PX_SUBSCRIPTION_TYPE_WITH_ERROR
)
)
m_body_json_mepm_pkgm_subscription_with_error
(
m_app_package_subscription_with_error
(
PX_CALLBACK_URI
,
PX_SUBSCRIPTION_TYPE_WITH_ERROR
)
)
)
)));
...
...
@@ -581,7 +581,7 @@ group pkg_mgmt_subscriptions {
}
// End of 'alt' statement
}
// End of testcase TP_MEC_MEPM_PKGM_005_BR
/**
/**
* @desc: Check that MEPM service returns the list of Application Package Subscriptions when requested
* ETSI GS MEC 010-2 2.0.10, clause 7.4.5.3.2
*/
...
...
@@ -620,15 +620,15 @@ group pkg_mgmt_subscriptions {
mw_http_response_ok
(
mw_http_message_body_json
(
mw_body_json_mepm_pkgm_subscription_info_list
(
{
*
,
mw_app_package_subscription_info
(
-
,
PX_SUBSCRIPTION_TYPE
,
PX_CALLBACK_URI
),
*
}
{
*
,
mw_app_package_subscription_info
(
-
,
PX_SUBSCRIPTION_TYPE
,
PX_CALLBACK_URI
),
*
}
)))))
->
value
v_response
{
tc_ac
.
stop
;
...
...
@@ -643,7 +643,7 @@ group pkg_mgmt_subscriptions {
}
// End of testcase TP_MEC_MEPM_PKGM_006_OK
/**
/**
* @desc: Check that MEPM service returns an Application Package Subscription when requested
* ETSI GS MEC 010-2 2.0.10, clause 7.4.6.3.2
*/
...
...
@@ -682,11 +682,11 @@ group pkg_mgmt_subscriptions {
mw_http_response_ok
(
mw_http_message_body_json
(
mw_body_json_mepm_pkgm_subscription_info
(
mw_app_package_subscription_info
(
PX_SUBSCRIPTION_ID
,
PX_SUBSCRIPTION_TYPE
,
PX_CALLBACK_URI
)
mw_app_package_subscription_info
(
PX_SUBSCRIPTION_ID
,
PX_SUBSCRIPTION_TYPE
,
PX_CALLBACK_URI
)
)))))
->
value
v_response
{
tc_ac
.
stop
;
...
...
@@ -701,9 +701,9 @@ group pkg_mgmt_subscriptions {
}
// End of testcase TP_MEC_MEPM_PKGM_007_OK
/**
/**
* @desc: Check that MEPM service sends an error when it receives a query
*
for a subscription on AppPackages with a wrong identifier
*
for a subscription on AppPackages with a wrong identifier
* ETSI GS MEC 010-2 2.0.10, clause 7.4.6.3.2
*/
testcase
TP_MEC_MEPM_PKGM_007_NF
()
runs
on
HttpComponent
system
HttpTestAdapter
{
...
...
@@ -739,7 +739,7 @@ group pkg_mgmt_subscriptions {
[]
httpPort
.
receive
(
mw_http_response
(
mw_http_response_404_not_found
(
)))
->
value
v_response
{
)))
->
value
v_response
{
tc_ac
.
stop
;
log
(
"*** "
&
testcasename
()
&
": PASS: IUT successfully responds with 404 not found ***"
);
...
...
@@ -752,7 +752,7 @@ group pkg_mgmt_subscriptions {
}
// End of 'alt' statement
}
// End of testcase TP_MEC_MEPM_PKGM_007_NF
/**
/**
* @desc: Check that MEPM service deletes an Application Package Subscription when requested
* ETSI GS MEC 010-2 2.0.10, clause 7.4.6.3.4
*/
...
...
@@ -803,9 +803,9 @@ group pkg_mgmt_subscriptions {
}
// End of testcase TP_MEC_MEPM_PKGM_008_OK
/**
/**
* @desc: Check that MEPM service sends an error when it receives a deletion request
*
for a subscription on AppPackages with a wrong identifier
*
for a subscription on AppPackages with a wrong identifier
* ETSI GS MEC 010-2 2.0.10, clause 7.4.6.3.4
*/
testcase
TP_MEC_MEPM_PKGM_008_NF
()
runs
on
HttpComponent
system
HttpTestAdapter
{
...
...
@@ -841,7 +841,7 @@ group pkg_mgmt_subscriptions {
[]
httpPort
.
receive
(
mw_http_response
(
mw_http_response_404_not_found
(
)))
->
value
v_response
{
)))
->
value
v_response
{
tc_ac
.
stop
;
log
(
"*** "
&
testcasename
()
&
": PASS: IUT successfully responds with 404 not found ***"
);
...
...
@@ -860,7 +860,7 @@ group mepm_pkg_management_notification {
/**
* @desc Check that the MEPM service sends a application package notification if
* the MEPM service has an associated subscription and the event is generated
* the MEPM service has an associated subscription and the event is generated
* @see ETSI GS MEC 010-2 2.0.10, clause 7.4.7.3.1
*/
testcase
TP_MEC_MEPM_PKGM_009_OK
()
runs
on
HttpComponent
system
HttpTestAdapter
{
...
...
@@ -888,17 +888,17 @@ group mepm_pkg_management_notification {
tc_wait
.
start
;
alt
{
[]
httpPort_notif
.
receive
(
mw_http_request
(
mw_http_request_post
(
unichar2
char
(
PX_CALLBACK_URI
),
mw_http_request
(
mw_http_request_post
(
oct2char
(
unichar2
oct
(
PX_CALLBACK_URI
)
)
,
-
,
mw_http_message_body_json
(
mw_body_json_mepm_app_package_notification
(
mw_app_package_notification
(
-
,
PX_NOTIFICATION_TYPE
,
PX_SUBSCRIPTION_ID
,
PX_CALLBACK_URI
)
mw_http_message_body_json
(
mw_body_json_mepm_app_package_notification
(
mw_app_package_notification
(
-
,
PX_NOTIFICATION_TYPE
,
PX_SUBSCRIPTION_ID
,
PX_CALLBACK_URI
)
)
)
)
...
...
ttcn/AtsMec/AtsMec_RadioNodeLocationAPI_TestCases.ttcn
View file @
a75abed6
...
...
@@ -446,7 +446,7 @@ module AtsMec_RadioNodeLocationAPI_TestCases {
httpPort
.
send
(
m_http_request
(
m_http_request_get
(
"/"
&
PICS_ROOT_API
&
oct2char
(
unichar2oct
(
PX_UE_LOC_QRY_URI
,
"UTF-8"
))
&
"?address="
&
oct2char
(
unichar2oct
(
PX_IP_ADDRESS
,
"UTF-8"
))
&
"&latitude="
&
float2str
(
PX_UE_COORD_LAT
)
&
"&longitude="
&
float2str
(
PX_UE_COORD_LONG
),
"/"
&
PICS_ROOT_API
&
PX_UE_LOC_QRY_URI
&
"?address="
&
oct2char
(
unichar2oct
(
PX_IP_ADDRESS
,
"UTF-8"
))
&
"&latitude="
&
float2str
(
PX_UE_COORD_LAT
)
&
"&longitude="
&
float2str
(
PX_UE_COORD_LONG
),
v_headers
)
)
...
...
@@ -503,7 +503,7 @@ module AtsMec_RadioNodeLocationAPI_TestCases {
httpPort
.
send
(
m_http_request
(
m_http_request_get
(
"/"
&
PICS_ROOT_API
&
oct2char
(
unichar2oct
(
PX_UE_LOC_QRY_URI
,
"UTF-8"
))
&
"?address="
&
oct2char
(
unichar2oct
(
PX_IP_ADDRESS
,
"UTF-8"
))
&
"&lat="
&
float2str
(
PX_UE_COORD_LAT
)
&
"&longitude="
&
float2str
(
PX_UE_COORD_LONG
),
"/"
&
PICS_ROOT_API
&
PX_UE_LOC_QRY_URI
&
"?address="
&
oct2char
(
unichar2oct
(
PX_IP_ADDRESS
,
"UTF-8"
))
&
"&lat="
&
float2str
(
PX_UE_COORD_LAT
)
&
"&longitude="
&
float2str
(
PX_UE_COORD_LONG
),
v_headers
)
)
...
...
@@ -565,7 +565,7 @@ module AtsMec_RadioNodeLocationAPI_TestCases {
httpPort
.
send
(
m_http_request
(
m_http_request_post
(
"/"
&
PICS_ROOT_API
&
oct2char
(
unichar2oct
(
PX_UE_DIST_SUB_URI
,
"UTF-8"
)),
"/"
&
PICS_ROOT_API
&
PX_UE_DIST_SUB_URI
,
v_headers
,
m_http_message_body_json
(
m_body_json_distance_notification_subscription
(
...
...
@@ -649,7 +649,7 @@ module AtsMec_RadioNodeLocationAPI_TestCases {
httpPort
.
send
(
m_http_request
(
m_http_request_post
(
"/"
&
PICS_ROOT_API
&
oct2char
(
unichar2oct
(
PX_UE_DIST_SUB_URI
,
"UTF-8"
)),
"/"
&
PICS_ROOT_API
&
PX_UE_DIST_SUB_URI
,
v_headers
,
m_http_message_body_json
(
m_body_json_distance_notification_subscription
(
...
...
@@ -715,7 +715,7 @@ module AtsMec_RadioNodeLocationAPI_TestCases {
httpPort
.
send
(
m_http_request
(
m_http_request_delete
(
"/"
&
PICS_ROOT_API
&
oct2char
(
unichar2oct
(
PX_UE_DIST_SUB_URI
,
"UTF-8"
))
&
oct2char
(
unichar2oct
(
PX_SUBSCRIPTION_ID
,
"UTF-8"
)),
"/"
&
PICS_ROOT_API
&
PX_UE_DIST_SUB_URI
&
oct2char
(
unichar2oct
(
PX_SUBSCRIPTION_ID
,
"UTF-8"
)),
v_headers
)
)
...
...
@@ -769,7 +769,7 @@ module AtsMec_RadioNodeLocationAPI_TestCases {
httpPort
.
send
(
m_http_request
(
m_http_request_delete
(
"/"
&
PICS_ROOT_API
&
oct2char
(
unichar2oct
(
PX_UE_DIST_SUB_URI
,
"UTF-8"
))
&
oct2char
(
unichar2oct
(
PX_NON_EXISTENT_SUBSCRIPTION_ID
,
"UTF-8"
)),
"/"
&
PICS_ROOT_API
&
PX_UE_DIST_SUB_URI
&
oct2char
(
unichar2oct
(
PX_NON_EXISTENT_SUBSCRIPTION_ID
,
"UTF-8"
)),
v_headers
)
)
...
...
@@ -830,7 +830,7 @@ module AtsMec_RadioNodeLocationAPI_TestCases {
httpPort
.
send
(
m_http_request
(
m_http_request_get
(
"/"
&
PICS_ROOT_API
&
oct2char
(
unichar2oct
(
PX_UE_LOC_USERS_URI
))
&
"?address="
&
oct2char
(
unichar2oct
(
PX_ACR_SOME_IP
,
"UTF-8"
)),
"/"
&
PICS_ROOT_API
&
PX_UE_LOC_USERS_URI
&
"?address="
&
oct2char
(
unichar2oct
(
PX_ACR_SOME_IP
,
"UTF-8"
)),
v_headers
)
)
...
...
@@ -887,7 +887,7 @@ module AtsMec_RadioNodeLocationAPI_TestCases {
httpPort
.
send
(
m_http_request
(
m_http_request_get
(
"/"
&
PICS_ROOT_API
&
oct2char
(
unichar2oct
(
PX_UE_LOC_USERS_URI
,
"UTF-8"
))
&
"?addr="
&
oct2char
(
unichar2oct
(
PX_ACR_SOME_IP
,
"UTF-8"
)),
"/"
&
PICS_ROOT_API
&
PX_UE_LOC_USERS_URI
&
"?addr="
&
oct2char
(
unichar2oct
(
PX_ACR_SOME_IP
,
"UTF-8"
)),
v_headers
)
)
...
...
@@ -941,7 +941,7 @@ module AtsMec_RadioNodeLocationAPI_TestCases {
httpPort
.
send
(
m_http_request
(
m_http_request_get
(
"/"
&
PICS_ROOT_API
&
oct2char
(
unichar2oct
(
PX_UE_LOC_USERS_URI
,
"UTF-8"
))
&
"?address="
&
oct2char
(
unichar2oct
(
PX_ACR_UNKNOWN_IP
,
"UTF-8"
)),
"/"
&
PICS_ROOT_API
&
PX_UE_LOC_USERS_URI
&
"?address="
&
oct2char
(
unichar2oct
(
PX_ACR_UNKNOWN_IP
,
"UTF-8"
)),
v_headers
)
)
...
...
@@ -1264,7 +1264,7 @@ module AtsMec_RadioNodeLocationAPI_TestCases {
httpPort
.
send
(
m_http_request
(
m_http_request_get
(
"/"
&
PICS_ROOT_API
&
oct2char
(
unichar2oct
(
PX_UE_LOC_USERS_URI
,
"UTF-8"
))
&
"?zoneId="
&
oct2char
(
unichar2oct
(
PX_ZONE_ID
,
"UTF-8"
)),
"/"
&
PICS_ROOT_API
&
PX_UE_LOC_USERS_URI
&
"?zoneId="
&
oct2char
(
unichar2oct
(
PX_ZONE_ID
,
"UTF-8"
)),
v_headers
)
)
...
...
@@ -1322,7 +1322,7 @@ module AtsMec_RadioNodeLocationAPI_TestCases {
httpPort
.
send
(
m_http_request
(
m_http_request_get
(
"/"
&
PICS_ROOT_API
&
oct2char
(
unichar2oct
(
PX_UE_LOC_USERS_URI
,
"UTF-8"
))
&
"?zone="
&
oct2char
(
unichar2oct
(
PX_ZONE_ID
,
"UTF-8"
)),
"/"
&
PICS_ROOT_API
&
PX_UE_LOC_USERS_URI
&
"?zone="
&
oct2char
(
unichar2oct
(
PX_ZONE_ID
,
"UTF-8"
)),
v_headers
)
)
...
...
@@ -1376,7 +1376,7 @@ module AtsMec_RadioNodeLocationAPI_TestCases {
httpPort
.
send
(
m_http_request
(
m_http_request_get
(
"/"
&
PICS_ROOT_API
&
oct2char
(
unichar2oct
(
PX_UE_LOC_USERS_URI
,
"UTF-8"
))
&
"?zoneId="
&
oct2char
(
unichar2oct
(
PX_NON_EXISTENT_ZONE_ID
,
"UTF-8"
)),
"/"
&
PICS_ROOT_API
&
PX_UE_LOC_USERS_URI
&
"?zoneId="
&
oct2char
(
unichar2oct
(
PX_NON_EXISTENT_ZONE_ID
,
"UTF-8"
)),
v_headers
)
)
...
...
@@ -1438,7 +1438,7 @@ module AtsMec_RadioNodeLocationAPI_TestCases {
httpPort
.
send
(
m_http_request
(
m_http_request_post
(
"/"
&
PICS_ROOT_API
&
oct2char
(
unichar2oct
(
PX_UE_LOC_USERTRACK_SUB_URI
,
"UTF-8"
)),
"/"
&
PICS_ROOT_API
&
PX_UE_LOC_USERTRACK_SUB_URI
,
v_headers
,
m_http_message_body_json
(
m_body_json_user_tracking_subscription
(
...
...
@@ -1519,7 +1519,7 @@ module AtsMec_RadioNodeLocationAPI_TestCases {
httpPort
.
send
(
m_http_request
(
m_http_request_post
(
"/"
&
PICS_ROOT_API
&
oct2char
(
unichar2oct
(
PX_UE_LOC_USERTRACK_SUB_URI
,
"UTF-8"
)),
"/"
&
PICS_ROOT_API
&
PX_UE_LOC_USERTRACK_SUB_URI
,
v_headers
,
m_http_message_body_json
(
m_body_json_user_tracking_subscription
(
...
...
@@ -1584,7 +1584,7 @@ module AtsMec_RadioNodeLocationAPI_TestCases {
httpPort
.
send
(
m_http_request
(
m_http_request_delete
(
"/"
&
PICS_ROOT_API
&
oct2char
(
unichar2oct
(
PX_UE_LOC_USERTRACK_SUB_URI
,
"UTF-8"
))
&
oct2char
(
unichar2oct
(
PX_SUBSCRIPTION_ID
,
"UTF-8"
)),
"/"
&
PICS_ROOT_API
&
PX_UE_LOC_USERTRACK_SUB_URI
&
oct2char
(
unichar2oct
(
PX_SUBSCRIPTION_ID
,
"UTF-8"
)),
v_headers
)
)
...
...
@@ -1638,7 +1638,7 @@ module AtsMec_RadioNodeLocationAPI_TestCases {
httpPort
.
send
(
m_http_request
(
m_http_request_delete
(
"/"
&
PICS_ROOT_API
&
oct2char
(
unichar2oct
(
PX_UE_LOC_USERTRACK_SUB_URI
,
"UTF-8"
))
&
oct2char
(
unichar2oct
(
PX_NON_EXISTENT_SUBSCRIPTION_ID
,
"UTF-8"
)),
"/"
&
PICS_ROOT_API
&
PX_UE_LOC_USERTRACK_SUB_URI
&
oct2char
(
unichar2oct
(
PX_NON_EXISTENT_SUBSCRIPTION_ID
,
"UTF-8"
)),
v_headers
)
)
...
...
@@ -1700,7 +1700,7 @@ module AtsMec_RadioNodeLocationAPI_TestCases {
httpPort
.
send
(
m_http_request
(
m_http_request_post
(
"/"
&
PICS_ROOT_API
&
oct2char
(
unichar2oct
(
PX_UE_PERIODIC_SUB_URI
,
"UTF-8"
)),
"/"
&
PICS_ROOT_API
&
PX_UE_PERIODIC_SUB_URI
,
v_headers
,
m_http_message_body_json
(
m_body_json_periodic_notification_subscription
(
...
...
@@ -1781,7 +1781,7 @@ module AtsMec_RadioNodeLocationAPI_TestCases {
httpPort
.
send
(
m_http_request
(
m_http_request_post
(
"/"
&
PICS_ROOT_API
&
oct2char
(
unichar2oct
(
PX_UE_PERIODIC_SUB_URI
,
"UTF-8"
)),
"/"
&
PICS_ROOT_API
&
PX_UE_PERIODIC_SUB_URI
,
v_headers
,
m_http_message_body_json
(
m_body_json_user_tracking_subscription
(
...
...
@@ -1845,7 +1845,7 @@ module AtsMec_RadioNodeLocationAPI_TestCases {
httpPort
.
send
(
m_http_request
(
m_http_request_delete
(
"/"
&
PICS_ROOT_API
&
oct2char
(
unichar2oct
(
PX_UE_PERIODIC_SUB_URI
,
"UTF-8"
))
&
oct2char
(
unichar2oct
(
PX_SUBSCRIPTION_ID
,
"UTF-8"
)),
"/"
&
PICS_ROOT_API
&
PX_UE_PERIODIC_SUB_URI
&
oct2char
(
unichar2oct
(
PX_SUBSCRIPTION_ID
,
"UTF-8"
)),
v_headers
)
)
...
...
@@ -1898,7 +1898,7 @@ module AtsMec_RadioNodeLocationAPI_TestCases {
httpPort
.
send
(
m_http_request
(
m_http_request_delete
(
"/"
&
PICS_ROOT_API
&
oct2char
(
unichar2oct
(
PX_UE_LOC_USERTRACK_SUB_URI
,
"UTF-8"
))
&
oct2char
(
unichar2oct
(
PX_NON_EXISTENT_SUBSCRIPTION_ID
,
"UTF-8"
)),
"/"
&
PICS_ROOT_API
&
PX_UE_LOC_USERTRACK_SUB_URI
&
oct2char
(
unichar2oct
(
PX_NON_EXISTENT_SUBSCRIPTION_ID
,
"UTF-8"
)),
v_headers
)
)
...
...
ttcn/LibMec/Ams/ttcn/Ams_Pixits.ttcn
View file @
a75abed6
...
...
@@ -6,21 +6,21 @@ module Ams_Pixits {
// LibMec/LocationAPI
import
from
Ams_TypesAndValues
all
;
modulepar
JSON
.
String
PX_APP_MOBILITY_SERVICE_ID
:=
"KtRGymNQ84dG3mQfRepa"
modulepar
JSON
.
String
PX_APP_MOBILITY_SERVICE_ID
:=
"KtRGymNQ84dG3mQfRepa"
;
modulepar
JSON
.
String
PX_APP_INS_ID
:=
"5abe4782-2c70-4e47-9a4e-0ee3a1a0fd1f"
modulepar
JSON
.
String
PX_APP_INS_ID
:=
"5abe4782-2c70-4e47-9a4e-0ee3a1a0fd1f"
;
modulepar
SubscriptionType
PX_SUBSCRIPTION_TYPE
:=
MobilityProcedureSubscription
modulepar
SubscriptionType
PX_SUBSCRIPTION_TYPE
:=
MobilityProcedureSubscription
;
modulepar
JSON
.
String
PX_SUBSCRIPTION_ID
:=
"e0deee2b-6e50-4f33-ab09-8bf0585025d3"
modulepar
JSON
.
String
PX_SUBSCRIPTION_ID
:=
"e0deee2b-6e50-4f33-ab09-8bf0585025d3"
;
modulepar
JSON
.
String
PX_NON_EXISTENT_SUBSCRIPTION_ID
:=
"NON_EXISTENT_SUBSCRIPTION_ID"
modulepar
JSON
.
String
PX_NON_EXISTENT_SUBSCRIPTION_ID
:=
"NON_EXISTENT_SUBSCRIPTION_ID"
;
modulepar
JSON
.
String
PX_NON_EXISTENT_APP_MOBILITY_SERVICE_ID
:=
"PX_NON_EXISTENT_APP_MOBILITY_SERVICE_ID"
modulepar
JSON
.
String
PX_NON_EXISTENT_APP_MOBILITY_SERVICE_ID
:=
"PX_NON_EXISTENT_APP_MOBILITY_SERVICE_ID"
;
modulepar
JSON
.
String
PX_CALLBACK_REFERENCE
:=
"http://127.0.0.1/callback"
modulepar
JSON
.
String
PX_CALLBACK_REFERENCE
:=
"http://127.0.0.1/callback"
;
modulepar
charstring
PX_CALLBACK_URI
:=
"http://127.0.0.1/callback"
modulepar
charstring
PX_CALLBACK_URI
:=
"http://127.0.0.1/callback"
;
modulepar
JSON
.
String
PX_MEP_ID
:=
""
;
...
...
ttcn/LibMec/Ams/ttcn/Ams_Templates.ttcn
View file @
a75abed6
...
...
@@ -174,7 +174,7 @@ module Ams_Templates {
Subscription
subscription
}
template
(
value
)
AdjacentAppInfoSubscription
mw_adjacent_application_info_notification
(
template
(
value
)
AdjacentAppInfoSubscription
_
mw_adjacent_application_info_notification
(
in
template
(
omit
)
SubscriptionType
p_subscriptionType
:=
omit
,
in
JSON
.
AnyURI
p_callbackReference
,
in
template
(
omit
)
JSON
.
AnyURI
p_links
:=
omit
,
...
...
@@ -190,7 +190,7 @@ module Ams_Templates {
}
template
(
value
)
MobilityProcedureSubscription
m_ams_subscription
(
template
(
value
)
MobilityProcedureSubscription
_
m_ams_subscription
(
in
SubscriptionType
p_subscriptionType
:=
PX_SUBSCRIPTION_TYPE
,
in
JSON
.
AnyURI
p_callbackReference
,
in
template
(
omit
)
JSON
.
AnyURI
p_links
:=
omit
,
...
...
@@ -207,7 +207,7 @@ module Ams_Templates {
template
(
value
)
MobilityProcedureSubscription
mw_mobility_procedure_notification
(
template
(
value
)
MobilityProcedureSubscription
_
mw_mobility_procedure_notification
(
in
template
(
omit
)
SubscriptionType
p_subscriptionType
:=
omit
,
in
JSON
.
AnyURI
p_callbackReference
,
in
template
(
omit
)
JSON
.
AnyURI
p_links
:=
omit
,
...
...
@@ -237,7 +237,7 @@ module Ams_Templates {
expiryDeadline
:=
p_expiryDeadline
}
template
(
present
)
MobilityProcedureSubscription
mw_ams_subscription
(
template
(
present
)
MobilityProcedureSubscription
_
mw_ams_subscription
(
in
SubscriptionType
p_subscriptionType
,
in
template
(
omit
)
JSON
.
AnyURI
p_callbackReference
:=
omit
,
in
template
(
omit
)
JSON
.
AnyURI
p_links
:=
omit
,
...
...
ttcn/LibMec/Ams/ttcn/Ams_TypesAndValues.ttcn
View file @
a75abed6
...
...
@@ -90,8 +90,8 @@ type record MobilityProcedureSubscriptionError {
type
record
of
MobilityProcedureSubscription
MobilityProcedureSubscriptions
;
type
record
MobilityProcedureSubscription
{
type
record
of
MobilityProcedureSubscription
_
MobilityProcedureSubscriptions
;
type