mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 16:10:02 -06:00
ipatests: in DNS zone file add A record for name server
Testcase test_server_option_with_unreachable_ad creates a zone file for AD domain. This file had a hard-coded A record for host specified in NS record. Some versions of BIND consider this zone invalid and refuse to start with message: ``` zone ad.test/IN: NS 'root-dc.ad.test' has no address records (A or AAAA) ``` Fixed by replacing hard-coded value with short name of the AD instance. Reviewed-By: Michal Polovka <mpolovka@redhat.com>
This commit is contained in:
parent
b10e43c3ea
commit
f16c08b7d6
@ -632,7 +632,7 @@ class TestTrust(BaseTestTrust):
|
||||
_ldap._tcp IN SRV 0 100 389 unreachable.{ad_dom}.
|
||||
_kerberos._udp IN SRV 0 100 88 unreachable.{ad_dom}.
|
||||
_kpasswd._udp IN SRV 0 100 464 unreachable.{ad_dom}.
|
||||
ad1 IN A {ad_ip}
|
||||
{ad_short} IN A {ad_ip}
|
||||
unreachable IN A {unreachable}
|
||||
DomainDnsZones IN A {ad_ip}
|
||||
_ldap._tcp.Default-First-Site-Name._sites.DomainDnsZones IN SRV 0 100 389 unreachable.{ad_dom}.
|
||||
@ -642,7 +642,8 @@ class TestTrust(BaseTestTrust):
|
||||
_ldap._tcp.ForestDnsZones IN SRV 0 100 389 unreachable.{ad_dom}.
|
||||
'''.format( # noqa: E501
|
||||
ad_ip=self.ad.ip, unreachable='192.168.254.254',
|
||||
ad_host=self.ad.hostname, ad_dom=self.ad.domain.name))
|
||||
ad_host=self.ad.hostname, ad_dom=self.ad.domain.name,
|
||||
ad_short=self.ad.shortname))
|
||||
ad_zone_file = tasks.create_temp_file(self.master, directory='/etc')
|
||||
self.master.put_file_contents(ad_zone_file, ad_zone)
|
||||
self.master.run_command(
|
||||
|
Loading…
Reference in New Issue
Block a user