[freeipa PR#3837][opened] ipatests: in DNS zone file add A record for name server
by wladich
URL: https://github.com/freeipa/freeipa/pull/3837
Author: wladich
Title: #3837: ipatests: in DNS zone file add A record for name server
Action: opened
PR body:
"""
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.
This PR also fixed utility function create_temp_file which was returning name of created temp file with a trailing newline character added.
"""
To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/3837/head:pr3837
git checkout pr3837
4 years, 4 months