-
Notifications
You must be signed in to change notification settings - Fork 86
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
Throw exception when not use swsssdk in UT. #126
Conversation
E2E test will validate with this PR: sonic-net/sonic-buildimage#12036 |
This PR depends on another PR merge first: sonic-net/sonic-buildimage#12185 |
The code change in this PR validated with this PR: sonic-net/sonic-buildimage#12036 |
@@ -26,12 +26,6 @@ | |||
extras_require={ | |||
'high_perf': high_performance_deps | |||
}, | |||
entry_points={ | |||
'console_scripts': [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for misleading. console_scripts
variable should be defined at file global scope. It is not a parameter for setup
function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
test/test_moduleLoad.py
Outdated
@@ -34,3 +34,11 @@ def test__dbConfig(self): | |||
for namespace in list(dbConfig.get_ns_list()): | |||
self.assertEqual(dbConfig.get_dbid('PFC_WD_DB', namespace), 5) | |||
self.assertEqual(dbConfig.get_dbid('APPL_DB', namespace), 0) | |||
|
|||
def test_BlockUseSwsssdk(): | |||
# change |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
#### Why I did it swsssdk been deprecated after 202205 branch, all use should switch to sonic-swss-common. #### How I did it Throw exception when load swsssdk for none UT usage. #### How to verify it Pass all UT. #### Which release branch to backport (provide reason below if selected) #### Description for the changelog Throw exception when load swsssdk for none UT usage. #### Link to config_db schema for YANG module changes #### A picture of a cute animal (not mandatory but encouraged)
#### Why I did it swsssdk been deprecated after 202205 branch, all use should switch to sonic-swss-common. #### How I did it Throw exception when load swsssdk for none UT usage. #### How to verify it Pass all UT. #### Which release branch to backport (provide reason below if selected) #### Description for the changelog Throw exception when load swsssdk for none UT usage. #### Link to config_db schema for YANG module changes #### A picture of a cute animal (not mandatory but encouraged)
This reverts commit e30a1e1.
Update sonic-py-swsssdk submodule pointer to include the following: * e30a1e1 Throw exception when not use swsssdk in UT. ([sonic-net#126](sonic-net/sonic-py-swsssdk#126)) Signed-off-by: dprital <[email protected]>
Why I did it
swsssdk been deprecated after 202205 branch, all use should switch to sonic-swss-common.
How I did it
Throw exception when load swsssdk for none UT usage.
How to verify it
Pass all UT.
Which release branch to backport (provide reason below if selected)
Description for the changelog
Throw exception when load swsssdk for none UT usage.
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)