Skip to content

Commit

Permalink
Fix test case errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasant committed Feb 12, 2020
1 parent c180c9c commit 9a3d6c1
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions tests/test_port_dpb.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,17 @@
import re
from port_dpb import DPB

speed100G = 100000
speed50G = 50000
speed40G = 40000
speed25G = 25000
speed10G = 10000
maxPorts = 128
maxRootPorts = 32
maxBreakOut = 4

@pytest.mark.usefixtures('dpb_setup_fixture')
class TestPortDPB(object):
speed100G = 100000
speed50G = 50000
speed40G = 40000
speed25G = 25000
speed10G = 10000
maxPorts = 128
maxRootPorts = 32
maxBreakOut = 4

'''
|--------------------------------------------------
Expand Down Expand Up @@ -76,7 +77,7 @@ def test_port_breakout_multiple(self, dvs):
dpb = DPB()
port_names = ["Ethernet0", "Ethernet12", "Ethernet64", "Ethernet112"]
for pname in port_names:
dpb.breakout(dvs, pname, maxbreakout)
dpb.breakout(dvs, pname, maxBreakOut)
dpb.breakin(dvs, ["Ethernet0", "Ethernet1", "Ethernet2", "Ethernet3"])
dpb.breakin(dvs, ["Ethernet12", "Ethernet13", "Ethernet14", "Ethernet15"])
dpb.breakin(dvs, ["Ethernet64", "Ethernet65", "Ethernet66", "Ethernet67"])
Expand All @@ -100,5 +101,5 @@ def test_port_breakout_all(self, dvs):

for i in range(32):
start = i*maxBreakOut
end = start+maxBreakout
end = start+maxBreakOut
dpb.breakin(dvs, child_port_names[start:end])

0 comments on commit 9a3d6c1

Please sign in to comment.