ipaserver/plugins/hbacrule: Add HBAC to memberservice_hbacsvc* labels

The labels for memberservice_hbacsvc and memberservice_hbacsvcgroup are
only "Services" and "Service Groups" but they should be "HBAC Services"
and "HBAC Service Groups".

Reviewed-By: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
Thomas Woerner 2019-11-04 13:29:40 +01:00 committed by Florence Blanc-Renaud
parent 8067954229
commit 51fcca5352
2 changed files with 4 additions and 4 deletions

View File

@ -283,11 +283,11 @@ class hbacrule(LDAPObject):
flags=['no_create', 'no_update', 'no_search', 'no_option'],
),
Str('memberservice_hbacsvc?',
label=_('Services'),
label=_('HBAC Services'),
flags=['no_create', 'no_update', 'no_search'],
),
Str('memberservice_hbacsvcgroup?',
label=_('Service Groups'),
label=_('HBAC Service Groups'),
flags=['no_create', 'no_update', 'no_search'],
),
external_host_param,

View File

@ -592,7 +592,7 @@ class TestIPACommand(IntegrationTest):
assert 'User category: all' in lines
assert 'Host category: all' in lines
assert 'Enabled: TRUE' in lines
assert 'Services: systemd-user' in lines
assert 'HBAC Services: systemd-user' in lines
assert 'accessruletype: allow' in lines
# delete both
@ -616,7 +616,7 @@ class TestIPACommand(IntegrationTest):
assert 'User category: all' in lines
assert 'Host category: all' in lines
assert 'Enabled: TRUE' in lines
assert 'Services: systemd-user' in lines
assert 'HBAC Services: systemd-user' in lines
assert 'accessruletype: allow' in lines
self.master.run_command(