Add "IterationIPC" runner 19/56219/28
authorRodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
Fri, 20 Apr 2018 10:34:41 +0000 (11:34 +0100)
committerRodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
Thu, 5 Jul 2018 07:37:47 +0000 (08:37 +0100)
commit3aed8d1ad85f8a128a22a0a0f2436eb94562799f
tree1b7d26ada395175e5849c794685b7d765924e80c
parent4b957421d071cd5120a6e59b0e3bcba98641833f
Add "IterationIPC" runner

"IterationIPC" is a runner that runs a configurable number of times before
it returns. Each iteration has a configurable timeout. The loop control
depends on the feedback received from the running VNFs. The context PIDs
from the VNFs to listen the messages from are given in the scenario
"setup" method.

The MQ consumer, "RunnerIterationIPCConsumer", is subscribed to messages
sent to topic "messaging.TOPIC_TG". The endpoints are defined in the
class "RunnerIterationIPCEndpoint". Three are implemented:
"messaging.TG_METHOD_STARTED", "messaging.TG_METHOD_FINISHED" and
"messaging.TG_METHOD_ITERATION".

JIRA: YARDSTICK-1127

Change-Id: I4b2f11a15ef41e6f3c70bd64188d5c7fbcdb7eed
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
yardstick/benchmark/runners/iteration_ipc.py [new file with mode: 0644]
yardstick/common/exceptions.py
yardstick/common/messaging/__init__.py
yardstick/common/messaging/payloads.py
yardstick/tests/unit/benchmark/runner/test_iteration_ipc.py [new file with mode: 0644]
yardstick/tests/unit/common/messaging/test_payloads.py