Repository navigation
Fix failing tests on Photon OS - #58991
Merged
dwoz merged 3 commits intoDec 2, 2020
Merged
Conversation
…alled on Photon OS does not support MD4 hashing, so don't load pdbedit module and skip the test_generate_nt_hash test. Default unmask for files and directories results in them having only user and group permissions so update the test_directory_max_depth test.
garethgreenaway
requested review from
Ch3LL,
bryceml and
krionbsd
and removed request for
a team
November 20, 2020 02:05
Closed
krionbsd
approved these changes
Nov 20, 2020
bryceml
approved these changes
Nov 20, 2020
oeuftete
reviewed
Nov 22, 2020
| (osname, osrelease, oscodename) = [ | ||
| x.strip('"').strip("'") for x in linux_distribution() | ||
| ] | ||
| return osname == "VMware Photon OS" |
Contributor
There was a problem hiding this comment.
Based on the port I've been picking away at in #58856, it looks like this might be just "VMware Photon" pre-3.0, though I didn't go check that. I don't know if the right answer is to check for that too, or just draw the support line at 3.0.
Edit: I checked. 1.0 is "VMware Photon". 2.0 is "VMware Photon OS".
Contributor
Author
There was a problem hiding this comment.
Right now we're only testing on Photon OS 3, my opinion is that we should support that latest until we hear differently.
This file contains hidden or 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
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.
What does this PR do?
Fixing the two failing tests when running on Photon OS. Python 3 installed on Photon OS does not support MD4 hashing, so don't load pdbedit module and skip the test_generate_nt_hash test. Default unmask for files and directories results in them having only user and group permissions so update the test_directory_max_depth test.
What issues does this PR fix or reference?
Fixes: #58926
Merge requirements satisfied?
[NOTICE] Bug fixes or features added to Salt require tests.
Commits signed with GPG?
Yes
Please review Salt's Contributing Guide for best practices.
See GitHub's page on GPG signing for more information about signing commits with GPG.