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

Fixes for the issues uncovered by sonic-pcied unit tests #389

Merged
merged 2 commits into from
Jul 19, 2023

Conversation

assrinivasan
Copy link
Contributor

Description

Fixes for the following issues:

- Lack of getKeys() impl in mock swsscommon table class in sonic-pcied
- Fixed a 'set' bug in pcied that was uncovered by new code flows

Motivation and Context

This PR fixes issues in pcied as well as mock implementations for unit tests that were uncovered by new code flows.

How Has This Been Tested?

Recreated the new code flow with the changes and ensured that all the tests passed without exceptions

	- Lack of getKeys() impl in mock swsscommon table class in sonic-pcied
	- Fixed a 'set' bug in pcied that was uncovered by new code flows
@prgeor
Copy link
Collaborator

prgeor commented Jul 18, 2023

@assrinivasan can you remove the mocked table from all the tests and instead use the mocked lib of swsscommon? Ex:https://github.com/sonic-net/sonic-platform-daemons/blob/master/sonic-pcied/tests/test_DaemonPcied.py#L285

@assrinivasan
Copy link
Contributor Author

@assrinivasan can you remove the mocked table from all the tests and instead use the mocked lib of swsscommon? Ex:https://github.com/sonic-net/sonic-platform-daemons/blob/master/sonic-pcied/tests/test_DaemonPcied.py#L285

Done in latest commit.

@assrinivasan
Copy link
Contributor Author

/easycla

@prgeor prgeor merged commit 76baca3 into sonic-net:master Jul 19, 2023
6 checks passed
assrinivasan added a commit to assrinivasan/sonic-platform-daemons that referenced this pull request Aug 8, 2023
assrinivasan added a commit to assrinivasan/sonic-platform-daemons that referenced this pull request Aug 8, 2023
* Fixes for the following issues:

	- Lack of getKeys() impl in mock swsscommon table class in sonic-pcied
	- Fixed a 'set' bug in pcied that was uncovered by new code flows

* Removed mocked table instances per prgeor review comments
prgeor pushed a commit that referenced this pull request Aug 8, 2023
* Revert "Fixes for the issues uncovered by sonic-pcied unit tests (#389)"

This reverts commit 76baca3.

* Revert "Added PCIe transaction check for all peripherals on the bus (#331)"

This reverts commit d73808c.

* Fixes for the issues uncovered by sonic-pcied unit tests (#389)

* Fixes for the following issues:

	- Lack of getKeys() impl in mock swsscommon table class in sonic-pcied
	- Fixed a 'set' bug in pcied that was uncovered by new code flows

* Removed mocked table instances per prgeor review comments
tshalvi pushed a commit to tshalvi/sonic-platform-daemons that referenced this pull request Sep 11, 2023
* Revert "Fixes for the issues uncovered by sonic-pcied unit tests (sonic-net#389)"

This reverts commit 76baca3.

* Revert "Added PCIe transaction check for all peripherals on the bus (sonic-net#331)"

This reverts commit d73808c.

* Fixes for the issues uncovered by sonic-pcied unit tests (sonic-net#389)

* Fixes for the following issues:

	- Lack of getKeys() impl in mock swsscommon table class in sonic-pcied
	- Fixed a 'set' bug in pcied that was uncovered by new code flows

* Removed mocked table instances per prgeor review comments
@StormLiangMS
Copy link

@prgeor could we have ADO to support this cherry pick?

StormLiangMS pushed a commit that referenced this pull request Sep 21, 2023
* Fixes for the following issues:

	- Lack of getKeys() impl in mock swsscommon table class in sonic-pcied
	- Fixed a 'set' bug in pcied that was uncovered by new code flows

* Removed mocked table instances per prgeor review comments
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.

4 participants