summaryrefslogtreecommitdiffstats
path: root/tests/unit
diff options
context:
space:
mode:
authorRoss Brattain <ross.b.brattain@intel.com>2017-09-18 06:02:32 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-09-18 06:02:32 +0000
commitb5fdfc1f42dc8ab6769ed5ca3cf8500e8b92a164 (patch)
tree0449bcb302a51966739dcd7618d03ade8299fb0f /tests/unit
parentda00316e3e90962684a3883b1da2773725c7c83c (diff)
parent7a73b94481bbaeea33db0d27f84e8e23506c7184 (diff)
Merge "Fix all the exception while genereating the latency traffic"
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/network_services/traffic_profile/test_rfc2544.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/unit/network_services/traffic_profile/test_rfc2544.py b/tests/unit/network_services/traffic_profile/test_rfc2544.py
index b63a805f3..2366b8124 100644
--- a/tests/unit/network_services/traffic_profile/test_rfc2544.py
+++ b/tests/unit/network_services/traffic_profile/test_rfc2544.py
@@ -258,9 +258,10 @@ class TestRFC2544Profile(unittest.TestCase):
def test_execute_latency(self):
traffic_generator = mock.Mock(autospec=TrexProfile)
- traffic_generator.my_ports = [0, 1]
- traffic_generator.priv_ports = [-1]
- traffic_generator.pub_ports = [1]
+ traffic_generator.networks = {
+ "private_0": ["xe0"],
+ "public_0": ["xe1"],
+ }
traffic_generator.client = \
mock.Mock(return_value=True)
r_f_c2544_profile = RFC2544Profile(self.TRAFFIC_PROFILE)