summaryrefslogtreecommitdiffstats
path: root/ipatests/test_integration/tasks.py
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2014-10-23 15:06:34 +0200
committerPetr Vobornik <pvoborni@redhat.com>2015-04-14 19:29:36 +0200
commit0a1a3d73120bdf20ae05bcf663f14ca1a8b02c25 (patch)
treebe601dcd46b2dd26dbc944d891bdfb74f97dc9f4 /ipatests/test_integration/tasks.py
parentb9c5744031675beb831210831f9d4b327ccd5544 (diff)
downloadfreeipa-0a1a3d73120bdf20ae05bcf663f14ca1a8b02c25.tar.gz
freeipa-0a1a3d73120bdf20ae05bcf663f14ca1a8b02c25.tar.xz
freeipa-0a1a3d73120bdf20ae05bcf663f14ca1a8b02c25.zip
DNSSEC CI tests
Tests: * install master, replica, then instal DNSSEC on master * test if zone is signed (added on master) * test if zone is signed (added on replica) * install master with DNSSEC, then install replica * test if root zone is signed * add zone, verify signatures using our root zone https://fedorahosted.org/freeipa/ticket/4657 Reviewed-By: Milan Kubik <mkubik@redhat.com>
Diffstat (limited to 'ipatests/test_integration/tasks.py')
-rw-r--r--ipatests/test_integration/tasks.py28
1 files changed, 20 insertions, 8 deletions
diff --git a/ipatests/test_integration/tasks.py b/ipatests/test_integration/tasks.py
index 271d726ca..c83fc65f1 100644
--- a/ipatests/test_integration/tasks.py
+++ b/ipatests/test_integration/tasks.py
@@ -184,7 +184,7 @@ def enable_replication_debugging(host):
stdin_text=logging_ldif)
-def install_master(host):
+def install_master(host, setup_dns=True):
host.collect_log(paths.IPASERVER_INSTALL_LOG)
host.collect_log(paths.IPACLIENT_INSTALL_LOG)
inst = host.domain.realm.replace('.', '-')
@@ -194,20 +194,27 @@ def install_master(host):
apply_common_fixes(host)
fix_apache_semaphores(host)
- host.run_command(['ipa-server-install', '-U',
- '-r', host.domain.name,
- '-p', host.config.dirman_password,
- '-a', host.config.admin_password,
- '--setup-dns',
- '--forwarder', host.config.dns_forwarder])
+ args = [
+ 'ipa-server-install', '-U',
+ '-r', host.domain.name,
+ '-p', host.config.dirman_password,
+ '-a', host.config.admin_password
+ ]
+
+ if setup_dns:
+ args.extend([
+ '--setup-dns',
+ '--forwarder', host.config.dns_forwarder
+ ])
+ host.run_command(args)
enable_replication_debugging(host)
setup_sssd_debugging(host)
kinit_admin(host)
-def install_replica(master, replica, setup_ca=True):
+def install_replica(master, replica, setup_ca=True, setup_dns=False):
replica.collect_log(paths.IPAREPLICA_INSTALL_LOG)
replica.collect_log(paths.IPAREPLICA_CONNCHECK_LOG)
@@ -231,6 +238,11 @@ def install_replica(master, replica, setup_ca=True):
replica_filename]
if setup_ca:
args.append('--setup-ca')
+ if setup_dns:
+ args.extend([
+ '--setup-dns',
+ '--forwarder', replica.config.dns_forwarder
+ ])
replica.run_command(args)
enable_replication_debugging(replica)