Skip to content

Commit f8a4efa

Browse files
fix sanity tests
1 parent 1d90cbf commit f8a4efa

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

tests/vnet_input/config_db.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@
1010
},
1111
"VLAN_INTERFACE|Vlan100": {
1212
"vnet_name": "Vnet_2000"
13+
},
14+
"INTERFACE|Ethernet4": {
15+
"vnet_name": "Vnet_2000"
1316
}
1417
}

tests/vxlan_test.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ def test_show_vnet_name(self):
438438
assert result.exit_code == 0
439439
assert "Vnet_2000" in result.output
440440
assert "1234-56-7890-1234" in result.output
441-
# assert "Ethernet4" in result.output
441+
assert "Ethernet4" in result.output
442442
assert "Vlan100" in result.output
443443

444444
def test_show_vnet_guid(self):
@@ -453,10 +453,12 @@ def test_show_vnet_guid(self):
453453
assert "Vnet_2000" in result.output
454454
assert "1234-56-7890-1234" in result.output
455455
assert "tunnel1" in result.output
456-
# assert "Ethernet4" in result.output
456+
assert "Ethernet4" in result.output
457457
assert "Vlan100" in result.output
458458

459459
@classmethod
460460
def teardown_class(cls):
461461
os.environ['UTILITIES_UNIT_TESTING'] = "0"
462462
print("TEARDOWN")
463+
from .mock_tables import dbconnector
464+
dbconnector.dedicated_dbs = {}

0 commit comments

Comments
 (0)