Switchport Mode Modifications #3309
Build #20240508.4 had test failures
Details
- Failed: 2 (0.07%)
- Passed: 2,851 (99.82%)
- Other: 3 (0.11%)
- Total: 2,856
Annotations
Check failure on line 41 in Build log
azure-pipelines / Azure.sonic-utilities
Build log #L41
Bash exited with code '1'.
Check failure on line 20 in Build log
azure-pipelines / Azure.sonic-utilities
Build log #L20
There are one or more test failures detected in result files. Detailed summary of published test results can be viewed in the Tests tab.
Check failure on line 3571 in Build log
azure-pipelines / Azure.sonic-utilities
Build log #L3571
Bash exited with code '1'.
Check failure on line 1 in test_config_vlan_add_member_yang_validation
azure-pipelines / Azure.sonic-utilities
test_config_vlan_add_member_yang_validation
assert 'Invalid ConfigDB. Error' in 'Usage: add [OPTIONS] <vid> port\nTry "add --help" for help.\n\nError: Ethernet1 does not exist\n' + where 'Usage: add [OPTIONS] <vid> port\nTry "add --help" for help.\n\nError: Ethernet1 does not exist\n' = <Result SystemExit(2)>.output
Raw output
self = <tests.vlan_test.TestVlan object at 0x7eff67997280>
@patch("validated_config_db_connector.device_info.is_yang_config_validation_enabled",
mock.Mock(return_value=True))
@patch("config.validated_config_db_connector.ValidatedConfigDBConnector.validated_set_entry",
mock.Mock(side_effect=JsonPatchConflict))
def test_config_vlan_add_member_yang_validation(self):
vlan.ADHOC_VALIDATION = True
runner = CliRunner()
db = Db()
obj = {'config_db':db.cfgdb}
result = runner.invoke(config.config.commands["vlan"].commands["member"].commands["add"],
["1000", "Ethernet1"], obj=obj)
print(result.exit_code)
> assert "Invalid ConfigDB. Error" in result.output
E assert 'Invalid ConfigDB. Error' in 'Usage: add [OPTIONS] <vid> port\nTry "add --help" for help.\n\nError: Ethernet1 does not exist\n'
E + where 'Usage: add [OPTIONS] <vid> port\nTry "add --help" for help.\n\nError: Ethernet1 does not exist\n' = <Result SystemExit(2)>.output
tests/vlan_test.py:839: AssertionError
Check failure on line 1 in test_config_vlan_del_member_yang_validation
azure-pipelines / Azure.sonic-utilities
test_config_vlan_del_member_yang_validation
assert 'Invalid ConfigDB. Error' in 'Usage: del [OPTIONS] <vid> <port>\nTry "del --help" for help.\n\nError: Invalid VLAN ID 4096 (1-4094)\n' + where 'Usage: del [OPTIONS] <vid> <port>\nTry "del --help" for help.\n\nError: Invalid VLAN ID 4096 (1-4094)\n' = <Result SystemExit(2)>.output
Raw output
self = <tests.vlan_test.TestVlan object at 0x7eff6a7b56a0>
@patch("config.main.ConfigDBConnector.get_entry", mock.Mock(return_value="Vlan Data"))
@patch("validated_config_db_connector.device_info.is_yang_config_validation_enabled", mock.Mock(return_value=True))
@patch("config.validated_config_db_connector.ValidatedConfigDBConnector.validated_set_entry", mock.Mock(side_effect=ValueError))
def test_config_vlan_del_member_yang_validation(self):
vlan.ADHOC_VALIDATION = True
runner = CliRunner()
db = Db()
obj = {'config_db':db.cfgdb}
result = runner.invoke(config.config.commands["vlan"].commands["member"].commands["del"],
["4096", "Ethernet1"], obj=obj)
print(result.exit_code)
> assert "Invalid ConfigDB. Error" in result.output
E assert 'Invalid ConfigDB. Error' in 'Usage: del [OPTIONS] <vid> <port>\nTry "del --help" for help.\n\nError: Invalid VLAN ID 4096 (1-4094)\n'
E + where 'Usage: del [OPTIONS] <vid> <port>\nTry "del --help" for help.\n\nError: Invalid VLAN ID 4096 (1-4094)\n' = <Result SystemExit(2)>.output
tests/vlan_test.py:852: AssertionError