"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "keystone/tests/unit/test_v3_federation.py" between
keystone-17.0.0.tar.gz and keystone-18.0.0.tar.gz

About: OpenStack Keystone (Core Service: Identity) provides an authentication and authorization service for other OpenStack services. Provides a catalog of endpoints for all OpenStack services.
The "Victoria" series (latest release).

test_v3_federation.py  (keystone-17.0.0):test_v3_federation.py  (keystone-18.0.0)
skipping to change at line 4335 skipping to change at line 4335
logger_fixture = self.useFixture(fixtures.LoggerFixture()) logger_fixture = self.useFixture(fixtures.LoggerFixture())
self.assertRaises( self.assertRaises(
exception.SAMLSigningError, exception.SAMLSigningError,
keystone_idp._sign_assertion, keystone_idp._sign_assertion,
self.signed_assertion self.signed_assertion
) )
# The function __str__ in subprocess.CalledProcessError is # The function __str__ in subprocess.CalledProcessError is
# different between py3.6 and lower python version. # different between py3.6 and lower python version.
expected_log = ( expected_log = (
"Error when signing assertion, reason: Command '%s' returned " r"Error when signing assertion, reason: Command '%s' returned "
"non-zero exit status %s\.? %s\n" % r"non-zero exit status %s\.? %s\n" %
(CONF.saml.xmlsec1_binary, sample_returncode, sample_output)) (CONF.saml.xmlsec1_binary, sample_returncode, sample_output))
self.assertRegex(logger_fixture.output, self.assertRegex(logger_fixture.output,
re.compile(r'%s' % expected_log)) re.compile(r'%s' % expected_log))
@mock.patch('oslo_utils.fileutils.write_to_tempfile') @mock.patch('oslo_utils.fileutils.write_to_tempfile')
@mock.patch.object(subprocess, 'check_output') @mock.patch.object(subprocess, 'check_output')
def test_sign_assertion_fileutils_exc(self, check_output_mock, def test_sign_assertion_fileutils_exc(self, check_output_mock,
write_to_tempfile_mock): write_to_tempfile_mock):
exception_msg = 'fake' exception_msg = 'fake'
write_to_tempfile_mock.side_effect = Exception(exception_msg) write_to_tempfile_mock.side_effect = Exception(exception_msg)
 End of changes. 1 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)