Commit 85c5cdf8 authored by YannGarcia's avatar YannGarcia
Browse files

Add config file for ETSIMEC Sandbox

parent 46286882
[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;
LibItsHttp_Pics.PICS_HEADER_HOST := "try-mec.etsi.org"
LibItsHttp_Pics.PICS_HEADER_CONTENT_TYPE := "application/json"
LibItsHttp_Pics.PICS_USE_TOKEN_HEADER := true
#LibItsHttp_Pics.PICS_TOKEN_HEADER := "Basic WrongToken"
LibMec_Pics.PICS_ROOT_API := "sbxkklnnyi"
# LibMex_Pixits
LibMec_Pixits.PX_ME_APP_Q_ZONE_ID_URI := "/location/v2/zones"
LibMec_Pixits.PX_ME_APP_Q_USERS_LIST_URI := "/location/v2/users"
LibMec_Pixits.PX_RNIS_SUBSCRITIONS_URI := "/rni/v2/subscriptions"
LibMec_Pixits.PX_RNIS_QUERIES_URI := "/rni/v2/queries"
LibMec_Pixits.PX_MEC_SVC_MGMT_APPS_URI := "/mec_service_mgmt/v2/applications"
LibMec_Pixits.PX_ME_APP_SUPPORT_URI := "/mec_app_support/v2/applications"
LibMec_Pixits.PX_SVC_MGMT_TRANS_URI := "/mec_service_mgmt/v2/transports"
LibMec_Pixits.PX_ME_APP_SUPPORT_TIMING_CAPS_URI := "/mec_app_support/v2/timing/timing_caps"
LibMec_Pixits.PX_ME_APP_SUPPORT_TIMING_CURRENT_URI := "/mec_app_support/v2/timing/current_time"
# Mec-011 AppEnblementAPI
AppEnablementAPI_Pixits.PX_APP_INSTANCE_ID := "appInst01"
AppEnablementAPI_Pixits.PX_SERVICE_NAME := "serName"
AppEnablementAPI_Pixits.PX_SERVICE_ID := "serInst01"
AppEnablementAPI_Pixits.PX_SERVICE_INFO_VERSION := "1.0.0"
AppEnablementAPI_Pixits.PX_NEW_SERVICE_INFO_VERSION := "1.0.0"
AppEnablementAPI_Pixits.PX_SERVICE_INFO_STATE := ACTIVE
AppEnablementAPI_Pixits.PX_SUBSCRIPTION_ID := "7777"
AppEnablementAPI_Pixits.PX_DNS_RULE_ID := "route2home"
AppEnablementAPI_Pixits.PX_DOMAIN_NAME := "etsi.org"
AppEnablementAPI_Pixits.PX_IP_ADDRESS := "10.10.0.2"
AppEnablementAPI_Pixits.PX_TTL := 8
AppEnablementAPI_Pixits.PX_TRAFFIC_RULE_ID := "trafficRuleId01"
# Mec-012 RnisAPI
RnisAPI_Pixits.PX_SUBSCRIPTION_HREF_VALUE := "cell_change"
RnisAPI_Pixits.PX_SUBSCRIPTION_TYPE := CELL_CHANGE
RnisAPI_Pixits.PX_SUBSCRIPTION_ID := "7777"
RnisAPI_Pixits.PX_ASSOCIATE_ID_VALUE := "192.0.0.2"
RnisAPI_Pixits.PX_CELL_ID := "0x8080808"
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
# Mec-013 LocationAPI
LocationAPI_Pics.PICS_LOCATION_API_SUPPORTED := true
LocationAPI_Pixits.PX_ZONE_ID := "zone01"
LocationAPI_Pixits.PX_USER := "10.100.0.1"
LocationAPI_Pixits.PX_CLIENT_ID := "0123"
LocationAPI_Pixits.PX_SUBSCRIPTION_ID := "subscription0123"
UEidentityAPI_Pics.PICS_UE_IDENTITY_API_SUPPORTED := false
BwManagementAPI_Pics.PICS_BWMANAGEMENT_API_SUPPORTED := false
[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/AtsNg112/%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)/TCP(debug=1,server=try-mec.etsi.org,port=443,use_ssl=1)"
#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=8081,use_ssl=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_UEidentityAPI_TestCases.TC_MEC_SRV_UETAG_001_OK
#AtsMec_UEidentityAPI_TestCases.TC_MEC_SRV_UETAG_001_BR
#AtsMec_UEidentityAPI_TestCases.TC_MEC_SRV_UETAG_001_NF
#AtsMec_UEidentityAPI_TestCases.TC_MEC_SRV_UETAG_002_OK
#AtsMec_UEidentityAPI_TestCases.TC_MEC_SRV_UETAG_002_BR
#AtsMec_UEidentityAPI_TestCases.TC_MEC_SRV_UETAG_002_PF
# ETSI GS MEC 013
#AtsMec_LocationAPI_TestCases.TC_MEC_SRV_UELOCLOOK_001_OK
#AtsMec_LocationAPI_TestCases.TC_MEC_SRV_UELOCLOOK_001_BR
#AtsMec_LocationAPI_TestCases.TC_MEC_SRV_UELOCLOOK_001_NF
#AtsMec_LocationAPI_TestCases.TC_MEC_SRV_UELOCSUB_001_OK
#AtsMec_LocationAPI_TestCases.TC_MEC_SRV_UELOCSUB_001_BR
#AtsMec_LocationAPI_TestCases.TC_MEC_SRV_UELOCSUB_002_OK
#AtsMec_LocationAPI_TestCases.TC_MEC_SRV_UELOCSUB_002_NF
#AtsMec_LocationAPI_TestCases.TC_MEC_SRV_UETRACKSUB_001_OK
#AtsMec_LocationAPI_TestCases.TC_MEC_SRV_UETRACKSUB_001_BR
#AtsMec_LocationAPI_TestCases.TC_MEC_SRV_UETRACKSUB_002_OK
#AtsMec_LocationAPI_TestCases.TC_MEC_SRV_UETRACKSUB_002_NF
#AtsMec_LocationAPI_TestCases.TC_MEC_SRV_UEINFLOOK_001_OK
#AtsMec_LocationAPI_TestCases.TC_MEC_SRV_UEINFLOOK_001_BR
#AtsMec_LocationAPI_TestCases.TC_MEC_SRV_UEINFLOOK_001_NF
#AtsMec_LocationAPI_TestCases.TC_MEC_SRV_UEINFSUB_001_OK
#AtsMec_LocationAPI_TestCases.TC_MEC_SRV_UEINFSUB_001_BR
#AtsMec_LocationAPI_TestCases.TC_MEC_SRV_UEINFSUB_002_OK
#AtsMec_LocationAPI_TestCases.TC_MEC_SRV_UEINFSUB_002_NF
#AtsMec_RadioNodeLocationAPI_TestCases.TC_MEC_SRV_RLOCLOOK_001_OK
#AtsMec_RadioNodeLocationAPI_TestCases.TC_MEC_SRV_RLOCLOOK_001_NF
#AtsMec_RadioNodeLocationAPI_TestCases.TC_MEC_SRV_UEAREASUB_001_OK
#AtsMec_RadioNodeLocationAPI_TestCases.TC_MEC_SRV_UEAREASUB_001_BR
#AtsMec_RadioNodeLocationAPI_TestCases.TC_MEC_SRV_UEAREASUB_002_OK
#AtsMec_RadioNodeLocationAPI_TestCases.TC_MEC_SRV_UEAREASUB_002_NF
#AtsMec_RadioNodeLocationAPI_TestCases.TC_MEC_SRV_UEDISTLOOK_001_OK
#AtsMec_RadioNodeLocationAPI_TestCases.TC_MEC_SRV_UEDISTLOOK_001_BR
#AtsMec_RadioNodeLocationAPI_TestCases.TC_MEC_SRV_UEDISTSUB_001_OK
#AtsMec_RadioNodeLocationAPI_TestCases.TC_MEC_SRV_UEDISTSUB_001_BR
#AtsMec_RadioNodeLocationAPI_TestCases.TC_MEC_SRV_UEDISTSUB_002_OK
#AtsMec_RadioNodeLocationAPI_TestCases.TC_MEC_SRV_UEDISTSUB_002_NF
# ETSI GS MEC 012
AtsMec_RnisAPI_TestCases.TC_MEC_SRV_RNIS_011_OK
#AtsMec_RnisAPI_TestCases.TC_MEC_SRV_RNIS_012_OK
#AtsMec_RnisAPI_TestCases.TC_MEC_SRV_RNIS_011_BR
#AtsMec_RnisAPI_TestCases.TC_MEC_SRV_RNIS_012_BR
#AtsMec_RnisAPI_TestCases.TC_MEC_SRV_RNIS_016_OK
#AtsMec_RnisAPI_TestCases.TC_MEC_SRV_RNIS_017_OK
#AtsMec_RnisAPI_TestCases.TC_MEC_SRV_RNIS_018_OK
#AtsMec_RnisAPI_TestCases.TC_MEC_SRV_RNIS_019_OK
#AtsMec_RnisAPI_TestCases.TC_MEC_SRV_RNIS_016_BR
#AtsMec_RnisAPI_TestCases.TC_MEC_SRV_RNIS_016_NF
#AtsMec_RnisAPI_TestCases.TC_MEC_SRV_RNIS_017_BR
#AtsMec_RnisAPI_TestCases.TC_MEC_SRV_RNIS_017_NF
#AtsMec_RnisAPI_TestCases.TC_MEC_SRV_RNIS_018_BR
#AtsMec_RnisAPI_TestCases.TC_MEC_SRV_RNIS_018_NF
#AtsMec_RnisAPI_TestCases.TC_MEC_SRV_RNIS_019_BR
#AtsMec_RnisAPI_TestCases.TC_MEC_SRV_RNIS_019_NF
#AtsMec_RnisAPI_TestCases.TC_MEC_SRV_RNIS_001_OK
#AtsMec_RnisAPI_TestCases.TC_MEC_SRV_RNIS_002_OK
#AtsMec_RnisAPI_TestCases.TC_MEC_SRV_RNIS_003_OK
#AtsMec_RnisAPI_TestCases.TC_MEC_SRV_RNIS_004_OK
#AtsMec_RnisAPI_TestCases.TC_MEC_SRV_RNIS_005_OK
#AtsMec_RnisAPI_TestCases.TC_MEC_SRV_RNIS_006_OK
#AtsMec_RnisAPI_TestCases.TC_MEC_SRV_RNIS_007_OK
#AtsMec_RnisAPI_TestCases.TC_MEC_SRV_RNIS_008_OK
# ETSI GS MEC 011
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_APPSAQ_001_OK
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_APPSAQ_001_BR
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_APPSAQ_002_OK
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_APPSAQ_002_BR
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_APPSAQ_002_NF
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_APPSAQ_003_OK
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_APPSAQ_003_NF
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_APPSAQ_004_OK
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_APPSAQ_004_BR
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_APPSAQ_004_NF
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_APPSAQ_004_PF
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_APPSUB_001_OK
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_APPSUB_001_NF
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_APPSUB_002_OK
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_APPSUB_002_BR
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_APPSUB_003_OK
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_APPSUB_003_NF
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_APPSUB_004_OK
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_APPSUB_004_NF
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_DNS_001_OK
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_DNS_002_OK
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_DNS_002_NF
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_DNS_003_OK
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_DNS_003_BR
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_DNS_003_NF
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_DNS_003_PF
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_SAQ_001_OK
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_SAQ_001_BR
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_SAQ_002_OK
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_SAQ_002_NF
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_SRVSUB_001_OK
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_SRVSUB_001_NF
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_SRVSUB_002_OK
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_SRVSUB_002_BR
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_SRVSUB_003_OK
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_SRVSUB_003_NF
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_SRVSUB_004_OK
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_SRVSUB_004_NF
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_TIME_001_OK
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_TIME_002_OK
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_TRAF_001_OK
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_TRAF_001_NF
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_TRAF_002_OK
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_TRAF_003_OK
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_TRAF_003_BR
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_TRAF_003_NF
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_TRAF_003_PF
#AtsMec_AppEnablementAPI_TestCases.TC_MEC_SRV_TRANS_001_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
......@@ -4,7 +4,11 @@
clear
export LD_LIBRARY_PATH=/home/${USER}/frameworks/osip/src/osipparser2/.libs:$LD_LIBRARY_PATH
if [ -z $ATS ]
then
echo "ATS shall be defined"
exit 1
fi
if ! [[ $1 =~ "^[0-9]+$" ]]
then
......@@ -14,25 +18,22 @@ else
fi
CURPWD=`pwd`
if [ ! "${PWD##*/}" == "objs" ]
if [ ! "${PWD##*/}" == "scripts" ]
then
cd ../objs
cd ../scripts
if [ ! $? == 0 ]
then
echo "Please move to PROJECT/obj directory"
echo "Please move to PROJECT/scripts directory"
exit 1
fi
fi
for i in `ls ../logs/merged.*.log`
do
rm -f $i
done
rm ../bin/S1/logs/merged.*.log
for i in $(seq 1 1 $COUNTER)
do
LD_LIBRARY_PATH=/home/${USER}/frameworks/osip/src/osipparser2/.libs:$LD_LIBRARY_PATH ../bin/run_mtc.bash &
LD_LIBRARY_PATH=/home/${USER}/frameworks/osip/src/osipparser2/.libs:$LD_LIBRARY_PATH ../bin/run_ptcs.bash $2
./run_mtc.bash &
./run_ptcs.bash
dup=$(ps -ef | grep "$0" | grep -v grep | wc -l)
while [ ${dup} -eq 3 ]
......@@ -41,8 +42,8 @@ do
dup=$(ps -ef | grep "$0" | grep -v grep | wc -l)
done
sleep 1
mv ../logs/merged.log ../logs/merged.`date +'%Y%m%d%S'`.log
mv ../logs/$ATS/merged.log ../logs/$ATS/merged.`date +'%Y%m%d%S'`.log
done
exit 0
......
#!/bin/bash
#set -evx
#set -e
#set -vx
clear
if [ -z $ATS ]
then
echo "ATS shall be defined"
exit 1
fi
CURPWD=`pwd`
if [ ! "${PWD##*/}" == "objs" ]
if [ ! "${PWD##*/}" == "scripts" ]
then
cd ../objs
cd ../scripts
if [ ! $? == 0 ]
then
echo "Please move to PROJECT/obj directory"
echo "Please move to PROJECT/scripts directory"
exit 1
fi
fi
TITAN_LOG_DIR=../logs
TITAN_LOG_DIR=../logs/$ATS
if [ ! -d ${TITAN_LOG_DIR} ]
then
mkdir ${TITAN_LOG_DIR}
......@@ -22,33 +29,20 @@ else
rm -f ${TITAN_LOG_DIR}/*.log
fi
CFG_FILES=`find ../etc -name '*.cfg'`
#LOG_FILES=`find ${TITAN_LOG_DIR} -name '*.log'`
#mv ${LOG_FILES} ../logs
#if [ "${OSTYPE}" == "cygwin" ]
#then
# # Remove dll
# rm ./*.dll
# ## Copy the new ones
# cp ~/lib/libhelper.dll .
# cp ~/lib/libconverter.dll .
# cp ~/lib/liblogger.dll .
# cp ~/lib/libttcn3_tri.dll .
# cp ~/lib/libcomm.dll .
#fi
CFG_FILES=`find ../etc/$ATS -name '*.cfg'`
echo "> cmtc: to create the MTC server"
echo "> smtc [module_name[[.control]|.testcase_name|.*]: when MyExample is connected, run the TCs in [EXECUTE] section"
echo "> emtc: Terminate MTC."
mctr ${CFG_FILES}
sudo chown -R `whoami` ${TITAN_LOG_DIR}
LOG_FILES=`find ${TITAN_LOG_DIR} -name '*.log'`
if [ "${TITAN_LOG_DIR}" != "" ]
then
ttcn3_logmerge -o ${TITAN_LOG_DIR}/merged.log ${LOG_FILES}
ttcn3_logformat -o ${TITAN_LOG_DIR}/merged_formated.log ${TITAN_LOG_DIR}/merged.log
mv ${TITAN_LOG_DIR}/merged_formated.log ${TITAN_LOG_DIR}/merged.log
mv ${TITAN_LOG_DIR}/merged_formated.log ${TITAN_LOG_DIR}/merged.log
echo "log files were merged into ${TITAN_LOG_DIR}/merged.log"
fi
......
......@@ -4,13 +4,19 @@
clear
if [ -z $ATS ]
then
echo "ATS shall be defined"
exit 1
fi
CURPWD=`pwd`
if [ ! "${PWD##*/}" == "objs" ]
if [ ! "${PWD##*/}" == "scripts" ]
then
cd ../objs
cd ../scripts
if [ ! $? == 0 ]
then
echo "Please move to PROJECT/obj directory"
echo "Please move to PROJECT/scripts directory"
exit 1
fi
fi
......@@ -19,20 +25,12 @@ if [ -f ./core ]
then
rm -f ./core
fi
if [ "$1" == "d" ]
then
make run_d
elif [ "$1" == "v" ]
if [ "$ATS" == "AtsRSUsSimulator" ]
then
make run_v
sudo LD_LIBRARY_PATH=$LD_LIBRARY_PATH ../bin/$ATS 127.0.0.1 12001
else
make run
sudo LD_LIBRARY_PATH=$LD_LIBRARY_PATH ../bin/$ATS 127.0.0.1 12000
fi
#if [ "${OSTYPE}" == "cygwin" ]
#then
# ../bin/SIPmsg.exe 127.0.0.1 12000
#else
# ../bin/SIPmsg 127.0.0.1 12000
#fi
cd ${CURPWD}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment