Skip to content

Fix failing tests on Photon OS - #58991

Merged
dwoz merged 3 commits into
saltstack:masterfrom
garethgreenaway:58926_fix_photon_tests_failures
Dec 2, 2020
Merged

dwoz merged 3 commits into
saltstack:masterfrom
garethgreenaway:58926_fix_photon_tests_failures

Conversation

@garethgreenaway

@garethgreenaway garethgreenaway commented Nov 20, 2020 •

Copy link
Copy Markdown
Contributor

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.

…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
garethgreenaway requested a review from a team as a code owner November 20, 2020 02:05
@garethgreenaway
garethgreenaway requested review from Ch3LL, bryceml and krionbsd and removed request for a team November 20, 2020 02:05
@bryceml bryceml added the Aluminium Release Post Mg and Pre Si label Nov 20, 2020
@bryceml bryceml added this to the Aluminium milestone Nov 20, 2020
Comment thread salt/utils/platform.py
(osname, osrelease, oscodename) = [
x.strip('"').strip("'") for x in linux_distribution()
]
return osname == "VMware Photon OS"

@oeuftete oeuftete Nov 22, 2020 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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".

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right now we're only testing on Photon OS 3, my opinion is that we should support that latest until we hear differently.

@dwoz
dwoz merged commit da7dfd4 into saltstack:master Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Aluminium Release Post Mg and Pre Si

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Test Failure] PhotonOS test failures

5 participants