-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Finish etcd test suite [Tech Debt] #61756
Conversation
re-run pr-photon-3-x86_64-py3-pytest |
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.
I think this is good - I am not quite positive if we have enough test coverage to make me comfortable (i.e. having some light functional tests) based on some of the things that I've seen in other parts of the codebase, using etcd.
I'll see about putting together some example or something to see if I can reproduce what I'm talking about.
re-run pr-macosx-catalina-x86_64-py3-pytest |
re-run pr-ubuntu-2004-arm64-py3-pytest |
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.
This will need a changelog since we are also editing the code.
And just a couple places in the tests where we could be using pathlib.Path() instead.
re-run all |
re-run all |
re-run pr-centos-7-x86_64-py3-tcp-pytest |
re-run pr-centosstream-8-x86_64-py3-pytest |
re-run pr-centos-7-x86_64-py3-pycryptodome-pytest |
What does this PR do?
Finishes etcd testing suite in anticipation of soon adopting another etcd client library for APIv3 support. It was decided that unit tests will serve the needed purpose here, since the functional testing is all done in
utils.test_etcd_util
. The other pieces simply rely, in some way, on that utility module to actually connect to the etcd service.Also...
Changes logic in
modules.etcd_mod.get
to take full advantage ofutils.etcd_util.get
which now defers toutils.etcd_util.tree
in the recursive case. Nothing was fixed, just a cleaner implementation.Fixes
returners.etcd_return
being profoundly out of tune with its underlying usage ofutils.etcd_util
. Removed.value
accesses fromget
returns and made use of thetree
returns in the case where recursiveget
was necessary.What issues does this PR fix or reference?
Fixes: All but one piece of #60325
Inidvidual issues: #61033, #61034, #61035, #61036
Note: issue closure dependent on the choice of v3 library.
Merge requirements satisfied?
[NOTICE] Bug fixes or features added to Salt require tests.
Commits signed with GPG?
Yes