Skip to content

Commit

Permalink
fix(anta.tests): Add quotes around version name in VerifyEOSVersion (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
titom73 authored Nov 21, 2023
1 parent 83765fe commit b4162e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion anta/tests/software.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def test(self) -> None:
if command_output["version"] in self.inputs.versions:
self.result.is_success()
else:
self.result.is_failure(f'device is running version {command_output["version"]} not in expected versions: {self.inputs.versions}')
self.result.is_failure(f'device is running version "{command_output["version"]}" not in expected versions: {self.inputs.versions}')


class VerifyTerminAttrVersion(AntaTest):
Expand Down
2 changes: 1 addition & 1 deletion tests/units/anta_tests/test_software.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
}
],
"inputs": {"versions": ["4.27.1F"]},
"expected": {"result": "failure", "messages": ["device is running version 4.27.0F not in expected versions: ['4.27.1F']"]},
"expected": {"result": "failure", "messages": ["device is running version \"4.27.0F\" not in expected versions: ['4.27.1F']"]},
},
{
"name": "success",
Expand Down

0 comments on commit b4162e2

Please sign in to comment.