mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Cannot currently create virtual environments on a FIPS enabled platforms
See https://github.com/saltstack/salt/issues/65444 Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
3ed6e05262
commit
265ec5becf
3 changed files with 10 additions and 0 deletions
|
@ -25,6 +25,10 @@ except ImportError:
|
|||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
pytestmark = [
|
||||
pytest.mark.skip_on_fips_enabled_platform,
|
||||
]
|
||||
|
||||
|
||||
def _win_user_where(username, password, program):
|
||||
cmd = "cmd.exe /c where {}".format(program)
|
||||
|
|
|
@ -9,6 +9,7 @@ log = logging.getLogger(__name__)
|
|||
|
||||
pytestmark = [
|
||||
pytest.mark.slow_test,
|
||||
pytest.mark.skip_on_fips_enabled_platform,
|
||||
pytest.mark.skip_if_binaries_missing(*KNOWN_BINARY_NAMES, check_all=False),
|
||||
]
|
||||
|
||||
|
|
|
@ -33,6 +33,7 @@ import types
|
|||
|
||||
import attr
|
||||
import pytest
|
||||
import pytestskipmarkers.utils.platform
|
||||
from pytestshellutils.exceptions import ProcessFailed
|
||||
from pytestshellutils.utils import ports
|
||||
from pytestshellutils.utils.processes import ProcessResult
|
||||
|
@ -1644,6 +1645,10 @@ class VirtualEnv:
|
|||
return pathlib.Path(self.venv_python).parent
|
||||
|
||||
def __enter__(self):
|
||||
if pytestskipmarkers.utils.platform.is_fips_enabled():
|
||||
pytest.skip(
|
||||
"Test cannot currently create virtual environments on a FIPS enabled platform"
|
||||
)
|
||||
try:
|
||||
self._create_virtualenv()
|
||||
except subprocess.CalledProcessError:
|
||||
|
|
Loading…
Add table
Reference in a new issue