Skip to content

[action] [PR:25769] Fix test_thermalctld_leak_status#1297

Merged
mssonicbld merged 1 commit into
Azure:202608from
mssonicbld:cherry/msft-202608/25769
Jul 10, 2026
Merged

[action] [PR:25769] Fix test_thermalctld_leak_status#1297
mssonicbld merged 1 commit into
Azure:202608from
mssonicbld:cherry/msft-202608/25769

Conversation

@mssonicbld

Copy link
Copy Markdown
Collaborator

Description of PR

Adds correct handling for "None" leak status returned by redis.
Also fixes the flake8 error than prevent the verifications to pass

Summary:
Fixes sonic-net/sonic-mgmt#25760

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202311
  • 202405
  • 202411
  • 202505
  • 202511
  • 202512
  • 202605

Approach

What is the motivation for this PR?

Fix test_thermalctld_leak_status

How did you do it?

Treated the redis returned value "None" as string and checked for it, added the enum prefix "LeakSeverity." to the leak_severity expected values

How did you verify/test it?

Ran on the BMC testbed

Signed-off-by: Sonic Build Admin sonicbld@microsoft.com

Any platform specific information?

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

Documentation

### Description of PR
Adds correct handling for "None" leak status returned by redis.
Also fixes the flake8 error than prevent the verifications to pass

Summary:
Fixes sonic-net/sonic-mgmt#25760

### Type of change

- [X] Bug fix
- [ ] Testbed and Framework(new/improvement)
- [ ] New Test case
    - [ ] Skipped for non-supported platforms
- [X] Test case improvement

### Back port request
- [ ] 202311
- [ ] 202405
- [ ] 202411
- [ ] 202505
- [ ] 202511
- [ ] 202512
- [ ] 202605

### Approach
#### What is the motivation for this PR?
Fix test_thermalctld_leak_status

#### How did you do it?
Treated the redis returned value "None" as string and checked for it, added the enum prefix "LeakSeverity." to the leak_severity expected values

#### How did you verify/test it?
Ran on the BMC testbed

Signed-off-by: Sonic Build Admin <sonicbld@microsoft.com>

#### Any platform specific information?

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

### Documentation
@mssonicbld

Copy link
Copy Markdown
Collaborator Author

Original PR: sonic-net/sonic-mgmt#25769

@mssonicbld

Copy link
Copy Markdown
Collaborator Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@mssonicbld mssonicbld merged commit 373fa72 into Azure:202608 Jul 10, 2026
5 checks passed
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.

1 participant