зеркало из https://github.com/microsoft/lisa.git
Added testcase for OS update
There instances where RHEL VMs are hanging after "yum update". This testcase will check if the VM is accessible after "OS update"
This commit is contained in:
Родитель
9eb8db5dde
Коммит
b80e5bcfc6
|
@ -518,6 +518,24 @@ class AzureImageStandard(TestSuite):
|
|||
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче