Commit 2b92e937 authored by Yann Garcia's avatar Yann Garcia
Browse files

Implement function f_create_cluster_iut_as_leader

parent 091299e5
Loading
Loading
Loading
Loading
+61 −3
Original line number Diff line number Diff line
@@ -1021,10 +1021,9 @@ module ItsVru_TestCases {
      f_cfMtcUp02(v_vam_cluster_leader_1, v_vam_cluster_leader_2, v_iut);

      // Start components
      // TODO
      /*v_vam_cluster_leader_1.start(f_TC_VBS_MSGF_BV_15_cluster_leader()); // Set the IUT in VRU-PASSIVE mode
      v_vam_cluster_leader_1.start(f_TC_VBS_MSGF_BV_15_cluster_leader()); // Set the IUT in VRU-PASSIVE mode
      v_vam_cluster_leader_2.start(f_TC_VBS_MSGF_BV_23_cluster_approching());
      v_iut.start(f_TC_VBS_MSGF_BV_23_iut());*/
      v_iut.start(f_TC_VBS_MSGF_BV_23_iut());

      // Synchronization
      f_serverSync2ClientsAndStop({c_prDone, c_tbDone});
@@ -1089,6 +1088,65 @@ module ItsVru_TestCases {

    } // End of testcase TC_VBS_MSGF_BV_24

    /**
     * @desc Check that clusterBreakupReason indicates clusteringPurposeCompleted when the clustering purpose is completed
     * <pre>
     * Pics Selection: PICS_VAM_GENERATION and PICS_CLUSTERING
     * Initial conditions: 
     *     with {
     *         VBS in state VRU-ACTIVE-CLUSTER-LEADER
     *     }
     * Expected behaviour:
     *  ensure that {
     *      when {
     *          the clustering purpose is completed
     *          and VRU has sent a cluster VAM
     *              containing vruClusterInformationContainer
     *                  containing clusterBoundingBoxShape
     *                      indicating Shape S
     *      }
     *      then {
     *          VAM is sent
     *              containing VamAwarness
     *                  containing vruClusterInformationContainer
     *                      containing clusterId
     *                  containing vruClusterOperationContainer
     *                      containing clusterBreakupInfo
     *                          indicating leaderMovedOutOfClusterBoundingBox (2)
     *      }
     *  } 
     * </pre>
     * 
     * @see       ETSI TS 104 018-2 V2.0.2 (2024-11) TP/VBS/MSGF/BV-25
     * @reference ETSI TS 103 300-3 (V2.2.1), clause 7.3.5
     */
    testcase TC_VBS_MSGF_BV_25() runs on ItsBaseMtc system ItsVruSystem {
      // Local variables
      var ItsVru v_vam_cluster_leader;
      var ItsVru v_iut;

      // Test control
      if (not(PICS_VAM_GENERATION and PICS_CLUSTERING and not PICS_IS_IUT_SECURED)) {
        log("*** " & testcasename() & ": PICS_VAM_GENERATION and PICS_CLUSTERING and not PICS_IS_IUT_SECURED required for executing the TC ***");
        setverdict(inconc);
        stop;
      }

      // Test component configuration
      f_cfMtcUp01(v_vam_cluster_leader, v_iut);

      // Start components
      v_vam_cluster_leader.start(f_TC_VBS_MSGF_BV_25_cluster_leader());
      v_iut.start(f_TC_VBS_MSGF_BV_25_iut());

      // Synchronization
      f_serverSync2ClientsAndStop({c_prDone, c_tbDone});

      // Cleanup
      f_cfMtcDown01(v_vam_cluster_leader, v_iut);

    } // End of testcase TC_VBS_MSGF_BV_25




+484 −18

File changed.

Preview size limit exceeded, changes collapsed.