From 2a59861eb5b905db381521fec0fa608ecef95980 Mon Sep 17 00:00:00 2001 From: Benjamin Reis Date: Mon, 2 Dec 2024 10:33:21 +0100 Subject: [PATCH] Do not import private method Signed-off-by: Benjamin Reis --- tests/uefi_sb/test_uefistored_sb.py | 4 ++-- tests/uefi_sb/test_varstored_sb.py | 4 ++-- tests/uefi_sb/utils.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/uefi_sb/test_uefistored_sb.py b/tests/uefi_sb/test_uefistored_sb.py index f3791dfc5..459d14370 100644 --- a/tests/uefi_sb/test_uefistored_sb.py +++ b/tests/uefi_sb/test_uefistored_sb.py @@ -4,7 +4,7 @@ from lib.commands import SSHCommandFailed from lib.common import wait_for -from .utils import _test_key_exchanges, boot_and_check_no_sb_errors, boot_and_check_sb_failed, \ +from .utils import test_key_exchanges, boot_and_check_no_sb_errors, boot_and_check_sb_failed, \ boot_and_check_sb_succeeded, generate_keys, revert_vm_state, sign_efi_bins, VM_SECURE_BOOT_FAILED # These tests check the behaviour of XAPI and uefistored as they are in XCP-ng 8.2 @@ -216,4 +216,4 @@ def setup_and_cleanup(self, uefi_vm_and_snapshot): def test_key_exchanges(self, uefi_vm): vm = uefi_vm - _test_key_exchanges(vm) + test_key_exchanges(vm) diff --git a/tests/uefi_sb/test_varstored_sb.py b/tests/uefi_sb/test_varstored_sb.py index 75ef7563c..406f9e162 100644 --- a/tests/uefi_sb/test_varstored_sb.py +++ b/tests/uefi_sb/test_varstored_sb.py @@ -1,7 +1,7 @@ import logging import pytest -from .utils import _test_key_exchanges, boot_and_check_no_sb_errors, boot_and_check_sb_failed, \ +from .utils import test_key_exchanges, boot_and_check_no_sb_errors, boot_and_check_sb_failed, \ boot_and_check_sb_succeeded, generate_keys, revert_vm_state, sign_efi_bins # These tests check the behaviour of XAPI and varstored as they are in XCP-ng 8.3 @@ -152,4 +152,4 @@ def test_key_exchanges(self, uefi_vm): vm = uefi_vm vm.set_uefi_setup_mode() - _test_key_exchanges(vm) + test_key_exchanges(vm) diff --git a/tests/uefi_sb/utils.py b/tests/uefi_sb/utils.py index d9a737729..c8d890793 100644 --- a/tests/uefi_sb/utils.py +++ b/tests/uefi_sb/utils.py @@ -84,7 +84,7 @@ def sign_efi_bins(vm, db): if shutdown: vm.shutdown(verify=True) -def _test_key_exchanges(vm): +def test_key_exchanges(vm): PK = EFIAuth('PK') null_PK = EFIAuth('PK', is_null=True) new_PK = EFIAuth('PK')