From 5b63779b3f27fb61f4f4efde216d72811e22b6e0 Mon Sep 17 00:00:00 2001 From: Mohanarajan Selvaraj Date: Thu, 5 May 2022 08:55:30 -0700 Subject: [PATCH] --- tests/storm_control_test.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/storm_control_test.py b/tests/storm_control_test.py index 2f2320576a..66267c8e97 100644 --- a/tests/storm_control_test.py +++ b/tests/storm_control_test.py @@ -18,7 +18,7 @@ def test_add_broadcast_storm(self): db = Db() obj = {'db':db.cfgdb} - result = runner.invoke(config.config.commands["storm-control"].commands["add"], ["Ethernet0", "broadcast", "10000"], obj = obj) + result = runner.invoke(config.config.commands["interface"].commands["storm-control"].commands["add"], ["Ethernet0", "broadcast", "10000"], obj = obj) print (result.exit_code) print (result.output) assert result.exit_code == 0 @@ -28,7 +28,7 @@ def test_add_uucast_storm(self): db = Db() obj = {'db':db.cfgdb} - result = runner.invoke(config.config.commands["storm-control"].commands["add"], ["Ethernet0", "unknown-unicast", "20000"], obj = obj) + result = runner.invoke(config.config.commands["interface"].commands["storm-control"].commands["add"], ["Ethernet0", "unknown-unicast", "10000"], obj = obj) print (result.exit_code) print (result.output) assert result.exit_code == 0 @@ -38,7 +38,7 @@ def test_add_umcast_storm(self): db = Db() obj = {'db':db.cfgdb} - result = runner.invoke(config.config.commands["storm-control"].commands["add"], ["Ethernet0", "unknown-multicast", "30000"], obj = obj) + result = runner.invoke(config.config.commands["interface"].commands["storm-control"].commands["add"], ["Ethernet0", "unknown-multicast", "10000"], obj = obj) print (result.exit_code) print (result.output) assert result.exit_code == 0 @@ -48,7 +48,7 @@ def test_del_broadcast_storm(self): db = Db() obj = {'db':db.cfgdb} - result = runner.invoke(config.config.commands["storm-control"].commands["del"], ["Ethernet0", "broadcast"], obj = obj) + result = runner.invoke(config.config.commands["interface"].commands["storm-control"].commands["del"], ["Ethernet0", "broadcast"], obj = obj) print (result.exit_code) print (result.output) assert result.exit_code == 0 @@ -58,7 +58,7 @@ def test_del_uucast_storm(self): db = Db() obj = {'db':db.cfgdb} - result = runner.invoke(config.config.commands["storm-control"].commands["del"], ["Ethernet0", "unknown-unicast"], obj = obj) + result = runner.invoke(config.config.commands["interface"].commands["storm-control"].commands["del"], ["Ethernet0", "unknown-unicast"], obj = obj) print (result.exit_code) print (result.output) assert result.exit_code == 0