Skip to content
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

Fix test: tests/pytests/functional/modules/cmd/test_script.py::test_windows_script_args_powershell #67148

Merged
merged 4 commits into from
Jan 15, 2025

Conversation

twangboy
Copy link
Contributor

@twangboy twangboy commented Jan 14, 2025

What does this PR do?

The test is failing with the following powershell error:

ConvertTo-SecureString : The 'ConvertTo-SecureString' command was found in the module 'Microsoft.PowerShell.Security', but the module could not be loaded. For more information, run 'Import-Module Microsoft.PowerShell.Security'.

According to StackOverflow the workaround is to clear the PSModulePath environment variable. That's what this tries to do

What issues does this PR fix or reference?

Fixes failing test

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes

@twangboy twangboy changed the title [WIP] Fix test: tests/pytests/functional/modules/cmd/test_script.py::test_windows_script_args_powershell Fix test: tests/pytests/functional/modules/cmd/test_script.py::test_windows_script_args_powershell Jan 15, 2025
@dwoz dwoz merged commit dc43eba into saltstack:3006.x Jan 15, 2025
159 of 178 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants