Commit 2d363398 authored by Yann Garcia's avatar Yann Garcia
Browse files

Initiating implementation of MEC 046 TPs

parent e39b8de8
Loading
Loading
Loading
Loading
+35 −47
Original line number Diff line number Diff line
@@ -16,18 +16,6 @@ LibHttp_Pics.PICS_USE_TOKEN_HEADER := true

LibMec_Pics.PICS_ROOT_API             := "/sbxykqjr17/mep1/" # Need to sign in on https://mec-platform.etsi.org/, section 'Try-it from your MEC application'

LibMec_Pics.PICS_MEC_PLAT := true

# 5g-small-cell-1
V2XInformationServiceAPI_Pixits.PX_V2X_ECGI      := "268804901557"
V2XInformationServiceAPI_Pixits.PX_V2X_CELL_ID   := "101010101"
V2XInformationServiceAPI_Pixits.PX_V2X_ECGI_LAT  := 43.730846
V2XInformationServiceAPI_Pixits.PX_V2X_ECGI_LONG := 7.415385

# Callbacks
V2XInformationServiceAPI_Pixits.PX_PROV_UU_UNI_SUB_CALLBACK := "https://yanngarcia.ddns.net:36001/vis/v2/"
V2XInformationServiceAPI_Pixits.PX_PROV_V2X_SUB_CALLBACK := "https://yanngarcia.ddns.net:36001/vis/v2/"

[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).
@@ -73,65 +61,65 @@ system.httpPort_notif.params := "HTTP(codecs=json:json_codec_mec030)/TCP(debug=1
#AtsMec_QoSMeasurementAPI_TestControl.control

