)]}'
{"shade/openstackcloud.py":[{"author":{"_account_id":4162,"name":"Paul Belanger","email":"pabelanger@redhat.com","username":"pabelanger"},"change_message_id":"14a0d45b64f76ddf4d370ea752f07f4943db572c","unresolved":false,"context_lines":[{"line_number":1974,"context_line":""},{"line_number":1975,"context_line":"        :param server: The server to fetch the console log for. Can be either"},{"line_number":1976,"context_line":"                       a server dict or the Name or ID of the server."},{"line_number":1977,"context_line":"        :param int length: The number of lines you would like to retreive from"},{"line_number":1978,"context_line":"                           the end of the log. (optional, defaults to all)"},{"line_number":1979,"context_line":""},{"line_number":1980,"context_line":"        :returns: A string containing the text of the console log or an"}],"source_content_type":"text/x-python","patch_set":6,"id":"1ac06dbe_c7595500","line":1977,"updated":"2016-08-22 13:34:08.000000000","message":"retrieve","commit_id":"08782c040079c0bb4b3128cb5518f7bead3008d2"},{"author":{"_account_id":4162,"name":"Paul Belanger","email":"pabelanger@redhat.com","username":"pabelanger"},"change_message_id":"14a0d45b64f76ddf4d370ea752f07f4943db572c","unresolved":false,"context_lines":[{"line_number":2000,"context_line":"            raise"},{"line_number":2001,"context_line":"        except Exception as e:"},{"line_number":2002,"context_line":"            raise OpenStackCloudException("},{"line_number":2003,"context_line":"                \"Unable to get console og for %s: %s\" % (name, e))"},{"line_number":2004,"context_line":""},{"line_number":2005,"context_line":"    def get_server(self, name_or_id\u003dNone, filters\u003dNone, detailed\u003dFalse):"},{"line_number":2006,"context_line":"        \"\"\"Get a server by name or ID."}],"source_content_type":"text/x-python","patch_set":6,"id":"1ac06dbe_476e0596","line":2003,"updated":"2016-08-22 13:34:08.000000000","message":"log","commit_id":"08782c040079c0bb4b3128cb5518f7bead3008d2"}],"shade/tests/functional/test_compute.py":[{"author":{"_account_id":4146,"name":"Clark Boylan","email":"cboylan@sapwetik.org","username":"cboylan"},"change_message_id":"7702d582826fde40606d68be8a5326c2ade0c0aa","unresolved":false,"context_lines":[{"line_number":77,"context_line":"            flavor\u003dself.flavor,"},{"line_number":78,"context_line":"            wait\u003dTrue)"},{"line_number":79,"context_line":"        log \u003d self.demo_cloud.get_server_console(server\u003dserver)"},{"line_number":80,"context_line":"        self.assertTrue(isinstance(log, six.string_types))"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"    def test_get_server_console_name_or_id(self):"},{"line_number":83,"context_line":"        self.addCleanup(self._cleanup_servers_and_volumes, self.server_name)"}],"source_content_type":"text/x-python","patch_set":7,"id":"1ac06dbe_63d5e7b7","line":80,"updated":"2016-08-22 16:57:15.000000000","message":"You might also want to assert that the string is non empty. Either with a length check or by checking that the linux version string is in the output or some other relatively consistent part of the console log.\n\nThis way you avoid the behavior of returning empty string becoming the only behavior.","commit_id":"d527d4638d51f3f275bedd70de4172edd5a579f1"},{"author":{"_account_id":2,"name":"Monty Taylor","email":"mordred@inaugust.com","username":"mordred"},"change_message_id":"fc68fd7b13c28a5503032442e5db5355eab916f0","unresolved":false,"context_lines":[{"line_number":77,"context_line":"            flavor\u003dself.flavor,"},{"line_number":78,"context_line":"            wait\u003dTrue)"},{"line_number":79,"context_line":"        log \u003d self.demo_cloud.get_server_console(server\u003dserver)"},{"line_number":80,"context_line":"        self.assertTrue(isinstance(log, six.string_types))"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"    def test_get_server_console_name_or_id(self):"},{"line_number":83,"context_line":"        self.addCleanup(self._cleanup_servers_and_volumes, self.server_name)"}],"source_content_type":"text/x-python","patch_set":7,"id":"1ac06dbe_1409c7dd","line":80,"in_reply_to":"1ac06dbe_63d5e7b7","updated":"2016-08-22 17:13:25.000000000","message":"Done","commit_id":"d527d4638d51f3f275bedd70de4172edd5a579f1"},{"author":{"_account_id":13252,"name":"Dr. Jens Harbott","display_name":"Jens Harbott (frickler)","email":"frickler@offenerstapel.de","username":"jrosenboom"},"change_message_id":"92af3e473c8a127680beab9ce4418ccd1ec908fb","unresolved":false,"context_lines":[{"line_number":86,"context_line":"            image\u003dself.image,"},{"line_number":87,"context_line":"            flavor\u003dself.flavor,"},{"line_number":88,"context_line":"            wait\u003dTrue)"},{"line_number":89,"context_line":"        log \u003d self.demo_cloud.get_server_console(server\u003dself.server_name)"},{"line_number":90,"context_line":"        self.assertTrue(isinstance(log, six.string_types))"},{"line_number":91,"context_line":"        # TODO(mordred) Find a string that is consistently in the console"},{"line_number":92,"context_line":"        # log so that we can test for something other than just not empty"}],"source_content_type":"text/x-python","patch_set":9,"id":"1ac06dbe_93012d08","line":89,"updated":"2016-08-23 07:19:51.000000000","message":"This test seems to be failing consistently, I think you may need a bit of delay here, so that the newly created instance has a chance to indeed start running and write some lines to the console.","commit_id":"a7498182ea1301cd28b3939d507816cebdd253f7"}]}
