
In Gerrit 2.14 the -q flag to ls-groups was deprecated in favor of -g. At some point between 2.14 and 3.2 the -q support was removed entirely. This change checks the gerrit version then uses the appropriate flag for querying a group based on that. We also add more robust testing to check creation of groups with spaces in their names. We also check that if an acl is updated without group changes that we don't try to recreate the group and get the group uuid successfully. Change-Id: I58c0aa2b496bcd792c8f4bc7db89b08cefa3af3d
README
Gerritlib is a Python library for interacting with Gerrit. It aims to provide a more conventionally pythonic way of managing a Gerrit instance.
To install:
$ sudo python setup.py install
Online documentation:
Developers
Bug report:
Repository:
Cloning:
git clone https://git.openstack.org/openstack-infra/gerritlib
Patches are submitted via Gerrit at:
Please do not submit GitHub pull requests, they will be automatically closed.
More details on how you can contribute is available on our wiki at:
Writing a patch
We ask that all code submissions be pep8 and pyflakes clean. The
easiest way to do that is to run tox before submitting code for review
in Gerrit. It will run pep8
and pyflakes
in
the same manner as the automated test suite that will run on proposed
patchsets.
Installing without setup.py
Then install the required python packages using pip:
$ sudo pip install gerritlib
Description
Languages
Python
100%