Commit e423439f authored by YannGarcia's avatar YannGarcia

Review TC_MEC_SRV_UEINFLOOK_001_BR TC_MEC_SRV_UEINFLOOK_001_OK TC_MEC_SRV_UEINFLOOK_001_NF

parent 483c81cc
......@@ -39,18 +39,29 @@ This file provides the list of the TODOs related to the STF 569.
### UEINFLOOK
Draft ETSI GS MEC 013 V2.0.3 (2018-10)
https://forge.etsi.org/gitlab/mec/gs032p2-test-purposes/blob/remove-401s/Test%20Purposes/SRV/UEINFLOOK/PlatUeInformationLookup.tplan2
- TC_MEC_SRV_UEINFLOOK_001_OK <font color="color:yellow">To be tested</font>
- TC_MEC_SRV_UEINFLOOK_001_BR <font color="color:yellow">To be tested</font>
- TC_MEC_SRV_UEINFLOOK_001_NF <font color="color:yellow">To be tested</font>
### UEINFSUB
### UELOC
Draft ETSI GS MEC 013 V2.0.3 (2018-10)
https://forge.etsi.org/gitlab/mec/MEC-tests/blob/master/Test%20Purposes/SRV/UELOC/PlatUeLocationLookup.tplan2
- TC_MEC_SRV_UELOC_001_OK <span style="color:green">Done</span>
- TC_MEC_SRV_UELOC_001_OK <font color="color:green">Done</font>
- TC_MEC_SRV_UELOC_001_BR <span style="color:yellow">To be tested</span>
- TC_MEC_SRV_UELOC_001_BR <font color="color:yellow">To be tested</font>
- TC_MEC_SRV_UELOC_001_NF <span style="color:yellow">To be tested</span>
- TC_MEC_SRV_UELOC_001_NF <font color="color:yellow">To be tested</font>
### UELOCSUB
......@@ -58,13 +69,13 @@ Draft ETSI GS MEC 013 V2.0.3 (2018-10)
https://forge.etsi.org/gitlab/mec/gs032p2-test-purposes/blob/remove-401s/Test%20Purposes/SRV/UELOCSUB/PlatUeLocationSubscription.tplan2
- TC_MEC_SRV_UELOCSUB_001_OK <span style="color:green">Done</span>
- TC_MEC_SRV_UELOCSUB_001_OK <font color="color:green">Done</font>
- TC_MEC_SRV_UELOCSUB_001_BR <span style="color:green">Done</span>
- TC_MEC_SRV_UELOCSUB_001_BR <font color="color:green">Done</font>
- TC_MEC_SRV_UELOCSUB_002_OK <span style="color:green">Done</span>
- TC_MEC_SRV_UELOCSUB_002_OK <font color="color:green">Done</font>
- TC_MEC_SRV_UELOCSUB_002_NF <span style="color:green">Done</span>
- TC_MEC_SRV_UELOCSUB_002_NF <font color="color:green">Done</font>
### UETAG
......@@ -72,19 +83,19 @@ ETSI GS MEC 014 V1.1.1 (2018-02)
https://forge.etsi.org/gitlab/mec/gs032p2-test-purposes/blob/master/Test%20Purposes/SRV/UETAG/PlatUeIdentity.tplan2
- TC_MEC_SRV_UETAG_001_OK <span style="color:green">To be tested</span>
- TC_MEC_SRV_UETAG_001_OK <font color="color:green">To be tested</font>
- TC_MEC_SRV_UETAG_001_BR <span style="color:green">To be tested</span>
- TC_MEC_SRV_UETAG_001_BR <font color="color:green">To be tested</font>
- TC_MEC_SRV_UETAG_001_NF <span style="color:green">To be tested</span>
- TC_MEC_SRV_UETAG_001_NF <font color="color:green">To be tested</font>
- TC_MEC_SRV_UETAG_002_OK <span style="color:green">To be tested</span>
- TC_MEC_SRV_UETAG_002_OK <font color="color:green">To be tested</font>
- TC_MEC_SRV_UETAG_002_BR <span style="color:green">To be tested</span>
- TC_MEC_SRV_UETAG_002_BR <font color="color:green">To be tested</font>
- TC_MEC_SRV_UETAG_002_NF <span style="color:green">Done</span>
- TC_MEC_SRV_UETAG_002_NF <font color="color:green">Done</font>
- TC_MEC_SRV_UETAG_002_PF <span style="color:green">Done</span>
- TC_MEC_SRV_UETAG_002_PF <font color="color:green">Done</font>
### UETRACKSUB
......@@ -92,11 +103,11 @@ Draft ETSI GS MEC 013 V2.0.3 (2018-10)
https://forge.etsi.org/gitlab/mec/gs032p2-test-purposes/blob/remove-401s/Test%20Purposes/SRV/UETRACKSUB/PlatUeTrackingSubscription.tplan2
- TC_MEC_SRV_UETRACKSUB_001_OK <span style="color:green">To be tested</span>
- TC_MEC_SRV_UETRACKSUB_001_OK <font color="color:green">To be tested</font>
- TC_MEC_SRV_UETRACKSUB_001_BR <span style="color:green">To be tested</span>
- TC_MEC_SRV_UETRACKSUB_001_BR <font color="color:green">To be tested</font>
- TC_MEC_SRV_UETRACKSUB_002_OK <span style="color:green">To be tested</span>
- TC_MEC_SRV_UETRACKSUB_002_OK <font color="color:green">To be tested</font>
- TC_MEC_SRV_UETRACKSUB_002_NF <span style="color:green">To be tested</span>
- TC_MEC_SRV_UETRACKSUB_002_NF <font color="color:green">To be tested</font>
......@@ -665,4 +665,167 @@ module AtsMec_LocationAPI_TestCases {
} // End of group ueTrackSub
group ueInfLook {
/**
* @desc Check that the IUT responds with the information pertaining to one or more UEs in a particular location when queried by a MEC Application
* @see https://forge.etsi.org/gitlab/mec/gs032p2-test-purposes/blob/remove-401s/Test%20Purposes/SRV/UEINFLOOK/PlatUeInformationLookup.tplan2
*/
testcase TC_MEC_SRV_UEINFLOOK_001_OK() runs on HttpComponent system HttpTestAdapter {
// Local variables
var HeaderLines v_headers;
// Test control
if (not(PICS_MEC_PLAT) or not(PICS_SERVICES) or not(PICS_LOCATION_API_SUPPORTED)) {
log("*** " & testcasename() & ": PICS_MEC_PLATand PICS_SERVICES and PICS_LOCATION_API_SUPPORTED required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cf_01_http_up();
// Test adapter configuration
// Preamble
f_init_default_headers_list(-, -, v_headers);
httpPort.send(
m_http_request(
m_http_request_get(
"/" & PICS_ROOT_API & PX_ME_APP_Q_USERS_LIST_URI,
v_headers
)
)
);
f_selfOrClientSyncAndVerdict(c_prDone, e_success);
// Test Body
tc_ac.start;
alt {
[] httpPort.receive(
mw_http_response(
mw_http_response_ok(
mw_http_message_body_json(
mw_body_json_user_list(
mw_user_list(-, ?)
))))) {
log("*** " & testcasename() & ": PASS: IUT successfully responds with a UserList ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
[] tc_ac.timeout {
log("*** " & testcasename() & ": INCONC: Expected message not received ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_timeout);
}
} // End of 'alt' statement
// Postamble
f_cf_01_http_down();
} // End of testcase TC_MEC_SRV_UEINFLOOK_001_OK
/**
* @desc Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application
* @see https://forge.etsi.org/gitlab/mec/gs032p2-test-purposes/blob/remove-401s/Test%20Purposes/SRV/UEINFLOOK/PlatUeInformationLookup.tplan2
*/
testcase TC_MEC_SRV_UEINFLOOK_001_BR() runs on HttpComponent system HttpTestAdapter {
// Local variables
var HeaderLines v_headers;
// Test control
if (not(PICS_MEC_PLAT) or not(PICS_SERVICES) or not(PICS_LOCATION_API_SUPPORTED)) {
log("*** " & testcasename() & ": PICS_MEC_PLAT and PICS_SERVICES and PICS_LOCATION_API_SUPPORTED required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cf_01_http_up();
// Test adapter configuration
// Preamble
f_init_default_headers_list(-, -, v_headers);
httpPort.send(
m_http_request(
m_http_request_get(
"/" & PICS_ROOT_API & PX_ME_APP_Q_USERS_LIST_URI & "/invalid/" & oct2char(unichar2oct(PX_USER, "UTF-8")),
v_headers
)
)
);
f_selfOrClientSyncAndVerdict(c_prDone, e_success);
// Test Body
tc_ac.start;
alt {
[] httpPort.receive(
mw_http_response(
mw_http_response_400_bad_request
)) {
log("*** " & testcasename() & ": PASS: IUT successfully responds 400 Bad Request ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
[] tc_ac.timeout {
log("*** " & testcasename() & ": INCONC: Expected message not received ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_timeout);
}
} // End of 'alt' statement
// Postamble
f_cf_01_http_down();
} // End of testcase TC_MEC_SRV_UEINFLOOK_001_BR
/**
* @desc Check that the IUT responds with an error when a request for an unknown URI is sent by a MEC Application
* @see https://forge.etsi.org/gitlab/mec/gs032p2-test-purposes/blob/remove-401s/Test%20Purposes/SRV/UEINFLOOK/PlatUeInformationLookup.tplan2
*/
testcase TC_MEC_SRV_UEINFLOOK_001_NF() runs on HttpComponent system HttpTestAdapter {
// Local variables
var HeaderLines v_headers;
// Test control
if (not(PICS_MEC_PLAT) or not(PICS_SERVICES) or not(PICS_LOCATION_API_SUPPORTED)) {
log("*** " & testcasename() & ": PICS_MEC_PLAT and PICS_SERVICES and PICS_LOCATION_API_SUPPORTED required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cf_01_http_up();
// Test adapter configuration
// Preamble
f_init_default_headers_list(-, -, v_headers);
httpPort.send(
m_http_request(
m_http_request_get(
"/" & PICS_ROOT_API & PX_ME_APP_Q_USERS_LIST_URI & "/" & oct2char(unichar2oct(PX_USER_UNKNOWN, "UTF-8")),
v_headers
)
)
);
f_selfOrClientSyncAndVerdict(c_prDone, e_success);
// Test Body
tc_ac.start;
alt {
[] httpPort.receive(
mw_http_response(
mw_http_response_404_not_found
)) {
log("*** " & testcasename() & ": PASS: IUT successfully responds 404 Not Found ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
[] tc_ac.timeout {
log("*** " & testcasename() & ": INCONC: Expected message not received ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_timeout);
}
} // End of 'alt' statement
// Postamble
f_cf_01_http_down();
} // End of testcase TC_MEC_SRV_UEINFLOOK_001_NF
} // End of group ueInfLook
} // End of module AtsMec_LocationAPI_TestCases
......@@ -15,7 +15,6 @@ module AtsMec_TestControl {
// AtsMec
import from AtsMec_LocationAPI_TestCases all;
import from AtsMec_UEidentityAPI_TestCases all;
import from AtsMec_UEinformation_TestCases all;
import from AtsMec_RadioNodeLocationAPI_TestCases all;
import from AtsMec_RnisAPI_TestCases all;
import from AtsMec_BwManagementAPI_TestCases all;
......@@ -45,7 +44,9 @@ module AtsMec_TestControl {
execute(TC_MEC_SRV_UETRACKSUB_002_OK());
execute(TC_MEC_SRV_UETRACKSUB_002_NF());
execute(TC_MEC_PLAT_INFLOOK_001_OK());
execute(TC_MEC_SRV_UEINFLOOK_001_OK());
execute(TC_MEC_SRV_UEINFLOOK_001_BR());
execute(TC_MEC_SRV_UEINFLOOK_001_NF());
execute(TC_MEC_PLAT_RLOC_001_OK());
}
......
......@@ -38,10 +38,9 @@ module AtsMec_UEinformation_TestCases {
/**
* @desc Check that the IUT responds with the information pertaining to one or more UEs in a particular location when queried by a MEC Application
* @see https://forge.etsi.org/gitlab/mec/MEC-tests/blob/master/Test%20Purposes/Plat/Mp1/UeInformation/PlatUeInformation.tplan2
* @see https://forge.etsi.org/gitlab/mec/gs013-location-api/blob/master/LocationAPI.yaml#/definitions/UserList
* @see https://forge.etsi.org/gitlab/mec/gs032p2-test-purposes/blob/remove-401s/Test%20Purposes/SRV/UEINFLOOK/PlatUeInformationLookup.tplan2
*/
testcase TC_MEC_PLAT_INFLOOK_001_OK() runs on HttpComponent system HttpTestAdapter {
testcase TC_MEC_SRV_UEINFLOOK_001_OK() runs on HttpComponent system HttpTestAdapter {
// Local variables
var HeaderLines v_headers;
var HttpMessage v_response;
......@@ -91,7 +90,7 @@ module AtsMec_UEinformation_TestCases {
// Postamble
f_cf_01_http_down();
} // End of testcase TC_MEC_PLAT_INFLOOK_001_OK
} // End of testcase TC_MEC_SRV_UEINFLOOK_001_OK
} // End of group me_app_role
......
......@@ -8,6 +8,8 @@ module LocationAPI_Pixits {
modulepar Address PX_USER := "acr:192.0.0.1";
modulepar Address PX_USER_UNKNOWN := "acr:192.0.0.200";
modulepar ClientCorrelator PX_CLIENT_ID := "0123";
modulepar ClientCorrelator PX_CLIENT_ID_UNKNOWN := "0666";
......
Markdown is supported
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