)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":8726,"name":"Victor Morales","email":"chipahuac@hotmail.com","username":"electrocucaracha"},"change_message_id":"c50232f908c0e4604d1b3fdb4832e42706cd72ec","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Luis Daniel Castellanos \u003cluis.daniel.castellanos@intel.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2016-03-21 15:30:54 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"There is no unit test coverage for code related to Flavors in dashboard/api/nova.py"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When runing the \"./run_tests.sh -c\" command and after looking at the reports,"},{"line_number":10,"context_line":"not all the code is covered by the unit tests."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"fa0719c6_40dd7b13","line":7,"updated":"2016-03-21 15:57:56.000000000","message":"The commit title doesn\u0027t have to be more than 50 characters","commit_id":"3064eaa6e4d7a422ce354650b6393b8317e78a9c"},{"author":{"_account_id":8726,"name":"Victor Morales","email":"chipahuac@hotmail.com","username":"electrocucaracha"},"change_message_id":"c50232f908c0e4604d1b3fdb4832e42706cd72ec","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"There is no unit test coverage for code related to Flavors in dashboard/api/nova.py"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When runing the \"./run_tests.sh -c\" command and after looking at the reports,"},{"line_number":10,"context_line":"not all the code is covered by the unit tests."},{"line_number":11,"context_line":"The code related to Flavors in the openstack_dashboard/api/nova.py"},{"line_number":12,"context_line":"(get flavor list, create flavor, delete flavor, etc) is not covered."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"fa0719c6_809f9302","line":9,"updated":"2016-03-21 15:57:56.000000000","message":"And the description must be less than 72 chars\n\nhttps://wiki.openstack.org/wiki/GitCommitMessages#Summary_of_Git_commit_message_structure","commit_id":"3064eaa6e4d7a422ce354650b6393b8317e78a9c"}],"openstack_dashboard/test/api_tests/nova_tests.py":[{"author":{"_account_id":8726,"name":"Victor Morales","email":"chipahuac@hotmail.com","username":"electrocucaracha"},"change_message_id":"c50232f908c0e4604d1b3fdb4832e42706cd72ec","unresolved":false,"context_lines":[{"line_number":398,"context_line":"        novaclient.flavors.list(is_public\u003dTrue).AndReturn(flavors)"},{"line_number":399,"context_line":"        self.mox.ReplayAll()"},{"line_number":400,"context_line":"        api_flavors \u003d api.nova.flavor_list(self.request)"},{"line_number":401,"context_line":"        self.assertEqual(len(flavors), len(api_flavors))"},{"line_number":402,"context_line":""},{"line_number":403,"context_line":"    def test_flavor_get_no_extras(self):"},{"line_number":404,"context_line":"        flavor \u003d self.flavors.list()[1]"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa0719c6_e0900fef","line":401,"updated":"2016-03-21 15:57:56.000000000","message":"I assumed that you can\u0027t compare flavors with api_flavors","commit_id":"3064eaa6e4d7a422ce354650b6393b8317e78a9c"},{"author":{"_account_id":8726,"name":"Victor Morales","email":"chipahuac@hotmail.com","username":"electrocucaracha"},"change_message_id":"c50232f908c0e4604d1b3fdb4832e42706cd72ec","unresolved":false,"context_lines":[{"line_number":444,"context_line":"        self._test_flavor_list_paged()"},{"line_number":445,"context_line":""},{"line_number":446,"context_line":"    def test_flavor_list_paged_reversed_order(self):"},{"line_number":447,"context_line":"        self._test_flavor_list_paged(True)"},{"line_number":448,"context_line":""},{"line_number":449,"context_line":"    def test_flavor_list_paged_paginate_false(self):"},{"line_number":450,"context_line":"        self._test_flavor_list_paged(paginate\u003dFalse)"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa0719c6_f31d8b67","line":447,"range":{"start_line":447,"start_character":37,"end_line":447,"end_character":41},"updated":"2016-03-21 15:57:56.000000000","message":"I should be nice to include the name of the variable here, that would make easier to read it.\n\nreversed_order\u003dTrue","commit_id":"3064eaa6e4d7a422ce354650b6393b8317e78a9c"},{"author":{"_account_id":8726,"name":"Victor Morales","email":"chipahuac@hotmail.com","username":"electrocucaracha"},"change_message_id":"c50232f908c0e4604d1b3fdb4832e42706cd72ec","unresolved":false,"context_lines":[{"line_number":496,"context_line":""},{"line_number":497,"context_line":"        api_val \u003d api.nova.flavor_access_list(self.request, flavor)"},{"line_number":498,"context_line":""},{"line_number":499,"context_line":"        self.assertIsInstance(api_val, type(flavor_access))"},{"line_number":500,"context_line":""},{"line_number":501,"context_line":"    def test_add_tenant_to_flavor(self):"},{"line_number":502,"context_line":"        flavor \u003d self.flavors.first()"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa0719c6_93936fa3","line":499,"range":{"start_line":499,"start_character":44,"end_line":499,"end_character":57},"updated":"2016-03-21 15:57:56.000000000","message":"isn\u0027t api_val an instance of a list?","commit_id":"3064eaa6e4d7a422ce354650b6393b8317e78a9c"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"081f0a9381572a3a655a72731206a586706a1e98","unresolved":false,"context_lines":[{"line_number":470,"context_line":"                                            flavor.vcpus,"},{"line_number":471,"context_line":"                                            flavor.disk)"},{"line_number":472,"context_line":""},{"line_number":473,"context_line":"        self.assertIsInstance(api_flavor, type(flavor))"},{"line_number":474,"context_line":""},{"line_number":475,"context_line":"    def test_flavor_delete(self):"},{"line_number":476,"context_line":"        flavor \u003d self.flavors.first()"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa0719c6_7222dc01","line":473,"updated":"2016-03-22 16:06:31.000000000","message":"Can we add a more specific assert here as well? Checking the type of the return is good, but can we also check that the returned flavor includes the values we expect?","commit_id":"7a9c0beb5de2858f6a71683140ef55d9c1e66c7c"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"081f0a9381572a3a655a72731206a586706a1e98","unresolved":false,"context_lines":[{"line_number":496,"context_line":""},{"line_number":497,"context_line":"        api_val \u003d api.nova.flavor_access_list(self.request, flavor)"},{"line_number":498,"context_line":""},{"line_number":499,"context_line":"        self.assertIsInstance(api_val, type(flavor_access))"},{"line_number":500,"context_line":""},{"line_number":501,"context_line":"    def test_add_tenant_to_flavor(self):"},{"line_number":502,"context_line":"        flavor \u003d self.flavors.first()"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa0719c6_f2842cd5","line":499,"updated":"2016-03-22 16:06:31.000000000","message":"Same comment here.","commit_id":"7a9c0beb5de2858f6a71683140ef55d9c1e66c7c"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"081f0a9381572a3a655a72731206a586706a1e98","unresolved":false,"context_lines":[{"line_number":515,"context_line":"        api_val \u003d api.nova.add_tenant_to_flavor(self.request,"},{"line_number":516,"context_line":"                                                flavor,"},{"line_number":517,"context_line":"                                                tenant)"},{"line_number":518,"context_line":"        self.assertIsInstance(api_val, list)"},{"line_number":519,"context_line":""},{"line_number":520,"context_line":"    def test_remove_tenant_from_flavor(self):"},{"line_number":521,"context_line":"        flavor \u003d self.flavors.first()"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa0719c6_92a5f0b6","line":518,"updated":"2016-03-22 16:06:31.000000000","message":"Can we also check the length of the list is what we expect, or that some of the values in the list are what we expect?","commit_id":"7a9c0beb5de2858f6a71683140ef55d9c1e66c7c"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"081f0a9381572a3a655a72731206a586706a1e98","unresolved":false,"context_lines":[{"line_number":534,"context_line":"        api_val \u003d api.nova.remove_tenant_from_flavor(self.request,"},{"line_number":535,"context_line":"                                                     flavor,"},{"line_number":536,"context_line":"                                                     tenant)"},{"line_number":537,"context_line":"        self.assertIsInstance(api_val, list)"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa0719c6_d2af6892","line":537,"updated":"2016-03-22 16:06:31.000000000","message":"Same comment here.","commit_id":"7a9c0beb5de2858f6a71683140ef55d9c1e66c7c"},{"author":{"_account_id":13325,"name":"Paul Karikh","email":"pkarikh@gmail.com","username":"paul.karikh"},"change_message_id":"f783062bbf1386901061617ab1c5f2a133434adf","unresolved":false,"context_lines":[{"line_number":413,"context_line":"        self.assertEqual(api_flavor.id, flavor.id)"},{"line_number":414,"context_line":""},{"line_number":415,"context_line":"    def _test_flavor_list_paged(self, reversed_order\u003dFalse, paginate\u003dTrue):"},{"line_number":416,"context_line":"        page_size \u003d getattr(settings, \u0027API_RESULT_PAGE_SIZE\u0027, 20)"},{"line_number":417,"context_line":"        flavors \u003d self.flavors.list()"},{"line_number":418,"context_line":"        order \u003d \u0027asc\u0027 if reversed_order else \u0027desc\u0027"},{"line_number":419,"context_line":"        novaclient \u003d self.stub_novaclient()"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa0719c6_1ba6f152","line":416,"updated":"2016-03-23 11:57:33.000000000","message":"And is there any chance that is will not be 20? Maybe it would be better to use override_settings decorator?","commit_id":"697db2c7f07e8380442d2e91678191118458e505"},{"author":{"_account_id":13325,"name":"Paul Karikh","email":"pkarikh@gmail.com","username":"paul.karikh"},"change_message_id":"f783062bbf1386901061617ab1c5f2a133434adf","unresolved":false,"context_lines":[{"line_number":439,"context_line":"        for flavor in api_flavors:"},{"line_number":440,"context_line":"            self.assertIsInstance(flavor, type(flavors[0]))"},{"line_number":441,"context_line":"        self.assertFalse(has_more)"},{"line_number":442,"context_line":"        self.assertFalse(has_prev)"},{"line_number":443,"context_line":""},{"line_number":444,"context_line":"    def test_flavor_list_paged_default_order(self):"},{"line_number":445,"context_line":"        self._test_flavor_list_paged()"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa0719c6_fb27bdc7","line":442,"updated":"2016-03-23 11:57:33.000000000","message":"Maybe we can add here a test to check the right number of flavors on the page?","commit_id":"697db2c7f07e8380442d2e91678191118458e505"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"9af960eb7c0a4a445730a9e8e9387ad0436d2e77","unresolved":false,"context_lines":[{"line_number":558,"context_line":"        api_val \u003d api.nova.remove_tenant_from_flavor(self.request,"},{"line_number":559,"context_line":"                                                     flavor,"},{"line_number":560,"context_line":"                                                     tenant)"},{"line_number":561,"context_line":"        self.assertEqual(len(api_val), len([]))"},{"line_number":562,"context_line":"        self.assertIsInstance(api_val, list)"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa0719c6_094d206c","line":561,"updated":"2016-03-23 00:31:53.000000000","message":"(nit) I would compare this to 0 instead of len([]), just to keep it simple.","commit_id":"697db2c7f07e8380442d2e91678191118458e505"},{"author":{"_account_id":12071,"name":"Richard Jones","email":"r1chardj0n3s@gmail.com","username":"richard"},"change_message_id":"a519e1d61a314703f302b022470236365b9e7c25","unresolved":false,"context_lines":[{"line_number":389,"context_line":"                                        True)"},{"line_number":390,"context_line":"        self.assertTrue(ret_val)"},{"line_number":391,"context_line":""},{"line_number":392,"context_line":"    \"\"\"Flavor Tests\"\"\""},{"line_number":393,"context_line":""},{"line_number":394,"context_line":"    def test_flavor_list_no_extras(self):"},{"line_number":395,"context_line":"        flavors \u003d self.flavors.list()"}],"source_content_type":"text/x-python","patch_set":4,"id":"ba0121b8_74396c41","line":392,"updated":"2016-04-06 04:02:52.000000000","message":"This should really just be a comment, though I don\u0027t believe it\u0027s really necessary at all.","commit_id":"46d3457bd901eaf23b4bf8bf67340c1519dd5b24"}]}
