From dc799a5f9602099be048abda319023cda9d466c7 Mon Sep 17 00:00:00 2001 From: Antonio Torres Date: Mar 29 2021 11:51:48 +0000 Subject: ipatests: add test for multiple permitopen entries in SSH keys Add test to ensure that IPA allows to introduce multiple permitopen and permitlisten entries. Signed-off-by: Antonio Torres Reviewed-By: Alexander Bokovoy --- diff --git a/ipatests/test_ipapython/test_ssh.py b/ipatests/test_ipapython/test_ssh.py index 4aef498..9cba497 100644 --- a/ipatests/test_ipapython/test_ssh.py +++ b/ipatests/test_ipapython/test_ssh.py @@ -69,6 +69,10 @@ openssh = 'ssh-rsa %s' % b64 u'%s this is a comment' % openssh), (u'opt3,opt2="\tx ",opt1,opt2="\\"x " %s comment ' % openssh, u'opt1,opt2="\\"x ",opt3 %s comment' % openssh), + (u'permitopen=\"1.1.1.1:111\",permitopen=\"2.2.2.2:222\" %s' % openssh, + u'permitopen=\"1.1.1.1:111\",permitopen=\"2.2.2.2:222\" %s' % openssh), + (u'permitlisten=\"1.1.1.1:111\",permitlisten=\"2.2.2.2:222\" %s' % openssh, + u'permitlisten=\"1.1.1.1:111\",permitlisten=\"2.2.2.2:222\" %s' % openssh), (u'ssh-rsa\n%s' % b64, ValueError), (u'ssh-rsa\t%s' % b64, ValueError), (u'vanitas %s' % b64, ValueError),