Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test_get_firmware_update_notification fail #2

Merged

Conversation

PJHsieh
Copy link

@PJHsieh PJHsieh commented Jul 8, 2024

Description

Fix test_get_firmware_update_notification fail

Motivation and Context

Erro Log:
pytest_assert(isinstance(notif, STRING_TYPE), "Component {}: Firmware update notification appears to be incorrect from image {}".format(i, image)) E Failed: Component 0: Firmware update notification appears to be incorrect from image current

Refer to API get_firmware_update_notification header, shall return 'None' instead of None.

"""
Retrieves a notification on what should be done in order to complete the component firmware update

Args:
image_path: A string, path to firmware image

Returns:
A string containing the component firmware update notification if required. By default 'None' value will be used, which indicates that no actions are required """

How Has This Been Tested?

Run platform_tests/api/test_component.py::TestComponentApi::test_get_firmware_update_notification with no NO api implementation.

Additional Information (Optional)

sonic-net/sonic-platform-common#472

Erro Log:
pytest_assert(isinstance(notif, STRING_TYPE), "Component {}: Firmware update notification appears to be incorrect from image {}".format(i, image))
E Failed: Component 0: Firmware update notification appears to be incorrect from image current

Refer to API get_firmware_update_notification header, shall return 'None' instead of None.

"""
Retrieves a notification on what should be done in order to complete the component firmware update

Args:
image_path: A string, path to firmware image

Returns:
A string containing the component firmware update notification if required.
By default 'None' value will be used, which indicates that no actions are required
"""
@PJHsieh PJHsieh merged commit 289a0f3 into 202311.X Jul 8, 2024
1 check passed
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