)]}'
{"functionaltests/api/v1/functional/test_secrets.py":[{"author":{"_account_id":8623,"name":"Kaitlin Farr","email":"kaitlin.farr@jhuapl.edu","username":"kaitlin.farr"},"change_message_id":"e4104de9d207f9b5eebac1e46b3911c98ec2c2cc","unresolved":false,"context_lines":[{"line_number":70,"context_line":""},{"line_number":71,"context_line":"max_allowed_payload_in_bytes \u003d 10000"},{"line_number":72,"context_line":"max_payload_string \u003d str(bytearray().zfill(max_allowed_payload_in_bytes))"},{"line_number":73,"context_line":"oversized_string \u003d str(bytearray().zfill(10001))"},{"line_number":74,"context_line":"len_255_string \u003d str(bytearray().zfill(255))"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"5a890539_3905d313","line":73,"updated":"2014-11-17 23:00:12.000000000","message":"It seems like a lot of the tests still create their own version of this value.  I think it would be nice to see something like:\noversized_string \u003d bytearray().zfill(max_allowed_payload_in_bytes+1)\n\nor perhaps call it \u0027oversized_payload\u0027 and then within each test, cast to a string, because some tests need to change certain values of the bytearray.","commit_id":"3b37908f70a646af4f1c11a6cde351b252df77b2"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"3fe3dec3b5ab56fd03a5db16490e6eda7d84be6b","unresolved":false,"context_lines":[{"line_number":70,"context_line":""},{"line_number":71,"context_line":"max_allowed_payload_in_bytes \u003d 10000"},{"line_number":72,"context_line":"max_payload_string \u003d str(bytearray().zfill(max_allowed_payload_in_bytes))"},{"line_number":73,"context_line":"oversized_string \u003d str(bytearray().zfill(10001))"},{"line_number":74,"context_line":"len_255_string \u003d str(bytearray().zfill(255))"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"5a890539_16f7f9d3","line":73,"in_reply_to":"5a890539_3905d313","updated":"2014-11-18 08:40:43.000000000","message":"+1","commit_id":"3b37908f70a646af4f1c11a6cde351b252df77b2"},{"author":{"_account_id":8623,"name":"Kaitlin Farr","email":"kaitlin.farr@jhuapl.edu","username":"kaitlin.farr"},"change_message_id":"e4104de9d207f9b5eebac1e46b3911c98ec2c2cc","unresolved":false,"context_lines":[{"line_number":554,"context_line":""},{"line_number":555,"context_line":"    @utils.parameterized_dataset({"},{"line_number":556,"context_line":"        \u0027zero\u0027: [0],"},{"line_number":557,"context_line":"        \u0027large_string\u0027: [oversized_string],"},{"line_number":558,"context_line":"        \u0027int\u0027: [400]"},{"line_number":559,"context_line":"    })"},{"line_number":560,"context_line":"    @testcase.attr(\u0027negative\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a890539_59a45f4a","line":557,"updated":"2014-11-17 23:00:12.000000000","message":"Is there a reason you changed the variable name but not the key name?","commit_id":"3b37908f70a646af4f1c11a6cde351b252df77b2"},{"author":{"_account_id":8623,"name":"Kaitlin Farr","email":"kaitlin.farr@jhuapl.edu","username":"kaitlin.farr"},"change_message_id":"e4104de9d207f9b5eebac1e46b3911c98ec2c2cc","unresolved":false,"context_lines":[{"line_number":686,"context_line":"    @utils.parameterized_dataset({"},{"line_number":687,"context_line":"        \u0027max_payload_string\u0027: [max_payload_string]"},{"line_number":688,"context_line":"    })"},{"line_number":689,"context_line":"    @testcase.attr(\u0027positive\u0027)"},{"line_number":690,"context_line":"    def test_secret_create_defaults_valid_payload(self, payload):"},{"line_number":691,"context_line":"        \"\"\"Create a secret with a various valid payloads.\"\"\""},{"line_number":692,"context_line":"        test_model \u003d secret_models.SecretModel(**secret_create_defaults_data)"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a890539_3980738a","line":689,"updated":"2014-11-17 23:00:12.000000000","message":"nice catch!","commit_id":"3b37908f70a646af4f1c11a6cde351b252df77b2"},{"author":{"_account_id":11970,"name":"Chelsea Winfree","email":"chelsea.winfree@gmail.com","username":"chellygel"},"change_message_id":"bcfc52d8890c5e4d9b2e93c3f15672629896c2f7","unresolved":false,"context_lines":[{"line_number":688,"context_line":"    })"},{"line_number":689,"context_line":"    @testcase.attr(\u0027positive\u0027)"},{"line_number":690,"context_line":"    def test_secret_create_defaults_valid_payload(self, payload):"},{"line_number":691,"context_line":"        \"\"\"Create a secret with a various valid payloads.\"\"\""},{"line_number":692,"context_line":"        test_model \u003d secret_models.SecretModel(**secret_create_defaults_data)"},{"line_number":693,"context_line":"        overrides \u003d {\"payload\": payload}"},{"line_number":694,"context_line":"        test_model.override_values(**overrides)"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a890539_9fbce7bc","line":691,"updated":"2014-11-17 23:41:52.000000000","message":"no \"a\" before various","commit_id":"3b37908f70a646af4f1c11a6cde351b252df77b2"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"3fe3dec3b5ab56fd03a5db16490e6eda7d84be6b","unresolved":false,"context_lines":[{"line_number":720,"context_line":"            \u0027days\u0027: 5},"},{"line_number":721,"context_line":""},{"line_number":722,"context_line":"        \u0027positive_five_long_expire\u0027: {"},{"line_number":723,"context_line":"            \u0027timezone\u0027: \u0027-05:00\u0027,"},{"line_number":724,"context_line":"            \u0027days\u0027: 5},"},{"line_number":725,"context_line":""},{"line_number":726,"context_line":"        \u0027negative_one_short_expire\u0027: {"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a890539_56a7c1a6","line":723,"updated":"2014-11-18 08:40:43.000000000","message":"shouldn\u0027t it be \u0027+05:00\u0027?","commit_id":"3b37908f70a646af4f1c11a6cde351b252df77b2"},{"author":{"_account_id":11970,"name":"Chelsea Winfree","email":"chelsea.winfree@gmail.com","username":"chellygel"},"change_message_id":"bcfc52d8890c5e4d9b2e93c3f15672629896c2f7","unresolved":false,"context_lines":[{"line_number":733,"context_line":"    })"},{"line_number":734,"context_line":"    @testcase.attr(\u0027positive\u0027)"},{"line_number":735,"context_line":"    def test_secret_create_defaults_valid_expiration(self, **kwargs):"},{"line_number":736,"context_line":"        \"\"\"Create a secret with a various valid expiration data.\"\"\""},{"line_number":737,"context_line":"        timestamp \u003d utils.create_timestamp_w_tz_and_offset(**kwargs)"},{"line_number":738,"context_line":""},{"line_number":739,"context_line":"        test_model \u003d secret_models.SecretModel(**secret_create_defaults_data)"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a890539_7fe01bcd","line":736,"updated":"2014-11-17 23:41:52.000000000","message":"no \"a\"","commit_id":"3b37908f70a646af4f1c11a6cde351b252df77b2"}]}
