diff --git a/microsoft/testsuites/core/azure_image_standard.py b/microsoft/testsuites/core/azure_image_standard.py index c3cec1c1c8..d7c7976d19 100644 --- a/microsoft/testsuites/core/azure_image_standard.py +++ b/microsoft/testsuites/core/azure_image_standard.py @@ -518,6 +518,24 @@ def verify_yum_conf(self, node: Node) -> None: else: raise SkippedException(f"Unsupported distro type : {type(node.os)}") + @TestCaseMetadata( + description=""" + Verify if there is any issues in and after 'os update' + + Steps: + 1. Run os update command. + 2. Reboot the VM and see if the VM is still in good state. + """, + priority=2, + requirement=simple_requirement(supported_platform_type=[AZURE, READY]), + ) + def verify_os_update(self, node: Node) -> None: + if isinstance(node.os, Posix): + node.os.update_packages("") + else: + raise SkippedException(f"Unsupported OS or distro type : {type(node.os)}") + node.reboot() + @TestCaseMetadata( description=""" This test will check that kvp daemon is installed. This is an optional