diff options
author | Jan Cholasta <jcholast@redhat.com> | 2013-01-09 18:09:10 +0100 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2013-02-19 11:08:19 -0500 |
commit | e7de41e4f00508602915e5142a0394da149a54dc (patch) | |
tree | bcda40f30045acb83a0b1575f5120c64bfdb45cc /tests | |
parent | 36bfda80717c09929a15147814f6e5ceea4eb60b (diff) | |
download | freeipa.git-e7de41e4f00508602915e5142a0394da149a54dc.tar.gz freeipa.git-e7de41e4f00508602915e5142a0394da149a54dc.tar.xz freeipa.git-e7de41e4f00508602915e5142a0394da149a54dc.zip |
Run interactive_prompt callbacks after CSV values are split.
https://fedorahosted.org/freeipa/ticket/3334
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_cmdline/test_cli.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/test_cmdline/test_cli.py b/tests/test_cmdline/test_cli.py index 06c6124b..4d730d58 100644 --- a/tests/test_cmdline/test_cli.py +++ b/tests/test_cmdline/test_cli.py @@ -237,3 +237,31 @@ class TestCLIParsing(object): all=False, force=False, version=API_VERSION) + + def test_dnsrecord_del_comma(self): + try: + self.run_command( + 'dnszone_add', idnsname=u'test-example.com', + idnssoamname=u'ns.test-example.com', force=True) + except errors.NotFound: + raise nose.SkipTest('DNS is not configured') + try: + self.run_command( + 'dnsrecord_add', + dnszoneidnsname=u'test-example.com', + idnsname=u'test', + txtrecord=u'"A pretty little problem," said Holmes.') + with self.fake_stdin('no\nyes\n'): + self.check_command( + 'dnsrecord_del test-example.com test', + 'dnsrecord_del', + dnszoneidnsname=u'test-example.com', + idnsname=u'test', + 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') |