in dev-tools/v2tool/manager/manager.go [231:249]
func createUnitsWithState(state proto.State, input *proto.UnitExpectedConfig, inID string, stateIndex uint64) *proto.CheckinExpected {
return &proto.CheckinExpected{
AgentInfo: &proto.AgentInfo{
Id: "test-agent",
Version: "8.4.0",
Snapshot: true,
},
Units: []*proto.UnitExpected{
{
Id: inID,
Type: proto.UnitType_INPUT,
ConfigStateIdx: stateIndex,
Config: input,
State: state,
LogLevel: proto.UnitLogLevel_DEBUG,
},
},
}
}