diff options
author | Emma Foley <emma.l.foley@intel.com> | 2018-06-29 10:05:50 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-06-29 10:05:50 +0000 |
commit | 6f9c923e7a762338ba2be44964b42b69a77800cc (patch) | |
tree | 5d747ce16adadb1542f5359e56ee833fc6762c40 /yardstick/tests/unit/network_services/vnf_generic/vnf/test_prox_vnf.py | |
parent | 1e515b6cc3dd15c399f2663999c9734610494e5c (diff) | |
parent | 96c82664597d128fb10720d4bd104dfb5b2f80f7 (diff) |
Merge changes from topic 'prox-stable/fraser' into stable/fraser
* changes:
NSB NFVi PROX BNG losing many packets
NSB NFVi PROX VPE losing many packets
Decrease Sampling interval
Addition of Configurable Sampling and Configurable Confirmation Retry
Diffstat (limited to 'yardstick/tests/unit/network_services/vnf_generic/vnf/test_prox_vnf.py')
-rw-r--r-- | yardstick/tests/unit/network_services/vnf_generic/vnf/test_prox_vnf.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/yardstick/tests/unit/network_services/vnf_generic/vnf/test_prox_vnf.py b/yardstick/tests/unit/network_services/vnf_generic/vnf/test_prox_vnf.py index fa2d462ab..351607fb5 100644 --- a/yardstick/tests/unit/network_services/vnf_generic/vnf/test_prox_vnf.py +++ b/yardstick/tests/unit/network_services/vnf_generic/vnf/test_prox_vnf.py @@ -339,16 +339,17 @@ class TestProxApproxVnf(unittest.TestCase): mock_ssh(ssh) resource_helper = mock.MagicMock() - resource_helper.execute.return_value = list(range(12)) + resource_helper.execute.return_value = [[0, 1, 2, 3, 4, 5], [1, 1, 2, 3, 4, 5], + [2, 1, 2, 3, 4, 5], [3, 1, 2, 3, 4, 5]] resource_helper.collect_collectd_kpi.return_value = {'core': {'result': 234}} prox_approx_vnf = ProxApproxVnf(NAME, self.VNFD0) prox_approx_vnf.resource_helper = resource_helper expected = { - 'packets_in': 6, - 'packets_dropped': 1, - 'packets_fwd': 7, + 'packets_in': 4, + 'packets_dropped': 4, + 'packets_fwd': 8, 'collect_stats': {'core': {'result': 234}}, } result = prox_approx_vnf.collect_kpi() |