Skip to content

Test Map Minimum Data Event

Ivan Yourshaw edited this page Mar 27, 2024 · 7 revisions

Test for MAP Minimum Data Events

Output Topic

topic.CmMapMinimumDataEvents

1. MAP with Missing Elements

Inputs

A single MAP message with several missing elements.

Test Script

Script: MAP_MinData.csv

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

2. Valid MAP

Inputs

One valid MAP message.

Test Script

Script: MAP_MinData-valid.csv

Expected Output

No event.

Actual Output

No Event

Comments