mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 07:33:27 -06:00
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
This commit is contained in:
parent
295ce7bf18
commit
6a124160a5
@ -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: [
|
||||
{
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user