Commit 679dc0b7 authored by Yann Garcia's avatar Yann Garcia
Browse files

Finalyze Feedback TCs for I1

parent f5678f53
Loading
Loading
Loading
Loading
+37 −0
Original line number Original line Diff line number Diff line
@@ -54,4 +54,41 @@ namespace LibCise__Functions {
    return 0;
    return 0;
  }
  }


  BITSTRING fx__enc__Feedback__1(const http__www__cise__eu__servicemodel__v1__message::Feedback& p) { // FIXME Use enc/dec TITAN function external function f_enc_value(in Value x) return bitstring with { extension "prototype(convert) encode(abc)" }
    loggers::get_instance().log(">>> fx__enc__Feedback");

    LibHttp__XmlMessageBodyTypes::XmlBody msg;
    msg.msg().feedback() = p;
    msg.raw().set_to_omit();
    xml_codec c;
    OCTETSTRING os;
    int result = c.encode(msg, os);
    loggers::get_instance().log_msg("fx__enc__Feedback: os: ", os);

    // Remove XML header added by the XML codec.
    OCTETSTRING h = char2oct("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\" ?>\n");
    os = OCTETSTRING(os.lengthof() - h.lengthof(), static_cast<const unsigned char*>(os) + h.lengthof());
    loggers::get_instance().log_msg("fx__enc__Feedback: os: ", os);

    return oct2bit(os);
  }

  INTEGER fx__dec__Feedback__1(BITSTRING &b, http__www__cise__eu__servicemodel__v1__message::Feedback& p) { // FIXME Use enc/dec TITAN function external function f_enc_value(in Value x) return bitstring with { extension "prototype(convert) encode(abc)" }
    loggers::get_instance().log(">>> fx__dec__Feedback");

    LibHttp__XmlMessageBodyTypes::XmlBody msg;
    xml_codec c;
    OCTETSTRING is = bit2oct(b);
    params parms;
    parms["decode_str"] = std::string(static_cast<const unsigned char *>(is), is.lengthof() + static_cast<const unsigned char *>(is));
    if (c.decode(is, msg, &parms) == -1) {
      loggers::get_instance().warning("fx__dec__Feedback: -1 result code was returned");
      return -1;
    }

    p = msg.msg().feedback();

    return 0;
  }

} // End of namespace LibCise__Functions
} // End of namespace LibCise__Functions
 No newline at end of file
+34 −19
Original line number Original line Diff line number Diff line
@@ -121,7 +121,7 @@ system.utPort.params := "HTTP(codecs=xml:xml_codec;json:json_codec)/TCP(debug=1,
# In this section you can specify what parts of your test suite you want to execute.
# In this section you can specify what parts of your test suite you want to execute.
#AtsCise_TestControl.control
#AtsCise_TestControl.control


## cise_node_i1
## cise_node_ei_na
# Check that the IUT responds with an HTTP 200 OK Acknowledgment response when receiving a PullRequest for Vessel service - no Acknowledgment required
# Check that the IUT responds with an HTTP 200 OK Acknowledgment response when receiving a PullRequest for Vessel service - no Acknowledgment required
#AtsCise_TestCases.TC_CDM_NODE_EI_NA_PULL_REQUEST_BV_01_01
#AtsCise_TestCases.TC_CDM_NODE_EI_NA_PULL_REQUEST_BV_01_01
# Check that the IUT sends a PullResponse before reponse timout expiry when receiving a PullRequest with timeout on response - no Acknowledgment required
# Check that the IUT sends a PullResponse before reponse timout expiry when receiving a PullRequest with timeout on response - no Acknowledgment required
@@ -355,23 +355,38 @@ AtsCise_TestCases.TC_CDM_NODE_EI_NA_SUB_BV_01
# Check that the IUT responds with an HTTP 200 OK Acknowledgment response when receiving a Push for notification for CargoService
# Check that the IUT responds with an HTTP 200 OK Acknowledgment response when receiving a Push for notification for CargoService
#AtsCise_TestCases.TC_CDM_NODE_EI_NA_PUSH_NOT_BV_11
#AtsCise_TestCases.TC_CDM_NODE_EI_NA_PUSH_NOT_BV_11


# Check that the IUT responds with an HTTP 200 OK Acknowledgment response when receiving a Feedback for VesselService
#AtsCise_TestCases.TC_CDM_NODE_EI_NA_FEEDBACK_BV_01


# Check that the IUT responds with an HTTP 200 OK Acknowledgment response when receiving a Feedback for ActionService
#AtsCise_TestCases.TC_CDM_NODE_EI_NA_FEEDBACK_BV_02


# Check that the IUT responds with an HTTP 200 OK Acknowledgment response when receiving a Feedback for AnomalyService
#AtsCise_TestCases.TC_CDM_NODE_EI_NA_FEEDBACK_BV_03


# Check that the IUT responds with an HTTP 200 OK Acknowledgment response when receiving a Feedback for CertificateDocumentService
#AtsCise_TestCases.TC_CDM_NODE_EI_NA_FEEDBACK_BV_04


# Check that the IUT responds with an HTTP 200 OK Acknowledgment response when receiving a Feedback for IncidentService
#AtsCise_TestCases.TC_CDM_NODE_EI_NA_FEEDBACK_BV_05


# Check that the IUT responds with an HTTP 200 OK Acknowledgment response when receiving a Feedback for IrregularMigrationIncidentService
#AtsCise_TestCases.TC_CDM_NODE_EI_NA_FEEDBACK_BV_06


# Check that the IUT responds with an HTTP 200 OK Acknowledgment response when receiving a Feedback for LawInfringementIncidentService
#AtsCise_TestCases.TC_CDM_NODE_EI_NA_FEEDBACK_BV_07


# Check that the IUT responds with an HTTP 200 OK Acknowledgment response when receiving a Feedback for MeteoOceanographicConditionService
#AtsCise_TestCases.TC_CDM_NODE_EI_NA_FEEDBACK_BV_08


# Check that the IUT responds with an HTTP 200 OK Acknowledgment response when receiving a Feedback for OrganizationService
#AtsCise_TestCases.TC_CDM_NODE_EI_NA_FEEDBACK_BV_09


# Check that the IUT responds with an HTTP 200 OK Acknowledgment response when receiving a Feedback for RiskService
#AtsCise_TestCases.TC_CDM_NODE_EI_NA_FEEDBACK_BV_10



# Check that the IUT responds with an HTTP 200 OK Acknowledgment response when receiving a Feedback for CargoService

#AtsCise_TestCases.TC_CDM_NODE_EI_NA_FEEDBACK_BV_11







## cise_node_i2
## cise_node_i2
# Check that the IUT sends a PullRequest to the GatewayProvider when receiving a PullRequest for a VesselService
# Check that the IUT sends a PullRequest to the GatewayProvider when receiving a PullRequest for a VesselService
+22 −22

File changed.

Preview size limit exceeded, changes collapsed.

+593 −18

File changed.

Preview size limit exceeded, changes collapsed.

+44 −0
Original line number Original line Diff line number Diff line
@@ -240,6 +240,50 @@ module AtsCise_TestControl {


      if (PICS_CDM_FEEDBACK) {
      if (PICS_CDM_FEEDBACK) {


        if (PICS_CDM_VESSEL_SERVICE) {
          execute(TC_CDM_NODE_EI_NA_FEEDBACK_BV_01());
        }

        if (PICS_CDM_ACTION_SERVICE) {
          execute(TC_CDM_NODE_EI_NA_FEEDBACK_BV_02());
        }

        if (PICS_CDM_ANOMALY_SERVICE) {
          execute(TC_CDM_NODE_EI_NA_FEEDBACK_BV_03());
        }

        if (PICS_CDM_CERTIFICATE_DOCUMENT_SERVICE) {
          execute(TC_CDM_NODE_EI_NA_FEEDBACK_BV_04());
        }

        if (PICS_CDM_INCIDENT_SERVICE) {
          execute(TC_CDM_NODE_EI_NA_FEEDBACK_BV_05());
        }

        if (PICS_CDM_IRREGULAR_MIGRATION_INCIDENT_SERVICE) {
          execute(TC_CDM_NODE_EI_NA_FEEDBACK_BV_06());
        }

        if (PICS_CDM_LAW_INFRINGEMENT_INCIDENT_SERVICE) {
          execute(TC_CDM_NODE_EI_NA_FEEDBACK_BV_07());
        }

        if (PICS_CDM_METEO_SERVICE) {
          execute(TC_CDM_NODE_EI_NA_FEEDBACK_BV_08());
        }

        if (PICS_CDM_ORGANIZATION_SERVICE) {
          execute(TC_CDM_NODE_EI_NA_FEEDBACK_BV_09());
        }

        if (PICS_CDM_RISK_SERVICE) {
          execute(TC_CDM_NODE_EI_NA_FEEDBACK_BV_10());
        }

        if (PICS_CDM_CARGO_SERVICE) {
          execute(TC_CDM_NODE_EI_NA_FEEDBACK_BV_11());
        }

      } // PICS_CDM_FEEDBACK
      } // PICS_CDM_FEEDBACK


    } // PICS_IUT_CDM_NODE
    } // PICS_IUT_CDM_NODE
Loading