)]}'
{"git_review/tests/__init__.py":[{"author":{"_account_id":5263,"name":"Jeremy Stanley","display_name":"fungi","email":"fungi@yuggoth.org","username":"fungi","status":"missing, presumed fed"},"change_message_id":"2c8c88e248991b95a3f1d6067c3df50f6064da68","unresolved":false,"context_lines":[{"line_number":246,"context_line":"        utils.run_cmd("},{"line_number":247,"context_line":"            \u0027ssh\u0027, \u0027-p\u0027, str(self.gerrit_port), \u0027-i\u0027, host_key_file,"},{"line_number":248,"context_line":"            \u0027-F\u0027, gcrconf, self.gerrit_host, \u0027--\u0027, \u0027suexec --as test_user \u0027"},{"line_number":249,"context_line":"            \u0027-- gerrit set-members Administrators --add test_user\u0027)"},{"line_number":250,"context_line":""},{"line_number":251,"context_line":"        # create Gerrit empty project"},{"line_number":252,"context_line":"        self._run_gerrit_cli(\u0027create-project\u0027, \u0027--empty-commit\u0027,"}],"source_content_type":"text/x-python","patch_set":12,"id":"f049bfbe_da682823","line":249,"updated":"2021-02-02 17:33:39.000000000","message":"This isn\u0027t allowed, because Gerrit Code Review is not a member or owner of Administrators. After looking at Zuul\u0027s \"quickstart\" tests, I think the REST API (using the default \"admin/secret\" credentials provided in development_become_any_user auth mode we\u0027re already setting) is the best path forward to resolve this.","commit_id":"470d61ec0fdcfad3d20a6987d3139ee261c34d75"},{"author":{"_account_id":5263,"name":"Jeremy Stanley","display_name":"fungi","email":"fungi@yuggoth.org","username":"fungi","status":"missing, presumed fed"},"change_message_id":"8370737afbc54f7af756dfb0d6207404f1afae60","unresolved":false,"context_lines":[{"line_number":228,"context_line":"        # create admin user"},{"line_number":229,"context_line":"        with open(self._dir(\u0027gsite\u0027, \u0027test_ssh_key.pub\u0027), \u0027rb\u0027) as pub_key_fd:"},{"line_number":230,"context_line":"            pub_key \u003d pub_key_fd.read().decode().strip()"},{"line_number":231,"context_line":"        requests.put(\u0027http://admin:secret@%s:%s/a/accounts/test_user\u0027 % ("},{"line_number":232,"context_line":"            http_addr, http_port), data\u003d{"},{"line_number":233,"context_line":"                \u0027name\u0027: \u0027gitreview tester\u0027,"},{"line_number":234,"context_line":"                \u0027email\u0027: \u0027you@example.com\u0027,"}],"source_content_type":"text/x-python","patch_set":14,"id":"223be477_7f830d03","line":231,"updated":"2021-02-20 18:15:39.000000000","message":"Oh, this needs to be digest auth for 2.13, not basic auth.","commit_id":"3f0a295af314d4e580600325d4c67deb3425f019"},{"author":{"_account_id":5263,"name":"Jeremy Stanley","display_name":"fungi","email":"fungi@yuggoth.org","username":"fungi","status":"missing, presumed fed"},"change_message_id":"9c1e6a4449c0d578c78b620978a3b54bbdd635fc","unresolved":false,"context_lines":[{"line_number":230,"context_line":"            pub_key \u003d pub_key_fd.read().decode().strip()"},{"line_number":231,"context_line":"        resp \u003d requests.put("},{"line_number":232,"context_line":"            \u0027http://%s:%s/a/accounts/test_user\u0027 % (http_addr, http_port),"},{"line_number":233,"context_line":"            auth\u003drequests.auth.HTTPBasicAuth(\u0027admin\u0027, \u0027secret\u0027),"},{"line_number":234,"context_line":"            headers\u003d{\u0027Content-Type\u0027: \u0027application/json;charset\u003dUTF-8\u0027},"},{"line_number":235,"context_line":"            data\u003d{"},{"line_number":236,"context_line":"                \u0027name\u0027: \u0027gitreview tester\u0027,"}],"source_content_type":"text/x-python","patch_set":16,"id":"4f8d57af_a1de907c","line":233,"updated":"2021-02-22 14:49:21.000000000","message":"Oops, in switching back and forth between different versions, I reverted this to Basic again.","commit_id":"a6b3d59c8474f6f6f35e8a279b480eacbfc5b694"},{"author":{"_account_id":5263,"name":"Jeremy Stanley","display_name":"fungi","email":"fungi@yuggoth.org","username":"fungi","status":"missing, presumed fed"},"change_message_id":"b792e6594bec6edc638e4de55767cf5c13619219","unresolved":false,"context_lines":[{"line_number":230,"context_line":"            pub_key \u003d pub_key_fd.read().decode().strip()"},{"line_number":231,"context_line":"        resp \u003d requests.put("},{"line_number":232,"context_line":"            \u0027http://%s:%s/a/accounts/test_user\u0027 % (http_addr, http_port),"},{"line_number":233,"context_line":"            auth\u003drequests.auth.HTTPDigestAuth(\u0027admin\u0027, \u0027secret\u0027),"},{"line_number":234,"context_line":"            headers\u003d{\u0027Content-Type\u0027: \u0027application/json;charset\u003dUTF-8\u0027},"},{"line_number":235,"context_line":"            data\u003d{"},{"line_number":236,"context_line":"                \u0027name\u0027: \u0027gitreview tester\u0027,"}],"source_content_type":"text/x-python","patch_set":17,"id":"683386a4_f3f26721","line":233,"updated":"2021-02-22 15:16:46.000000000","message":"This default username/password is documented for dev mode starting in 3.1, it\u0027s not clear whether it was present undocumented in earlier releases. Also it doesn\u0027t seem to work for REST API access that I can tell, testing locally, even for versions equal to or later than 3.1 (switching to HTTPBasicAuth of course). I\u0027m not quite sure what I\u0027m missing... I always seem to get a 401/Unauthorized response with those credentials, even for something as simple as an authenticated GET request.","commit_id":"0d6c46a7d42860839e1a33beb61a781c08eb6bf4"}]}
