gerrit/gerrit-acceptance-tests
David Pursehouse e2f4c2f127 OutputStreamQuery: Only return current patch set when visible to user
When querying changes with the 'gerrit query' ssh command, and
passing the --current-patch-set option, the current patch set is
included even when it is not visible to the caller (for example when
the patch set is a draft, and the caller cannot see drafts).

This causes problems for example when the caller runs a query and
then tries to perform some operation on the revisions of the current
patchset revisions that were returned. For those revisions that are
not visible, the operation will fail.

The same is true when using the --patch-sets option.

Add a check for patch set visibility, and do not add it in the
results.

Bug: Issue 4070
Change-Id: Id68969bc49a9412ae81f252fd2d846539d9022fa
2016-04-22 08:31:22 +00:00
..
src/test/java/com/google/gerrit/acceptance OutputStreamQuery: Only return current patch set when visible to user 2016-04-22 08:31:22 +00:00
BUCK Revert "Allow tests to use hamcrest matchers directly" 2014-12-24 08:42:12 +00:00
tests.defs tests: Use insecure random for acceptance tests 2014-04-24 08:30:43 +02:00