)]}'
{"oslo_policy/tests/test_policy.py":[{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"6b7648ce014c7273de09a51decd9b6b4564a4151","unresolved":false,"context_lines":[{"line_number":1274,"context_line":"    def test_override_both_new_and_deprecated_policy(self):"},{"line_number":1275,"context_line":"        # Simulate an operator overriding a policy using both the the new and"},{"line_number":1276,"context_line":"        # old policy names"},{"line_number":1277,"context_line":"        rules \u003d jsonutils.dumps({\u0027foo:create_bar\u0027: \u0027role:bazz\u0027})"},{"line_number":1278,"context_line":"        rules \u003d jsonutils.dumps({\u0027foo:bar\u0027: \u0027role:wee\u0027})"},{"line_number":1279,"context_line":"        self.create_config_file(\u0027policy.json\u0027, rules)"},{"line_number":1280,"context_line":""},{"line_number":1281,"context_line":"        # Deprecate the policy name and check string in favor of something"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f79a3b5_041ea974","line":1278,"range":{"start_line":1277,"start_character":8,"end_line":1278,"end_character":56},"updated":"2018-11-02 21:41:30.000000000","message":"Not sure if this is affecting the behavior of the test, but this is overwriting rules with only foo:bar, which makes this test policy file similar to what\u0027s being tested on line 1206.\n\nWe want to populate both of these in the policy file I think:\n\n  rules_dict \u003d {\n      \u0027foo:create_bar\u0027: \u0027role:bazz\u0027,\n      \u0027foo:bar\u0027: \u0027role:wee\u0027\n  }\n  rules \u003d jsonutils.dumps(rules_dict)","commit_id":"c26f80a1e749ae90d961196ddd62392266f77f31"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"74d34260e512e3003967517ba5bf939121adacf6","unresolved":false,"context_lines":[{"line_number":1295,"context_line":"        )]"},{"line_number":1296,"context_line":"        self.enforcer.register_defaults(rule_list)"},{"line_number":1297,"context_line":""},{"line_number":1298,"context_line":"        # Make sure the override supplied by the operator is being used in"},{"line_number":1299,"context_line":"        # place of either default value."},{"line_number":1300,"context_line":"        self.assertFalse("},{"line_number":1301,"context_line":"            self.enforcer.enforce(\u0027foo:create_bar\u0027, {}, {\u0027roles\u0027: [\u0027fizz\u0027]})"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f79a3b5_e85cb0f0","line":1298,"range":{"start_line":1298,"start_character":24,"end_line":1298,"end_character":32},"updated":"2018-11-02 13:59:13.000000000","message":"newest override*?","commit_id":"c26f80a1e749ae90d961196ddd62392266f77f31"}]}
