Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
mohan-selvaraj committed May 5, 2022
1 parent 9a85aad commit 5b63779
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/storm_control_test.py
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 5b63779

Please sign in to comment.