Skip to content

Test Map Minimum Data Event

Ivan Yourshaw edited this page Jan 31, 2025 · 9 revisions

Test for MAP Minimum Data Events

Note: MAP Minimum Data Events can be configured to enable aggregation using the map.validation.aggregateMinimumDataEvents configuration setting, or the ENABLE_AGGREGATE_MAP_MINIMUM_DATA_EVENTS environment variable. If aggregation is enabled, events will be delayed by up to the configured aggregation.interval, which is 60 seconds by default.

Output Topics

topic.CmMapMinimumDataEvents

If aggregation is enabled, events are output to:

  • topic.CmMapMinimumDataEventAggregation

If aggregation is disabled, events are output to:

  • topic.CmMapMinimumDataEvents

1. MAP with Missing Elements

Inputs

A single MAP message with several missing elements.

Test Script

Script: MAP_MinData.csv

Without Aggregation

Expected Output

One Minimum Data Event

Actual Output

Topic: topic.CmMapMinimumDataEvents
Key: {"rsuId":"10.11.81.12","intersectionId":12109,"region":-1}
Offset: 69
Timestamp: 1711510247285
Value: 
{
	"eventGeneratedAt":1711510247650,
	"eventType":"MapMinimumData",
	"intersectionID":12109,
	"roadRegulatorID":-1,
	"source":"{ rsuId='10.11.81.12', intersectionId='12109', region='-1'}",
	"timePeriod":{"beginTimestamp":1711510240000,"endTimestamp":1711510250000},
	"missingDataElements":[
		"$.payload.data.intersections.intersectionGeometry[0].id.region: null found, integer expected (#/$defs/J2735RoadRegulatorID/type)",
		"$.payload.data.intersections.intersectionGeometry[0].laneSet.GenericLane[3].connectsTo: null found, object expected (#/$defs/J2735ConnectsToList_Wrapper/type)",
		"$.payload.data.intersections.intersectionGeometry[0].laneSet.GenericLane[3].maneuvers: null found, object expected (#/$defs/J2735AllowedManeuvers/type)",
		"$.payload.data.intersections.intersectionGeometry[0].laneSet.GenericLane[4].connectsTo: null found, object expected (#/$defs/J2735ConnectsToList_Wrapper/type)",
		"$.payload.data.intersections.intersectionGeometry[0].laneSet.GenericLane[4].maneuvers: null found, object expected (#/$defs/J2735AllowedManeuvers/type)",
		"$.payload.data.intersections.intersectionGeometry[0].laneSet.GenericLane[5].connectsTo: null found, object expected (#/$defs/J2735ConnectsToList_Wrapper/type)",
		"$.payload.data.intersections.intersectionGeometry[0].laneSet.GenericLane[5].maneuvers: null found, object expected (#/$defs/J2735AllowedManeuvers/type)",
		"$.payload.data.intersections.intersectionGeometry[0].laneSet.GenericLane[6].connectsTo: null found, object expected (#/$defs/J2735ConnectsToList_Wrapper/type)",
		"$.payload.data.intersections.intersectionGeometry[0].laneSet.GenericLane[6].maneuvers: null found, object expected (#/$defs/J2735AllowedManeuvers/type)",
		"$.payload.data.intersections.intersectionGeometry[0].laneSet.GenericLane[8].connectsTo.connectsTo[0].signalGroup: null found, integer expected (#/$defs/J2735SignalGroupID/type)",
		"$.payload.data.intersections.intersectionGeometry[0].laneSet.GenericLane[12].connectsTo.connectsTo[0].signalGroup: null found, integer expected (#/$defs/J2735SignalGroupID/type)",
		"$.payload.data.intersections.intersectionGeometry[0].laneSet.GenericLane[13].connectsTo: null found, object expected (#/$defs/J2735ConnectsToList_Wrapper/type)",
		"$.payload.data.intersections.intersectionGeometry[0].laneSet.GenericLane[13].maneuvers: null found, object expected (#/$defs/J2735AllowedManeuvers/type)",
		"$.payload.data.intersections.intersectionGeometry[0].laneSet.GenericLane[14].connectsTo: null found, object expected (#/$defs/J2735ConnectsToList_Wrapper/type)",
		"$.payload.data.intersections.intersectionGeometry[0].laneSet.GenericLane[14].maneuvers: null found, object expected (#/$defs/J2735AllowedManeuvers/type)",
		"$.payload.data.intersections.intersectionGeometry[0].speedLimits: null found, object expected (#/$defs/J2735SpeedLimitList_Wrapper/type)"
	]
}

Comments

With Aggregation

TODO

2. Valid MAP

Inputs

One valid MAP message.

Test Script

Script: MAP_MinData-valid.csv

With or Without Aggregation

Expected Output

No event.

Actual Output

No Event

Comments

Clone this wiki locally