Commit 6b2662a4 authored by Yann Garcia's avatar Yann Garcia
Browse files

TTF T027: Finalyze review MEC-028

parent 92a6584e
Loading
Loading
Loading
Loading
+81 −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 := "try-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                := "/sbx1y8q0x9/mep1" # Need to sign in on https://try-mec.etsi.org/, section 'Try-it from your MEC application'

# 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/%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.39,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=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


[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
+81 −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 := "try-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                := "/sbx1y8q0x9/mep1" # Need to sign in on https://try-mec.etsi.org/, section 'Try-it from your MEC application'

# 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/%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.39,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=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


[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
+52 −241

File changed.

Preview size limit exceeded, changes collapsed.

+14 −0
Original line number Diff line number Diff line
@@ -40,6 +40,20 @@ module AtsMec_WlanInformationAPI_TestControl {
      execute(TC_MEC_MEC028_SRV_WAI_010_NF());

      execute(TC_MEC_MEC028_SRV_WAI_011_OK());

      execute(TC_MEC_MEC028_SRV_WAI_012_OK());

      execute(TC_MEC_MEC028_SRV_WAI_013_OK());
      execute(TC_MEC_MEC028_SRV_WAI_013_BR());

      execute(TC_MEC_MEC028_SRV_WAI_014_OK());
      execute(TC_MEC_MEC028_SRV_WAI_014_NF());

      execute(TC_MEC_MEC028_SRV_WAI_015_OK());
      execute(TC_MEC_MEC028_SRV_WAI_015_NF());

      execute(TC_MEC_MEC028_SRV_WAI_016_OK());
      execute(TC_MEC_MEC028_SRV_WAI_016_NF());
    }

  } // End of 'control' statement
+11 −10
Original line number Diff line number Diff line
@@ -129,7 +129,8 @@ module WlanInformationAPI_Functions {
  } // End of function f_delete_assoc_sta_subscription

  function f_create_measurement_config(
                                       out MeasurementConfig p_measurement_config
                                       out MeasurementConfig p_measurement_config,
                                       out Json.String p_measurement_config_id
                                       ) runs on HttpComponent {
    var Headers v_headers;
    var HttpMessage v_response;
@@ -138,7 +139,7 @@ module WlanInformationAPI_Functions {
    httpPort.send(
                  m_http_request(
                                 m_http_request_post(
                                                     PICS_ROOT_API & PX_ME_WLAN_URI & "/measurements",
                                                     PICS_ROOT_API & PX_ME_WLAN_URI_MEAS,
                                                     v_headers,
                                                     m_http_message_body_json(
                                                                              m_body_json_wlan_measurement_config(
@@ -169,7 +170,13 @@ module WlanInformationAPI_Functions {
        tc_ac.stop;

        p_measurement_config := v_response.response.body.json_body.measurementConfig;
        p_measurement_config_id := regexp(
                                          oct2char(unichar2oct(p_measurement_config.links.self_.href)),
                                          "?+" & PX_ME_WLAN_URI_MEAS & "/" & "(?*)",
                                          0
                                          );
        log("f_create_measurement_config: INFO: IUT successfully responds to the subscription: ", p_measurement_config);
        log("f_create_measurement_config: INFO: p_measurement_config_id = ", p_measurement_config_id);
      }
      [] tc_ac.timeout {
        log("f_create_measurement_config: INCONC: Expected message not received");
@@ -179,21 +186,15 @@ module WlanInformationAPI_Functions {
  } // End of function "f_create_measurement_config

  function f_delete_measurement_config(
                                       in MeasurementConfig p_measurement_config
                                       in Json.String p_measurement_config_id
                                       ) runs on HttpComponent {
    var Headers v_headers;
    var charstring v_uri := regexp(
                                   oct2char(unichar2oct(p_measurement_config.links.self_.href)),
                                   "?+(" & PX_ME_WLAN_URI & "?*)",
                                   0
                                   );
    log("====> v_uri: ", v_uri);

    f_init_default_headers_list(-, -, v_headers);
    httpPort.send(
                  m_http_request(
                                 m_http_request_delete(
                                                       PICS_ROOT_API & v_uri,
                                                       PICS_ROOT_API & PX_ME_WLAN_URI_MEAS & "/" & p_measurement_config_id,
                                                       v_headers
                  )));

Loading