)]}'
{"openstack/connection.py":[{"author":{"_account_id":8257,"name":"Brian Curtin","email":"brian@python.org","username":"briancurtin"},"change_message_id":"502a1b09289281bb658ad726e8f7cd217ae63d15","unresolved":false,"context_lines":[{"line_number":245,"context_line":"                  to do anything else in the event that you need to know"},{"line_number":246,"context_line":"                  about authentication issues earlier in your application."},{"line_number":247,"context_line":""},{"line_number":248,"context_line":"        :returns AccessInfo: Token access information."},{"line_number":249,"context_line":""},{"line_number":250,"context_line":"        :raises:`~openstack.exceptions.AuthorizationFailure` if the credentials"},{"line_number":251,"context_line":"                provided to :class:`~openstack.connection.Connection` are"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a8ffd7b_c395bf40","line":248,"updated":"2015-11-24 18:02:08.000000000","message":"It\u0027s not actually returning that class, get_token from KSA just returns the string token.","commit_id":"c661af011372a88d9b954de16d39902e297b8fd0"},{"author":{"_account_id":8257,"name":"Brian Curtin","email":"brian@python.org","username":"briancurtin"},"change_message_id":"502a1b09289281bb658ad726e8f7cd217ae63d15","unresolved":false,"context_lines":[{"line_number":252,"context_line":"                unable to be authorized by the OpenStack Identity service."},{"line_number":253,"context_line":"        \"\"\""},{"line_number":254,"context_line":"        try:"},{"line_number":255,"context_line":"            return self.session.get_token()"},{"line_number":256,"context_line":"        except exceptions.HttpException as exc:"},{"line_number":257,"context_line":"            if exc.status_code \u003d\u003d 401:"},{"line_number":258,"context_line":"                raise exceptions.AuthorizationFailure(exc.message)"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a8ffd7b_83ad778a","line":255,"updated":"2015-11-24 18:02:08.000000000","message":"I think I like this better than before, because it gives an easy way to get the token out so you can attempt token auth in subsequent sessions, e.g., if you were building an app that needs to restart and can just pass in the existing token.","commit_id":"c661af011372a88d9b954de16d39902e297b8fd0"}],"openstack/tests/unit/test_connection.py":[{"author":{"_account_id":8410,"name":"Richard Theis","email":"rtheis@us.ibm.com","username":"rtheis"},"change_message_id":"21e38e5bb10d5e52fd55448d2779718421f3a968","unresolved":false,"context_lines":[{"line_number":206,"context_line":"        self.assertEqual(\u0027HttpException: Authentication Failure, not \u0027"},{"line_number":207,"context_line":"                         \u0027authorized\u0027, six.text_type(ex))"},{"line_number":208,"context_line":""},{"line_number":209,"context_line":"    def test_authorize_no_authplugin(self):"},{"line_number":210,"context_line":"        fake_session \u003d mock.Mock()"},{"line_number":211,"context_line":"        ex_auth \u003d ksa_exc.MissingAuthPlugin(\"missing auth plugin\")"},{"line_number":212,"context_line":"        fake_session.get_auth_headers.side_effect \u003d ex_auth"}],"source_content_type":"text/x-python","patch_set":5,"id":"9a8ffd7b_f292264b","line":209,"updated":"2015-11-30 13:26:38.000000000","message":"Please consider adding a test for a general exception like was done in the previous patch set.","commit_id":"64a4f82cd5f4f4a0a1e6145d005567afc331f119"},{"author":{"_account_id":8246,"name":"Qiming Teng","email":"tengqm@outlook.com","username":"tengqm"},"change_message_id":"4c6db55d038f500e1c5772a7841d2a0518d4f1b6","unresolved":false,"context_lines":[{"line_number":206,"context_line":"        self.assertEqual(\u0027HttpException: Authentication Failure, not \u0027"},{"line_number":207,"context_line":"                         \u0027authorized\u0027, six.text_type(ex))"},{"line_number":208,"context_line":""},{"line_number":209,"context_line":"    def test_authorize_no_authplugin(self):"},{"line_number":210,"context_line":"        fake_session \u003d mock.Mock()"},{"line_number":211,"context_line":"        ex_auth \u003d ksa_exc.MissingAuthPlugin(\"missing auth plugin\")"},{"line_number":212,"context_line":"        fake_session.get_auth_headers.side_effect \u003d ex_auth"}],"source_content_type":"text/x-python","patch_set":5,"id":"9a8ffd7b_c0760806","line":209,"in_reply_to":"9a8ffd7b_f292264b","updated":"2015-12-01 03:44:12.000000000","message":"Done","commit_id":"64a4f82cd5f4f4a0a1e6145d005567afc331f119"}]}
