diff options
author | Kubi <jean.gaoliang@huawei.com> | 2017-02-06 09:56:11 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-02-06 09:56:11 +0000 |
commit | aba275f89f642293f8fbe2f575e3413271d8fc21 (patch) | |
tree | eb5ea004af85cd439118ada3a5718d06f06c9f3d /tests/unit/benchmark/scenarios | |
parent | 08f00f55ef4e58d3fefeda243cb5cc98bf951739 (diff) | |
parent | 8d7b81187071891317245a7e47a10dcfe70b3809 (diff) |
Merge "Adding trex trafficgen example."
Diffstat (limited to 'tests/unit/benchmark/scenarios')
-rw-r--r-- | tests/unit/benchmark/scenarios/networking/test_vnf_generic.py | 6 |
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'] = \ |