# Check that the IUT responds with the list of QoS measurement subscriptions when queried by a MEC Application
AtsMec_QoSMeasurementAPI_TestControl.testcase.TC_MEC_MEC045_SRV_QOSLOOKUP_001_OK
AtsMec_QoSMeasurementAPI_TestCases.TC_MEC_MEC045_SRV_QOSLOOKUP_001_OK
# Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application
#AtsMec_QoSMeasurementAPI_TestControl.testcase.TC_MEC_MEC045_SRV_QOSLOOKUP_001_BR
#AtsMec_QoSMeasurementAPI_TestCases.TC_MEC_MEC045_SRV_QOSLOOKUP_001_BR
# Check that the IUT responds with an error when no subscription are created
#AtsMec_QoSMeasurementAPI_TestControl.testcase.TC_MEC_MEC045_SRV_QOSLOOKUP_001_NF
#AtsMec_QoSMeasurementAPI_TestCases.TC_MEC_MEC045_SRV_QOSLOOKUP_001_NF
# Check that the IUT responds with the list of QoS measurement subscriptions when queried by a MEC Application - Filter on subscriptionId
#AtsMec_QoSMeasurementAPI_TestControl.testcase.TC_MEC_MEC045_SRV_QOSLOOKUP_002_OK_01
#AtsMec_QoSMeasurementAPI_TestCases.TC_MEC_MEC045_SRV_QOSLOOKUP_002_OK_01
# Check that the IUT responds with the list of QoS measurement subscriptions when queried by a MEC Application - Filter on subscriptionType
#AtsMec_QoSMeasurementAPI_TestControl.testcase.TC_MEC_MEC045_SRV_QOSLOOKUP_002_OK_02
#AtsMec_QoSMeasurementAPI_TestCases.TC_MEC_MEC045_SRV_QOSLOOKUP_002_OK_02
# Check that the IUT responds with with an error when no subscription matches with the filter - Filter on subscriptionType
#AtsMec_QoSMeasurementAPI_TestControl.testcase.TC_MEC_MEC045_SRV_QOSLOOKUP_002_NF_01
#AtsMec_QoSMeasurementAPI_TestCases.TC_MEC_MEC045_SRV_QOSLOOKUP_002_NF_01
# Check that the IUT responds with with an error when no subscription matches with the filter - Filter on subscriptionId
#AtsMec_QoSMeasurementAPI_TestControl.testcase.TC_MEC_MEC045_SRV_QOSLOOKUP_002_NF_02
#AtsMec_QoSMeasurementAPI_TestCases.TC_MEC_MEC045_SRV_QOSLOOKUP_002_NF_02
# Check that the IUT responds with a QoS measurement subscription when queried by a MEC Application
#AtsMec_QoSMeasurementAPI_TestControl.testcase.TC_MEC_MEC045_SRV_QOSLOOKUP_003_OK
#AtsMec_QoSMeasurementAPI_TestCases.TC_MEC_MEC045_SRV_QOSLOOKUP_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_QoSMeasurementAPI_TestControl.testcase.TC_MEC_MEC045_SRV_QOSLOOKUP_003_NF
#AtsMec_QoSMeasurementAPI_TestCases.TC_MEC_MEC045_SRV_QOSLOOKUP_003_NF
# Check that the IUT responds with a QoS measurement subscription when queried by a MEC Application
#AtsMec_QoSMeasurementAPI_TestControl.testcase.TC_MEC_MEC045_SRV_QOS_MEAS_SUB_NOT_001_OK_01
#AtsMec_QoSMeasurementAPI_TestCases.TC_MEC_MEC045_SRV_QOS_MEAS_SUB_NOT_001_OK_01
# Check that the IUT acknowledges the creation of QoS measurement subscription request when commanded by a MEC Application - with reportingInterval
#AtsMec_QoSMeasurementAPI_TestControl.testcase.TC_MEC_MEC045_SRV_QOS_MEAS_SUB_NOT_001_OK_02
#AtsMec_QoSMeasurementAPI_TestCases.TC_MEC_MEC045_SRV_QOS_MEAS_SUB_NOT_001_OK_02
# Check that the IUT acknowledges the creation of QoS measurement subscription request when commanded by a MEC Application - with numberOfReports
#AtsMec_QoSMeasurementAPI_TestControl.testcase.TC_MEC_MEC045_SRV_QOS_MEAS_SUB_NOT_001_OK_03
#AtsMec_QoSMeasurementAPI_TestCases.TC_MEC_MEC045_SRV_QOS_MEAS_SUB_NOT_001_OK_03
# Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application - Invalid subscriptionType
#AtsMec_QoSMeasurementAPI_TestControl.testcase.TC_MEC_MEC045_SRV_QOS_MEAS_SUB_NOT_001_BR_01
#AtsMec_QoSMeasurementAPI_TestCases.TC_MEC_MEC045_SRV_QOS_MEAS_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_QoSMeasurementAPI_TestControl.testcase.TC_MEC_MEC045_SRV_QOS_MEAS_SUB_NOT_001_BR_02
#AtsMec_QoSMeasurementAPI_TestCases.TC_MEC_MEC045_SRV_QOS_MEAS_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_QoSMeasurementAPI_TestControl.testcase.TC_MEC_MEC045_SRV_QOS_MEAS_SUB_NOT_001_BR_03
#AtsMec_QoSMeasurementAPI_TestCases.TC_MEC_MEC045_SRV_QOS_MEAS_SUB_NOT_001_BR_03
# Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application - users not present (Note 2)
#AtsMec_QoSMeasurementAPI_TestControl.testcase.TC_MEC_MEC045_SRV_QOS_MEAS_SUB_NOT_001_BR_04
#AtsMec_QoSMeasurementAPI_TestCases.TC_MEC_MEC045_SRV_QOS_MEAS_SUB_NOT_001_BR_04
# Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application - flowInfo not present (Note 2)
#AtsMec_QoSMeasurementAPI_TestControl.testcase.TC_MEC_MEC045_SRV_QOS_MEAS_SUB_NOT_001_BR_05
#AtsMec_QoSMeasurementAPI_TestCases.TC_MEC_MEC045_SRV_QOS_MEAS_SUB_NOT_001_BR_05
# Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application - Invalid flowFilter
#AtsMec_QoSMeasurementAPI_TestControl.testcase.TC_MEC_MEC045_SRV_QOS_MEAS_SUB_NOT_001_BR_06
#AtsMec_QoSMeasurementAPI_TestCases.TC_MEC_MEC045_SRV_QOS_MEAS_SUB_NOT_001_BR_06
# Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application - Invalid condition on reportingInterval/measuringPeriod
#AtsMec_QoSMeasurementAPI_TestControl.testcase.TC_MEC_MEC045_SRV_QOS_MEAS_SUB_NOT_001_BR_07
#AtsMec_QoSMeasurementAPI_TestCases.TC_MEC_MEC045_SRV_QOS_MEAS_SUB_NOT_001_BR_07
# Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application - Invalid condition on measuringArea
#AtsMec_QoSMeasurementAPI_TestControl.testcase.TC_MEC_MEC045_SRV_QOS_MEAS_SUB_NOT_001_BR_08
#AtsMec_QoSMeasurementAPI_TestCases.TC_MEC_MEC045_SRV_QOS_MEAS_SUB_NOT_001_BR_08
# Check that the IUT acknowledges the changes of an existing QoS measurement subscription request when commanded by a MEC Application
#AtsMec_QoSMeasurementAPI_TestControl.testcase.TC_MEC_MEC045_SRV_QOS_MEAS_SUB_NOT_002_OK
#AtsMec_QoSMeasurementAPI_TestCases.TC_MEC_MEC045_SRV_QOS_MEAS_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_QoSMeasurementAPI_TestControl.testcase.TC_MEC_MEC045_SRV_QOS_MEAS_SUB_NOT_002_NF
#AtsMec_QoSMeasurementAPI_TestCases.TC_MEC_MEC045_SRV_QOS_MEAS_SUB_NOT_002_NF
# Check that the IUT acknowledges the cancellation of QoS measurement subscription when commanded by a MEC Application
#AtsMec_QoSMeasurementAPI_TestControl.testcase.TC_MEC_MEC045_SRV_QOS_MEAS_SUB_NOT_003_OK
#AtsMec_QoSMeasurementAPI_TestCases.TC_MEC_MEC045_SRV_QOS_MEAS_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_QoSMeasurementAPI_TestControl.testcase.TC_MEC_MEC045_SRV_QOS_MEAS_SUB_NOT_003_NF
#AtsMec_QoSMeasurementAPI_TestCases.TC_MEC_MEC045_SRV_QOS_MEAS_SUB_NOT_003_NF
# Check that the IUT provides a test notification when requested by a MEC Application
#AtsMec_QoSMeasurementAPI_TestControl.testcase.TC_MEC_MEC045_SRV_QOS_MEAS_SUB_NOT_004_OK_01
#AtsMec_QoSMeasurementAPI_TestCases.TC_MEC_MEC045_SRV_QOS_MEAS_SUB_NOT_004_OK_01
# Check that the IUT provides a test notification when requested by a MEC Application
#AtsMec_QoSMeasurementAPI_TestControl.testcase.TC_MEC_MEC045_SRV_QOS_MEAS_SUB_NOT_004_OK_02
#AtsMec_QoSMeasurementAPI_TestCases.TC_MEC_MEC045_SRV_QOS_MEAS_SUB_NOT_004_OK_02
# Check that the IUT terminates notifications when the expiry timer expires
#AtsMec_QoSMeasurementAPI_TestControl.testcase.TC_MEC_MEC045_SRV_QOS_MEAS_SUB_NOT_005_OK
#AtsMec_QoSMeasurementAPI_TestCases.TC_MEC_MEC045_SRV_QOS_MEAS_SUB_NOT_005_OK
# Check that the IUT acknowledges the creation of QoS event subscription request when commanded by a MEC Application
#AtsMec_QoSMeasurementAPI_TestControl.testcase.TC_MEC_MEC045_SRV_QOS_EVENT_SUB_NOT_001_OK_01
#AtsMec_QoSMeasurementAPI_TestCases.TC_MEC_MEC045_SRV_QOS_EVENT_SUB_NOT_001_OK_01
# Check that the IUT acknowledges the creation of QoS event subscription request when commanded by a MEC Application - With thresholds
#AtsMec_QoSMeasurementAPI_TestControl.testcase.TC_MEC_MEC045_SRV_QOS_EVENT_SUB_NOT_001_OK_02
#AtsMec_QoSMeasurementAPI_TestCases.TC_MEC_MEC045_SRV_QOS_EVENT_SUB_NOT_001_OK_02
# Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application - Invalid SubscritionType
#AtsMec_QoSMeasurementAPI_TestControl.testcase.TC_MEC_MEC045_SRV_QOS_EVENT_SUB_NOT_001_OK_01
#AtsMec_QoSMeasurementAPI_TestCases.TC_MEC_MEC045_SRV_QOS_EVENT_SUB_NOT_001_OK_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_QoSMeasurementAPI_TestControl.TC_MEC_MEC045_SRV_QOS_EVENT_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
@@ -153,11 +141,11 @@ AtsMec_QoSMeasurementAPI_TestControl.testcase.TC_MEC_MEC045_SRV_QOSLOOKUP_001_OK
# Check that the IUT acknowledges the cancellation of QoS event subscription when commanded by a MEC Application
#AtsMec_QoSMeasurementAPI_TestControl.TC_MEC_MEC045_SRV_QOS_EVENT_SUB_NOT_003_NF
# Check that the IUT provides a test notification when requested by a MEC Application
#AtsMec_QoSMeasurementAPI_TestControl.testcase.TC_MEC_MEC045_SRV_QOS_EVENT_SUB_NOT_004_OK_01
#AtsMec_QoSMeasurementAPI_TestCases.TC_MEC_MEC045_SRV_QOS_EVENT_SUB_NOT_004_OK_01
# Check that the IUT provides a test notification when requested by a MEC Application
#AtsMec_QoSMeasurementAPI_TestControl.testcase.TC_MEC_MEC045_SRV_QOS_EVENT_SUB_NOT_004_OK_02
#AtsMec_QoSMeasurementAPI_TestCases.TC_MEC_MEC045_SRV_QOS_EVENT_SUB_NOT_004_OK_02
# Check that the IUT terminates notifications when the expiry timer expires
#AtsMec_QoSMeasurementAPI_TestControl.testcase.TC_MEC_MEC045_SRV_QOS_EVENT_SUB_NOT_005_OK
#AtsMec_QoSMeasurementAPI_TestCases.TC_MEC_MEC045_SRV_QOS_EVENT_SUB_NOT_005_OK

