From 17e94ff1e86c2a98895910d63828081ad5867052 Mon Sep 17 00:00:00 2001 From: Jo¶rgen Karlsson Date: Mon, 15 Jun 2015 16:15:24 +0200 Subject: add unit test for ping MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Running of unittest from run_test.sh is NOT enabled. JIRA:- Change-Id: I741d63e8ab37570c3cf67353fafc7f5210382219 Signed-off-by: Jo¶rgen Karlsson --- yardstick/benchmark/scenarios/networking/ping.py | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'yardstick/benchmark/scenarios') diff --git a/yardstick/benchmark/scenarios/networking/ping.py b/yardstick/benchmark/scenarios/networking/ping.py index cd4054fcd..a027c817a 100644 --- a/yardstick/benchmark/scenarios/networking/ping.py +++ b/yardstick/benchmark/scenarios/networking/ping.py @@ -59,20 +59,3 @@ class Ping(base.Scenario): assert rtt <= sla_max_rtt, "rtt %f > sla_max_rtt" % rtt return rtt - - -def _test(): - '''internal test function''' - key_filename = pkg_resources.resource_filename('yardstick.resources', - 'files/yardstick_key') - ctx = {'host': '172.16.0.137', - 'user': 'cirros', - 'key_filename': key_filename} - p = Ping(ctx) - args = {'options': '-c 2 -s 200', - 'ipaddr': '172.16.0.138'} - result = p.run(args) - print result - -if __name__ == '__main__': - _test() -- cgit 1.2.3-korg