Commit cd079573 authored by YannGarcia's avatar YannGarcia
Browse files

Add AtsMec_Rnis

parent 4c9fc6bf
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
AtsMec_Sandbox.cf_
 No newline at end of file
+154 −0
Original line number Original line 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 := "sandbox-mec.etsi.org" #"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_Pics.PICS_ROOT_API                := "/sbx8tunqyy/mep1" # Need to sign in on https://sandbox-mec.etsi.org/, section 'Try-it from your MEC application'

# LibMec_Pixits
LibMec_Pixits.PX_RNIS_SUBSCRITIONS_URI    := "/rni/v2/subscriptions"
LibMec_Pixits.PX_RNIS_QUERIES_URI         := "/rni/v2/queries"

LibMec_Pics.PICS_MEC_PLAT := true

LibMec_Pixits.PX_RNIS_SUBSCRITIONS_URI    := "/rni/v1/subscriptions"
LibMec_Pixits.PX_RNIS_QUERIES_URI         := "/rni/v1/queries"

RnisAPI_Pixits.PX_SUBSCRIPTION_HREF_VALUE := "cell_change"
RnisAPI_Pixits.PX_ASSOCIATE_ID_VALUE      := "192.0.0.2"
RnisAPI_Pixits.PX_CELL_ID                 := "0x0800000A"
RnisAPI_Pixits.PX_C_ID                    := "0xFFFFFFFF"
RnisAPI_Pixits.PX_APP_INS_ID              := "01"
RnisAPI_Pixits.PX_APP_ID                  := "19"
RnisAPI_Pixits.PX_E_RAB_ID                := 0
RnisAPI_Pixits.PX_QCI                     := 0


[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_Rnis/%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=sandbox-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=443,use_ssl=1,mutual_auth=1)"

