Write tests for osi::TrafficCommand passed through osi_traffic_participant_interface
CI
link to pipeline: https://ci.eclipse.org/openpass/job/GtGenCore/view/change-requests/job/MR-137/
Common changes
Functionality: receive an osi::TrafficCommand through the osi_traffic_participant_interface, so that the openPASS Complex Controller and SCM can be simulated with ASTAS.
The functionality should be already in place but tests are missing, so the purpose of this story is to write tests for it.
Additional changes:
current "Mock" from master
branch is a TpmExample
class in separate .so
library which always import:
https://gitlab.eclipse.org/eclipse/openpass/gt-gen-core/-/blob/main/Core/Environment/Controller/Internal/ControlUnits/BUILD.bazel?ref_type=heads#L366
Issue: implementation of TpmExample
fixed and cannot be tuned in tests and doesn't allow inspect calling arguments.
So, current MR refactored TrafficParticipantControlUnit
to make it possible to tune behavior of ITrafficParticipantModel
and inspect arguments.