Skip to content

Conversation

@leongross
Copy link
Collaborator

@leongross leongross commented Nov 25, 2025

  • QueryDownstreamDevices (dc25fdf)
    • test_query_downstream_devices_request_codec
    • test_query_downstream_devices_response_codec
  • QueryDownstreamIdentifiers (dc25fdf)
    • test_query_downstream_identifiers_request_codec
    • test_query_downstream_identifiers_response_codec
  • GetDownstreamFirmwareParameters (b63b0f6)
    • test_get_downstream_firmware_parameters_request_codec
    • test_get_downstream_firmware_parameters_response_codec
    • test_device_parameter_table_codec
    • test_get_downstream_firmware_parameters_portion_codec
  • RequestDownstreamDeviceUpdate (69aac44)
    • test_request_downstream_device_update_request_codec
    • test_request_downstream_device_update_response_codec
  • GetPackageData (ab8f458)
    • test_get_package_data_request_codec
    • test_get_package_data_response_codec
  • GetDeviceMetaData (1face4e)
    • test_get_device_meta_data_request_codec
    • test_get_device_meta_data_response_codec
  • GetMetaData (116aebd)
    • test_get_metadata_request_codec
    • test_get_meta_data_response_codec

The results for the corresponding pldm requests have an u8 field
called CompletionCode. These completion codes are typically a
set of PLDM_BASE_CODES and a selection of FW_UPDATE codes.
To pass these return codes in a generic and type safe way, we
want to define enums that implement the `From` trait for u8,
individually for each response.

Signed-off-by: leongross <[email protected]>
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Nov 25, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

- QueryDownstreamIdentifiersResponse and Device parsing
- fix test_request_firmware_data_response_codec

Signed-off-by: leongross <[email protected]>
@leongross leongross force-pushed the leongross/fd-commands branch from de17b55 to 9123782 Compare November 28, 2025 13:16
@leongross
Copy link
Collaborator Author

Now that all tests pass, this is the current coverage:

$ cargo tarpaulin
...
74.66% coverage, 1211/1622 lines covered, +6.87% change in coverage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant