Merge request from TTF_T043_T4_xFlow into TTF_T043

Merge request reports

Loading
+13 −0
Changes for ccsrc/Protocols/Json/json_codec.cc: 13 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -32,6 +32,10 @@ int json_codec::encode (const LibHttp__JsonMessageBodyTypes::JsonBody& msg, OCTE
    const TrafficManagementAPI__TypesAndValues::BwInfo& bw_info = msg.bwInfo();
    bw_info.encode(TrafficManagementAPI__TypesAndValues::BwInfo_descr_, encoding_buffer, TTCN_EncDec::CT_JSON);
    data = OCTETSTRING(encoding_buffer.get_len(), encoding_buffer.get_data())/* + char2oct(CHARSTRING("}"))*/;
  } else if (msg.ischosen(LibHttp__JsonMessageBodyTypes::JsonBody::ATL_bwchgeventsubscription)) {
    const TrafficManagementAPI__TypesAndValues::BwChgEventSubscription& bw_chg_event_subscription = msg.bwInfo();
    bw_info.encode(TrafficManagementAPI__TypesAndValues::BwChgEventSubscription_descr_, encoding_buffer, TTCN_EncDec::CT_JSON);
    data = OCTETSTRING(encoding_buffer.get_len(), encoding_buffer.get_data())/* + char2oct(CHARSTRING("}"))*/;
  } else if (msg.ischosen(LibHttp__JsonMessageBodyTypes::JsonBody::ALT_mtsSessionInfo)) {
    const TrafficManagementAPI__TypesAndValues::MtsSessionInfo& mts_session_info = msg.mtsSessionInfo();
    mts_session_info.encode(TrafficManagementAPI__TypesAndValues::MtsSessionInfo_descr_, encoding_buffer, TTCN_EncDec::CT_JSON);
@@ -153,6 +157,15 @@ int json_codec::decode (const OCTETSTRING& p_data, LibHttp__JsonMessageBodyTypes
      bw_info.decode(TrafficManagementAPI__TypesAndValues::BwInfo_descr_, decoding_buffer_, TTCN_EncDec::CT_JSON);
      msg.bwInfo() = bw_info;
    }
  } else if ((it->second.find("\"_links\"") != std::string::npos) && (it->second.find("subscriptions\"") != std::string::npos)) { // SubscriptionLinkList
    TrafficManagementAPI__TypesAndValues::SubscriptionLinkList subscription_link_list;
    subscription_link_list.decode(TrafficManagementAPI__TypesAndValues::SubscriptionLinkList_descr_, decoding_buffer, TTCN_EncDec::CT_JSON);
    msg.subscriptionLinkList() = subscription_link_list;
  } else if ((it->second.find("\"bwchgeventsubscription\"") != std::string::npos) {
    TrafficManagementAPI__TypesAndValues::BwChgEventSubscription bw_chg_event_subscription;
    TTCN_Buffer decoding_buffer_(OCTETSTRING(str.length(), (const unsigned char*)str.c_str()));
    bw_chg_event_subscription.decode(TrafficManagementAPI__TypesAndValues::MtsCapabilityInfo_descr_, decoding_buffer_, TTCN_EncDec::CT_JSON);
    msg.bwchgeventsubscription() = bw_chg_event_subscription;
  } else if ((it->second.find("\"mtsCapabilityInfo\"") != std::string::npos) || (it->second.find("\"mtsAccessInfo\"") != std::string::npos)) {
    TrafficManagementAPI__TypesAndValues::MtsCapabilityInfo mts_cap_info;
    TTCN_Buffer decoding_buffer_(OCTETSTRING(str.length(), (const unsigned char*)str.c_str()));
+195 −0
Changes for etc/AtsMec_TrafficManagement/AtsMec_TrafficManagement.cfg_: 195 added lines, 0 removed lines.
Original line number Diff line number Diff line
[MODULE_PARAMETERS]
# This section shall contain the values of all parameters that are defined in your TTCN-3 modules.

# IUT roles

LibCommon_Time.PX_TAC := 30.0
#LibCommon_Time.PX_TWAIT := 30.0
LibCommon_Sync.PX_TSYNC_TIME_LIMIT := 30.0;
LibCommon_Sync.PX_TSHUT_DOWN_TIME_LIMIT := 30.0;

LibHttp_Pics.PICS_HEADER_HOST := "192.168.1.39"

LibHttp_Pics.PICS_HEADER_CONTENT_TYPE := "application/json"
LibHttp_Pics.PICS_USE_TOKEN_HEADER    := true
#LibHttp_Pics.PICS_TOKEN_HEADER        := "Basic WrongToken"

# LibMec_Pixits


[LOGGING]
# In this section you can specify the name of the log file and the classes of events
# you want to log into the file or display on console (standard error).

LogFile := "../logs/AtsMec_TrafficManagement/%e.%h-%r.%s"
FileMask := LOG_ALL | USER | DEBUG | MATCHING
ConsoleMask := LOG_ALL | USER | DEBUG | MATCHING
#FileMask := ERROR | WARNING | USER | MATCHING | EXECUTOR_RUNTIME | VERDICTOP | PORTEVENT | TESTCASE
#ConsoleMask := ERROR | WARNING | USER | MATCHING | EXECUTOR_RUNTIME | VERDICTOP | PORTEVENT | TESTCASE
LogSourceInfo := Stack
LogEntityName:= Yes
LogEventTypes:= Yes
#TimeStampFormat := DateTime

[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=192.168.1.12,port=30030,use_ssl=0)"
#system.httpPort.params := "HTTP(codecs=json:json_codec)/TCP(debug=1,server=try-mec.etsi.org,port=443,use_ssl=1)"
system.httpPort_notif.params := "HTTP(codecs=json:json_codec)/TCP(debug=1,server_mode=1,local_port=80,use_ssl=0)"

[DEFINE]
# In this section you can create macro definitions,
# that can be used in other configuration file sections except [INCLUDE] and [ORDERED_INCLUDE].

[INCLUDE]
# To use configuration settings given in other configuration files,
# the configuration files just need to be listed in this section, with their full or relative pathnames.

[ORDERED_INCLUDE]
# To use configuration settings given in other configuration files,
# the configuration files just need to be listed in this section, with their full or relative pathnames.

[EXTERNAL_COMMANDS]
# This section can define external commands (shell scripts) to be executed by the ETS
# whenever a control part or test case is started or terminated.

#BeginTestCase := ""
#EndTestCase := ""
#BeginControlPart := ""
#EndControlPart := ""

[EXECUTE]
# In this section you can specify what parts of your test suite you want to execute.
#AtsMec_TestControl.control

# Check that the IUT responds with the list of configured bandwidth allocations when queried by a MEC Application - none
#AtsMec_TrafficManagementAPI_TestCases.TC_MEC_MEC015_SRV_TM_001_OK_01
# Check that the IUT responds with a configured bandwidth allocation when queried by a MEC Application - app_instance_id
#AtsMec_TrafficManagementAPI_TestCases.TC_MEC_MEC015_SRV_TM_001_OK_02
# Check that the IUT responds with a configured bandwidth allocation when queried by a MEC Application - app_name
#AtsMec_TrafficManagementAPI_TestCases.TC_MEC_MEC015_SRV_TM_001_OK_03
# Check that the IUT responds with a configured bandwidth allocation when queried by a MEC Application - session_id
#AtsMec_TrafficManagementAPI_TestCases.TC_MEC_MEC015_SRV_TM_001_OK_04
# Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application - app_instance_id
#AtsMec_TrafficManagementAPI_TestCases.TC_MEC_MEC015_SRV_TM_001_BR
# Check that the IUT responds with an error when a request with an unknown resource URI is sent by a MEC Application - app_instance_id
#AtsMec_TrafficManagementAPI_TestCases.TC_MEC_MEC015_SRV_TM_001_NF_01
# Check that the IUT responds with an error when a request with an unknown resource URI is sent by a MEC Application - app_name
#AtsMec_TrafficManagementAPI_TestCases.TC_MEC_MEC015_SRV_TM_001_NF_02
# Check that the IUT responds with an error when a request with an unknown resource URI is sent by a MEC Application - session_id
#AtsMec_TrafficManagementAPI_TestCases.TC_MEC_MEC015_SRV_TM_001_NF_03
# Check that the IUT acknowledges a creation of a bandwidthAllocation resource
#AtsMec_TrafficManagementAPI_TestCases.TC_MEC_MEC015_SRV_TM_002_OK
# Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application - sessionFilter shall be omitted
#AtsMec_TrafficManagementAPI_TestCases.TC_MEC_MEC015_SRV_TM_002_BR_01
# Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application - sessionFilter shall be present
#AtsMec_TrafficManagementAPI_TestCases.TC_MEC_MEC015_SRV_TM_002_BR_02
# Check that the IUT responds with an error when a request for an unknown URI is sent by a MEC Application
#AtsMec_TrafficManagementAPI_TestCases.TC_MEC_MEC015_SRV_TM_003_OK
#Check that the IUT updates the requested bandwidth requirements when commanded by a MEC Application
#AtsMec_TrafficManagementAPI_TestCases.TC_MEC_MEC015_SRV_TM_004_OK
# Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application - sessionFilter shall be omitted
#AtsMec_TrafficManagementAPI_TestCases.TC_MEC_MEC015_SRV_TM_004_BR_01
#Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application - sessionFilter shall be present
#AtsMec_TrafficManagementAPI_TestCases.TC_MEC_MEC015_SRV_TM_004_BR_01
# Check that the IUT responds with an error when a request for an unknown URI is sent by a MEC Application
#AtsMec_TrafficManagementAPI_TestCases.TC_MEC_MEC015_SRV_TM_004_BR_02
#Check that the IUT when provided with just the changes (deltas) updates the requested bandwidth requirements when commanded by a MEC Application
#TC_MEC_MEC015_SRV_TM_005_OK
#Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application - sessionFilter shall be omitted
#AtsMec_TrafficManagementAPI_TestCases.TC_MEC_MEC015_SRV_TM_005_BR_01
#Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application - sessionFilter shall be present
#AtsMec_TrafficManagementAPI_TestCases.TC_MEC_MEC015_SRV_TM_005_BR_02
#Check that the IUT when provided with just the changes (deltas) updates the requested bandwidth requirements when commanded by a MEC Application
#TC_MEC_MEC015_SRV_TM_005_NF
#Check that the IUT unregisters from the Bandwidth Management Service when commanded by a MEC Application
#AtsMec_TrafficManagementAPI_TestCases.TC_MEC_MEC015_SRV_TM_006_OK
#Check that the IUT responds with an error when a request for an unknown URI is sent by a MEC Application
#AtsMec_TrafficManagementAPI_TestCases.TC_MEC_MEC015_SRV_TM_006_NF

// Multi-access Traffic Steering information Test Cases
#Check that the IUT responds with the Multi-access Traffic Steering information when queried by a MEC Application
#AtsMec_MultiAccessSteeringInfoAPI_TestCases.TC_MEC_MEC015_SRV_MTS_001_OK
#Check that the IUT responds with the list of configured Multi-access Traffic Steering when queried by a MEC Application - none
#AtsMec_MultiAccessSteeringInfoAPI_TestCases.TC_MEC_MEC015_SRV_MTS_002_OK_01
#Check that the IUT responds with the list of configured Multi-access Traffic Steering when queried by a MEC Application - app_instance_id
#AtsMec_MultiAccessSteeringInfoAPI_TestCases.TC_MEC_MEC015_SRV_MTS_002_OK_02
#Check that the IUT responds with the list of configured Multi-access Traffic Steering when queried by a MEC Application - app_name
#AtsMec_MultiAccessSteeringInfoAPI_TestCases.TC_MEC_MEC015_SRV_MTS_002_OK_03
#Check that the IUT responds with the list of configured Multi-access Traffic Steering when queried by a MEC Application - sessionId
#AtsMec_MultiAccessSteeringInfoAPI_TestCases.TC_MEC_MEC015_SRV_MTS_002_OK_04
#Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application
#AtsMec_MultiAccessSteeringInfoAPI_TestCases.TC_MEC_MEC015_SRV_MTS_002_BR
#Check that the IUT responds with an error when a request with an unknown resource URI is sent by a MEC Application
#AtsMec_MultiAccessSteeringInfoAPI_TestCases.TC_MEC_MEC015_SRV_MTS_002_NF
#Check that the IUT creates a MTS session when queried by a MEC Application
#AtsMec_MultiAccessSteeringInfoAPI_TestCases.TC_MEC_MEC015_SRV_MTS_003_OK_01
#Check that the IUT creates a MTS session when queried by a MEC Application
#AtsMec_MultiAccessSteeringInfoAPI_TestCases.TC_MEC_MEC015_SRV_MTS_003_OK_02
#Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application
#AtsMec_MultiAccessSteeringInfoAPI_TestCases.TC_MEC_MEC015_SRV_MTS_003_BR
#Check that the IUT responds with a configured Multi-access Traffic Steering session when queried by a MEC Application
#AtsMec_MultiAccessSteeringInfoAPI_TestCases.TC_MEC_MEC015_SRV_MTS_004_OK
#Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application
#AtsMec_MultiAccessSteeringInfoAPI_TestCases.TC_MEC_MEC015_SRV_MTS_004_BR
#Check that the IUT responds with an error when a request with an unknown resource URI is sent by a MEC Application
#AtsMec_MultiAccessSteeringInfoAPI_TestCases.TC_MEC_MEC015_SRV_MTS_004_NF
#Check that the IUT updates the information about an individual MTS session when commanded by a MEC Application
#AtsMec_MultiAccessSteeringInfoAPI_TestCases.TC_MEC_MEC015_SRV_MTS_005_OK
#Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application
#AtsMec_MultiAccessSteeringInfoAPI_TestCases.TC_MEC_MEC015_SRV_MTS_005_BR
#Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application
#AtsMec_MultiAccessSteeringInfoAPI_TestCases.TC_MEC_MEC015_SRV_MTS_005_NF
#Check that the IUT deregisters a MTS session when commanded by a MEC Application
#AtsMec_MultiAccessSteeringInfoAPI_TestCases.TC_MEC_MEC015_SRV_MTS_006_OK
#Check that the IUT responds with an error when a request with an unknown resource URI is sent by a MEC Application
#AtsMec_MultiAccessSteeringInfoAPI_TestCases.TC_MEC_MEC015_SRV_MTS_006_NF

// BWM change event susbsciption Testcases
#Check that the IUT responds with a list of BWM change event susbsciption when queried by a MEC Application
#AtsMec_BandwidthChangeEventSubAPI_TestCases.TC_MEC_MEC015_SRV_BWMSUBLOOKUP_001_OK
#Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application
#AtsMec_BandwidthChangeEventSubAPI_TestCases.TC_MEC_MEC015_SRV_BWSUBLOOKUP_001_BR
#Check that the IUT responds with an error when no subscription are created
#AtsMec_BandwidthChangeEventSubAPI_TestCases.TC_MEC_MEC015_SRV_BWSUBLOOKUP_001_NF
#Check that the IUT responds with a list of subscriptions for notifications on services availability when queried by a MEC Application - Filter on subscription_type
#AtsMec_BandwidthChangeEventSubAPI_TestCases.TC_MEC_MEC015_SRV_BWSUBLOOKUP_002_OK
#Check that the IUT responds with with an error when no subscription matches with the filter - Filter on subscription_type
#AtsMec_BandwidthChangeEventSubAPI_TestCases.TP_MEC_MEC015_SRV_BWSUBLOOKUP_002_NF
#Check that the IUT responds with a individual BWM change event susbsciption when queried by a MEC Application
#AtsMec_BandwidthChangeEventSubAPI_TestCases.TC_MEC_MEC015_SRV_BWSUBLOOKUP_003_OK
#Check that the IUT responds with a individual BWM change event susbsciption when queried by a MEC Application
#AtsMec_BandwidthChangeEventSubAPI_TestCases.TC_MEC_MEC015_SRV_BWSUBLOOKUP_003_NF
#Check that the IUT acknowledges the creation of BWM change event subscription request when commanded by a MEC Application
#AtsMec_BandwidthChangeEventSubAPI_TestCases.TC_MEC_MEC015_SRV_BW_SUB_NOT_001_OK
#Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application - Invalid subscriptionType
#AtsMec_BandwidthChangeEventSubAPI_TestCases.TC_MEC_MEC015_SRV_BW_SUB_NOT_001_BR_01
#Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application - Neither callbackReference nor websockNotifConfig provided
#AtsMec_BandwidthChangeEventSubAPI_TestCases.TC_MEC_MEC015_SRV_BW_SUB_NOT_001_BR_02
#Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application - Both callbackReference and websockNotifConfig provided
#AtsMec_BandwidthChangeEventSubAPI_TestCases.TC_MEC_MEC015_SRV_BW_SUB_NOT_001_BR_03
#Check that the IUT acknowledges the update of BWM change event subscription request when commanded by a MEC Application
#AtsMec_BandwidthChangeEventSubAPI_TestCases.TC_MEC_MEC015_SRV_BW_SUB_NOT_002_OK
#Check that the IUT acknowledges an error when a request for an URI that cannot be mapped to a valid resource URI is sent by a MEC Application
#AtsMec_BandwidthChangeEventSubAPI_TestCases.TC_MEC_MEC015_SRV_BW_SUB_NOT_002_NF
#Check that the IUT acknowledges the cancellation of BWM change event subscription request when commanded by a MEC Applications
#AtsMec_BandwidthChangeEventSubAPI_TestCases.TC_MEC_MEC015_SRV_BW_SUB_NOT_003_OK
#Check that the IUT responds with an error when a request for an URI that cannot be mapped to a valid resource URI is sent by a MEC Application
#AtsMec_BandwidthChangeEventSubAPI_TestCases.TC_MEC_MEC015_SRV_BW_SUB_NOT_003_NF
#Check that the BWM service sends a notification about a bandwidth utility or the data volume if the BWM service has an associated subscription and the event is generated
#AtsMec_BandwidthChangeEventSubAPI_TestCases.TC_MEC_MEC015_SRV_BW_SUB_NOT_004_OK


[GROUPS]
# In this section you can specify groups of hosts. These groups can be used inside the
# [COMPONENTS] section to restrict the creation of certain PTCs to a given set of hosts.

[COMPONENTS]
# This section consists of rules restricting the location of created PTCs.

[MAIN_CONTROLLER]
# The options herein control the behavior of MC.
KillTimer := 10.0
LocalAddress := 127.0.0.1
TCPPort := 12000
NumHCs := 1
+30 −27
Changes for ttcn/AtsMec_ApplicationPackageLifecycleAndOperationGranting/AtsMec_ApplicationPackageLifecycleAndOperationGrantingAPI_TestCases.ttcn: 30 added lines, 27 removed lines.
Original line number Diff line number Diff line
/**
*    @Author   ETSI / STF569 / TTF012
*    @Author   ETSI / STF569 / TTF012 / TTF T043
*    @version  $URL:$
*              $ID:$
*    @desc     This module provides the MEC test cases.
@@ -7,7 +7,7 @@
*                 No part may be reproduced except as authorized by written permission.
*                 The copyright and the foregoing restriction extend to reproduction in all media.
*                 All rights reserved.
*    @see      ETSI GS MEC 003, Draft ETSI GS MEC 010-2 V2.2.1
*    @see      ETSI GS MEC 003, Draft ETSI GS MEC 010-2 V3.2.1
*/
module AtsMec_ApplicationPackageLifecycleAndOperationGrantingAPI_TestCases {

@@ -623,8 +623,7 @@ module AtsMec_ApplicationPackageLifecycleAndOperationGrantingAPI_TestCases {
                                                                                                                      m_create_package_management(
                                                                                                                                                  PX_APP_PKG_NAME,
                                                                                                                                                  PX_APP_PKG_VERSION,
                                                                                                                                                  m_checksum(-, PX_CHECKSUM),
                                                                                                                                                  PX_APP_PKG_PATH
                                                                                                                                                  m_checksum(-, PX_CHECKSUM)                                                    
                     ))))));
      f_selfOrClientSyncAndVerdict(c_prDone, e_success);

