Skip to content

Commit

Permalink
Added testcase for OS update
Browse files Browse the repository at this point in the history
There instances where RHEL VMs are hanging after "yum update".

This testcase will check if the VM is accessible after "OS update"
  • Loading branch information
SRIKKANTH authored and LiliDeng committed Oct 22, 2024
1 parent 9eb8db5 commit b80e5bc
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions microsoft/testsuites/core/azure_image_standard.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b80e5bc

Please sign in to comment.