NodePort information returned in context should be a dictionary 49/59849/3
authorRodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
Mon, 16 Jul 2018 08:35:34 +0000 (09:35 +0100)
committerRodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
Thu, 19 Jul 2018 08:07:16 +0000 (08:07 +0000)
commit43865731ecf49c534c6a54e856e9133fd9288927
tree56b470fc80f5d568f21ed8eb68ac2543d06fdc86
parent3eb7c80aa614456b05e08651a55f7450e6864c79
NodePort information returned in context should be a dictionary

In Kubernetes context, NodePort information returned in context should be
a dictionary. In [1], the node information is dumped in a yaml file. The
NodePort object doesn't have a serialize implementation; instead of
returning the object, an equivalent dictionary should be returned.

[1]https://github.com/opnfv/yardstick/blob/f6fa0d7422f0669d049dbf07a51eb39b1dc25830/yardstick/benchmark/scenarios/networking/vnf_generic.py#L293

JIRA: YARDSTICK-1323

Change-Id: If4844c9b074920a7a7d8c1a424b681f9f8a4b0c5
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
yardstick/benchmark/contexts/kubernetes.py
yardstick/tests/unit/benchmark/contexts/test_kubernetes.py