@@ -637,11 +636,11 @@ module AtsMec_ApplicationPackageLifecycleAndOperationGrantingAPI_TestCases {
                                                                           mw_http_message_body_json(
                                                                                                     mw_body_json_app_pkg_info(
                                                                                                                               mw_app_pkg_info(
                                                                                                                                               -, -,
                                                                                                                                               PX_APP_PKG_NAME,
                                                                                                                                               PX_APP_PKG_VERSION,
                                                                                                                                               -,
                                                                                                                                               mw_checksum
                                                                                                                                               mw_checksum,
                                                                                                                                               CREATED,
                                                                                                                                               PX_OPERATIONAL_STATE,
                                                                                                                                               PX_USAGE_STATE
                            )))))) -> value v_response {
          tc_ac.stop;

@@ -687,8 +686,7 @@ module AtsMec_ApplicationPackageLifecycleAndOperationGrantingAPI_TestCases {
                                                                                                                      m_create_package_management(
                                                                                                                                                  "",
                                                                                                                                                  PX_APP_PKG_VERSION,
                                                                                                                                                  m_checksum(-, PX_CHECKSUM),
                                                                                                                                                  PX_APP_PKG_PATH
                                                                                                                                                  m_checksum(-, PX_CHECKSUM)                                                                                                          
                     ))))));
      f_selfOrClientSyncAndVerdict(c_prDone, e_success);

