Commit f841a1a8 authored by Yann Garcia's avatar Yann Garcia
Browse files

Add BO test cases for PullRequest/Request; Add one discovery TC; Add one subscribe TC

parent e8536508
Loading
Loading
Loading
Loading
+27 −1
Original line number Original line Diff line number Diff line
@@ -32,6 +32,10 @@ LibCise_Pixits.PX_CISE_SEA_BASSIN := northSea
LibCise_Pixits.PX_VESSEL_IMO_NUMBER    := 7710525
LibCise_Pixits.PX_VESSEL_IMO_NUMBER    := 7710525
LibCise_Pixits.PX_VESSEL_POS_LATITUDE  := "43.561062"
LibCise_Pixits.PX_VESSEL_POS_LATITUDE  := "43.561062"
LibCise_Pixits.PX_VESSEL_POS_LONGITUDE := "10.264149"
LibCise_Pixits.PX_VESSEL_POS_LONGITUDE := "10.264149"
LibCise_Pixits.PX_VESSEL_TYPE          := fishingVessel
LibCise_Pixits.PX_COUNTRY_TYPE         := fR
LibCise_Pixits.PX_VESSEL_NET_TONNAGE   := 30000.0

# Organization
# Organization
LibCise_Pixits.PX_ORGANIZATION_LEGAL_NAME := "A1"
LibCise_Pixits.PX_ORGANIZATION_LEGAL_NAME := "A1"
LibCise_Pixits.PX_ORGANIZATION_UUID       := "787aa3e9b91b-5bc2-0cf5-80a8-183a716b8d59"
LibCise_Pixits.PX_ORGANIZATION_UUID       := "787aa3e9b91b-5bc2-0cf5-80a8-183a716b8d59"
@@ -114,15 +118,37 @@ system.utPort.params := "HTTP(codecs=xml:xml_codec;json:json_codec)/TCP(debug=1,
#AtsCise_TestCases.TC_CDM_NODE_PULL_REQUEST_BV_01_02
#AtsCise_TestCases.TC_CDM_NODE_PULL_REQUEST_BV_01_02
# Check that the IUT responds with an HTTP 200 OK Acknowledgment response when receiving a PullRequest for a unknown vessel - no Acknowledgment required
# Check that the IUT responds with an HTTP 200 OK Acknowledgment response when receiving a PullRequest for a unknown vessel - no Acknowledgment required
#AtsCise_TestCases.TC_CDM_NODE_PULL_REQUEST_BV_01_03
#AtsCise_TestCases.TC_CDM_NODE_PULL_REQUEST_BV_01_03
# Check that the IUT responds with an HTTP 200 OK Acknowledgment response when receiving a PullRequest with filter - no Acknowledgment required
#AtsCise_TestCases.TC_CDM_NODE_PULL_REQUEST_BV_01_04
# Check that the IUT responds with an HTTP 200 OK Acknowledgment response and an error code when receiving an inconsistent PullRequest
#AtsCise_TestCases.TC_CDM_NODE_PULL_REQUEST_BO_01_01
# Check that the IUT responds with an HTTP 200 OK Acknowledgment response and an error code when receiving a PullRequest with an inconsistent Service Operation type
#AtsCise_TestCases.TC_CDM_NODE_PULL_REQUEST_BO_01_02
# Check that the IUT responds with an HTTP 200 OK Acknowledgment response and an error code when receiving a PullRequest with an unknown serviceID
#AtsCise_TestCases.TC_CDM_NODE_PULL_REQUEST_BO_01_03
# Check that the IUT responds with an HTTP 200 OK Acknowledgment response and an error code when receiving a PullRequest with a date/time far in past (one month late)
#AtsCise_TestCases.TC_CDM_NODE_PULL_REQUEST_BO_01_04
# Check that the IUT responds with an HTTP 200 OK Acknowledgment response and an error code when receiving a PullRequest with a  date/time far in future (one month)
#AtsCise_TestCases.TC_CDM_NODE_PULL_REQUEST_BO_01_05
# Check that the IUT responds with an HTTP 200 OK Acknowledgment response and an error code when receiving a PullRequest with an invalid filter (Selector entry does not exist)
#AtsCise_TestCases.TC_CDM_NODE_PULL_REQUEST_BO_01_06


# Check that the IUT responds with an HTTP 200 OK Acknowledgment response when receiving a PullRequest for Action service - no Acknowledgment required
# Check that the IUT responds with an HTTP 200 OK Acknowledgment response when receiving a PullRequest for Action service - no Acknowledgment required
AtsCise_TestCases.TC_CDM_NODE_PULL_REQUEST_BV_02_01
#AtsCise_TestCases.TC_CDM_NODE_PULL_REQUEST_BV_02_01
# Check that the IUT responds with an HTTP 200 OK Acknowledgment response when receiving a PullRequest for Action service - no Acknowledgment required
# Check that the IUT responds with an HTTP 200 OK Acknowledgment response when receiving a PullRequest for Action service - no Acknowledgment required
#AtsCise_TestCases.TC_CDM_NODE_PULL_REQUEST_BV_02_02
#AtsCise_TestCases.TC_CDM_NODE_PULL_REQUEST_BV_02_02
# Check that the IUT responds with an HTTP 200 OK Acknowledgment response and an error code when receiving a PullRequest with inconsistent Location
#AtsCise_TestCases.TC_CDM_NODE_PULL_REQUEST_BO_02_01