[GROUPS]
# In this section you can specify groups of hosts. These groups can be used inside the
+105 −0
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.21" #"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             := "/sbxykqjr17/mep1/" # Need to sign in on https://mec-platform.etsi.org/, section 'Try-it from your MEC application'

SensorsSharingService_Pixits.PX_SENS_SUB_CALLBACK_URI        := "http://clientApp.example.com/location_notifications/123456";
SensorsSharingService_Pixits.PX_SENS_DISCOVERY_TYPE          := ""
SensorsSharingService_Pixits.PX_SENS_DISCOVERY_PROPERTY_LIST := "" # Could be [], string or [string1 string2]
SensorsSharingService_Pixits.PX_SENSOR_IDENTIFIER            := ""

[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_SensorsSharingService/%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
#ConsoleMask := ERROR | WARNING | USER | MATCHING | EXECUTOR_RUNTIME | VERDICTOP | PORTEVENT
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_mec030)/TCP(debug=1,server=mec-platform.etsi.org,port=443,use_ssl=1,trusted_ca_list=/home/yann/var/ssl/archive/yanngarcia.ddns.net/fullchain1.pem,privkey=/home/yann/var/ssl/archive/yanngarcia.ddns.net/privkey1.pem,certificate=/home/yann/var/ssl/archive/yanngarcia.ddns.net/fullchain1.pem)"
system.httpPort_notif.params := "HTTP(codecs=json:json_codec_mec030)/TCP(debug=1,server_mode=1,local_port=443,use_ssl=1,mutual_auth=1,mutual_tls=1,trusted_ca_list=/home/yann/var/ssl/archive/yanngarcia.ddns.net/fullchain1.pem,privkey=/home/yann/var/ssl/archive/yanngarcia.ddns.net/privkey1.pem,certificate=/home/yann/var/ssl/archive/yanngarcia.ddns.net/fullchain1.pem)"

