mstp-k #3701
mstp-k #3701
Build #20250205.18 had test failures
Details
- Failed: 18 (0.53%)
- Passed: 3,349 (99.38%)
- Other: 3 (0.09%)
- Total: 3,370
Annotations
Check failure on line 8136 in Build log
azure-pipelines / Azure.sonic-utilities
Build log #L8136
Bash exited with code '1'.
Check failure on line 22 in Build log
azure-pipelines / Azure.sonic-utilities
Build log #L22
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 1 in test_stp_validate_mst_commands[command2-args2-0-None]
azure-pipelines / Azure.sonic-utilities
test_stp_validate_mst_commands[command2-args2-0-None]
assert 2 == 0
+ where 2 = <Result SystemExit(2)>.exit_code
Raw output
self = <tests.stp_test.TestStp object at 0x7fd0993c90d0>
runner = <click.testing.CliRunner object at 0x7fd0844e1a90>
db = <utilities_common.db.Db object at 0x7fd099590b10>
command = <click.core.Command object at 0x7fd0aaf728d0>, args = ['mst']
expected_exit_code = 0, expected_output = None
@pytest.mark.parametrize("command, args, expected_exit_code, expected_output", [
# Disable PVST
(config.config.commands["spanning-tree"].commands["disable"], ["pvst"], 0, None),
# Enable PVST
(config.config.commands["spanning-tree"].commands["enable"], ["pvst"], 0, None),
# Disable MST
(config.config.commands["spanning-tree"].commands["disable"], ["mst"], 0, None),
# Enable MST
(config.config.commands["spanning-tree"].commands["enable"], ["mst"], 0, None),
# Configure MST region
(config.config.commands["spanning-tree"].commands["mst"].commands["region-name"], ["TestRegion"], 0, None),
# Configure MST revision
(config.config.commands["spanning-tree"].commands["mst"].commands["revision"], ["10"], 0, None),
# Configure MST instance priority
# (
# config.config.commands["spanning-tree"]
# .commands["mst"]
# .commands["instance"]
# .commands["1"]
# .commands["priority"],
# ["4096"],
# 0,
# None,
# ),
# Add and remove VLAN in MST instance
# (
# config.config.commands["spanning-tree"]
# .commands["mst"]
# .commands["instance"]
# .commands["1"]
# .commands["vlan"]
# .commands["add"],
# ["500"],
# 0,
# None,
# ),
# (
# config.config.commands["spanning-tree"]
# .commands["mst"]
# .commands["instance"]
# .commands["1"]
# .commands["vlan"]
# .commands["del"],
# ["500"],
# 0,
# None,
# ),
])
def test_stp_validate_mst_commands(self, runner, db, command, args, expected_exit_code, expected_output):
result = runner.invoke(command, args, obj=db)
print(result.exit_code)
print(result.output)
if result.exit_code != expected_exit_code:
print(f"Command: {command}")
print(f"Arguments: {args}")
print(f"Expected exit code: {expected_exit_code}, but got: {result.exit_code}")
> assert result.exit_code == expected_exit_code
E assert 2 == 0
E + where 2 = <Result SystemExit(2)>.exit_code
tests/stp_test.py:198: AssertionError
Check failure on line 1 in test_stp_validate_mst_commands[command3-args3-0-None]
azure-pipelines / Azure.sonic-utilities
test_stp_validate_mst_commands[command3-args3-0-None]
assert 2 == 0
+ where 2 = <Result SystemExit(2)>.exit_code
Raw output
self = <tests.stp_test.TestStp object at 0x7fd0993c92d0>
runner = <click.testing.CliRunner object at 0x7fd0844e1a90>
db = <utilities_common.db.Db object at 0x7fd099590b10>
command = <click.core.Command object at 0x7fd0aaf71c90>, args = ['mst']
expected_exit_code = 0, expected_output = None
@pytest.mark.parametrize("command, args, expected_exit_code, expected_output", [
# Disable PVST
(config.config.commands["spanning-tree"].commands["disable"], ["pvst"], 0, None),
# Enable PVST
(config.config.commands["spanning-tree"].commands["enable"], ["pvst"], 0, None),
# Disable MST
(config.config.commands["spanning-tree"].commands["disable"], ["mst"], 0, None),
# Enable MST
(config.config.commands["spanning-tree"].commands["enable"], ["mst"], 0, None),
# Configure MST region
(config.config.commands["spanning-tree"].commands["mst"].commands["region-name"], ["TestRegion"], 0, None),
# Configure MST revision
(config.config.commands["spanning-tree"].commands["mst"].commands["revision"], ["10"], 0, None),
# Configure MST instance priority
# (
# config.config.commands["spanning-tree"]
# .commands["mst"]
# .commands["instance"]
# .commands["1"]
# .commands["priority"],
# ["4096"],
# 0,
# None,
# ),
# Add and remove VLAN in MST instance
# (
# config.config.commands["spanning-tree"]
# .commands["mst"]
# .commands["instance"]
# .commands["1"]
# .commands["vlan"]
# .commands["add"],
# ["500"],
# 0,
# None,
# ),
# (
# config.config.commands["spanning-tree"]
# .commands["mst"]
# .commands["instance"]
# .commands["1"]
# .commands["vlan"]
# .commands["del"],
# ["500"],
# 0,
# None,
# ),
])
def test_stp_validate_mst_commands(self, runner, db, command, args, expected_exit_code, expected_output):
result = runner.invoke(command, args, obj=db)
print(result.exit_code)
print(result.output)
if result.exit_code != expected_exit_code:
print(f"Command: {command}")
print(f"Arguments: {args}")
print(f"Expected exit code: {expected_exit_code}, but got: {result.exit_code}")
> assert result.exit_code == expected_exit_code
E assert 2 == 0
E + where 2 = <Result SystemExit(2)>.exit_code
tests/stp_test.py:198: AssertionError
Check failure on line 1 in test_stp_validate_mst_commands[command4-args4-0-None]
azure-pipelines / Azure.sonic-utilities
test_stp_validate_mst_commands[command4-args4-0-None]
assert 2 == 0
+ where 2 = <Result SystemExit(2)>.exit_code
Raw output
self = <tests.stp_test.TestStp object at 0x7fd0993c9ad0>
runner = <click.testing.CliRunner object at 0x7fd0844e1a90>
db = <utilities_common.db.Db object at 0x7fd099590b10>
command = <click.core.Command object at 0x7fd0aaf73290>, args = ['TestRegion']
expected_exit_code = 0, expected_output = None
@pytest.mark.parametrize("command, args, expected_exit_code, expected_output", [
# Disable PVST
(config.config.commands["spanning-tree"].commands["disable"], ["pvst"], 0, None),
# Enable PVST
(config.config.commands["spanning-tree"].commands["enable"], ["pvst"], 0, None),
# Disable MST
(config.config.commands["spanning-tree"].commands["disable"], ["mst"], 0, None),
# Enable MST
(config.config.commands["spanning-tree"].commands["enable"], ["mst"], 0, None),
# Configure MST region
(config.config.commands["spanning-tree"].commands["mst"].commands["region-name"], ["TestRegion"], 0, None),
# Configure MST revision
(config.config.commands["spanning-tree"].commands["mst"].commands["revision"], ["10"], 0, None),
# Configure MST instance priority
# (
# config.config.commands["spanning-tree"]
# .commands["mst"]
# .commands["instance"]
# .commands["1"]
# .commands["priority"],
# ["4096"],
# 0,
# None,
# ),
# Add and remove VLAN in MST instance
# (
# config.config.commands["spanning-tree"]
# .commands["mst"]
# .commands["instance"]
# .commands["1"]
# .commands["vlan"]
# .commands["add"],
# ["500"],
# 0,
# None,
# ),
# (
# config.config.commands["spanning-tree"]
# .commands["mst"]
# .commands["instance"]
# .commands["1"]
# .commands["vlan"]
# .commands["del"],
# ["500"],
# 0,
# None,
# ),
])
def test_stp_validate_mst_commands(self, runner, db, command, args, expected_exit_code, expected_output):
result = runner.invoke(command, args, obj=db)
print(result.exit_code)
print(result.output)
if result.exit_code != expected_exit_code:
print(f"Command: {command}")
print(f"Arguments: {args}")
print(f"Expected exit code: {expected_exit_code}, but got: {result.exit_code}")
> assert result.exit_code == expected_exit_code
E assert 2 == 0
E + where 2 = <Result SystemExit(2)>.exit_code
tests/stp_test.py:198: AssertionError
Check failure on line 1 in test_stp_validate_mst_commands[command5-args5-0-None]
azure-pipelines / Azure.sonic-utilities
test_stp_validate_mst_commands[command5-args5-0-None]
assert 2 == 0
+ where 2 = <Result SystemExit(2)>.exit_code
Raw output
self = <tests.stp_test.TestStp object at 0x7fd0993ca190>
runner = <click.testing.CliRunner object at 0x7fd0844e1a90>
db = <utilities_common.db.Db object at 0x7fd099590b10>
command = <click.core.Command object at 0x7fd0aaf73250>, args = ['10']
expected_exit_code = 0, expected_output = None
@pytest.mark.parametrize("command, args, expected_exit_code, expected_output", [
# Disable PVST
(config.config.commands["spanning-tree"].commands["disable"], ["pvst"], 0, None),
# Enable PVST
(config.config.commands["spanning-tree"].commands["enable"], ["pvst"], 0, None),
# Disable MST
(config.config.commands["spanning-tree"].commands["disable"], ["mst"], 0, None),
# Enable MST
(config.config.commands["spanning-tree"].commands["enable"], ["mst"], 0, None),
# Configure MST region
(config.config.commands["spanning-tree"].commands["mst"].commands["region-name"], ["TestRegion"], 0, None),
# Configure MST revision
(config.config.commands["spanning-tree"].commands["mst"].commands["revision"], ["10"], 0, None),
# Configure MST instance priority
# (
# config.config.commands["spanning-tree"]
# .commands["mst"]
# .commands["instance"]
# .commands["1"]
# .commands["priority"],
# ["4096"],
# 0,
# None,
# ),
# Add and remove VLAN in MST instance
# (
# config.config.commands["spanning-tree"]
# .commands["mst"]
# .commands["instance"]
# .commands["1"]
# .commands["vlan"]
# .commands["add"],
# ["500"],
# 0,
# None,
# ),
# (
# config.config.commands["spanning-tree"]
# .commands["mst"]
# .commands["instance"]
# .commands["1"]
# .commands["vlan"]
# .commands["del"],
# ["500"],
# 0,
# None,
# ),
])
def test_stp_validate_mst_commands(self, runner, db, command, args, expected_exit_code, expected_output):
result = runner.invoke(command, args, obj=db)
print(result.exit_code)
print(result.output)
if result.exit_code != expected_exit_code:
print(f"Command: {command}")
print(f"Arguments: {args}")
print(f"Expected exit code: {expected_exit_code}, but got: {result.exit_code}")
> assert result.exit_code == expected_exit_code
E assert 2 == 0
E + where 2 = <Result SystemExit(2)>.exit_code
tests/stp_test.py:198: AssertionError