# Check that the IUT responds with an HTTP 200 OK Acknowledgment response when receiving multiple PullRequest for Vessel service - no Acknowledgment required
# Check that the IUT responds with an HTTP 200 OK Acknowledgment response when receiving multiple PullRequest for Vessel service - no Acknowledgment required
#AtsCise_TestCases.TC_CDM_NODE_MULTI_PULL_REQ_BV_01
#AtsCise_TestCases.TC_CDM_NODE_MULTI_PULL_REQ_BV_01


# Check that the IUT responds with an HTTP 200 OK Acknowledgment response when receiving a PullRequest with VesselServide discovery - no Acknowledgment required
#AtsCise_TestCases.TC_CDM_NODE_PULL_DISC_BV_01

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

## 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
#AtsCise_TestCases.TC_CDM_NODE_I2_PULL_REQ_BV_01
#AtsCise_TestCases.TC_CDM_NODE_I2_PULL_REQ_BV_01
Original line number Original line Diff line number Diff line
Subproject commit 524df4ef9a2fed2c32c1d9166ebebdb51fa666ba
Subproject commit c7b208ea9b477564472cf523f6000ed1e43000cf
+863 −21

File changed.

Preview size limit exceeded, changes collapsed.

+2 −2
Original line number Original line Diff line number Diff line
@@ -526,8 +526,8 @@ module LibCise_Functions {
      return fx_generate_uuid();
      return fx_generate_uuid();
    }
    }


    function f_get_current_date_time() return charstring {
    function f_get_current_date_time(in integer p_shift_time := 0) return charstring {
      return fx_get_current_date_time();
      return fx_get_current_date_time(p_shift_time);
    }
    }


  } // End of group cise_functions
  } // End of group cise_functions
+31 −9
Original line number Original line Diff line number Diff line
@@ -7,7 +7,9 @@ module LibCise_Pixits {
  import from LibSecurity_Hash all;
  import from LibSecurity_Hash all;


  // LibCise
  // LibCise
  import from http_www_cise_eu_datamodel_v1_entity_vessel all;
  import from http_www_cise_eu_servicemodel_v1_authority all;
  import from http_www_cise_eu_servicemodel_v1_authority all;
  import from http_www_cise_eu_servicemodel_v1_service all;
  
  
  /**
  /**
   * @desc The hash algorithnm to use for signature
   * @desc The hash algorithnm to use for signature
@@ -21,8 +23,16 @@ module LibCise_Pixits {


  modulepar XSD.String PX_CISE_SENDER_SERVICE_ID            := "de.sim2-node01.vessel.pull.consumer";
  modulepar XSD.String PX_CISE_SENDER_SERVICE_ID            := "de.sim2-node01.vessel.pull.consumer";


  modulepar XSD.String PX_CISE_UNKNOWN_SENDER_SERVICE_ID    := "unknown.consumer";

  modulepar XSD.String PX_CISE_RECIPIENT_SERVICE_ID         := "de.sim1-node01.vessel.pull.provider";
  modulepar XSD.String PX_CISE_RECIPIENT_SERVICE_ID         := "de.sim1-node01.vessel.pull.provider";


  modulepar XSD.String PX_CISE_UNKNOWN_RECIPIENT_SERVICE_ID := "unknown.provider";

  modulepar CountryType PX_COUNTRY_TYPE                     := fR;

  modulepar DataFreshnessType PX_DATA_FRESHNESS_TYPE        := realTime;
  
  modulepar SeaBasinType PX_CISE_SEA_BASSIN                 := northSea;
  modulepar SeaBasinType PX_CISE_SEA_BASSIN                 := northSea;


  group vessel {
  group vessel {
@@ -35,6 +45,18 @@ module LibCise_Pixits {


    modulepar XSD.String PX_VESSEL_POS_LONGITUDE        := "171.0";
    modulepar XSD.String PX_VESSEL_POS_LONGITUDE        := "171.0";


    modulepar XSD.String PX_VESSEL_INVALID_POS_LATITUDE := "171.0";

    modulepar XSD.String PX_VESSEL_INVALID_POS_LONGITUDE := "81.0";

    modulepar VesselType PX_VESSEL_TYPE                  := fishingVessel;
  
    modulepar XSD.Double PX_VESSEL_NET_TONNAGE           := 30000.0;

    modulepar XSD.String PX_PAYLOAD_SELECTOR_CONDITION_1 := "//Vessel[1]/NetTonnage";
  
    modulepar XSD.String PX_PAYLOAD_SELECTOR_CONDITION_2 := "//Vessel[1]/MaximumSpeed";
  
  }
  }


  group agent {
  group agent {
Loading