ironic-python-agent/ironic_python_agent/tests/unit
Julia Kreger 76accfb880 Fix UTF-16 result handling for efibootmgr
The tl;dr is that UEFI NVRAM is in encoded
in UTF-16, and when we run the efibootmgr command,
we can get unicode characters back.

Except we previously were forcing everything to be
treated as UTF-8 due to the way oslo.concurrency's
processutils module works.

This could be observed with UTF character 0x00FF
which raises up a nice exception when we try to
decode it.

Anyhow! while fixing handling of this, we discovered
we could get basically the cruft out of the NVRAM,
by getting what was most likey a truncated string
out of our own test VMs. As such, we need to also
permit decoding to be tollerant of failures.
This could be binary data or as simple as flipped
bits which get interpretted invalid characters.
As such, we have introduced such data into one of our
tests involving UEFI record de-duplication.

Closes-Bug: 2015602
Change-Id: I006535bf124379ed65443c7b283bc99ecc95568b
2023-04-17 09:14:24 -07:00
..
extensions Fix UTF-16 result handling for efibootmgr 2023-04-17 09:14:24 -07:00
hardware_managers update NVIDIA NIC firmware images and settings by ironic-python-agent 2023-01-11 14:00:07 +00:00
samples Report system firmware information in the inventory 2023-03-31 14:28:32 +02:00
__init__.py Add base for IPA functional tests 2015-08-18 16:19:47 +00:00
base.py Merge "Always include the oslo_log log file in ramdisk logs" 2021-11-04 15:14:33 +00:00
dmi_inspector_data.py Fix pep8 errors 2020-05-12 10:57:23 +02:00
test_agent.py Remove oslo.serialization dependency 2022-06-17 09:37:35 +02:00
test_api.py Use Werkzeug modern version 2022-04-14 10:47:06 +00:00
test_base.py Stop requiring mocking of utils.execute if ironic-lib execute is mocked 2021-10-27 14:24:00 +02:00
test_burnin.py Burn-in: Dynamic network pairing 2022-01-10 11:31:33 +01:00
test_dmi_inspector.py Fix pep8 errors 2020-05-12 10:57:23 +02:00
test_efi_utils.py Fix UTF-16 result handling for efibootmgr 2023-04-17 09:14:24 -07:00
test_encoding.py Fix serializing ironic-lib exceptions 2020-07-02 12:18:53 +02:00
test_errors.py Prevent tests' unmocked access to utils.execute() 2017-05-15 10:48:43 +10:00
test_hardware.py Report system firmware information in the inventory 2023-03-31 14:28:32 +02:00
test_inject_files.py New deploy step for injecting arbitrary files 2021-02-16 16:56:52 +01:00
test_inspector.py Reduce the duration of retries in the inspector tests 2020-10-07 12:39:01 +02:00
test_ironic_api_client.py Remove oslo.serialization dependency 2022-06-17 09:37:35 +02:00
test_multi_hardware.py Use unittest mock from standard library 2020-04-06 14:35:50 +02:00
test_multi_hardware_clean_steps.py Use unittest mock from standard library 2020-04-06 14:35:50 +02:00
test_netutils.py Use unittest mock from standard library 2020-04-06 14:35:50 +02:00
test_numa_inspector.py Use unittest mock from standard library 2020-04-06 14:35:50 +02:00
test_partition_utils.py Drop support for instance netboot 2022-07-07 16:38:22 +02:00
test_raid_utils.py SoftwareRAID: Enable skipping RAIDS 2022-09-05 20:43:51 +00:00
test_tls_utils.py Generate TLS certificates with validity time in the past 2020-12-10 16:22:13 +01:00
test_utils.py Make logs collection a hardware manager call 2023-01-25 15:17:06 +01:00