)]}'
{"cinder/tests/unit/cmd/test_status.py":[{"author":{"_account_id":27615,"name":"Rajat Dhasmana","email":"rajatdhasmana@gmail.com","username":"whoami-rajat"},"change_message_id":"3b2910b0ecfe097323baa7c71678aff3469a6334","unresolved":false,"context_lines":[{"line_number":58,"context_line":"        self._set_backup_driver(\u0027cinder.backup.drivers.swift\u0027)"},{"line_number":59,"context_line":"        result \u003d self.checks._check_backup_module()"},{"line_number":60,"context_line":"        self.assertEqual(uc.Code.FAILURE, result.code)"},{"line_number":61,"context_line":"        self.assertIn(\u0027requires the full path\u0027, result.details)"}],"source_content_type":"text/x-python","patch_set":1,"id":"5fc1f717_e7b0b442","line":61,"range":{"start_line":61,"start_character":8,"end_line":61,"end_character":63},"updated":"2019-03-28 17:43:48.000000000","message":"is it important to check this? can there be any other reason for failure?\nMaybe we modify the detail msg in future so should this fail for that reason?","commit_id":"86ccd15b2c3c0025b3adb5b2af8f51b4a579a913"},{"author":{"_account_id":20722,"name":"Yikun Jiang","email":"yikunkero@gmail.com","username":"yikunkero"},"change_message_id":"daf4cf70980bfa03a5299ff1066f7fcabab74071","unresolved":false,"context_lines":[{"line_number":58,"context_line":"        self._set_backup_driver(\u0027cinder.backup.drivers.swift\u0027)"},{"line_number":59,"context_line":"        result \u003d self.checks._check_backup_module()"},{"line_number":60,"context_line":"        self.assertEqual(uc.Code.FAILURE, result.code)"},{"line_number":61,"context_line":"        self.assertIn(\u0027requires the full path\u0027, result.details)"}],"source_content_type":"text/x-python","patch_set":1,"id":"5fc1f717_704eb76f","line":61,"range":{"start_line":61,"start_character":8,"end_line":61,"end_character":63},"in_reply_to":"5fc1f717_077f0015","updated":"2019-03-29 01:00:47.000000000","message":"I think a reason is that we can regress this FAILURE is caused by some special reason. For example, we can distinct [1] and [2]\nwith validating the details.\n\n[1] https://review.openstack.org/#/c/647937/7/cinder/cmd/status.py@74\n[2] https://review.openstack.org/#/c/647937/7/cinder/cmd/status.py@89","commit_id":"86ccd15b2c3c0025b3adb5b2af8f51b4a579a913"},{"author":{"_account_id":27615,"name":"Rajat Dhasmana","email":"rajatdhasmana@gmail.com","username":"whoami-rajat"},"change_message_id":"b8fe1ff08327ad31bb61374c4860fe1cb5a81cda","unresolved":false,"context_lines":[{"line_number":58,"context_line":"        self._set_backup_driver(\u0027cinder.backup.drivers.swift\u0027)"},{"line_number":59,"context_line":"        result \u003d self.checks._check_backup_module()"},{"line_number":60,"context_line":"        self.assertEqual(uc.Code.FAILURE, result.code)"},{"line_number":61,"context_line":"        self.assertIn(\u0027requires the full path\u0027, result.details)"}],"source_content_type":"text/x-python","patch_set":1,"id":"5fc1f717_947bd8bc","line":61,"range":{"start_line":61,"start_character":8,"end_line":61,"end_character":63},"in_reply_to":"5fc1f717_704eb76f","updated":"2019-04-02 15:27:19.000000000","message":"An extra check is indeed needed to differentiate cases, but i think we can improve on it a bit.\nMy suggestion would be to add a specific string (REQUIRED_FULL_PATH:/REQUIRED_CLASS_PATH: or something) to the details of result to better assert the error rather checking some words from the msg IMO.","commit_id":"86ccd15b2c3c0025b3adb5b2af8f51b4a579a913"},{"author":{"_account_id":11904,"name":"Sean McGinnis","email":"sean.mcginnis@gmail.com","username":"SeanM"},"change_message_id":"70e9e53644821a30c38ffac101e7874be64bc933","unresolved":false,"context_lines":[{"line_number":58,"context_line":"        self._set_backup_driver(\u0027cinder.backup.drivers.swift\u0027)"},{"line_number":59,"context_line":"        result \u003d self.checks._check_backup_module()"},{"line_number":60,"context_line":"        self.assertEqual(uc.Code.FAILURE, result.code)"},{"line_number":61,"context_line":"        self.assertIn(\u0027requires the full path\u0027, result.details)"}],"source_content_type":"text/x-python","patch_set":1,"id":"5fc1f717_077f0015","line":61,"range":{"start_line":61,"start_character":8,"end_line":61,"end_character":63},"in_reply_to":"5fc1f717_e7b0b442","updated":"2019-03-28 17:53:02.000000000","message":"I usually avoid and discourage checking text in unit tests. Seemed like this needed more, but I agree, probably not necessary.","commit_id":"86ccd15b2c3c0025b3adb5b2af8f51b4a579a913"}]}
