Skip to content

Commit

Permalink
FIXMEs
Browse files Browse the repository at this point in the history
  • Loading branch information
stormi committed Nov 20, 2023
1 parent 844a37f commit 1d05d7a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,7 @@ def install_uefi_certs(self, auths):
dest = self.host.ssh(['mktemp'])
self.host.scp(auth.auth, dest)
self.host.ssh([
# FIXME: didn't auth format evolve in 8.3? But maybe varstore-set's API itself didn't change.
'varstore-set', self.uuid, auth.guid.as_str(), auth.name,
str(efi.EFI_AT_ATTRS), dest
])
Expand Down
2 changes: 1 addition & 1 deletion tests/uefi_sb/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from packaging import version

@pytest.fixture(scope='module')
@pytest.fixture(scope='module') # FIXME: why not package scope?
def pool_without_uefi_certs(host):
assert host.xcp_version < version.parse("8.3"), "fixture only relevant on XCP-ng 8.2"
pool = host.pool
Expand Down
1 change: 1 addition & 0 deletions tests/uefi_sb/test_varstored_cert_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ def test_switching_to_user_mode(self, uefi_vm):
class TestPoolToDiskCertInheritanceOnPoolJoin:
@pytest.fixture(scope='function')
def keys_auths_for_joined_host(self, host, hostB1):
# FIXME: fixture vulnerable to setup or teardown errors?
from packaging import version
version_str = "8.3"
if not hostB1.xcp_version >= version.parse(version_str):
Expand Down

0 comments on commit 1d05d7a

Please sign in to comment.