summaryrefslogtreecommitdiffstats
path: root/ipatests
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2013-09-06 14:24:36 +0200
committerPetr Viktorin <pviktori@redhat.com>2013-09-16 13:56:25 +0200
commit5c4a72de59840b84a128c8649c8d7b4333344993 (patch)
treedf363206e51bddceef00435bfc5be1dfb68188dc /ipatests
parent7c22b852c73b94148043dd35636e2dd21a80d531 (diff)
downloadfreeipa-5c4a72de59840b84a128c8649c8d7b4333344993.tar.gz
freeipa-5c4a72de59840b84a128c8649c8d7b4333344993.tar.xz
freeipa-5c4a72de59840b84a128c8649c8d7b4333344993.zip
Fix redirection on deletion of last dns record entry
https://fedorahosted.org/freeipa/ticket/3907
Diffstat (limited to 'ipatests')
-rw-r--r--ipatests/test_webui/test_dns.py21
1 files changed, 20 insertions, 1 deletions
diff --git a/ipatests/test_webui/test_dns.py b/ipatests/test_webui/test_dns.py
index aeff77b8e..c832190d3 100644
--- a/ipatests/test_webui/test_dns.py
+++ b/ipatests/test_webui/test_dns.py
@@ -46,11 +46,12 @@ ZONE_DATA = {
RECORD_PKEY = 'itest'
+A_IP = '192.168.1.10'
RECORD_ADD_DATA = {
'pkey': RECORD_PKEY,
'add': [
('textbox', 'idnsname', RECORD_PKEY),
- ('textbox', 'a_part_ip_address', '192.168.1.10'),
+ ('textbox', 'a_part_ip_address', A_IP),
]
}
@@ -98,6 +99,24 @@ class test_dns(UI_driver):
self.navigate_by_breadcrumb("DNS Zones")
self.delete_record(ZONE_PKEY)
+ def test_last_entry_deletion(self):
+ """
+ Test last entry deletion
+ """
+ self.init_app()
+ self.add_record(ZONE_ENTITY, ZONE_DATA)
+ self.navigate_to_record(ZONE_PKEY)
+ self.add_record(ZONE_ENTITY, RECORD_ADD_DATA,
+ facet=ZONE_DEFAULT_FACET)
+ self.navigate_to_record(RECORD_PKEY)
+ self.delete_record(A_IP, parent=self.get_facet(), table_name='arecord')
+ self.assert_dialog('message_dialog')
+ self.dialog_button_click('ok')
+ self.wait_for_request(n=2)
+ self.assert_facet(ZONE_ENTITY, ZONE_DEFAULT_FACET)
+ self.navigate_by_breadcrumb("DNS Zones")
+ self.delete_record(ZONE_PKEY)
+
def test_config_crud(self):
"""
Basic CRUD: dnsconfig