Code Review
/
yardstick.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
BugFix: Negative dropped packets in Prox tests
[yardstick.git]
/
tests
/
unit
/
network_services
/
vnf_generic
/
vnf
/
test_prox_vnf.py
diff --git
a/tests/unit/network_services/vnf_generic/vnf/test_prox_vnf.py
b/tests/unit/network_services/vnf_generic/vnf/test_prox_vnf.py
index
09060ff
..
e29e8dd
100644
(file)
--- a/
tests/unit/network_services/vnf_generic/vnf/test_prox_vnf.py
+++ b/
tests/unit/network_services/vnf_generic/vnf/test_prox_vnf.py
@@
-348,9
+348,9
@@
class TestProxApproxVnf(unittest.TestCase):
prox_approx_vnf.resource_helper = resource_helper
expected = {
prox_approx_vnf.resource_helper = resource_helper
expected = {
- 'packets_in':
7
,
+ 'packets_in':
6
,
'packets_dropped': 1,
'packets_dropped': 1,
- 'packets_fwd':
6
,
+ 'packets_fwd':
7
,
'collect_stats': {'core': {'result': 234}},
}
result = prox_approx_vnf.collect_kpi()
'collect_stats': {'core': {'result': 234}},
}
result = prox_approx_vnf.collect_kpi()
@@
-376,7
+376,7
@@
class TestProxApproxVnf(unittest.TestCase):
return file_path
@mock.patch('yardstick.benchmark.scenarios.networking.vnf_generic.open', create=True)
return file_path
@mock.patch('yardstick.benchmark.scenarios.networking.vnf_generic.open', create=True)
- @mock.patch('yardstick.network_services.
vnf_generic.vnf
.iniparser.open', create=True)
+ @mock.patch('yardstick.network_services.
helpers
.iniparser.open', create=True)
@mock.patch(SSH_HELPER)
def test_run_prox(self, ssh, *_):
mock_ssh(ssh)
@mock.patch(SSH_HELPER)
def test_run_prox(self, ssh, *_):
mock_ssh(ssh)