Skip to content

Commit

Permalink
Update azure_image_standard.py
Browse files Browse the repository at this point in the history
Added testcase for yum update
  • Loading branch information
SRIKKANTH committed Sep 6, 2024
1 parent f7dd63a commit 76a1f2e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 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,28 @@ 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 'yum update'
Steps:
1. Run 'yum update -y' command.
2. Get the output of dmesg to see if the VM is still in good state.
""",
priority=2,
requirement=simple_requirement(supported_platform_type=[AZURE, READY]),
)
def verify_yum_update(self, node: Node) -> None:
dmesg = node.tools[Dmesg]
if isinstance(node.os, Fedora):
node.execute(
"yum update -y",
sudo=True,
)
dmesg.get_output(force_run=True)
else:
raise SkippedException(f"Unsupported distro type : {type(node.os)}")

@TestCaseMetadata(
description="""
This test will check that kvp daemon is installed. This is an optional
Expand Down

0 comments on commit 76a1f2e

Please sign in to comment.