| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
| |
Currently, if a server is not in the known_hosts file then
the client will fail with an error like:
paramiko.SSHException: Server '[<host>]:<port>' not found in known_hosts
This change allows users to configure paramiko with the AutoAddPolicy().
It should be noted that using this policy opens users to
man-in-the-middle attacks, which is why it is an optional setting and
defaults to False.
|
| |
|
|
| |
Change-Id: I7028026b67b432d9ac5a3c0bdf660a672ff12a89
|
| |
|
|
|
|
|
|
|
| |
If the json loads function raises, the return content is invalid.
The function should log the error and raise the exception.
Closes #32
Change-Id: I053b0169c8da47f2a4812cc30783f8a4776f9c2b
|
| |
|
|
|
|
| |
Closes #33
Change-Id: I57616a8b8fa513f0ce650613b1ed9ec31b0322b4
|
| |
|
|
| |
Change-Id: Idc5ae59b22a4fb21c434dc2dd9c7accc0bd5015e
|
| |
|
|
|
|
|
|
|
|
| |
add_comment() now supports 'ranges' as described by the gerrit API, by
using the keyword 'range' instead of 'line', and a dict with the four
required keys.
Closes #31
Change-Id: Iaa7004e4f94794df8546a153227375e7be4b06bb
|
| |
|
|
|
|
|
| |
This will allow keeping the SSH sessions alive for a duration of time
longer than the timeout configured for the server.
Change-Id: I9d86c0fc304783fab944ebae7bd0da8f3b1edd6c
|
| |
|
|
|
|
|
|
|
|
|
| |
Workaround for requests issue 2409 [1] and Gerrit issue 3458 [2]
where the Gerrit server returns HTTP 400 on subsequent requests via
an existing session.
[1] https://github.com/kennethreitz/requests/issues/2409
[2] http://code.google.com/p/gerrit/issues/detail?id=3458
Change-Id: I98428ec59fca7146c5587172b464e2e09b90782c
|
| |
|
|
|
|
| |
Fixes #26
Change-Id: Ic4e0ba378fd61ed49a3ca9ea25ef2ccf21532af2
|
| |
|
|
| |
Change-Id: If57c2f4443405a546d7aee796c8381c053e1b301
|
| |
|
|
|
|
|
|
|
| |
Trying to use pygerrit to submit reviews fails if there
is a unicode character in the review comment. This change
sees if the message is valid ascii, and if it's not,
encodes as utf-8.
Change-Id: Ia14d59d28b11a78bee9d89fd84fb09976015787f
|
| |
|
|
| |
Change-Id: Ic753786a01deef0270e3039c15a0ceabedfe3901
|
| |
|
|
| |
Change-Id: Ic935e8f85e2ad333677770746c15648ae5bac339
|
| |
|
|
|
|
| |
And fix a couple of newly discovered warnings.
Change-Id: I835d16ed94f2e20f003a2aa0b0370483d02e7926
|
| |
|
|
|
|
| |
Added API to send inline review
Change-Id: Ifdcfbaea6ae4d8723d9566eaaf3c5dba5ff35617
|
| |
|
|
|
|
|
| |
Add a new helper class that can be used to format the messages
that are sent to Gerrit via the review command.
Change-Id: Ib8684d60788c8f19054bca6cfc707b25079395d3
|
| |
|
|
| |
Change-Id: I776a58b2cdac17e3eafc985ee727cd88e8294ccc
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The ssh interface is still being used and patches are being
contributed [1].
It's easier to revert the removal on master than attempt to keep
the support in a separate branch.
This reverts commit f0b77968389966cd7bad0cac1fe7f04526eafde1.
[1] https://github.com/sonyxperiadev/pygerrit/pull/21
Conflicts:
README.rst
example.py
requirements.txt
setup.py
unittests.py
Change-Id: I9e02208c57cb2022ff39cff6650101ed40c0519d
|
| |
|
|
|
|
|
| |
The Content-Type must be set to "application/json" for PUT and
POST requests.
Change-Id: I859e6cb18b981935b1788a943ec195955fb1e46d
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Request compact JSON by setting:
'Accept: application/json'
Request compressed response by setting:
'Accept-Encoding: gzip'
Change-Id: Ie1b5169d43b164f0e06aa765cbf76cca25d629f3
|
| |
|
|
|
|
|
|
| |
pbr provides better version handling, and automates the release
notes and list of authors. This means we have to spend less time
manually updating things.
Change-Id: Ie79d706ec7a177f437b6bb0e38a9bded8bc4bb9e
|
| |
|
|
|
|
|
|
|
| |
From now only the REST API is supported.
This makes installation of the package a bit lighter as we no
longer depend on paramiko and pycrypto
Change-Id: Ieda773d596fd43047c05895f3304690ddf709094
|
| |
|
|
| |
Change-Id: I083eca93f4969fa9c2d157da39f342de62cf5fd6
|
| |
|
|
|
|
| |
* client.stop_event_stream() was not closing
Change-Id: Idf38565332a7865063caf614992ba376804da1a7
|
| |
|
|
| |
Change-Id: I65d45f11f3b467f4cf8bc34a4a63749406d78abf
|
| |
|
|
|
|
|
| |
kwargs now made passable to request functions so that lower-level
python-requests interface can be fully utilized.
Change-Id: I38eff49314a3966546e0b272af2e58ed276269d9
|
| |
|
|
| |
Change-Id: I64f69dc544129772446f4995e6f148c388cb0f62
|
| |
|
|
| |
Change-Id: I32b970452809d31037ad15783d2f50e894e530ed
|
| |
|
|
|
|
|
| |
Include the account information for the user who gave the
approval.
Change-Id: I3857c9913c38a5c5223111274314e107f4c81090
|
| |
|
|
|
|
|
| |
The "currentPatchset" field of the query results includes information
about the review label scores.
Change-Id: I41d54225284e15b2b61b79bfaa309cd5c2b4b86a
|
| |
|
|
| |
Change-Id: I188e4cc116878cdd6679e45bf3ee545b20ce974e
|
| |
|
|
|
|
|
|
|
|
|
| |
The from_json method returns None if the key does not exist
in the json data, so we don't need to check for existence of
the key when constructing the object.
This also ensures that the constructed object has a sortkey
member.
Change-Id: Ic342f8b25aeded0e999f93fa29190853354c57f0
|
| |
|
|
|
|
|
| |
Remove GerritRestAPIError. Raise requests.HTTPError when a request
results in an HTTP Error. Raise ValueError in other places.
Change-Id: I25188f64161a6ca8159e7777e3f288f775463c25
|
| |
|
|
| |
Change-Id: I91b90d26fde775d5d58ee127fd9015757090a978
|
| |
|
|
| |
Change-Id: If1863c06619a11f93efc7c25c7c33c749950d6a5
|
| |
|
|
|
|
|
|
|
|
| |
If the username is not given in the constructor, it is detected
from the ssh config.
Add a method that allows the client to get the detected username
that was used to connect to Gerrit.
Change-Id: I15747d1446b07ce6b250f294fe72842a1be50a6c
|
| |
|
|
| |
Change-Id: I031b9293fd6ae3afe28e114b8d5ecc6de34f1bb3
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Commit 06c88c8 (merged with pull request #13) added exception
handling:
except Exception as e:
which causes a pylint warning:
W0703: Catching too general exception Exception
However in this case we actually do want to catch all types
of exception because the intention is to make sure pygerrit
doesn't fall over when something unexpected happens.
Add a suppression of this warning. The suppression is only
effective on this particular line; the warning will be raised
again if we do the same thing again somewhere else.
Change-Id: If812d441c1dc625651db34c6d3763cedc98b68a9
|
| |\
| |
| | |
Avoid busy loop when receiving incoming stream data.
|
| | | |
|
| | |
| |
| |
| |
| | |
Checking whether bytes are available is a non-blocking operation,
causing the receive loop to become a busy loop.
|
| | |
| |
| |
| | |
Change-Id: I16ef5fe0ba55902985c8cfec1d4845a3533ad82c
|
| |\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* master:
Add myself to authors
Add an authors list that contributors can add themselves to
Fix indentation
Reason is optional in abandon and restore changes
Return sortKey from query result, to allow resuming query.
Change-Id: I357d82fee44c47f960000b8db4f7c6d0d95a0993
|
| | |\ \
| | | |
| | | | |
Return sortKey from query result, to allow resuming query.
|
| | | | | |
|
| | | |/
| | |
| | |
| | | |
This is required to be able to retrieve more than 500 changes using the query interface.
|
| | |/ |
|
| |/
|
|
| |
Change-Id: I124054f2ba667f41ba5e916e3832e6a341b4ae96
|
| |
|
|
|
|
|
|
|
|
| |
Instead of trying to abstract the authentication away from the client,
allow the client to provide the authentication handler.
Implement simple handlers for HTTP basic and digest authentication with
credentials from netrc.
Change-Id: Icd6c7d359ecbd441308bc6f67fd19c7f55ebcb8f
|
| |
|
|
|
|
|
| |
Add a convenience method to construct the url to be passed to the
server, from the base url and the given endpoint.
Change-Id: I1725a371aa8a82c132039a9614bf20223af591f3
|