mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipatests: disable dnssec validation in tests using dnf
The 2 following tests rely on dnf install and use mirrors.fedoraproject.org which has a broken trust chain. Disable dnssec validation so that dnf succeeds. Fixes: https://pagure.io/freeipa/issue/9498 Signed-off-by: Florence Blanc-Renaud <flo@redhat.com> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
parent
d1e09c68af
commit
a177121af6
@ -50,6 +50,16 @@ class TestAdvice(IntegrationTest):
|
|||||||
num_replicas = 0
|
num_replicas = 0
|
||||||
num_clients = 1
|
num_clients = 1
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def install(cls, mh):
|
||||||
|
# Install without dnssec validation because the test is
|
||||||
|
# calling dnf install on the client and mirrors.fedoraproject.org
|
||||||
|
# has a broken trust chain
|
||||||
|
tasks.install_master(
|
||||||
|
cls.master, setup_dns=True, extra_args=['--no-dnssec-validation']
|
||||||
|
)
|
||||||
|
tasks.install_client(cls.master, cls.clients[0])
|
||||||
|
|
||||||
def execute_advise(self, host, advice_id, *args):
|
def execute_advise(self, host, advice_id, *args):
|
||||||
# ipa-advise script is only available on a server
|
# ipa-advise script is only available on a server
|
||||||
tasks.kinit_admin(self.master)
|
tasks.kinit_admin(self.master)
|
||||||
|
@ -1262,7 +1262,10 @@ class TestInstallMaster(IntegrationTest):
|
|||||||
tasks.uninstall_packages(self.master, [package_name])
|
tasks.uninstall_packages(self.master, [package_name])
|
||||||
reinstall = True
|
reinstall = True
|
||||||
try:
|
try:
|
||||||
tasks.install_master(self.master)
|
# Disable dnssec-validation as the test is calling dnf install
|
||||||
|
# and mirrors.fedoraproject.org have a broken trust chain
|
||||||
|
tasks.install_master(self.master,
|
||||||
|
extra_args=['--no-dnssec-validation'])
|
||||||
finally:
|
finally:
|
||||||
if reinstall:
|
if reinstall:
|
||||||
tasks.install_packages(self.master, [package_name])
|
tasks.install_packages(self.master, [package_name])
|
||||||
|
Loading…
Reference in New Issue
Block a user