Skip to content

[platform] Fix the test_status_led error in case if the chassis led is not controllable #16936

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vhlushko-cisco
Copy link
Contributor

Description of PR

Summary: Fix the test_status_led error in case if the chassis led is not controllable

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911
  • 202012
  • 202205
  • 202305
  • 202311
  • 202405

Approach

What is the motivation for this PR?

The platform_tests/api/test_chassis.py::test_status_led testcase code logic assumes that the chassis main led is always controllable.

But for some of the Cisco devices this test logic:

status_led = duthost.facts.get("chassis").get("status_led")

always returns None, which means that the chassis led is not controllable. That is why I introduce such change - to assume on default that the chassis led is not controllable.

How did you do it?

Change the led_controllable = False variable value.

How did you verify/test it?

Run the platform_tests/api/test_chassis.py.

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

linux-foundation-easycla bot commented Feb 12, 2025

CLA Signed

  • ✅login: vhlushko-cisco / (564ed05)

The committers listed above are authorized under a signed CLA.

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@vhlushko-cisco
Copy link
Contributor Author

Need to cherry-pick this to the 202405 branch as well.

@vhlushko-cisco
Copy link
Contributor Author

@bpar9 could you please merge?

@Aravind-Subbaroyan
Copy link

@prgeor - could you review this?

@vhlushko-cisco
Copy link
Contributor Author

@bpar9 could you please put a label Request for 202411 branch?

@vhlushko-cisco
Copy link
Contributor Author

@prgeor - could you please review this?

2 similar comments
@vhlushko-cisco
Copy link
Contributor Author

@prgeor - could you please review this?

@vhlushko-cisco
Copy link
Contributor Author

@prgeor - could you please review this?

Copy link
Contributor

@wsycqyz wsycqyz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lğtm

@kevinskwang
Copy link
Collaborator

@judyjoseph to review

@vhlushko-cisco
Copy link
Contributor Author

@judyjoseph kind reminder

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

Successfully merging this pull request may close these issues.

6 participants