Merge "Update UEFI check when secure is not present"

This commit is contained in:
Zuul 2022-12-14 12:52:05 +00:00 committed by Gerrit Code Review
commit 37f8dd83e6
1 changed files with 5 additions and 3 deletions

View File

@ -52,11 +52,13 @@ class TestUEFIBoot(base.BaseWhiteboxComputeTest):
'Readonly attribute is not yes for loader element')
# Confirm secure boot is properly set based on the secure_boot
# parameter
# parameter, for RHEL8 the 'no' flag is not present when secure boot
# is not enabled so add a default 'no' response when checking for the
# secure parameter
secure_boot_check = 'yes' if secure_boot else 'no'
self.assertEqual(
secure_boot_check, loader.get('secure'), 'Secure boot should be '
'set to %s but instead it is %s ' %
secure_boot_check, loader.get('secure', 'no'), 'Secure boot '
'should be set to %s but instead it is %s ' %
(secure_boot_check, loader.get('secure')))
# Confirm NVRAM element is present within os element of the guest