Code Review
/
yardstick.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix Ixload KPIs collection & hang issues.
[yardstick.git]
/
tests
/
unit
/
network_services
/
vnf_generic
/
vnf
/
test_tg_rfc2544_ixia.py
diff --git
a/tests/unit/network_services/vnf_generic/vnf/test_tg_rfc2544_ixia.py
b/tests/unit/network_services/vnf_generic/vnf/test_tg_rfc2544_ixia.py
index
ca8150c
..
661e885
100644
(file)
--- a/
tests/unit/network_services/vnf_generic/vnf/test_tg_rfc2544_ixia.py
+++ b/
tests/unit/network_services/vnf_generic/vnf/test_tg_rfc2544_ixia.py
@@
-343,8
+343,11
@@
class TestIXIATrafficGen(unittest.TestCase):
},
},
},
},
},
},
- 'ixia_profile': {}
+ 'ixia_profile': '/path/to/profile',
+ 'task_path': '/path/to/task'
}
}
- result = sut._traffic_runner(mock_traffic_profile)
- self.assertIsNone(result)
+ with mock.patch('yardstick.benchmark.scenarios.networking.vnf_generic.open', create=True) as mock_open:
+ mock_open.return_value = mock.MagicMock()
+ result = sut._traffic_runner(mock_traffic_profile)
+ self.assertIsNone(result)