[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

#AtsMec_RnisAPI_TestCases.tc_HelloW
# Check that the RNIS service sends an RNIS notification about cell change if the RNIS service has an associated subscription and the event is generated
AtsMec_RnisAPI_TestCases.TC_MEC_MEC012_SRV_RNIS_001_OK
# Check that the RNIS service sends an RNIS notification about RAB establishment if the RNIS service has an associated subscription and the event is generated
#AtsMec_RnisAPI_TestCases.TC_MEC_MEC012_SRV_RNIS_002_OK
# Check that the RNIS service sends an RNIS notification about RAB modification if the RNIS service has an associated subscription and the event is generated
#AtsMec_RnisAPI_TestCases.TC_MEC_MEC012_SRV_RNIS_003_OK
#AtsMec_RnisAPI_TestCases.TC_MEC_MEC012_SRV_RNIS_004_OK
#AtsMec_RnisAPI_TestCases.TC_MEC_MEC012_SRV_RNIS_005_OK
#AtsMec_RnisAPI_TestCases.TC_MEC_MEC012_SRV_RNIS_006_OK
#AtsMec_RnisAPI_TestCases.TC_MEC_MEC012_SRV_RNIS_007_OK
#AtsMec_RnisAPI_TestCases.TC_MEC_MEC012_SRV_RNIS_008_OK
#AtsMec_RnisAPI_TestCases.TC_MEC_MEC012_SRV_RNIS_009_OK
# Check that the RNIS service sends the list of links to the relevant RNIS subscriptions when requested
#AtsMec_RnisAPI_TestCases.TC_MEC_MEC012_SRV_RNIS_011_OK
# Check that the RNIS service creates a new RNIS subscription
#AtsMec_RnisAPI_TestCases.TC_MEC_MEC012_SRV_RNIS_012_OK
# Check that the RNIS service responds with an error when it receives a request to get all RNIS subscriptions with a wrong subscription type
#AtsMec_RnisAPI_TestCases.TC_MEC_MEC012_SRV_RNIS_011_BR
# Check that the RNIS service responds with an error when it receives a request to create a new RNIS subscription with a wrong format
#AtsMec_RnisAPI_TestCases.TC_MEC_MEC012_SRV_RNIS_012_BR
# Check that the RNIS service sends a RNIS subscription when requested
#AtsMec_RnisAPI_TestCases.TC_MEC_MEC012_SRV_RNIS_013_OK
# Check that the RNIS service responds with error when a not existing RNIS subscription is requested
#AtsMec_RnisAPI_TestCases.TC_MEC_MEC012_SRV_RNIS_013_NF
# Check that the RNIS service modifies a RNIS subscription when requested
#AtsMec_RnisAPI_TestCases.TC_MEC_MEC012_SRV_RNIS_014_OK
# Check that the RNIS service sends an error when it receives a malformed modify request for a RNIS subscription
#AtsMec_RnisAPI_TestCases.TC_MEC_MEC012_SRV_RNIS_014_BR
# Check that the RNIS service responds with error when a modification for a not existing RNIS subscription is requested
#AtsMec_RnisAPI_TestCases.TC_MEC_MEC012_SRV_RNIS_014_NF
# Check that the RNIS service deletes a RNIS subscription when requested
#AtsMec_RnisAPI_TestCases.TC_MEC_MEC012_SRV_RNIS_015_OK
# Check that the RNIS service responds with error when the deletion of a not existing RNIS subscription is requested
#AtsMec_RnisAPI_TestCases.TC_MEC_MEC012_SRV_RNIS_015_NF
# Check that the RNIS service returns the RAB information when requested
#AtsMec_RnisAPI_TestCases.TC_MEC_MEC012_SRV_RNIS_016_OK
# Check that the RNIS service returns the PLMN information when requested
#AtsMec_RnisAPI_TestCases.TC_MEC_MEC012_SRV_RNIS_017_OK
# Check that the RNIS service returns the S1 bearer information
#AtsMec_RnisAPI_TestCases.TC_MEC_MEC012_SRV_RNIS_018_OK
# Check that the RNIS service returns the L2 measurements information
#AtsMec_RnisAPI_TestCases.TC_MEC_MEC012_SRV_RNIS_019_OK
# Check that the RNIS service returns an error when the RAB information is requested with a malformatted message
#AtsMec_RnisAPI_TestCases.TC_MEC_MEC012_SRV_RNIS_016_BR
# Check that the RNIS service returns an error when the RAB information is requested with a malformatted message
#AtsMec_RnisAPI_TestCases.TC_MEC_MEC012_SRV_RNIS_016_NF
# Check that the RNIS service returns an error when the PLMN information is requested with a malformatted message
#AtsMec_RnisAPI_TestCases.TC_MEC_MEC012_SRV_RNIS_017_BR
# Check that the RNIS service returns an error when the PLMN information for a not existing element is requested
#AtsMec_RnisAPI_TestCases.TC_MEC_MEC012_SRV_RNIS_017_NF
# Check that the RNIS service returns an error when the S1 bearer information is requested with a malformatted message
#AtsMec_RnisAPI_TestCases.TC_MEC_MEC012_SRV_RNIS_018_BR
# Check that the RNIS service returns an error when the S1 bearer information for a not existing element is requested
#AtsMec_RnisAPI_TestCases.TC_MEC_MEC012_SRV_RNIS_018_NF
# Check that the RNIS service returns an error when the L2 measurements information is requested with a malformatted message
#AtsMec_RnisAPI_TestCases.TC_MEC_MEC012_SRV_RNIS_019_BR
# Check that the RNIS service returns an error when the L2 measurements information for a not existing element is requested
#AtsMec_RnisAPI_TestCases.TC_MEC_MEC012_SRV_RNIS_019_NF

[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
+2324 −0

File added.

Preview size limit exceeded, changes collapsed.

+44 −0
Original line number Original line Diff line number Diff line
module AtsMec_RnisAPI_TestControl {
  
  // LibMec/RnisAPI
  import from RnisAPI_Pics all;
  
  // LibMec
  import from LibMec_Pics all;
  
  // AtsMec
  import from AtsMec_RnisAPI_TestCases all;
  
  control {
    
    if (PICS_RNIS) {
      if (PICS_RNIS_NOTIFICATIONS) {
        execute(TC_MEC_MEC012_SRV_RNIS_001_OK());
        execute(TC_MEC_MEC012_SRV_RNIS_002_OK());
        execute(TC_MEC_MEC012_SRV_RNIS_003_OK());
        execute(TC_MEC_MEC012_SRV_RNIS_004_OK());
      }
      if (PICS_RNIS_ALL_SUBSCRIPTIONS) {
        execute(TC_MEC_MEC012_SRV_RNIS_011_OK());
        execute(TC_MEC_MEC012_SRV_RNIS_012_OK());
        execute(TC_MEC_MEC012_SRV_RNIS_011_BR());
        execute(TC_MEC_MEC012_SRV_RNIS_012_BR());
      }
      if (PICS_RNIS_QUERY) {
        execute(TC_MEC_MEC012_SRV_RNIS_016_OK());
        execute(TC_MEC_MEC012_SRV_RNIS_016_BR());
        execute(TC_MEC_MEC012_SRV_RNIS_016_NF());
        execute(TC_MEC_MEC012_SRV_RNIS_017_OK());
        execute(TC_MEC_MEC012_SRV_RNIS_017_BR());
        execute(TC_MEC_MEC012_SRV_RNIS_017_NF());
        execute(TC_MEC_MEC012_SRV_RNIS_018_OK());
        execute(TC_MEC_MEC012_SRV_RNIS_018_BR());
        execute(TC_MEC_MEC012_SRV_RNIS_018_NF());
        execute(TC_MEC_MEC012_SRV_RNIS_019_OK());
        execute(TC_MEC_MEC012_SRV_RNIS_019_BR());
        execute(TC_MEC_MEC012_SRV_RNIS_019_NF());
      }
    }
  } // End of 'control' statement

} // End of module AtsMec_TestControl 
+36 −0
Original line number Original line Diff line number Diff line
suite := AtsMec_Rnis

sources := \
    AtsMec_RnisAPI_TestCases.ttcn \
    AtsMec_RnisAPI_TestControl.ttcn 


modules :=  ../LibCommon \
            ../../titan-test-system-framework/ttcn/LibHelpers \
            ../../titan-test-system-framework/ttcn/LibHttp  \
            ../patch_lib_http \
            ../LibMec \
            ../LibMec/EdgePlatformApplicationEnablementAPI \
            ../LibMec/ApplicationPackageLifecycleAndOperationGrantingAPI \
            ../LibMec/TrafficManagementAPI \
            ../LibMec/LocationAPI \
            ../LibMec/RnisAPI \
            ../LibMec/UEAppInterfaceAPI \
            ../LibMec/UEidentityAPI \
            ../LibMec/V2XInformationServiceAPI \
            ../LibMec/DeviceApplicationInterfaceAPI \
            ../LibMec/WlanInformationAPI \
            ../LibMec/ApplicationMobilityServiceAPI \
            ../LibMec/FixedAccessInformationAPI \
            ../../titan-test-system-framework/ccsrc/Framework \
            ../../titan-test-system-framework/ccsrc/loggers \
            ../../titan-test-system-framework/ccsrc/Protocols/Http \
            ../../titan-test-system-framework/ccsrc/Protocols/Tcp \
            ../../titan-test-system-framework/ccsrc/Helpers \
            ../../ccsrc/Ports/LibHttp \
            ../../ccsrc/EncDec/LibMec \
            ../../ccsrc/externals \
            ../../ccsrc/Protocols/Http \
            ../../ccsrc/Protocols/Json \
            ../modules/titan.TestPorts.Common_Components.Abstract_Socket \