diff options
-rw-r--r-- | install/ui/src/freeipa/automount.js | 2 | ||||
-rw-r--r-- | ipatests/test_webui/test_automount.py | 36 |
2 files changed, 37 insertions, 1 deletions
diff --git a/install/ui/src/freeipa/automount.js b/install/ui/src/freeipa/automount.js index ef1823e1b..eae6a4653 100644 --- a/install/ui/src/freeipa/automount.js +++ b/install/ui/src/freeipa/automount.js @@ -117,7 +117,7 @@ return { { $type: 'radio', name: 'method', - enabled: false, //don't use value in add command + flags: ['no_command'], label: '@i18n:objects.automountmap.map_type', options: [ { 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) |