Make context types constants 59/59559/2
authorRodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
Thu, 5 Jul 2018 08:14:33 +0000 (09:14 +0100)
committerRodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
Thu, 5 Jul 2018 10:11:00 +0000 (11:11 +0100)
commitd8749639f376972447cf58ea3c9628dfd6b78ef3
treed7608a9083b2836018998a515d5a9c3ffdae5156
parent9580bf1d0009b98b71d54c0a8231d45eae99d254
Make context types constants

Make context types constants. These are the current context types:
  - Dummy
  - Heat
  - Kubernetes
  - Node
  - StandaloneOvsDpdk
  - StandaloneSriov

Any reference to a context type should use the referred constant.

JIRA: YARDSTICK-1292

Change-Id: I1ff0085161f88304d71e3ddad7975f9020e0fc20
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
14 files changed:
yardstick/benchmark/contexts/__init__.py
yardstick/benchmark/contexts/dummy.py
yardstick/benchmark/contexts/heat.py
yardstick/benchmark/contexts/kubernetes.py
yardstick/benchmark/contexts/node.py
yardstick/benchmark/contexts/standalone/ovs_dpdk.py
yardstick/benchmark/contexts/standalone/sriov.py
yardstick/benchmark/core/task.py
yardstick/tests/unit/benchmark/contexts/standalone/test_ovs_dpdk.py
yardstick/tests/unit/benchmark/contexts/standalone/test_sriov.py
yardstick/tests/unit/benchmark/contexts/test_kubernetes.py
yardstick/tests/unit/benchmark/core/test_task.py
yardstick/tests/unit/network_services/vnf_generic/vnf/test_tg_rfc2544_ixia.py
yardstick/tests/unit/network_services/vnf_generic/vnf/test_tg_rfc2544_trex.py