kdopen / gerritssh Goto Github PK
View Code? Open in Web Editor NEWA python wrapper for the Gerrit SSH command line interface
License: Apache License 2.0
A python wrapper for the Gerrit SSH command line interface
License: Apache License 2.0
The net result is that things can break, without unit tests catching them.
That means we need some end-to-end tests as well, and these probably can't be run on travis-ci because: it won't have ssh keys for any public gerrit instances; I don't want to include a private key in the repo - even for testing; and, if they have any sense, they will limit what the tests can actually do in terms of contacting external systems. Without the latter, running a 'test' on travis-ci.org could be an easy way to create spambots, or DDOS attacks on third party sites.
So, this needs a second set of tests which are run only on the developer's machine. Options include
However, tests would need to run under tox so that we can python-version-specific bugs (like #3)
Possibly the tests should be in a separate project.
Performing any query which returns results gives:
Traceback (most recent call last):
File "./gsshcli.py", line 239, in <module>
execute(args)
File "./gsshcli.py", line 123, in execute
cmds[args.operation](site, args)
File "./gsshcli.py", line 91, in query_cmd
qry.execute_on(site)
File "/Users/keith/PyProjects/gerritssh/gerritssh/query.py", line 123, in execute_on
partial = partial_query()
File "/Users/keith/PyProjects/gerritssh/gerritssh/query.py", line 118, in partial_query
lines = self.text_to_json(raw)
File "/Users/keith/PyProjects/gerritssh/gerritssh/gerritsite.py", line 555, in text_to_json
raise TypeError('Argument must be one or more strings')
TypeError: Argument must be one or more strings
The problem is related to unicode translation. Looks like paramiko returns unicode strings in python 2, so it needs to be decoded
Looks like the limit option is being converted to an integer during parsing, and reconstitute expects it to be a string
v0.1.1 moved the version string out of gerritssh/__init__.py
into VERSION.py, but the example script requires it to set up the ArgumentParser object.
Hence it fails with an exception
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.