mbasti-rh's pull request #60: "Tests: extend DNS cmdline tests with lowercased record type" was opened
PR body: """ Test for https://fedorahosted.org/freeipa/ticket/6203 """ See the full pull-request at https://github.com/freeipa/freeipa/pull/60 ... or pull the PR as Git branch: git remote add ghfreeipa https://github.com/freeipa/freeipa git fetch ghfreeipa pull/60/head:pr60 git checkout pr60
From e43fcefac1c8e908466603d76cd64e62a64d3444 Mon Sep 17 00:00:00 2001 From: Martin Basti <mba...@redhat.com> Date: Mon, 5 Sep 2016 18:46:07 +0200 Subject: [PATCH] Tests: extend DNS cmdline tests with lowercased record type https://fedorahosted.org/freeipa/ticket/6203 --- ipatests/test_cmdline/test_cli.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ipatests/test_cmdline/test_cli.py b/ipatests/test_cmdline/test_cli.py index a6e6363..07bab23 100644 --- a/ipatests/test_cmdline/test_cli.py +++ b/ipatests/test_cmdline/test_cli.py @@ -174,6 +174,18 @@ def test_dnsrecord_add_ask_for_missing_fields(self): sshfp_part_fingerprint=sshfp_parts[2], ) + # test with lowercase record type + with self.fake_stdin('sshfp\n%d\n%d\n%s' % sshfp_parts): + self.check_command( + 'dnsrecord-add %s sshfp' % TEST_ZONE, + 'dnsrecord_add', + dnszoneidnsname=TEST_ZONE, + idnsname=u'sshfp', + sshfp_part_fp_type=sshfp_parts[0], + sshfp_part_algorithm=sshfp_parts[1], + sshfp_part_fingerprint=sshfp_parts[2], + ) + # NOTE: when a DNS record part is passed via command line, it is not # converted to its base type when transfered via wire with self.fake_stdin('%d\n%s' % (sshfp_parts[1], sshfp_parts[2])):
-- Manage your subscription for the Freeipa-devel mailing list: https://www.redhat.com/mailman/listinfo/freeipa-devel Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code