Commit e081899f authored by YannGarcia's avatar YannGarcia
Browse files

Execute AtsNg112/LIS against Grodgear

parent a29842c8
Loading
Loading
Loading
Loading
+10067 −826

File changed.

Preview size limit exceeded, changes collapsed.

+34 −7
Original line number Diff line number Diff line
@@ -45,16 +45,43 @@ int held_codec::encode (const LibItsHttp__XmlMessageBodyTypes::XmlBody& msg, OCT
      idx += t.length();
    } // End of 'while' statement


    // TITAN issue: Not possible to remove prefix id:device
    /*f.assign("id:");
    t.assign("");
    // NG112-2021: Apply draft-ietf-geopriv-held-identity-extensions-06: Use of Device Identity in HTTP-Enabled Location Delivery (HELD) draft-ietf-geopriv-held-identity-extensions-06
    // For Gridgears: TITAN issue: Not possible to remove prefix id:device & held:location...
    // FIXME: Add parameter to enable/disable draft-ietf-geopriv-held-identity-extensions-06 support
    f.assign("xmlns:id");
    t.assign("xmlns");
    while ((idx = s.find(f)) != std::string::npos) {
      s.replace(idx, f.length(), t);
      idx += t.length();
      }*/ // End of 'while' statement


    } // End of 'while' statement
    f.assign("id:device");
    t.assign("device");
    while ((idx = s.find(f)) != std::string::npos) {
      s.replace(idx, f.length(), t);
      idx += t.length();
    } // End of 'while' statement
    f.assign("device:id");
    while ((idx = s.find(f)) != std::string::npos) {
      s.replace(idx, f.length(), t);
      idx += t.length();
    } // End of 'while' statement
    f.assign("xmlns:held");
    t.assign("xmlns");
    while ((idx = s.find(f)) != std::string::npos) {
      s.replace(idx, f.length(), t);
      idx += t.length();
    } // End of 'while' statement
    f.assign("held:location");
    t.assign("location");
    while ((idx = s.find(f)) != std::string::npos) {
      s.replace(idx, f.length(), t);
      idx += t.length();
    } // End of 'while' statement
    f.assign("location:held");
    while ((idx = s.find(f)) != std::string::npos) {
      s.replace(idx, f.length(), t);
      idx += t.length();
    } // End of 'while' statement

    data = OCTETSTRING(s.length(), (const unsigned char*)s.c_str());
  }
+1 −0
Original line number Diff line number Diff line
@@ -128,6 +128,7 @@ int sip_codec_request::encode_request_line(const LibSip__SIPTypesAndValues::Requ
    return -1;
  }
  ::osip_message_set_uri(p_sip_message, uri);
  // FIXME: Add parameter to support udp/tcp/tls transport
  ::osip_uri_set_transport_tcp(uri); // NG112-2021

  // SIP version
+2 −2
Original line number Diff line number Diff line
@@ -48,8 +48,8 @@ LogEventTypes:= Yes
Ecrf.httpPort.params := "HTTP(codecs=lost:lost_codec;held:held_codec)/TCP(debug=1,server=ecrf1.gridgears.plugtests.net,use_ssl=1)"

# SIP/PSAP
Ue.SIPP.params := "SIP/TCP(debug=1,server==esrp1.frequentis.plugtests.net,port=5071,use_ssl=0)"
Psap.SIPP.params := "SIP/UDP(dst_ip=10.100.2.61,dst_port=5060,src_port=5060)"
Ue.SIPP.params := "SIP/TCP(debug=1,server=esrp1.frequentis.plugtests.net,port=5071,use_ssl=0)"
Psap.SIPP.params := "SIP/TCP(debug=1,server_mode=1,local_port=5061,use_ssl=0)"

[DEFINE]
# In this section you can create macro definitions,
+2 −2
Original line number Diff line number Diff line
@@ -90,11 +90,11 @@ system.httpPort.params := "HTTP(codecs=lost:lost_codec;held:held_codec)/TCP(debu
#AtsNg112_TestControl.control

# "IUT successfully responds with a Point when it receives a HTTP POST location request without location type"
AtsNg112_TestCases.TC_LIS_HTTP_POST_BV_01
#AtsNg112_TestCases.TC_LIS_HTTP_POST_BV_01
# "IUT successfully responds with a Circle when it receives a HTTP POST location request without location type"
#AtsNg112_TestCases.TC_LIS_HTTP_POST_BV_02
# "IUT successfully responds with a reference when it receives a HTTP POST location request with location type locationURI and exact attribute"
#AtsNg112_TestCases.TC_LIS_HTTP_POST_BV_03
AtsNg112_TestCases.TC_LIS_HTTP_POST_BV_03
# "IUT successfully responds with a reference and geodetic location when it receives a HTTP POST location request with location types locationURI and geodetic and exact attribute"
#AtsNg112_TestCases.TC_LIS_HTTP_POST_BV_04
# "IUT successfully responds with an error response when it receives a HTTP POST location request for an unknown device"
Loading