summaryrefslogtreecommitdiffstats
path: root/tests/unit/benchmark/scenarios
diff options
context:
space:
mode:
authorMatthewLi <matthew.lijun@huawei.com>2016-09-12 06:53:54 -0400
committerMatthewLi <matthew.lijun@huawei.com>2016-09-13 06:12:39 -0400
commit212a60535c5a84efcf236110caa0aa83499aefe2 (patch)
tree1e3868965d0a4441111f2be9a0ae1b4d9205beee /tests/unit/benchmark/scenarios
parent83fc1c299e38ecc303aeeca5116871a57fef69da (diff)
add ping6 parameters
JIRA: YARDSTICK-315 1) make packetsize workable 2) add ping_count parameter Change-Id: Ice2235fc5744b94df6a3f981c23159ca8280d876 Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
Diffstat (limited to 'tests/unit/benchmark/scenarios')
-rw-r--r--tests/unit/benchmark/scenarios/networking/test_ping6.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/unit/benchmark/scenarios/networking/test_ping6.py b/tests/unit/benchmark/scenarios/networking/test_ping6.py
index b600e4103..995113e28 100644
--- a/tests/unit/benchmark/scenarios/networking/test_ping6.py
+++ b/tests/unit/benchmark/scenarios/networking/test_ping6.py
@@ -34,7 +34,7 @@ class PingTestCase(unittest.TestCase):
@mock.patch('yardstick.benchmark.scenarios.networking.ping6.ssh')
def test_ping_successful_setup(self, mock_ssh):
args = {
- 'options': {'host': 'host1','packetsize': 200},
+ 'options': {'host': 'host1','packetsize': 200, 'ping_count': 5},
'sla': {'max_rtt': 50}
}
p = ping6.Ping6(args, self.ctx)
@@ -46,7 +46,7 @@ class PingTestCase(unittest.TestCase):
@mock.patch('yardstick.benchmark.scenarios.networking.ping6.ssh')
def test_ping_successful_no_sla(self, mock_ssh):
args = {
- 'options': {'host': 'host1','packetsize': 200},
+ 'options': {'host': 'host1','packetsize': 200, 'ping_count': 5},
}
result = {}
@@ -61,7 +61,7 @@ class PingTestCase(unittest.TestCase):
def test_ping_successful_sla(self, mock_ssh):
args = {
- 'options': {'host': 'host1','packetsize': 200},
+ 'options': {'host': 'host1','packetsize': 200, 'ping_count': 5},
'sla': {'max_rtt': 150}
}
result = {}
@@ -76,7 +76,7 @@ class PingTestCase(unittest.TestCase):
def test_ping_unsuccessful_sla(self, mock_ssh):
args = {
- 'options': {'host': 'host1','packetsize': 200},
+ 'options': {'host': 'host1','packetsize': 200, 'ping_count': 5},
'sla': {'max_rtt': 50}
}
result = {}
@@ -90,7 +90,7 @@ class PingTestCase(unittest.TestCase):
def test_ping_unsuccessful_script_error(self, mock_ssh):
args = {
- 'options': {'host': 'host1','packetsize': 200},
+ 'options': {'host': 'host1','packetsize': 200, 'ping_count': 5},
'sla': {'max_rtt': 150}
}
result = {}