[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_SensorsSharingService_TestControl.control

# Check that the IUT responds with the list of SensorDiscoveryInfo when queried by a MEC Application
AtsMec_SensorsSharingService_TestCases.TC_MEC_MEC046_SRV_SENSDISCOVERY_001_OK_01
# Check that the IUT responds with the list of SensorDiscoveryInfo when queried by a MEC Application - Using type filter
#AtsMec_SensorsSharingService_TestCases.TC_MEC_MEC046_SRV_SENSDISCOVERY_001_OK_01
# Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application - Invalid filter
#AtsMec_SensorsSharingService_TestCases.TC_MEC_MEC046_SRV_SENSDISCOVERY_001_BR
# Check that the IUT responds with an error when the IUT does not have sensor(s)
#AtsMec_SensorsSharingService_TestCases.TC_MEC_MEC046_SRV_SENSDISCOVERY_001_NF
# Check that the IUT responds with the list of subscriptions when queried by a MEC Application - No query parameters
#AtsMec_SensorsSharingService_TestCases.TC_MEC_MEC046_SRV_SENSDISCOVERY_002_OK_01
# Check that the IUT responds with the list of subscriptions when queried by a MEC Application - With query parameters
#AtsMec_SensorsSharingService_TestCases.TC_MEC_MEC046_SRV_SENSDISCOVERY_002_OK_02
# Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application
#AtsMec_SensorsSharingService_TestCases.TC_MEC_MEC046_SRV_SENSDISCOVERY_002_BR
# Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application
#AtsMec_SensorsSharingService_TestCases.TC_MEC_MEC046_SRV_SENSDISCOVERY_002_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
+1 −0
Original line number Diff line number Diff line
AtsMec_SensorsSharingService.cf_
 No newline at end of file
+2 −0
Original line number Diff line number Diff line
@@ -24,6 +24,8 @@ modules := ../LibCommon \
            ../LibMec/ApplicationMobilityServiceAPI \
            ../LibMec/IoTAPI \
            ../LibMec/FederationEnablementAPI \
            ../LibMec/QoSMeasurementAPI \
            ../LibMec/SensorsSharingService \
            ../../titan-test-system-framework/ccsrc/Framework \
            ../../titan-test-system-framework/ccsrc/loggers \
            ../../titan-test-system-framework/ccsrc/Protocols/Http \
+429 −0

File changed.

Preview size limit exceeded, changes collapsed.

Loading