aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/benchmark
diff options
context:
space:
mode:
authorDeepak S <deepak.s@linux.intel.com>2016-12-30 09:24:52 -0800
committerDeepak S <deepak.s@linux.intel.com>2017-01-19 08:29:35 +0530
commit8d7b81187071891317245a7e47a10dcfe70b3809 (patch)
tree6905348146fc77e6cfaa4d81d42ae901336432fb /tests/unit/benchmark
parent06432a93864b7c742e3194cc1296cbdcb68d5cfc (diff)
Adding trex trafficgen example.
This patch uses trex trafficgen example to define dynamic traffic profiles and how it can be mapped to real world traffic. JIRA: YARDSTICK-492 Change-Id: Ica24957ebf43315a8d81adabd4745c27d3c7c36a Signed-off-by: Deepak S <deepak.s@linux.intel.com>
Diffstat (limited to 'tests/unit/benchmark')
-rw-r--r--tests/unit/benchmark/scenarios/networking/test_vnf_generic.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/benchmark/scenarios/networking/test_vnf_generic.py b/tests/unit/benchmark/scenarios/networking/test_vnf_generic.py
index 540d7f214..40b07b1ca 100644
--- a/tests/unit/benchmark/scenarios/networking/test_vnf_generic.py
+++ b/tests/unit/benchmark/scenarios/networking/test_vnf_generic.py
@@ -262,9 +262,9 @@ class TestNetworkServiceTestCase(unittest.TestCase):
"ipv4_1flow_Packets_vpe.yaml1"
self.assertEqual({}, self.s._get_traffic_flow(self.scenario_cfg))
- def test_get_vnf_impl_invalid(self):
- self.assertRaises(IncorrectConfig, self.s.get_vnf_impl,
- COMPLETE_TREX_VNFD['vnfd:vnfd-catalog']['vnfd'][0])
+ def test_get_vnf_imp(self):
+ vnfd = COMPLETE_TREX_VNFD['vnfd:vnfd-catalog']['vnfd'][0]
+ self.assertIsNotNone(self.s.get_vnf_impl(vnfd))
def test_load_vnf_models_invalid(self):
self.context_cfg["nodes"]['trexgen__1']['VNF model'] = \