gerrit/gerrit-acceptance-framework
David Pursehouse 39db6c73e6 Allow to enable note DB for all integration tests
So far only a subset of the tests have a configuration where the
note DB is enabled.

Remove the configuration from these tests, and instead allow the note
DB configuration to be enabled for all tests by setting an environment
variable, GERRIT_ENABLE_NOTEDB:

 GERRIT_ENABLE_NOTEDB=TRUE buck test --no-results-cache

When the variable is set and has a value "TRUE", "YES" or "Y" (case
insensitive), the note DB is enabled for all integration tests.

Note that when switching between enabled and disabled note DB, the
--no-results-cache option must be specified, otherwise buck will not
actually run the tests again with the different setting.

Enabling the note DB exposes a number of failures in tests that were
not previously being run with note DB:

FAIL com.google.gerrit.acceptance.api.change.ChangeIT
FAIL com.google.gerrit.acceptance.api.change.CheckIT
FAIL com.google.gerrit.acceptance.api.revision.RevisionIT
FAIL com.google.gerrit.acceptance.git.SubmitOnPushIT
FAIL com.google.gerrit.acceptance.rest.change.SubmitByCherryPickIT
FAIL com.google.gerrit.acceptance.rest.change.SubmitByFastForwardIT
FAIL com.google.gerrit.acceptance.rest.change.SubmitByMergeAlwaysIT
FAIL com.google.gerrit.acceptance.rest.change.SubmitByMergeIfNecessaryIT
FAIL com.google.gerrit.acceptance.rest.change.SubmitByRebaseIfNecessaryIT
FAIL com.google.gerrit.acceptance.server.project.CustomLabelIT

This commit does not fix any of these failures; they will be addressed
separately in followup commits.

Change-Id: I09f513c352ba6b37b415ad804ad0a7c0a5cc3c6d
2015-10-26 09:29:06 +00:00
..
src/test/java/com/google/gerrit/acceptance Allow to enable note DB for all integration tests 2015-10-26 09:29:06 +00:00
BUCK Make gerrit-acceptance-framework's artifacts match plugin's scheme 2015-09-29 10:57:20 +02:00
pom.xml Expose acceptance test framework as new plugin artifact 2015-09-25 14:46:10 -04:00