Loading config.mk +1 −1 Original line number Diff line number Diff line TTCN3_COMPILER_OPTIONS := -b -d -e -f -g -l -L -M -n -O -r -R -U none -x -X TTCN3_DIR := $(HOME)/frameworks/titan/titan.core/Install #TTCN3_DIR := $(HOME)/frameworks/titan/titan.core/Install #WPCAP_DLL_PATH := /cygdrive/c/windows/system32/npcap/wpcap.dll #NPCAP_INCLUDE := /cygdrive/c/PROGRA~1/Npcap/sdk/include T3Q_PATH=./tools/t3q-v2.0.0b30 Loading ttcn/AtsMec_V2XInformationService/AtsMec_V2XInformationServiceAPI_TestCases.ttcn +432 −385 Original line number Diff line number Diff line Loading @@ -2897,14 +2897,13 @@ module AtsMec_V2XInformationServiceAPI_TestCases { } // End of testcase TC_MEC_MEC030_SRV_V2X_010_OK_05 /** * @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/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v2.2.1-dev/Test%20Purposes/MEC030/SRV/V2XInformationService.tplan2 * @desc Check that the IUT responds with the requested of updating subscription when queried by a MEC Application */ testcase TC_MEC_MEC030_SRV_V2X_010_BR() runs on HttpComponent system HttpTestAdapter { // Local variables var Headers v_headers; var ProvChgUuUniSubscription v_prov_chg_uu_uni_subscription; var charstring v_subscription_id; // Test control if (not(PICS_MEC_PLAT) or not(PICS_V2X_INFORMATION_SERVICE_API_SUPPORTED)) { Loading @@ -2919,12 +2918,12 @@ module AtsMec_V2XInformationServiceAPI_TestCases { // Test adapter configuration // Preamble f_create_prov_uu_uni_subscription(v_prov_chg_uu_uni_subscription); f_create_prov_uu_uni_subscription(v_prov_chg_uu_uni_subscription, v_subscription_id); f_init_default_headers_list(-, -, v_headers); httpPort.send( m_http_request( m_http_request_put( PICS_ROOT_API & PX_ME_V2X_URI & "/subscriptions/" & v_prov_chg_uu_uni_subscription.links.self_.href, PICS_ROOT_API & PX_ME_V2X_URI_SUB & "/" & v_subscription_id, v_headers, m_http_message_body_json( m_body_json_prov_chg_uu_uni_subscription( Loading Loading @@ -2956,7 +2955,7 @@ module AtsMec_V2XInformationServiceAPI_TestCases { )) { tc_ac.stop; log("*** " & testcasename() & ": PASS: IUT successfully responds with a correct error code ***"); log("*** " & testcasename() & ": PASS: IUT successfully responds with the correct error code ***"); f_selfOrClientSyncAndVerdict(c_tbDone, e_success); } [] tc_ac.timeout { Loading @@ -2966,19 +2965,18 @@ module AtsMec_V2XInformationServiceAPI_TestCases { } // End of 'alt' statement // postamble f_delete_prov_uu_uni_subscription(v_prov_chg_uu_uni_subscription); f_delete_prov_uu_uni_subscription(v_subscription_id); f_cf_01_http_down(); } // End of testcase TC_MEC_MEC030_SRV_V2X_010_BR /** * @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/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v2.2.1-dev/Test%20Purposes/MEC030/SRV/V2XInformationService.tplan2 * @desc Check that the IUT responds with the requested of updating subscription when queried by a MEC Application */ testcase TC_MEC_MEC030_SRV_V2X_010_NF() runs on HttpComponent system HttpTestAdapter { // Local variables var Headers v_headers; var ProvChgUuUniSubscription v_prov_chg_uu_uni_subscription; var charstring v_subscription_id; // Test control if (not(PICS_MEC_PLAT) or not(PICS_V2X_INFORMATION_SERVICE_API_SUPPORTED)) { Loading @@ -2993,12 +2991,12 @@ module AtsMec_V2XInformationServiceAPI_TestCases { // Test adapter configuration // Preamble f_create_prov_uu_uni_subscription(v_prov_chg_uu_uni_subscription); f_create_prov_uu_uni_subscription(v_prov_chg_uu_uni_subscription, v_subscription_id); f_init_default_headers_list(-, -, v_headers); httpPort.send( m_http_request( m_http_request_put( PICS_ROOT_API & PX_ME_V2X_URI & "/subscriptions/invalid_links", PICS_ROOT_API & PX_ME_V2X_URI_SUB & "/" & PX_NON_EXISTENT_SUBSCRIPTION_ID, v_headers, m_http_message_body_json( m_body_json_prov_chg_uu_uni_subscription( Loading Loading @@ -3040,20 +3038,19 @@ module AtsMec_V2XInformationServiceAPI_TestCases { } // End of 'alt' statement // postamble f_delete_prov_uu_uni_subscription(v_prov_chg_uu_uni_subscription); f_delete_prov_uu_uni_subscription(v_subscription_id); f_cf_01_http_down(); } // End of testcase TC_MEC_MEC030_SRV_V2X_010_NF /** * @desc Check that the IUT responds with the request of removing subscription information when queried by a MEC Application * @see https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v2.2.1-dev/Test%20Purposes/MEC030/SRV/V2XInformationService.tplan2 * @desc Check that the IUT responds with the requested of removing subscription when queried by a MEC Application - ProvChgUuUniSubscription */ testcase TC_MEC_MEC030_SRV_V2X_011_OK_01() runs on HttpComponent system HttpTestAdapter { // Local variables var Headers v_headers; var HttpMessage v_response; var ProvChgUuUniSubscription v_prov_chg_uu_uni_subscription; var charstring v_subscription_id; // Test control if (not(PICS_MEC_PLAT) or not(PICS_V2X_INFORMATION_SERVICE_API_SUPPORTED)) { Loading @@ -3068,12 +3065,12 @@ module AtsMec_V2XInformationServiceAPI_TestCases { // Test adapter configuration // Preamble f_create_prov_uu_uni_subscription(v_prov_chg_uu_uni_subscription); f_create_prov_uu_uni_subscription(v_prov_chg_uu_uni_subscription, v_subscription_id); f_init_default_headers_list(-, -, v_headers); httpPort.send( m_http_request( m_http_request_delete( PICS_ROOT_API & PX_ME_V2X_URI & "/subscriptions/" & v_prov_chg_uu_uni_subscription.links.self_.href, PICS_ROOT_API & PX_ME_V2X_URI_SUB & "/" & v_subscription_id, v_headers ))); f_selfOrClientSyncAndVerdict(c_prDone, e_success); Loading Loading @@ -3101,15 +3098,14 @@ module AtsMec_V2XInformationServiceAPI_TestCases { } // End of testcase TC_MEC_MEC030_SRV_V2X_011_OK_01 /** * @desc Check that the IUT responds with the request of removing subscription information when queried by a MEC Application * @see https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v2.2.1-dev/Test%20Purposes/MEC030/SRV/V2XInformationService.tplan2 * @desc Check that the IUT responds with the requested of removing subscription when queried by a MEC Application - ProvChgUuMbmsSubscription */ testcase TC_MEC_MEC030_SRV_V2X_011_OK_02() runs on HttpComponent system HttpTestAdapter { // Local variables var Headers v_headers; var HttpMessage v_response; var ProvChgUuMbmsSubscription v_prov_chg_uu_mbms_subscription; var charstring v_subscription_id; // Test control if (not(PICS_MEC_PLAT) or not(PICS_V2X_INFORMATION_SERVICE_API_SUPPORTED)) { Loading @@ -3124,12 +3120,12 @@ module AtsMec_V2XInformationServiceAPI_TestCases { // Test adapter configuration // Preamble f_create_prov_uu_mbms_subscription(v_prov_chg_uu_mbms_subscription); f_create_prov_uu_mbms_subscription(v_prov_chg_uu_mbms_subscription, v_subscription_id); f_init_default_headers_list(-, -, v_headers); httpPort.send( m_http_request( m_http_request_delete( PICS_ROOT_API & PX_ME_V2X_URI & "/subscriptions/" & v_prov_chg_uu_mbms_subscription.links.self_.href, PICS_ROOT_API & PX_ME_V2X_URI_SUB & "/" & v_subscription_id, v_headers ))); f_selfOrClientSyncAndVerdict(c_prDone, e_success); Loading Loading @@ -3157,15 +3153,14 @@ module AtsMec_V2XInformationServiceAPI_TestCases { } // End of testcase TC_MEC_MEC030_SRV_V2X_011_OK_02 /** * @desc Check that the IUT responds with the request of removing subscription information when queried by a MEC Application * @see https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v2.2.1-dev/Test%20Purposes/MEC030/SRV/V2XInformationService.tplan2 * @desc Check that the IUT responds with the requested of removing subscription when queried by a MEC Application - ProvChgPc5Subscription */ testcase TC_MEC_MEC030_SRV_V2X_011_OK_03() runs on HttpComponent system HttpTestAdapter { // Local variables var Headers v_headers; var HttpMessage v_response; var ProvChgPc5Subscription v_prov_chg_pc5_subscription; var charstring v_subscription_id; // Test control if (not(PICS_MEC_PLAT) or not(PICS_V2X_INFORMATION_SERVICE_API_SUPPORTED)) { Loading @@ -3180,12 +3175,12 @@ module AtsMec_V2XInformationServiceAPI_TestCases { // Test adapter configuration // Preamble f_create_prov_pc5_subscription(v_prov_chg_pc5_subscription); f_create_prov_pc5_subscription(v_prov_chg_pc5_subscription, v_subscription_id); f_init_default_headers_list(-, -, v_headers); httpPort.send( m_http_request( m_http_request_delete( PICS_ROOT_API & PX_ME_V2X_URI & "/subscriptions/" & v_prov_chg_pc5_subscription.links.self_.href, PICS_ROOT_API & PX_ME_V2X_URI_SUB & "/" & v_subscription_id, v_headers ))); f_selfOrClientSyncAndVerdict(c_prDone, e_success); Loading Loading @@ -3213,15 +3208,14 @@ module AtsMec_V2XInformationServiceAPI_TestCases { } // End of testcase TC_MEC_MEC030_SRV_V2X_011_OK_03 /** * @desc Check that the IUT responds with the request of removing subscription information when queried by a MEC Application * @see https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v2.2.1-dev/Test%20Purposes/MEC030/SRV/V2XInformationService.tplan2 * @desc Check that the IUT responds with the requested of removing subscription when queried by a MEC Application - V2xMsgSubscription */ testcase TC_MEC_MEC030_SRV_V2X_011_OK_04() runs on HttpComponent system HttpTestAdapter { // Local variables var Headers v_headers; var HttpMessage v_response; var V2xMsgSubscription v_v2x_msg_subscription; var charstring v_subscription_id; // Test control if (not(PICS_MEC_PLAT) or not(PICS_V2X_INFORMATION_SERVICE_API_SUPPORTED)) { Loading @@ -3236,12 +3230,12 @@ module AtsMec_V2XInformationServiceAPI_TestCases { // Test adapter configuration // Preamble f_create_v2x_msg_subscription(v_v2x_msg_subscription); f_create_v2x_msg_subscription(v_v2x_msg_subscription, v_subscription_id); f_init_default_headers_list(-, -, v_headers); httpPort.send( m_http_request( m_http_request_delete( PICS_ROOT_API & PX_ME_V2X_URI & "/subscriptions/" & v_v2x_msg_subscription.links.self_.href, PICS_ROOT_API & PX_ME_V2X_URI_SUB & "/" & v_subscription_id, v_headers ))); f_selfOrClientSyncAndVerdict(c_prDone, e_success); Loading @@ -3255,7 +3249,7 @@ module AtsMec_V2XInformationServiceAPI_TestCases { )) { tc_ac.stop; log("*** " & testcasename() & ": PASS: IUT successfully registers subscription ***"); log("*** " & testcasename() & ": PASS: IUT successfully removes subscription ***"); f_selfOrClientSyncAndVerdict(c_tbDone, e_success); } [] tc_ac.timeout { Loading @@ -3269,9 +3263,62 @@ module AtsMec_V2XInformationServiceAPI_TestCases { } // End of testcase TC_MEC_MEC030_SRV_V2X_011_OK_04 /** * @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/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v2.2.1-dev/Test%20Purposes/MEC030/SRV/V2XInformationService.tplan2 * @desc Check that the IUT responds with the requested of removing subscription when queried by a MEC Application - PredQosSubscription */ testcase TC_MEC_MEC030_SRV_V2X_011_OK_05() runs on HttpComponent system HttpTestAdapter { // Local variables var Headers v_headers; var HttpMessage v_response; var PredQosSubscription v_pred_qos_subscription; var charstring v_subscription_id; // Test control if (not(PICS_MEC_PLAT) or not(PICS_V2X_INFORMATION_SERVICE_API_SUPPORTED)) { log("*** " & testcasename() & ": PICS_MEC_PLAT and PICS_V2X_INFORMATION_SERVICE_API_SUPPORTED required for executing the TC ***"); setverdict(inconc); stop; } // Test component configuration f_cf_01_http_up(); // Test adapter configuration // Preamble f_create_pred_qos_subscription(v_pred_qos_subscription, v_subscription_id); f_init_default_headers_list(-, -, v_headers); httpPort.send( m_http_request( m_http_request_delete( PICS_ROOT_API & PX_ME_V2X_URI_SUB & "/" & v_subscription_id, v_headers ))); f_selfOrClientSyncAndVerdict(c_prDone, e_success); // Test Body tc_ac.start; alt { [] httpPort.receive( mw_http_response( mw_http_response_204_no_content )) { tc_ac.stop; log("*** " & testcasename() & ": PASS: IUT successfully removes subscription ***"); 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_MEC030_SRV_V2X_011_OK_05 /** * @desc Check that the IUT responds with the requested of removing subscription when queried by a MEC Application */ testcase TC_MEC_MEC030_SRV_V2X_011_NF() runs on HttpComponent system HttpTestAdapter { // Local variables Loading @@ -3295,7 +3342,7 @@ module AtsMec_V2XInformationServiceAPI_TestCases { httpPort.send( m_http_request( m_http_request_delete( PICS_ROOT_API & PX_ME_V2X_URI & "/subscriptions/invalid_links", PICS_ROOT_API & PX_ME_V2X_URI_SUB & "/" & PX_NON_EXISTENT_SUBSCRIPTION_ID, v_headers ))); f_selfOrClientSyncAndVerdict(c_prDone, e_success); Loading ttcn/AtsMec_V2XInformationService/AtsMec_V2XInformationServiceAPI_TestControl.ttcn +7 −0 Original line number Diff line number Diff line Loading @@ -67,6 +67,13 @@ module AtsMec_V2XInformationServiceAPI_TestControl { execute(TC_MEC_MEC030_SRV_V2X_010_OK_05()); execute(TC_MEC_MEC030_SRV_V2X_010_BR()); execute(TC_MEC_MEC030_SRV_V2X_010_NF()); execute(TC_MEC_MEC030_SRV_V2X_011_OK_01()); execute(TC_MEC_MEC030_SRV_V2X_011_OK_02()); execute(TC_MEC_MEC030_SRV_V2X_011_OK_03()); execute(TC_MEC_MEC030_SRV_V2X_011_OK_04()); execute(TC_MEC_MEC030_SRV_V2X_011_OK_05()); execute(TC_MEC_MEC030_SRV_V2X_011_NF()); } } // End of 'control' statement Loading Loading
config.mk +1 −1 Original line number Diff line number Diff line TTCN3_COMPILER_OPTIONS := -b -d -e -f -g -l -L -M -n -O -r -R -U none -x -X TTCN3_DIR := $(HOME)/frameworks/titan/titan.core/Install #TTCN3_DIR := $(HOME)/frameworks/titan/titan.core/Install #WPCAP_DLL_PATH := /cygdrive/c/windows/system32/npcap/wpcap.dll #NPCAP_INCLUDE := /cygdrive/c/PROGRA~1/Npcap/sdk/include T3Q_PATH=./tools/t3q-v2.0.0b30 Loading
ttcn/AtsMec_V2XInformationService/AtsMec_V2XInformationServiceAPI_TestCases.ttcn +432 −385 Original line number Diff line number Diff line Loading @@ -2897,14 +2897,13 @@ module AtsMec_V2XInformationServiceAPI_TestCases { } // End of testcase TC_MEC_MEC030_SRV_V2X_010_OK_05 /** * @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/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v2.2.1-dev/Test%20Purposes/MEC030/SRV/V2XInformationService.tplan2 * @desc Check that the IUT responds with the requested of updating subscription when queried by a MEC Application */ testcase TC_MEC_MEC030_SRV_V2X_010_BR() runs on HttpComponent system HttpTestAdapter { // Local variables var Headers v_headers; var ProvChgUuUniSubscription v_prov_chg_uu_uni_subscription; var charstring v_subscription_id; // Test control if (not(PICS_MEC_PLAT) or not(PICS_V2X_INFORMATION_SERVICE_API_SUPPORTED)) { Loading @@ -2919,12 +2918,12 @@ module AtsMec_V2XInformationServiceAPI_TestCases { // Test adapter configuration // Preamble f_create_prov_uu_uni_subscription(v_prov_chg_uu_uni_subscription); f_create_prov_uu_uni_subscription(v_prov_chg_uu_uni_subscription, v_subscription_id); f_init_default_headers_list(-, -, v_headers); httpPort.send( m_http_request( m_http_request_put( PICS_ROOT_API & PX_ME_V2X_URI & "/subscriptions/" & v_prov_chg_uu_uni_subscription.links.self_.href, PICS_ROOT_API & PX_ME_V2X_URI_SUB & "/" & v_subscription_id, v_headers, m_http_message_body_json( m_body_json_prov_chg_uu_uni_subscription( Loading Loading @@ -2956,7 +2955,7 @@ module AtsMec_V2XInformationServiceAPI_TestCases { )) { tc_ac.stop; log("*** " & testcasename() & ": PASS: IUT successfully responds with a correct error code ***"); log("*** " & testcasename() & ": PASS: IUT successfully responds with the correct error code ***"); f_selfOrClientSyncAndVerdict(c_tbDone, e_success); } [] tc_ac.timeout { Loading @@ -2966,19 +2965,18 @@ module AtsMec_V2XInformationServiceAPI_TestCases { } // End of 'alt' statement // postamble f_delete_prov_uu_uni_subscription(v_prov_chg_uu_uni_subscription); f_delete_prov_uu_uni_subscription(v_subscription_id); f_cf_01_http_down(); } // End of testcase TC_MEC_MEC030_SRV_V2X_010_BR /** * @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/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v2.2.1-dev/Test%20Purposes/MEC030/SRV/V2XInformationService.tplan2 * @desc Check that the IUT responds with the requested of updating subscription when queried by a MEC Application */ testcase TC_MEC_MEC030_SRV_V2X_010_NF() runs on HttpComponent system HttpTestAdapter { // Local variables var Headers v_headers; var ProvChgUuUniSubscription v_prov_chg_uu_uni_subscription; var charstring v_subscription_id; // Test control if (not(PICS_MEC_PLAT) or not(PICS_V2X_INFORMATION_SERVICE_API_SUPPORTED)) { Loading @@ -2993,12 +2991,12 @@ module AtsMec_V2XInformationServiceAPI_TestCases { // Test adapter configuration // Preamble f_create_prov_uu_uni_subscription(v_prov_chg_uu_uni_subscription); f_create_prov_uu_uni_subscription(v_prov_chg_uu_uni_subscription, v_subscription_id); f_init_default_headers_list(-, -, v_headers); httpPort.send( m_http_request( m_http_request_put( PICS_ROOT_API & PX_ME_V2X_URI & "/subscriptions/invalid_links", PICS_ROOT_API & PX_ME_V2X_URI_SUB & "/" & PX_NON_EXISTENT_SUBSCRIPTION_ID, v_headers, m_http_message_body_json( m_body_json_prov_chg_uu_uni_subscription( Loading Loading @@ -3040,20 +3038,19 @@ module AtsMec_V2XInformationServiceAPI_TestCases { } // End of 'alt' statement // postamble f_delete_prov_uu_uni_subscription(v_prov_chg_uu_uni_subscription); f_delete_prov_uu_uni_subscription(v_subscription_id); f_cf_01_http_down(); } // End of testcase TC_MEC_MEC030_SRV_V2X_010_NF /** * @desc Check that the IUT responds with the request of removing subscription information when queried by a MEC Application * @see https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v2.2.1-dev/Test%20Purposes/MEC030/SRV/V2XInformationService.tplan2 * @desc Check that the IUT responds with the requested of removing subscription when queried by a MEC Application - ProvChgUuUniSubscription */ testcase TC_MEC_MEC030_SRV_V2X_011_OK_01() runs on HttpComponent system HttpTestAdapter { // Local variables var Headers v_headers; var HttpMessage v_response; var ProvChgUuUniSubscription v_prov_chg_uu_uni_subscription; var charstring v_subscription_id; // Test control if (not(PICS_MEC_PLAT) or not(PICS_V2X_INFORMATION_SERVICE_API_SUPPORTED)) { Loading @@ -3068,12 +3065,12 @@ module AtsMec_V2XInformationServiceAPI_TestCases { // Test adapter configuration // Preamble f_create_prov_uu_uni_subscription(v_prov_chg_uu_uni_subscription); f_create_prov_uu_uni_subscription(v_prov_chg_uu_uni_subscription, v_subscription_id); f_init_default_headers_list(-, -, v_headers); httpPort.send( m_http_request( m_http_request_delete( PICS_ROOT_API & PX_ME_V2X_URI & "/subscriptions/" & v_prov_chg_uu_uni_subscription.links.self_.href, PICS_ROOT_API & PX_ME_V2X_URI_SUB & "/" & v_subscription_id, v_headers ))); f_selfOrClientSyncAndVerdict(c_prDone, e_success); Loading Loading @@ -3101,15 +3098,14 @@ module AtsMec_V2XInformationServiceAPI_TestCases { } // End of testcase TC_MEC_MEC030_SRV_V2X_011_OK_01 /** * @desc Check that the IUT responds with the request of removing subscription information when queried by a MEC Application * @see https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v2.2.1-dev/Test%20Purposes/MEC030/SRV/V2XInformationService.tplan2 * @desc Check that the IUT responds with the requested of removing subscription when queried by a MEC Application - ProvChgUuMbmsSubscription */ testcase TC_MEC_MEC030_SRV_V2X_011_OK_02() runs on HttpComponent system HttpTestAdapter { // Local variables var Headers v_headers; var HttpMessage v_response; var ProvChgUuMbmsSubscription v_prov_chg_uu_mbms_subscription; var charstring v_subscription_id; // Test control if (not(PICS_MEC_PLAT) or not(PICS_V2X_INFORMATION_SERVICE_API_SUPPORTED)) { Loading @@ -3124,12 +3120,12 @@ module AtsMec_V2XInformationServiceAPI_TestCases { // Test adapter configuration // Preamble f_create_prov_uu_mbms_subscription(v_prov_chg_uu_mbms_subscription); f_create_prov_uu_mbms_subscription(v_prov_chg_uu_mbms_subscription, v_subscription_id); f_init_default_headers_list(-, -, v_headers); httpPort.send( m_http_request( m_http_request_delete( PICS_ROOT_API & PX_ME_V2X_URI & "/subscriptions/" & v_prov_chg_uu_mbms_subscription.links.self_.href, PICS_ROOT_API & PX_ME_V2X_URI_SUB & "/" & v_subscription_id, v_headers ))); f_selfOrClientSyncAndVerdict(c_prDone, e_success); Loading Loading @@ -3157,15 +3153,14 @@ module AtsMec_V2XInformationServiceAPI_TestCases { } // End of testcase TC_MEC_MEC030_SRV_V2X_011_OK_02 /** * @desc Check that the IUT responds with the request of removing subscription information when queried by a MEC Application * @see https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v2.2.1-dev/Test%20Purposes/MEC030/SRV/V2XInformationService.tplan2 * @desc Check that the IUT responds with the requested of removing subscription when queried by a MEC Application - ProvChgPc5Subscription */ testcase TC_MEC_MEC030_SRV_V2X_011_OK_03() runs on HttpComponent system HttpTestAdapter { // Local variables var Headers v_headers; var HttpMessage v_response; var ProvChgPc5Subscription v_prov_chg_pc5_subscription; var charstring v_subscription_id; // Test control if (not(PICS_MEC_PLAT) or not(PICS_V2X_INFORMATION_SERVICE_API_SUPPORTED)) { Loading @@ -3180,12 +3175,12 @@ module AtsMec_V2XInformationServiceAPI_TestCases { // Test adapter configuration // Preamble f_create_prov_pc5_subscription(v_prov_chg_pc5_subscription); f_create_prov_pc5_subscription(v_prov_chg_pc5_subscription, v_subscription_id); f_init_default_headers_list(-, -, v_headers); httpPort.send( m_http_request( m_http_request_delete( PICS_ROOT_API & PX_ME_V2X_URI & "/subscriptions/" & v_prov_chg_pc5_subscription.links.self_.href, PICS_ROOT_API & PX_ME_V2X_URI_SUB & "/" & v_subscription_id, v_headers ))); f_selfOrClientSyncAndVerdict(c_prDone, e_success); Loading Loading @@ -3213,15 +3208,14 @@ module AtsMec_V2XInformationServiceAPI_TestCases { } // End of testcase TC_MEC_MEC030_SRV_V2X_011_OK_03 /** * @desc Check that the IUT responds with the request of removing subscription information when queried by a MEC Application * @see https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v2.2.1-dev/Test%20Purposes/MEC030/SRV/V2XInformationService.tplan2 * @desc Check that the IUT responds with the requested of removing subscription when queried by a MEC Application - V2xMsgSubscription */ testcase TC_MEC_MEC030_SRV_V2X_011_OK_04() runs on HttpComponent system HttpTestAdapter { // Local variables var Headers v_headers; var HttpMessage v_response; var V2xMsgSubscription v_v2x_msg_subscription; var charstring v_subscription_id; // Test control if (not(PICS_MEC_PLAT) or not(PICS_V2X_INFORMATION_SERVICE_API_SUPPORTED)) { Loading @@ -3236,12 +3230,12 @@ module AtsMec_V2XInformationServiceAPI_TestCases { // Test adapter configuration // Preamble f_create_v2x_msg_subscription(v_v2x_msg_subscription); f_create_v2x_msg_subscription(v_v2x_msg_subscription, v_subscription_id); f_init_default_headers_list(-, -, v_headers); httpPort.send( m_http_request( m_http_request_delete( PICS_ROOT_API & PX_ME_V2X_URI & "/subscriptions/" & v_v2x_msg_subscription.links.self_.href, PICS_ROOT_API & PX_ME_V2X_URI_SUB & "/" & v_subscription_id, v_headers ))); f_selfOrClientSyncAndVerdict(c_prDone, e_success); Loading @@ -3255,7 +3249,7 @@ module AtsMec_V2XInformationServiceAPI_TestCases { )) { tc_ac.stop; log("*** " & testcasename() & ": PASS: IUT successfully registers subscription ***"); log("*** " & testcasename() & ": PASS: IUT successfully removes subscription ***"); f_selfOrClientSyncAndVerdict(c_tbDone, e_success); } [] tc_ac.timeout { Loading @@ -3269,9 +3263,62 @@ module AtsMec_V2XInformationServiceAPI_TestCases { } // End of testcase TC_MEC_MEC030_SRV_V2X_011_OK_04 /** * @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/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v2.2.1-dev/Test%20Purposes/MEC030/SRV/V2XInformationService.tplan2 * @desc Check that the IUT responds with the requested of removing subscription when queried by a MEC Application - PredQosSubscription */ testcase TC_MEC_MEC030_SRV_V2X_011_OK_05() runs on HttpComponent system HttpTestAdapter { // Local variables var Headers v_headers; var HttpMessage v_response; var PredQosSubscription v_pred_qos_subscription; var charstring v_subscription_id; // Test control if (not(PICS_MEC_PLAT) or not(PICS_V2X_INFORMATION_SERVICE_API_SUPPORTED)) { log("*** " & testcasename() & ": PICS_MEC_PLAT and PICS_V2X_INFORMATION_SERVICE_API_SUPPORTED required for executing the TC ***"); setverdict(inconc); stop; } // Test component configuration f_cf_01_http_up(); // Test adapter configuration // Preamble f_create_pred_qos_subscription(v_pred_qos_subscription, v_subscription_id); f_init_default_headers_list(-, -, v_headers); httpPort.send( m_http_request( m_http_request_delete( PICS_ROOT_API & PX_ME_V2X_URI_SUB & "/" & v_subscription_id, v_headers ))); f_selfOrClientSyncAndVerdict(c_prDone, e_success); // Test Body tc_ac.start; alt { [] httpPort.receive( mw_http_response( mw_http_response_204_no_content )) { tc_ac.stop; log("*** " & testcasename() & ": PASS: IUT successfully removes subscription ***"); 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_MEC030_SRV_V2X_011_OK_05 /** * @desc Check that the IUT responds with the requested of removing subscription when queried by a MEC Application */ testcase TC_MEC_MEC030_SRV_V2X_011_NF() runs on HttpComponent system HttpTestAdapter { // Local variables Loading @@ -3295,7 +3342,7 @@ module AtsMec_V2XInformationServiceAPI_TestCases { httpPort.send( m_http_request( m_http_request_delete( PICS_ROOT_API & PX_ME_V2X_URI & "/subscriptions/invalid_links", PICS_ROOT_API & PX_ME_V2X_URI_SUB & "/" & PX_NON_EXISTENT_SUBSCRIPTION_ID, v_headers ))); f_selfOrClientSyncAndVerdict(c_prDone, e_success); Loading
ttcn/AtsMec_V2XInformationService/AtsMec_V2XInformationServiceAPI_TestControl.ttcn +7 −0 Original line number Diff line number Diff line Loading @@ -67,6 +67,13 @@ module AtsMec_V2XInformationServiceAPI_TestControl { execute(TC_MEC_MEC030_SRV_V2X_010_OK_05()); execute(TC_MEC_MEC030_SRV_V2X_010_BR()); execute(TC_MEC_MEC030_SRV_V2X_010_NF()); execute(TC_MEC_MEC030_SRV_V2X_011_OK_01()); execute(TC_MEC_MEC030_SRV_V2X_011_OK_02()); execute(TC_MEC_MEC030_SRV_V2X_011_OK_03()); execute(TC_MEC_MEC030_SRV_V2X_011_OK_04()); execute(TC_MEC_MEC030_SRV_V2X_011_OK_05()); execute(TC_MEC_MEC030_SRV_V2X_011_NF()); } } // End of 'control' statement Loading