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:
Ana Krivokapic
2013-04-08 11:04:17 -04:00
committed by Martin Kosek
parent b25080bbca
commit ff52c25ae2
5 changed files with 21 additions and 19 deletions

View File

@@ -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')