mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix output for some CLI commands
Fix output of dnsrecord_del: it now uses output.standard_delete
and excludes --all and --raw flags.
Fix output of sudorule_{add,remove}_option: they now use
output.standard_entry and include --all and --raw flags.
https://fedorahosted.org/freeipa/ticket/3503
This commit is contained in:
committed by
Martin Kosek
parent
b25080bbca
commit
ff52c25ae2
@@ -147,8 +147,6 @@ class TestCLIParsing(object):
|
||||
idnsname=u'ns',
|
||||
del_all=True,
|
||||
structured=False,
|
||||
raw=False,
|
||||
all=False,
|
||||
version=API_VERSION)
|
||||
with self.fake_stdin('YeS\n'):
|
||||
self.check_command('dnsrecord_del test-example.com ns',
|
||||
@@ -157,8 +155,6 @@ class TestCLIParsing(object):
|
||||
idnsname=u'ns',
|
||||
del_all=True,
|
||||
structured=False,
|
||||
raw=False,
|
||||
all=False,
|
||||
version=API_VERSION)
|
||||
finally:
|
||||
self.run_command('dnszone_del', idnsname=u'test-example.com')
|
||||
@@ -184,8 +180,6 @@ class TestCLIParsing(object):
|
||||
del_all=False,
|
||||
sshfprecord=records,
|
||||
structured=False,
|
||||
raw=False,
|
||||
all=False,
|
||||
version=API_VERSION)
|
||||
finally:
|
||||
self.run_command('dnszone_del', idnsname=u'test-example.com')
|
||||
@@ -261,8 +255,6 @@ class TestCLIParsing(object):
|
||||
del_all=False,
|
||||
txtrecord=[u'"A pretty little problem," said Holmes.'],
|
||||
structured=False,
|
||||
raw=False,
|
||||
all=False,
|
||||
version=API_VERSION)
|
||||
finally:
|
||||
self.run_command('dnszone_del', idnsname=u'test-example.com')
|
||||
|
||||
Reference in New Issue
Block a user