Skip paramiko tests in FIPS mode

Paramiko is not compatible with FIPS mode. It uses MD5 on the client
side and does not support rsa-sha2 connections for RSA auth.

See: https://pagure.io/freeipa/issue/8129
Reviewed-By: Francisco Trivino <ftrivino@redhat.com>
This commit is contained in:
Christian Heimes 2019-11-28 17:22:02 +01:00
parent d153957990
commit 6a17a91672
3 changed files with 10 additions and 1 deletions

View File

@ -296,6 +296,8 @@ class TestIPACommand(IntegrationTest):
""" """
Integration test for https://pagure.io/SSSD/sssd/issue/3747 Integration test for https://pagure.io/SSSD/sssd/issue/3747
""" """
if self.master.is_fips_mode: # pylint: disable=no-member
pytest.skip("paramiko is not compatible with FIPS mode")
test_user = 'test-ssh' test_user = 'test-ssh'
external_master_hostname = \ external_master_hostname = \

View File

@ -84,6 +84,9 @@ class TestUserPermissions(IntegrationTest):
Related ticket https://pagure.io/SSSD/sssd/issue/3819. Related ticket https://pagure.io/SSSD/sssd/issue/3819.
""" """
if self.master.is_fips_mode: # pylint: disable=no-member
pytest.skip("paramiko is not compatible with FIPS mode")
# Scenario: add an IPA user with non-default home dir, login through # Scenario: add an IPA user with non-default home dir, login through
# ssh as this user and check that there is a SELinux user mapping # ssh as this user and check that there is a SELinux user mapping
# for the user with `semanage login -l`. # for the user with `semanage login -l`.

View File

@ -33,7 +33,7 @@ import unittest
from urllib.error import URLError from urllib.error import URLError
import paramiko import paramiko
import pytest
try: try:
from selenium import webdriver from selenium import webdriver
@ -59,7 +59,9 @@ try:
NO_YAML = False NO_YAML = False
except ImportError: except ImportError:
NO_YAML = True NO_YAML = True
from ipaplatform.paths import paths from ipaplatform.paths import paths
from ipaplatform.tasks import tasks
ENV_MAP = { ENV_MAP = {
'MASTER': 'ipa_server', 'MASTER': 'ipa_server',
@ -1944,6 +1946,8 @@ class UI_driver:
cmd (str): command to run cmd (str): command to run
""" """
if tasks.is_fips_enabled():
pytest.skip("paramiko is not compatible with FIPS mode")
login = self.config.get('ipa_admin') login = self.config.get('ipa_admin')
hostname = self.config.get('ipa_server') hostname = self.config.get('ipa_server')