summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Fayans <ofayans@redhat.com>2015-11-02 16:02:35 +0100
committerMartin Basti <mbasti@redhat.com>2015-11-03 16:14:49 +0100
commit511ace9a4fd0bbb1234662e580492366b2b96537 (patch)
tree6bdd106dcd7bbec03d5dd800d22f032ed199a85b
parentf9bbfade29657a6274afcdbc7dba5d5417ad4b69 (diff)
downloadfreeipa-511ace9a4fd0bbb1234662e580492366b2b96537.tar.gz
freeipa-511ace9a4fd0bbb1234662e580492366b2b96537.tar.xz
freeipa-511ace9a4fd0bbb1234662e580492366b2b96537.zip
Fixed A record creation bug
When creating an A record we used to provide full hostname as a record name, while we should have provided only the first part of the hostname https://fedorahosted.org/freeipa/ticket/5419 Reviewed-By: Martin Basti <mbasti@redhat.com>
-rw-r--r--ipatests/test_integration/tasks.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/ipatests/test_integration/tasks.py b/ipatests/test_integration/tasks.py
index 307563af3..ae26444f6 100644
--- a/ipatests/test_integration/tasks.py
+++ b/ipatests/test_integration/tasks.py
@@ -886,10 +886,9 @@ def add_a_records_for_hosts_in_master_domain(master):
def add_a_record(master, host):
# Find out if the record is already there
cmd = master.run_command(['ipa',
- 'dnsrecord-find',
+ 'dnsrecord-show',
master.domain.name,
- host.hostname,
- '--a-rec', host.ip],
+ host.hostname + "."],
raiseonerr=False)
# If not, add it
@@ -897,7 +896,7 @@ def add_a_record(master, host):
master.run_command(['ipa',
'dnsrecord-add',
master.domain.name,
- host.hostname,
+ host.hostname + ".",
'--a-rec', host.ip])