Commit 83e755cf authored by Yann Garcia's avatar Yann Garcia
Browse files

plull request and discovery TPs implementation for adaptor

parent 54fba290
Loading
Loading
Loading
Loading
Original line number Diff line number Diff line
Subproject commit c38a2f267cb659c8180548bc82721d34dc71ef85
Subproject commit e27aaa847f49a1e459f427abc3620ef7a40223ca
+345 −37

File changed.

Preview size limit exceeded, changes collapsed.

+2022 −11

File changed.

Preview size limit exceeded, changes collapsed.

+27 −0
Original line number Diff line number Diff line
@@ -292,30 +292,57 @@ module AtsCise_TestControl {
      
      if (PICS_CDM_VESSEL_SERVICE) {
        execute(TC_CDM_ADAPTOR_PULL_REQUEST_BV_01());
        execute(TC_CDM_ADAPTOR_PULL_DISC_BV_01());
      }

      if (PICS_CDM_ACTION_SERVICE) {
        execute(TC_CDM_ADAPTOR_PULL_REQUEST_BV_02());
        execute(TC_CDM_ADAPTOR_PULL_DISC_BV_02());
      }

      if (PICS_CDM_ANOMALY_SERVICE) {
        execute(TC_CDM_ADAPTOR_PULL_REQUEST_BV_03());
        execute(TC_CDM_ADAPTOR_PULL_DISC_BV_03());
      }

      if (PICS_CDM_CERTIFICATE_DOCUMENT_SERVICE) {
        execute(TC_CDM_ADAPTOR_PULL_REQUEST_BV_04());
        execute(TC_CDM_ADAPTOR_PULL_DISC_BV_04());
      }

      if (PICS_CDM_INCIDENT_SERVICE) {
        execute(TC_CDM_ADAPTOR_PULL_REQUEST_BV_05());
        execute(TC_CDM_ADAPTOR_PULL_DISC_BV_05());
      }

      if (PICS_CDM_IRREGULAR_MIGRATION_INCIDENT_SERVICE) {
        execute(TC_CDM_ADAPTOR_PULL_REQUEST_BV_06());
        execute(TC_CDM_ADAPTOR_PULL_DISC_BV_05());
      }

      if (PICS_CDM_LAW_INFRINGEMENT_INCIDENT_SERVICE) {
        execute(TC_CDM_ADAPTOR_PULL_REQUEST_BV_07());
        execute(TC_CDM_ADAPTOR_PULL_DISC_BV_07());
      }

      if (PICS_CDM_METEO_SERVICE) {
        execute(TC_CDM_ADAPTOR_PULL_REQUEST_BV_08());
        execute(TC_CDM_ADAPTOR_PULL_DISC_BV_08());
      }

      if (PICS_CDM_ORGANIZATION_SERVICE) {
        execute(TC_CDM_ADAPTOR_PULL_REQUEST_BV_09());
        execute(TC_CDM_ADAPTOR_PULL_DISC_BV_09());
      }

      if (PICS_CDM_RISK_SERVICE) {
        execute(TC_CDM_ADAPTOR_PULL_REQUEST_BV_10());
        execute(TC_CDM_ADAPTOR_PULL_DISC_BV_10());
      }

      if (PICS_CDM_CARGO_SERVICE) {
        execute(TC_CDM_ADAPTOR_PULL_REQUEST_BV_11());
        execute(TC_CDM_ADAPTOR_PULL_DISC_BV_11());
      }

    } // PICS_IUT_CDM_ADAPTOR
+61 −1
Original line number Diff line number Diff line
@@ -3194,7 +3194,7 @@ module LibCise_Templates {
      content    := {
        organization := p_organization
      }
    } // End of template m_ut_description_meteo_oceanographic_condition
    } // End of template m_ut_description_organization

    template (value) OrganizationContent m_ut_organization(
                                                           in universal charstring p_country := PX_ORGANIZATION_COUNTRY,
@@ -3212,6 +3212,66 @@ module LibCise_Templates {
        longitude  := p_longitude
    } // End of template m_ut_organization

    template (value) UtDescription m_ut_description_risk(
                                                         in charstring p_type,
                                                         in charstring p_identificationNumber,
                                                         in charstring p_identifier_uuid,
                                                         in charstring p_uuid,
                                                         in integer p_senderSea := enum2int(PX_CISE_SEA_BASSIN),
                                                         in integer p_senderRole := enum2int(PX_CISE_CONSUMER),
                                                         in template (value) RiskContent p_risk := m_ut_risk
                                                         ) modifies m_ut_description_abstract := {
      type_      := Risk,
      content    := {
        risk := p_risk
      }
    } // End of template m_ut_description_risk

    template (value) RiskContent m_ut_risk(
                                           in universal charstring p_uuid := PX_RISK_UUID,
                                           in integer p_risk_level := enum2int(PX_RISK_LEVEL),
                                           in integer p_risk_probability := enum2int(PX_RISK_PROBABILITY),
                                           in integer p_risk_severity := enum2int(PX_RISK_SEVERITY),
                                           in universal charstring p_latitude := PX_VESSEL_POS_LATITUDE,
                                           in universal charstring p_longitude := PX_VESSEL_POS_LONGITUDE
                                           ) := {
        uuid             := p_uuid,
        risk_level       := p_risk_level,
        risk_probability := p_risk_probability,
        risk_severity    := p_risk_severity,
        latitude         := p_latitude,
        longitude        := p_longitude
    } // End of template m_ut_risk

    template (value) UtDescription m_ut_description_cargo(
                                                          in charstring p_type,
                                                          in charstring p_identificationNumber,
                                                          in charstring p_identifier_uuid,
                                                          in charstring p_uuid,
                                                          in integer p_senderSea := enum2int(PX_CISE_SEA_BASSIN),
                                                          in integer p_senderRole := enum2int(PX_CISE_CONSUMER),
                                                          in template (value) CargoContent p_cargo := m_ut_cargo
                                                          ) modifies m_ut_description_abstract := {
      type_      := Cargo,
      content    := {
        cargo := p_cargo
      }
    } // End of template m_ut_description_cargo

    template (value) CargoContent m_ut_cargo(
                                           in universal charstring p_uuid := PX_CARGO_UUID,
                                           in universal charstring p_cargo_name := PX_CARGO_NAME,
                                           in integer p_cargo_type := enum2int(PX_CARGO_TYPE),
                                           in universal charstring p_latitude := PX_VESSEL_POS_LATITUDE,
                                           in universal charstring p_longitude := PX_VESSEL_POS_LONGITUDE
                                           ) := {
        uuid       := p_uuid,
        cargo_name := p_cargo_name,
        cargo_type  := p_cargo_type,
        latitude   := p_latitude,
        longitude  := p_longitude
    } // End of template m_ut_cargo

  } // End of group upper_tester

} // End of module LibCise_Templates
 No newline at end of file
Loading