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

[Component]Fix test_get_firmware_update_notification fail #472

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

PJHsieh
Copy link

@PJHsieh PJHsieh commented May 16, 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)

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
"""
@prgeor
Copy link
Collaborator

prgeor commented Jun 17, 2024

@PJHsieh please check the code coverge

@PJHsieh
Copy link
Author

PJHsieh commented Jun 18, 2024

@PJHsieh please check the code coverge

The code coverage issue is resolved.

@PJHsieh PJHsieh closed this Jun 18, 2024
@PJHsieh PJHsieh reopened this Jun 18, 2024
Copy link

linux-foundation-easycla bot commented Jun 24, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

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.

2 participants