summaryrefslogtreecommitdiffstats
path: root/ipatests
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2013-09-30 13:13:06 +0200
committerMartin Kosek <mkosek@redhat.com>2013-10-03 09:13:52 +0200
commit0ca99a15b0a49a9b45a3514f32f8ba06cf826451 (patch)
treea0244bdf1ddf8618dbabf3a8e85b1df0c2e608b1 /ipatests
parentc6647a09ab6d37c2acf60cd95e365598d72c6fb9 (diff)
downloadfreeipa-0ca99a15b0a49a9b45a3514f32f8ba06cf826451.tar.gz
freeipa-0ca99a15b0a49a9b45a3514f32f8ba06cf826451.tar.xz
freeipa-0ca99a15b0a49a9b45a3514f32f8ba06cf826451.zip
Fix enablement of automount map type selector
Map type radio used old way of defining that its value should not be used in add command. Recent patch related to 'enable' attribute hardened/fixed the behavior of radio widgets so they are disabled in UI as well when enabled==false. Automount did not reflect this change. https://fedorahosted.org/freeipa/ticket/3954
Diffstat (limited to 'ipatests')
-rw-r--r--ipatests/test_webui/test_automount.py36
1 files changed, 36 insertions, 0 deletions
diff --git a/ipatests/test_webui/test_automount.py b/ipatests/test_webui/test_automount.py
index a11150ad9..0ab33d7fd 100644
--- a/ipatests/test_webui/test_automount.py
+++ b/ipatests/test_webui/test_automount.py
@@ -101,5 +101,41 @@ class test_automount(UI_driver):
self.navigate_by_breadcrumb(LOC_PKEY)
self.delete_record(MAP_PKEY)
+ ## test indirect maps
+ direct_pkey = 'itest-direct'
+ indirect_pkey = 'itest-indirect'
+
+ self.add_record(LOC_ENTITY,
+ {
+ 'pkey': direct_pkey,
+ 'add': [
+ ('radio', 'method', 'add'),
+ ('textbox', 'automountmapname', direct_pkey),
+ ('textarea', 'description', 'foobar'),
+ ],
+ },
+ facet='maps',
+ navigate=False)
+
+ self.add_record(LOC_ENTITY,
+ {
+ 'pkey': indirect_pkey,
+ 'add': [
+ ('radio', 'method', 'add_indirect'),
+ ('textbox', 'automountmapname', indirect_pkey),
+ ('textarea', 'description', 'foobar'),
+ ('textbox', 'key', 'baz'),
+ ('textbox', 'parentmap', direct_pkey),
+ ],
+ },
+ facet='maps',
+ navigate=False)
+
+ self.assert_record(direct_pkey)
+ self.assert_record(indirect_pkey)
+
+ # delete
+ self.delete_record(direct_pkey)
+ self.delete_record(indirect_pkey)
self.navigate_by_breadcrumb('Automount Locations')
self.delete_record(LOC_PKEY)