From a1b380865b4068eb5ed48204c041c3def09dc463 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Thu, 19 Mar 2015 15:20:28 -0400 Subject: Add tests for Name ID functionality Some Name ID formats are not implemented so are expected to fail. Kerberos is implemented but the test is done using form authentication so no Kerberos principal is available so authentication is denied. https://fedorahosted.org/ipsilon/ticket/27 Signed-off-by: Rob Crittenden --- tests/helpers/common.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/helpers/common.py') diff --git a/tests/helpers/common.py b/tests/helpers/common.py index 07a41fe..54702be 100755 --- a/tests/helpers/common.py +++ b/tests/helpers/common.py @@ -55,7 +55,8 @@ class IpsilonTestBase(object): os.mkdir(os.path.join(self.testdir, 'lib', test.name)) os.mkdir(os.path.join(self.testdir, 'log')) - def generate_profile(self, global_opts, args_opts, name, addr, port): + def generate_profile(self, global_opts, args_opts, name, addr, port, + nameid='transient'): newconf = ConfigParser.ConfigParser() newconf.add_section('globals') for k in global_opts.keys(): @@ -71,6 +72,7 @@ class IpsilonTestBase(object): text = t.substitute({'NAME': name, 'ADDRESS': addr, 'PORT': port, 'TESTDIR': self.testdir, 'ROOTDIR': self.rootdir, + 'NAMEID': nameid, 'TEST_USER': self.testuser}) filename = os.path.join(self.testdir, '%s_profile.cfg' % name) -- cgit