@@ -755,11 +753,12 @@ module AtsMec_ApplicationPackageLifecycleAndOperationGrantingAPI_TestCases {
                                                                                                                          {
                                                                                                                            *,
                                                                                                                            mw_app_pkg_info(
                                                                                                                                            -, -,
                                                                                                                                            PX_APP_PKG_NAME,
                                                                                                                                            PX_APP_PKG_VERSION,
                                                                                                                                           -,
                                                                                                                                            mw_checksum
                                                                                                                                            mw_checksum,
                                                                                                                                            PX_ONBOARDED_STATE,
                                                                                                                                            PX_OPERATIONAL_STATE,
                                                                                                                                            PX_USAGE_STATE,
                                                                                                                                            -
                                                                                                                                          ),
                                                                                                                            *
                                                                                                                          }
@@ -821,12 +820,14 @@ module AtsMec_ApplicationPackageLifecycleAndOperationGrantingAPI_TestCases {
                                                                                           mw_body_json_app_pkg_info_list(
                                                                                                                          {
                                                                                                                            *,
                                                                                                                            mw_app_pkg_info(
                                                                                                                            mw_app_pkg_info_onboarded(
                                                                                                                                              -, -,
                                                                                                                                              PX_APP_PKG_NAME,
                                                                                                                                              PX_APP_PKG_VERSION,
                                                                                                                                              -, 
                                                                                                                                            mw_checksum
                                                                                                                                              mw_checksum,
                                                                                                                                              -,
                                                                                                                                              PX_ONBOARDED_STATE_ONBOARDED  
                                                                                                                                            ),
                                                                                                                            *
                                                                                                                          }
@@ -994,8 +995,8 @@ module AtsMec_ApplicationPackageLifecycleAndOperationGrantingAPI_TestCases {
                                             mw_http_response_ok(
                                                                 mw_http_message_body_json(
                                                                                           mw_body_json_app_pkg_info(
                                                                                                                     mw_app_pkg_info(
                                                                                                                                     PX_APP_PKG_ID
                                                                                                                     mw_app_pkg_info_onboarded(
                                                                                                                                     v_app_pkg_info.id
                            )))))) -> value v_response {
          tc_ac.stop;

@@ -2209,10 +2210,12 @@ module AtsMec_ApplicationPackageLifecycleAndOperationGrantingAPI_TestCases {
                                                                                                                          {
                                                                                                                            *,
                                                                                                                            mw_app_pkg_info(
                                                                                                                                            v_app_pkg_info.id,
                                                                                                                                            v_app_pkg_info.appDId
                                                                                                                                            )
                                                                                                                            , 
                                                                                                                                           -,
                                                                                                                                            mw_checksum,
                                                                                                                                            PX_ONBOARDED_STATE,
                                                                                                                                            PX_OPERATIONAL_STATE,
                                                                                                                                            PX_USAGE_STATE
                                                                                                                                          ),
                                                                                                                            *
                                                                                                                          }
                            ))))) {
@@ -2233,7 +2236,7 @@ module AtsMec_ApplicationPackageLifecycleAndOperationGrantingAPI_TestCases {
    } // End of testcase TC_MEC_MEC010p2_MEPM_PKGM_001_01_OK

    /**
     * @desc Check that MEPM returns the list of App Packages when requested - Note 3
     * @desc Check that MEPM returns the list of on-boarded App Packages when requested - Note 3
     */
    testcase TC_MEC_MEC010p2_MEPM_PKGM_001_02_OK() runs on HttpComponent system HttpTestAdapter {
      // Local variables
@@ -2271,11 +2274,11 @@ module AtsMec_ApplicationPackageLifecycleAndOperationGrantingAPI_TestCases {
                                                                                           mw_body_json_app_pkg_info_list(
                                                                                                                          {
                                                                                                                            *,
                                                                                                                            mw_app_pkg_info(
                                                                                                                            mw_app_pkg_info_onboarded(
                                                                                                                                            v_app_pkg_info.id,
                                                                                                                                            v_app_pkg_info.appDId,
                                                                                                                                            -, -, -, -, -,
                                                                                                                                            ONBOARDED
                                                                                                                                            PX_ONBOARDED_STATE_ONBOARDED
                                                                                                                                            )
                                                                                                                            , 
                                                                                                                            *
@@ -2440,11 +2443,11 @@ module AtsMec_ApplicationPackageLifecycleAndOperationGrantingAPI_TestCases {
                                             mw_http_response_ok(
                                                                 mw_http_message_body_json(
                                                                                           mw_body_json_app_pkg_info(
                                                                                                                     mw_app_pkg_info(
                                                                                                                     mw_app_pkg_info_onboarded(
                                                                                                                                     v_app_pkg_info.id,
                                                                                                                                     v_app_pkg_info.appDId,
                                                                                                                                     -, -, -, -, -,
                                                                                                                                     ONBOARDED
                                                                                                                                     PX_ONBOARDED_STATE_ONBOARDED
                            )))))) {
          tc_ac.stop;

+17 −17
Changes for ttcn/AtsMec_DeviceApplicationInterface/AtsMec_DeviceApplicationInterfaceAPI_TestCases.ttcn: 17 added lines, 17 removed lines.
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@
 *                 No part may be reproduced except as authorized by written permission.
 *                 The copyright and the foregoing restriction extend to reproduction in all media.
 *                 All rights reserved.
 *    @see      ETSI GS MEC 002, Draft ETSI GS MEC 016 V2.2.1 (2020-04)
 *    @see      ETSI GS MEC 002, Draft ETSI GS MEC 016 V3.1.1 (2024-03)
 */
module AtsMec_DeviceApplicationInterfaceAPI_TestCases {

@@ -44,7 +44,7 @@ module AtsMec_DeviceApplicationInterfaceAPI_TestCases {
    /**
     * @desc Check that the IUT responds with the list of user applications when requested by an UE Application
     * @see https://forge.etsi.org/rep/mec/gs016-dev-app-api/blob/master/UEAppInterfaceApi.json
     * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v2.2.1-dev/Test%20Purposes/MEC016/MEO/UEAPPS/SysUeApplications.tplan2
     * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v3.1.1-dev/Test%20Purposes/MEC016/MEO/UEAPPS/SysUeApplications.tplan2
     */
    testcase TC_MEC_MEC016_MEO_UEAPPS_001_OK() runs on HttpComponent system HttpTestAdapter {
        // Local variables
@@ -102,7 +102,7 @@ module AtsMec_DeviceApplicationInterfaceAPI_TestCases {
    /**
     * @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/rep/mec/gs016-dev-app-api/blob/master/UEAppInterfaceApi.json
     * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v2.2.1-dev/Test%20Purposes/MEC016/MEO/UEAPPS/SysUeApplications.tplan2
     * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v3.1.1-dev/Test%20Purposes/MEC016/MEO/UEAPPS/SysUeApplications.tplan2
     */
    testcase TC_MEC_MEC016_MEO_UEAPPS_001_NF() runs on HttpComponent system HttpTestAdapter {
        // Local variables
@@ -157,7 +157,7 @@ module AtsMec_DeviceApplicationInterfaceAPI_TestCases {
    /**
     * @desc Check that the IUT responds with the list of user applications when requested by an UE Application
     * @see https://forge.etsi.org/rep/mec/gs016-dev-app-api/blob/master/UEAppInterfaceApi.json
     * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v2.2.1-dev/Test%20Purposes/MEC016/MEO/UEAPPS/SysUeApplications.tplan2
     * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v3.1.1-dev/Test%20Purposes/MEC016/MEO/UEAPPS/SysUeApplications.tplan2
     */
    testcase TC_MEC_MEC016_MEO_UEAPPS_002_OK() runs on HttpComponent system HttpTestAdapter {
        // Local variables
@@ -215,7 +215,7 @@ module AtsMec_DeviceApplicationInterfaceAPI_TestCases {
    /**
     * @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/rep/mec/gs016-dev-app-api/blob/master/UEAppInterfaceApi.json
     * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v2.2.1-dev/Test%20Purposes/MEC016/MEO/UEAPPS/SysUeApplications.tplan2
     * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v3.1.1-dev/Test%20Purposes/MEC016/MEO/UEAPPS/SysUeApplications.tplan2
     */
    testcase TC_MEC_MEC016_MEO_UEAPPS_002_BR() runs on HttpComponent system HttpTestAdapter {
        // Local variables
@@ -270,7 +270,7 @@ module AtsMec_DeviceApplicationInterfaceAPI_TestCases {
    /**
     * @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/rep/mec/gs016-dev-app-api/blob/master/UEAppInterfaceApi.json
     * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v2.2.1-dev/Test%20Purposes/MEC016/MEO/UEAPPS/SysUeApplications.tplan2
     * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v3.1.1-dev/Test%20Purposes/MEC016/MEO/UEAPPS/SysUeApplications.tplan2
     */
    testcase TC_MEC_MEC016_MEO_UEAPPS_002_NF() runs on HttpComponent system HttpTestAdapter {
        // Local variables
@@ -325,7 +325,7 @@ module AtsMec_DeviceApplicationInterfaceAPI_TestCases {
    /**
     * @desc Check that the IUT acknowledges the creation of the application context when requested by an UE Application
     * @see https://forge.etsi.org/rep/mec/gs016-dev-app-api/blob/master/UEAppInterfaceApi.json
     * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v2.2.1-dev/Test%20Purposes/MEC016/MEO/UEAPPS/SysUeAppsContext.tplan2
     * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v3.1.1-dev/Test%20Purposes/MEC016/MEO/UEAPPS/SysUeAppsContext.tplan2
     */
    testcase TC_MEC_MEC016_MEO_UEAPPCTX_001_OK() runs on HttpComponent system HttpTestAdapter {
        // Local variables
@@ -404,7 +404,7 @@ module AtsMec_DeviceApplicationInterfaceAPI_TestCases {
    /**
     * @desc Check that the IUT responds with an error when a request with incorrect URL is sent by a MEC Application
     * @see https://forge.etsi.org/rep/mec/gs016-dev-app-api/blob/master/UEAppInterfaceApi.json
     * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v2.2.1-dev/Test%20Purposes/MEC016/MEO/UEAPPS/SysUeAppsContext.tplan2
     * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v3.1.1-dev/Test%20Purposes/MEC016/MEO/UEAPPS/SysUeAppsContext.tplan2
     */
    testcase TC_MEC_MEC016_MEO_UEAPPCTX_001_BR() runs on HttpComponent system HttpTestAdapter {
        // Local variables
@@ -473,7 +473,7 @@ module AtsMec_DeviceApplicationInterfaceAPI_TestCases {
    /**
     * @desc Check that the IUT responds with an error when a request with incorrect URL is sent by a MEC Application
     * @see https://forge.etsi.org/rep/mec/gs016-dev-app-api/blob/master/UEAppInterfaceApi.json
     * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v2.2.1-dev/Test%20Purposes/MEC016/MEO/UEAPPS/SysUeAppsContext.tplan2
     * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v3.1.1-dev/Test%20Purposes/MEC016/MEO/UEAPPS/SysUeAppsContext.tplan2
     */
    testcase TC_MEC_MEC016_MEO_UEAPPCTX_001_NF() runs on HttpComponent system HttpTestAdapter {
        // Local variables
@@ -542,7 +542,7 @@ module AtsMec_DeviceApplicationInterfaceAPI_TestCases {
    /**
     * @desc Check that the IUT acknowledges the creation of the application context when requested by an UE Application
     * @see https://forge.etsi.org/rep/mec/gs016-dev-app-api/blob/master/UEAppInterfaceApi.json
     * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v2.2.1-dev/Test%20Purposes/MEC016/MEO/UEAPPS/SysUeAppsContext.tplan2
     * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v3.1.1-dev/Test%20Purposes/MEC016/MEO/UEAPPS/SysUeAppsContext.tplan2
     */
    testcase TC_MEC_MEC016_MEO_UEAPPCTX_002_OK() runs on HttpComponent system HttpTestAdapter {
        // Local variables
@@ -616,7 +616,7 @@ module AtsMec_DeviceApplicationInterfaceAPI_TestCases {
    /**
     * @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/gs016-dev-app-api/blob/master/UEAppInterfaceApi.json
     * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v2.2.1-dev/Test%20Purposes/MEC016/MEO/UEAPPS/SysUeAppsContext.tplan2
     * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v3.1.1-dev/Test%20Purposes/MEC016/MEO/UEAPPS/SysUeAppsContext.tplan2
     */
    testcase TC_MEC_MEC016_MEO_UEAPPCTX_002_BR() runs on HttpComponent system HttpTestAdapter {
        // Local variables
@@ -688,7 +688,7 @@ module AtsMec_DeviceApplicationInterfaceAPI_TestCases {
    /**
     * @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/rep/mec/gs016-dev-app-api/blob/master/UEAppInterfaceApi.json
     * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v2.2.1-dev/Test%20Purposes/MEC016/MEO/UEAPPS/SysUeAppsContext.tplan2
     * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v3.1.1-dev/Test%20Purposes/MEC016/MEO/UEAPPS/SysUeAppsContext.tplan2
     */
    testcase TC_MEC_MEC016_MEO_UEAPPCTX_002_NF() runs on HttpComponent system HttpTestAdapter {
        // Local variables
@@ -757,7 +757,7 @@ module AtsMec_DeviceApplicationInterfaceAPI_TestCases {
    /**
     * @desc Check that the IUT deletes the application context when commanded by an UE Application
     * @see https://forge.etsi.org/rep/mec/gs016-dev-app-api/blob/master/UEAppInterfaceApi.json
     * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v2.2.1-dev/Test%20Purposes/MEC016/MEO/UEAPPS/SysUeAppsContext.tplan2
     * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v3.1.1-dev/Test%20Purposes/MEC016/MEO/UEAPPS/SysUeAppsContext.tplan2
     */
    testcase TC_MEC_MEC016_MEO_UEAPPCTX_003_OK() runs on HttpComponent system HttpTestAdapter {
        // Local variables
@@ -814,7 +814,7 @@ module AtsMec_DeviceApplicationInterfaceAPI_TestCases {
    /**
     * @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/rep/mec/gs016-dev-app-api/blob/master/UEAppInterfaceApi.json
     * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v2.2.1-dev/Test%20Purposes/MEC016/MEO/UEAPPS/SysUeAppsContext.tplan2
     * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v3.1.1-dev/Test%20Purposes/MEC016/MEO/UEAPPS/SysUeAppsContext.tplan2
     */
    testcase TC_MEC_MEC016_MEO_UEAPPCTX_003_NF() runs on HttpComponent system HttpTestAdapter {
        // Local variables
@@ -869,7 +869,7 @@ module AtsMec_DeviceApplicationInterfaceAPI_TestCases {
    /**
     * @desc Check that the IUT sends the locations available for instantiation of a specific user application when requested by an UE Application
     * @see https://forge.etsi.org/rep/mec/gs016-dev-app-api/blob/master/UEAppInterfaceApi.json
     * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v2.2.1-dev/Test%20Purposes/MEC016/MEO/UEAPPS/SysUeApplicationsLocation.tplan2
     * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v3.1.1-dev/Test%20Purposes/MEC016/MEO/UEAPPS/SysUeApplicationsLocation.tplan2
     */
    testcase TC_MEC_MEC016_MEO_UEAPPLOC_001_OK() runs on HttpComponent system HttpTestAdapter {
        // Local variables
@@ -942,7 +942,7 @@ module AtsMec_DeviceApplicationInterfaceAPI_TestCases {
    /**
     * @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/gs016-dev-app-api/blob/master/UEAppInterfaceApi.json
     * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v2.2.1-dev/Test%20Purposes/MEC016/MEO/UEAPPS/SysUeApplicationsLocation.tplan2
     * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v3.1.1-dev/Test%20Purposes/MEC016/MEO/UEAPPS/SysUeApplicationsLocation.tplan2
     */
    testcase TC_MEC_MEC016_MEO_UEAPPLOC_001_BR() runs on HttpComponent system HttpTestAdapter {
        // Local variables
@@ -1010,7 +1010,7 @@ module AtsMec_DeviceApplicationInterfaceAPI_TestCases {
    /**
     * @desc Check that the IUT responds with an error when a request with incorrect URL is sent by a MEC Application
     * @see https://forge.etsi.org/rep/mec/gs016-dev-app-api/blob/master/UEAppInterfaceApi.json
     * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v2.2.1-dev/Test%20Purposes/MEC016/MEO/UEAPPS/SysUeApplicationsLocation.tplan2
     * @see https://forge.etsi.org/rep/mec/gs032p2-test-purposes/blob/v3.1.1-dev/Test%20Purposes/MEC016/MEO/UEAPPS/SysUeApplicationsLocation.tplan2
     */
    testcase TC_MEC_MEC016_MEO_UEAPPLOC_001_NF() runs on HttpComponent system HttpTestAdapter {
        // Local variables
+1036 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading
Loading