From 1a16cdf56551f9fae65ad0f0c7e44c6f99b073a1 Mon Sep 17 00:00:00 2001 From: Mahesh Kumar <122076792+MaheshGSLAB@users.noreply.github.com> Date: Thu, 21 Mar 2024 18:56:03 +0530 Subject: [PATCH] fix(anta.tests): Added 'cEOSCloudLab' in skip decorator (#595) --- anta/tests/field_notices.py | 4 ++-- anta/tests/hardware.py | 14 +++++++------- anta/tests/lanz.py | 2 +- anta/tests/profiles.py | 4 ++-- anta/tests/ptp.py | 10 +++++----- 5 files changed, 17 insertions(+), 17 deletions(-) diff --git a/anta/tests/field_notices.py b/anta/tests/field_notices.py index db8a8bfa6..e2c2d6b2d 100644 --- a/anta/tests/field_notices.py +++ b/anta/tests/field_notices.py @@ -39,7 +39,7 @@ class VerifyFieldNotice44Resolution(AntaTest): categories: ClassVar[list[str]] = ["field notices"] commands: ClassVar[list[AntaCommand | AntaTemplate]] = [AntaCommand(command="show version detail")] - @skip_on_platforms(["cEOSLab", "vEOS-lab"]) + @skip_on_platforms(["cEOSLab", "vEOS-lab", "cEOSCloudLab"]) @AntaTest.anta_test def test(self) -> None: """Main test function for VerifyFieldNotice44Resolution.""" @@ -143,7 +143,7 @@ class VerifyFieldNotice72Resolution(AntaTest): categories: ClassVar[list[str]] = ["field notices"] commands: ClassVar[list[AntaCommand | AntaTemplate]] = [AntaCommand(command="show version detail")] - @skip_on_platforms(["cEOSLab", "vEOS-lab"]) + @skip_on_platforms(["cEOSLab", "vEOS-lab", "cEOSCloudLab"]) @AntaTest.anta_test def test(self) -> None: """Main test function for VerifyFieldNotice72Resolution.""" diff --git a/anta/tests/hardware.py b/anta/tests/hardware.py index cac13c86a..86060a715 100644 --- a/anta/tests/hardware.py +++ b/anta/tests/hardware.py @@ -47,7 +47,7 @@ class Input(AntaTest.Input): manufacturers: list[str] """List of approved transceivers manufacturers.""" - @skip_on_platforms(["cEOSLab", "vEOS-lab"]) + @skip_on_platforms(["cEOSLab", "vEOS-lab", "cEOSCloudLab"]) @AntaTest.anta_test def test(self) -> None: """Main test function for VerifyTransceiversManufacturers.""" @@ -82,7 +82,7 @@ class VerifyTemperature(AntaTest): categories: ClassVar[list[str]] = ["hardware"] commands: ClassVar[list[AntaCommand | AntaTemplate]] = [AntaCommand(command="show system environment temperature", ofmt="json")] - @skip_on_platforms(["cEOSLab", "vEOS-lab"]) + @skip_on_platforms(["cEOSLab", "vEOS-lab", "cEOSCloudLab"]) @AntaTest.anta_test def test(self) -> None: """Main test function for VerifyTemperature.""" @@ -115,7 +115,7 @@ class VerifyTransceiversTemperature(AntaTest): categories: ClassVar[list[str]] = ["hardware"] commands: ClassVar[list[AntaCommand | AntaTemplate]] = [AntaCommand(command="show system environment temperature transceiver", ofmt="json")] - @skip_on_platforms(["cEOSLab", "vEOS-lab"]) + @skip_on_platforms(["cEOSLab", "vEOS-lab", "cEOSCloudLab"]) @AntaTest.anta_test def test(self) -> None: """Main test function for VerifyTransceiversTemperature.""" @@ -156,7 +156,7 @@ class VerifyEnvironmentSystemCooling(AntaTest): categories: ClassVar[list[str]] = ["hardware"] commands: ClassVar[list[AntaCommand | AntaTemplate]] = [AntaCommand(command="show system environment cooling", ofmt="json")] - @skip_on_platforms(["cEOSLab", "vEOS-lab"]) + @skip_on_platforms(["cEOSLab", "vEOS-lab", "cEOSCloudLab"]) @AntaTest.anta_test def test(self) -> None: """Main test function for VerifyEnvironmentSystemCooling.""" @@ -196,7 +196,7 @@ class Input(AntaTest.Input): states: list[str] """List of accepted states of fan status.""" - @skip_on_platforms(["cEOSLab", "vEOS-lab"]) + @skip_on_platforms(["cEOSLab", "vEOS-lab", "cEOSCloudLab"]) @AntaTest.anta_test def test(self) -> None: """Main test function for VerifyEnvironmentCooling.""" @@ -243,7 +243,7 @@ class Input(AntaTest.Input): states: list[str] """List of accepted states list of power supplies status.""" - @skip_on_platforms(["cEOSLab", "vEOS-lab"]) + @skip_on_platforms(["cEOSLab", "vEOS-lab", "cEOSCloudLab"]) @AntaTest.anta_test def test(self) -> None: """Main test function for VerifyEnvironmentPower.""" @@ -279,7 +279,7 @@ class VerifyAdverseDrops(AntaTest): categories: ClassVar[list[str]] = ["hardware"] commands: ClassVar[list[AntaCommand | AntaTemplate]] = [AntaCommand(command="show hardware counter drop", ofmt="json")] - @skip_on_platforms(["cEOSLab", "vEOS-lab"]) + @skip_on_platforms(["cEOSLab", "vEOS-lab", "cEOSCloudLab"]) @AntaTest.anta_test def test(self) -> None: """Main test function for VerifyAdverseDrops.""" diff --git a/anta/tests/lanz.py b/anta/tests/lanz.py index 8632acdd1..0c153f61f 100644 --- a/anta/tests/lanz.py +++ b/anta/tests/lanz.py @@ -35,7 +35,7 @@ class VerifyLANZ(AntaTest): categories: ClassVar[list[str]] = ["lanz"] commands: ClassVar[list[AntaCommand | AntaTemplate]] = [AntaCommand(command="show queue-monitor length status")] - @skip_on_platforms(["cEOSLab", "vEOS-lab"]) + @skip_on_platforms(["cEOSLab", "vEOS-lab", "cEOSCloudLab"]) @AntaTest.anta_test def test(self) -> None: """Main test function for VerifyLANZ.""" diff --git a/anta/tests/profiles.py b/anta/tests/profiles.py index 54fc0b7aa..d6b2ad0f9 100644 --- a/anta/tests/profiles.py +++ b/anta/tests/profiles.py @@ -44,7 +44,7 @@ class Input(AntaTest.Input): mode: Literal[0, 1, 2, 3, 4, "flexible"] """Expected UFT mode. Valid values are 0, 1, 2, 3, 4, or "flexible".""" - @skip_on_platforms(["cEOSLab", "vEOS-lab"]) + @skip_on_platforms(["cEOSLab", "vEOS-lab", "cEOSCloudLab"]) @AntaTest.anta_test def test(self) -> None: """Main test function for VerifyUnifiedForwardingTableMode.""" @@ -83,7 +83,7 @@ class Input(AntaTest.Input): profile: str """Expected TCAM profile.""" - @skip_on_platforms(["cEOSLab", "vEOS-lab"]) + @skip_on_platforms(["cEOSLab", "vEOS-lab", "cEOSCloudLab"]) @AntaTest.anta_test def test(self) -> None: """Main test function for VerifyTcamProfile.""" diff --git a/anta/tests/ptp.py b/anta/tests/ptp.py index 4c2c99091..1b6f2a35a 100644 --- a/anta/tests/ptp.py +++ b/anta/tests/ptp.py @@ -38,7 +38,7 @@ class VerifyPtpModeStatus(AntaTest): categories: ClassVar[list[str]] = ["ptp"] commands: ClassVar[list[AntaCommand | AntaTemplate]] = [AntaCommand(command="show ptp", ofmt="json")] - @skip_on_platforms(["cEOSLab", "vEOS-lab"]) + @skip_on_platforms(["cEOSLab", "vEOS-lab", "cEOSCloudLab"]) @AntaTest.anta_test def test(self) -> None: """Main test function for VerifyPtpModeStatus.""" @@ -85,7 +85,7 @@ class Input(AntaTest.Input): categories: ClassVar[list[str]] = ["ptp"] commands: ClassVar[list[AntaCommand | AntaTemplate]] = [AntaCommand(command="show ptp", ofmt="json")] - @skip_on_platforms(["cEOSLab", "vEOS-lab"]) + @skip_on_platforms(["cEOSLab", "vEOS-lab", "cEOSCloudLab"]) @AntaTest.anta_test def test(self) -> None: """Main test function for VerifyPtpGMStatus.""" @@ -125,7 +125,7 @@ class VerifyPtpLockStatus(AntaTest): categories: ClassVar[list[str]] = ["ptp"] commands: ClassVar[list[AntaCommand | AntaTemplate]] = [AntaCommand(command="show ptp", ofmt="json")] - @skip_on_platforms(["cEOSLab", "vEOS-lab"]) + @skip_on_platforms(["cEOSLab", "vEOS-lab", "cEOSCloudLab"]) @AntaTest.anta_test def test(self) -> None: """Main test function for VerifyPtpLockStatus.""" @@ -166,7 +166,7 @@ class VerifyPtpOffset(AntaTest): categories: ClassVar[list[str]] = ["ptp"] commands: ClassVar[list[AntaCommand | AntaTemplate]] = [AntaCommand(command="show ptp monitor", ofmt="json")] - @skip_on_platforms(["cEOSLab", "vEOS-lab"]) + @skip_on_platforms(["cEOSLab", "vEOS-lab", "cEOSCloudLab"]) @AntaTest.anta_test def test(self) -> None: """Main test function for VerifyPtpOffset.""" @@ -211,7 +211,7 @@ class VerifyPtpPortModeStatus(AntaTest): categories: ClassVar[list[str]] = ["ptp"] commands: ClassVar[list[AntaCommand | AntaTemplate]] = [AntaCommand(command="show ptp", ofmt="json")] - @skip_on_platforms(["cEOSLab", "vEOS-lab"]) + @skip_on_platforms(["cEOSLab", "vEOS-lab", "cEOSCloudLab"]) @AntaTest.anta_test def test(self) -> None: """Main test function for VerifyPtpPortModeStatus."""