Commit dbccec1e authored by Garcia's avatar Garcia
Browse files

Validate execution of AtsNg112_TestCases.TC_LIS_HTTP_POST_BV_01

parent 2854874a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -64,7 +64,7 @@ int http_codec::decode (const OCTETSTRING& data, LibItsHttp__TypesAndValues::Htt
    loggers::get_instance().log("http_codec::decode: %d - %s", m.size(), m[0].str().c_str());
    if (m[0].str().compare("HTTP/") == 0) { // HTTP response
      LibItsHttp__TypesAndValues::Response response;
      std::regex rgx ("\\s*HTTP/(\\d+)\\.(\\d+)\\s+(\\d+)\\s+(\\w+)*");
      std::regex rgx ("\\s*HTTP/(\\d+)\\.(\\d+)\\s+(\\d+)\\s+([\\w\\s\\t\\v\\f]+)*");
      std::sregex_iterator begin(str.cbegin(), str.cend(), rgx);
      std::smatch m = *begin;
      loggers::get_instance().log("http_codec::decode: Process response: %d", m.size());
+3 −5
Original line number Diff line number Diff line
@@ -7,8 +7,6 @@ LABEL description="STF549 Docker Image"
ENV TERM=linux
ENV HOSTNAME docker-titan-STF549

ARG ssh_pub_key

RUN echo "docker-titan-STF549" > /etc/hostname \
    && echo "root:etsi" | chpasswd \
    && DEBIAN_FRONTEND=noninteractive apt-get update \
@@ -78,11 +76,11 @@ RUN echo "docker-titan-STF549" > /etc/hostname \

USER etsi

ADD ~/.ssh/id_rsa /home/etsi/.ssh/id_rsa
ADD ~/.ssh/id_rsa_pub /home/etsi/.ssh/id_rsa_pub

RUN cd /home/etsi \
    && mkdir -p .ssh bin lib include tmp frameworks docs man dev \
    && echo "$ssh_pub_key" > /home/etsi/.ssh/id_rsa \
    && chmod 755 /home/etsi/.ssh/id_rsa \
    && cat /home/etsi/.ssh/id_rsa \
    && cd /home/etsi/dev \
    && git clone https://forge.etsi.org/gitlab/emergency-communications/NG112 ./STF549_Ng112 \
    && git checkout TTCN_3_Developments \
+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@ then
    then
      docker rmi -f $(docker images -q)
    fi
    docker build --tag stf525_its --force-rm --build-arg ssh_pub_key="$(cat ~/.ssh/id_rsa.pub)" .
    docker build --tag stf525_its --force-rm .
    if [ "$?" != "0" ]
    then
        echo "Docker build failed: $?"
+5 −5
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.

LibCommon_Time.PX_TAC := 10.0
LibCommon_Time.PX_TAC := 30.0
LibItsHttp_Pics.PICS_HEADER_HOST := "ptsv2.com"

[LOGGING]
# In this section you can specify the name of the log file and the classes of events
@@ -19,8 +20,8 @@ LogEventTypes:= Yes

[TESTPORT_PARAMETERS]
# In this section you can specify parameters that are passed to Test Ports.
system.SIPP.params := "SIP/UDP(dst_ip=192.168.1.250,dst_port=5060,src_ip=192.168.1.253,src_port=5060)/ETH(mac_src=080027d2b658,mac_dst=90fd61e61902,eth_type=0800)/PCAP(mac_src=080027d2b658,nic=eth1,filter=and udp port 12345)"
system.httpPort.params := "APP_LAYERS(codecs=held,html,text)/HTTP/TCP(debug=1,server=httpbin.org,port=80,use_ssl=0)"
system.httpPort.params := "HTTP(codecs=held:held_codec;html:html_codec;json:json_codec)/TCP(debug=1,server=ptsv2.com,port=80,use_ssl=0)"
#system.SIPP.params := "SIP/UDP(dst_ip=192.168.1.250,dst_port=5060,src_ip=192.168.1.253,src_port=5060)/ETH(mac_src=080027d2b658,mac_dst=90fd61e61902,eth_type=0800)/PCAP(mac_src=080027d2b658,nic=eth1,filter=and udp port 12345)"

[DEFINE]
# In this section you can create macro definitions,
@@ -45,8 +46,7 @@ system.httpPort.params := "APP_LAYERS(codecs=held,html,text)/HTTP/TCP(debug=1,se

[EXECUTE]
# In this section you can specify what parts of your test suite you want to execute.
#AtsNg112_TestCases.TC_1
AtsNg112_TestCases.TC_2
AtsNg112_TestCases.TC_LIS_HTTP_POST_BV_01

[GROUPS]
# In this section you can specify groups of hosts. These groups can be used inside the
+1 −1
Original line number Diff line number Diff line
@@ -237,6 +237,6 @@ if [ "$?" == "1" ]
then
    f_exit "Failed to generate ATS source code" 9
fi
export LD_LIBRARY_PATH=~/tmp/osip_aurelihein/src/osipparser2/.libs:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=~export LD_LIBRARY_PATH=~/frameworks/osip/src/osipparser2/.libs:$LD_LIBRARY_PATH
../bin/Ats${ATS_NAME} -v
f_exit "Build done successfully" 0
Loading