Skip to content

Commit

Permalink
Update azure_image_standard.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SRIKKANTH committed Sep 6, 2024
1 parent f7dd63a commit 7190741
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 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,27 @@ def verify_yum_conf(self, node: Node) -> None:
else:
raise SkippedException(f"Unsupported distro type : {type(node.os)}")

@TestCaseMetadata(
description="""
This test will verify content of `yum.conf` file on Fedora based distros
for version < 6.6.0
Steps:
1. Read the `yum.conf` file and verify that "http_caching=packages" is
present in the file.
""",
priority=2,
requirement=simple_requirement(supported_platform_type=[AZURE, READY]),
)
def verify_yum_update(self, node: Node) -> None:
if isinstance(node.os, Fedora):
node.execute(
"yum-update -y",
sudo=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 7190741

Please sign in to comment.