summaryrefslogtreecommitdiffstats
path: root/tests/units/anta_tests/test_ptp.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-23 05:06:46 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-23 05:06:46 +0000
commit92240acb5cc600eec60624ece9ed4b9ec43b386f (patch)
tree13328d0de4f37030731a96e25749563742fce0cb /tests/units/anta_tests/test_ptp.py
parentAdding upstream version 0.14.0. (diff)
downloadanta-92240acb5cc600eec60624ece9ed4b9ec43b386f.tar.xz
anta-92240acb5cc600eec60624ece9ed4b9ec43b386f.zip
Adding upstream version 0.15.0.upstream/0.15.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/units/anta_tests/test_ptp.py')
-rw-r--r--tests/units/anta_tests/test_ptp.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/units/anta_tests/test_ptp.py b/tests/units/anta_tests/test_ptp.py
index ef42a58..8f4c77f 100644
--- a/tests/units/anta_tests/test_ptp.py
+++ b/tests/units/anta_tests/test_ptp.py
@@ -42,11 +42,11 @@ DATA: list[dict[str, Any]] = [
"expected": {"result": "failure", "messages": ["The device is not configured as a PTP Boundary Clock: 'ptpDisabled'"]},
},
{
- "name": "error",
+ "name": "skipped",
"test": VerifyPtpModeStatus,
"eos_data": [{"ptpIntfSummaries": {}}],
"inputs": None,
- "expected": {"result": "error", "messages": ["'ptpMode' variable is not present in the command output"]},
+ "expected": {"result": "skipped", "messages": ["PTP is not configured"]},
},
{
"name": "success",
@@ -104,11 +104,11 @@ DATA: list[dict[str, Any]] = [
},
},
{
- "name": "error",
+ "name": "skipped",
"test": VerifyPtpGMStatus,
"eos_data": [{"ptpIntfSummaries": {}}],
"inputs": {"gmid": "0xec:46:70:ff:fe:00:ff:a8"},
- "expected": {"result": "error", "messages": ["'ptpClockSummary' variable is not present in the command output"]},
+ "expected": {"result": "skipped", "messages": ["PTP is not configured"]},
},
{
"name": "success",
@@ -161,14 +161,14 @@ DATA: list[dict[str, Any]] = [
"expected": {"result": "failure", "messages": ["The device lock is more than 60s old: 157s"]},
},
{
- "name": "error",
+ "name": "skipped",
"test": VerifyPtpLockStatus,
"eos_data": [{"ptpIntfSummaries": {}}],
"inputs": None,
"expected": {
- "result": "error",
+ "result": "skipped",
"messages": [
- "'ptpClockSummary' variable is not present in the command output",
+ "PTP is not configured",
],
},
},