-
Notifications
You must be signed in to change notification settings - Fork 123
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
do a bunch of stuff #185
Merged
Merged
do a bunch of stuff #185
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rather than attempting to deconstruct args locally to fully reproduce the proper low state to pass to the api, we instead leave the kwargs as is. The reason for this is the RunnerClient will deconstruct and deserialize nested yaml args. We could equivalently do that locally but it seems pepper tries to be a no-dependency dist so we just hand off the work instead. This PR partially depends on release of saltstack/salt#50124 to determine if a release is neon or newer; however, we can safely assume that if the salt_version header is not provided in a request it is a salt-api older than that. Fixes saltstack#57
I originally tried making this work as a pytest parameterized fixture, but couldn't get things working properly with pytest-salt daemon mgmt. If someone figures that out feel free to revert this tox level knob.
was being applied pepper.cli before which is useless for pepper.libpepper etc.
minions.connected doesnt take an arg
failed output isnt returned if nothing failed anymore. additionally, returned as valid json
make this act more reasonable. we drop the x-auth-token header when using /run as the idea of that endpoint is to use whats in the lowstate. we get rid of the /token route handling as it seemingly does the same thing as /login, and doesnt actually exist in the rest_tornado impl so I'm considering it deprecated for simplicity.
this seems to do the right thing in more scenarios.
This reverts commit 59c013a. this fixes tornado but breaks cherrypy - I mistakenly assumed the payload token returned on login was the real eauth token not the session.id. I'll add a route to /token in tornado that is equivalent to /login on tornado to mimick backcompat behavior even though they are equivalent there due to not having a proxy session store.
auth should be handled only by token provided in low
runner output should be identical now
both codepaths are valid in both cherrypy and tornado. bunch of stuff xfail'd for now in tornado as there are pending develop/ PR's to salt to make things fully cross-compatible.
this will be used by tornado to know how long to persist sync calls for instead of the app_default_timeout. Also seems like a reasonable thing to do anyway.
saltstack/salt#51979 for salt side tornado fixes |
It is too old for pytest-salt :(
reverting to what this was previously because I dropped 2017.7
for some reason travis-ci still has it listed as 3.7-dev
gtmanfred
approved these changes
Mar 27, 2019
Thanks for this @mattp- looks great |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
went down some rabbitholes in trying to get things behaving with tornado. there will be a yet-to-be-pushed PR to salt for fixes to salt-tornado to make it more backwards compatible. Until we can test against that most of the xfails are unfortunately going to remain for the rest_tornado backend.
some notes: