)]}'
{"sysinv/sysinv/sysinv/sysinv/tests/conductor/test_kube_app_app_operator.py":[{"author":{"_account_id":14174,"name":"Bart Wensley","email":"bartwensley@hotmail.com","username":"bartwensley"},"change_message_id":"c98beeba70e65ce0398e605f1212d8143ce4ca69","unresolved":false,"context_lines":[{"line_number":61,"context_line":"        test_app_1 \u003d dbutils.create_test_app(name\u003d\u0027test-app-1\u0027,"},{"line_number":62,"context_line":"                  status\u003dconstants.APP_APPLY_SUCCESS,"},{"line_number":63,"context_line":"                  active\u003dTrue)"},{"line_number":64,"context_line":"        test_app_1._context \u003d self.context"},{"line_number":65,"context_line":"        self.service.activate(test_app_1)"},{"line_number":66,"context_line":"        is_active \u003d self.service.is_app_active(test_app_1)"},{"line_number":67,"context_line":"        self.assertEqual(is_active, True)"}],"source_content_type":"text/x-python","patch_set":2,"id":"3fa7e38b_17ef0287","line":64,"range":{"start_line":64,"start_character":8,"end_line":64,"end_character":42},"updated":"2020-01-14 18:15:41.000000000","message":"Why is this needed?","commit_id":"5a2ad41b9ee1c941e0c5cc87bad1d11a25a0d9ba"},{"author":{"_account_id":14174,"name":"Bart Wensley","email":"bartwensley@hotmail.com","username":"bartwensley"},"change_message_id":"d69afdde0aede09c7811533161801cb52e8c1b2b","unresolved":false,"context_lines":[{"line_number":61,"context_line":"        test_app_1 \u003d dbutils.create_test_app(name\u003d\u0027test-app-1\u0027,"},{"line_number":62,"context_line":"                  status\u003dconstants.APP_APPLY_SUCCESS,"},{"line_number":63,"context_line":"                  active\u003dTrue)"},{"line_number":64,"context_line":"        test_app_1._context \u003d self.context"},{"line_number":65,"context_line":"        self.service.activate(test_app_1)"},{"line_number":66,"context_line":"        is_active \u003d self.service.is_app_active(test_app_1)"},{"line_number":67,"context_line":"        self.assertEqual(is_active, True)"}],"source_content_type":"text/x-python","patch_set":2,"id":"3fa7e38b_bd3a8f94","line":64,"range":{"start_line":64,"start_character":8,"end_line":64,"end_character":42},"in_reply_to":"3fa7e38b_17ef0287","updated":"2020-01-14 19:27:28.000000000","message":"OK - I understand now - the AppOperator class expects that all KubeApp objects it sees have the context set. Instead of setting the private _context method on the object, a cleaner way to do this is to call dbutils.create_test_app and then do this:\ntest_app_1 \u003d objects.KubeApp.get_byName(self.context, \u0027test-app-1\u0027)\n\nThis should result in the context being set.","commit_id":"5a2ad41b9ee1c941e0c5cc87bad1d11a25a0d9ba"},{"author":{"_account_id":14174,"name":"Bart Wensley","email":"bartwensley@hotmail.com","username":"bartwensley"},"change_message_id":"f0d638de5d827ad07f547dcbccd8f2383ecf97e0","unresolved":false,"context_lines":[{"line_number":50,"context_line":""},{"line_number":51,"context_line":"    def test_get_appname(self):"},{"line_number":52,"context_line":"        test_app_name \u003d \u0027test-app-1\u0027"},{"line_number":53,"context_line":"        rpc_app \u003d dbutils.create_test_app(name\u003dtest_app_name,"},{"line_number":54,"context_line":"                  status\u003dconstants.APP_APPLY_SUCCESS)"},{"line_number":55,"context_line":"        app_name \u003d self.app_operator.get_appname(rpc_app)"},{"line_number":56,"context_line":"        self.assertEqual(test_app_name, app_name)"},{"line_number":57,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa7e38b_f4a492ba","line":54,"range":{"start_line":53,"start_character":8,"end_line":54,"end_character":53},"updated":"2020-01-15 13:03:29.000000000","message":"Please use the create_test_app/get_by_name pattern as in the testcase below.","commit_id":"0d7a509502090ac8040f7b48efee285145aa2c24"}]}
