-
Notifications
You must be signed in to change notification settings - Fork 218
kdump: Replace CvmDisabled with before_case SecurityProfile check #4032
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
5eea5a9
to
ebbf6ea
Compare
if isinstance(node.os, BSD) or isinstance(node.os, Windows): | ||
raise SkippedException(f"{node.os} is not supported.") | ||
# Skip kdump tests on CVMs (Confidential VMs) as they are not supported | ||
if node.features.is_supported(SecurityProfile): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should it be if not node.features.is_supported(SecurityProfile):
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
node.features.is_supported(SecurityProfile) returns True only when the VM has SecurityProfile features (i.e., it's a CVM/SecureBoot VM), and returns False for regular Standard VMs where SecurityProfile is not present/applicable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See the if block, the test case should be skipped, if SecurityProfile is not support, instead of SecurityProfile supported, and then skip.
# Skip kdump tests on CVMs (Confidential VMs) as they are not supported | ||
if node.features.is_supported(SecurityProfile): | ||
raise SkippedException( | ||
"Kdump is not supported on Confidential VMs (CVMs). " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mention about the platform doesn't support security profile.
@kamalca , please help check if the latest change still support your scenarios. |
f9c6ae9
to
6f95c63
Compare
No description provided.