gerrit/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/rest/change
Andrii Shyshkalov da2034f1a3 New extension to validate branch updates by submit strategies.
Adds new extension point to validate a branch tip update when a change is being
submitted by submit strategy. As submit strategies may generate new commits
(e.g. Cherry Pick), this listener allows validation of resulting new commit
before branch is updated, potentially aborting the submission.

Before, only MergeValidationListener.onPreMerge was available to
validate changes being submitted. However, onPreMerge was called
before submit strategies were run, thus commits generated by submit
strategies were previously impossible to validate.

Now, OnSubmitValidationListener.preBranchUpdate can be used
to abort submission before any refs are updated, even if there are
several changes submitted together.

Change-Id: I2ab75c7c38eb8ed0c010507b49f40e1b5cebad3b
2017-01-19 13:44:16 -08:00
..
AbstractSubmit.java New extension to validate branch updates by submit strategies. 2017-01-19 13:44:16 -08:00
AbstractSubmitByMerge.java Extend submit tests with more assertions on events 2016-06-15 17:06:28 +09:00
AbstractSubmitByRebase.java Merge "Don't require Add Patch Set permission for submit by rebase" 2016-12-20 14:44:43 +00:00
ActionsIT.java RevisionApi: Add method to get revision ETag 2016-11-21 06:31:49 +09:00
AssigneeIT.java Merge "Send email notification to user that is assigned to a change" 2016-12-07 12:52:36 +00:00
BUCK Acceptance tests: Use glob to collect SUBMIT_UTIL_SRCS 2016-10-24 06:50:16 +00:00
BUILD Bazel: Reformat build files 2016-12-07 11:33:07 +00:00
ChangeMessagesIT.java Add a testing method to set the clock step used by TimeUtil 2016-06-24 09:53:53 +09:00
ChangeOwnerIT.java Convert remaining uses of MetaDataUpdate to try-with-resource 2015-12-18 14:31:59 +09:00
ChangeReviewersIT.java Use change owner name in non-reviewer newchange emails 2016-12-20 09:09:34 -08:00
ConfigChangeIT.java Prevent inheriting from multiple projects 2016-11-13 18:27:54 +00:00
CorsIT.java Allow CORS based on site.allowOriginRegex 2016-08-24 07:48:59 -07:00
CreateChangeIT.java Organize imports 2017-01-17 09:01:09 +09:00
DeleteDraftPatchSetIT.java Extract RevisionNote.Comment and use it instead of PatchLineComment 2016-09-22 11:45:19 +02:00
DeleteVoteIT.java Fix import of TypeToken in DeleteVoteIT 2017-01-19 10:18:33 +01:00
DraftChangeIT.java DraftChangeIT: Simplify throws clauses 2016-10-25 17:19:26 +09:00
HashtagsIT.java Remove test prefix from test methods 2016-12-06 10:36:42 +01:00
IndexChangeIT.java AbstractDaemonTest: Add user SSH session 2016-04-25 07:28:21 +00:00
ListChangesOptionsIT.java Use native constructors instead of Guava to instantiate empty collections 2016-05-04 22:41:39 +09:00
MoveChangeIT.java MoveInput: Consistently use camel case naming convention 2016-04-21 08:08:05 +02:00
SubmitByCherryPickIT.java Avoid passing ChangeControl to ChangeMessageModifier.onSubmit. 2016-11-30 18:19:08 +01:00
SubmitByFastForwardIT.java SubmitStrategy: Fix ordering of implicit and explicit operations 2016-06-16 13:21:57 +00:00
SubmitByMergeAlwaysIT.java SubmitStrategy: Fix ordering of implicit and explicit operations 2016-06-16 13:21:57 +00:00
SubmitByMergeIfNecessaryIT.java PreviewSubmit: fix generation of compressed tar entries 2016-12-07 10:04:31 -08:00
SubmitByRebaseAlwaysIT.java Avoid passing ChangeControl to ChangeMessageModifier.onSubmit. 2016-11-30 18:19:08 +01:00
SubmitByRebaseIfNecessaryIT.java Add new submit strategy "Rebase Always". 2016-10-21 13:25:32 +00:00
SubmitResolvingMergeCommitIT.java Make MergeSuperSet not a singleton 2016-09-12 12:18:06 -04:00
SuggestReviewersIT.java Merge branch 'stable-2.13' 2016-12-20 11:34:32 +01:00
TopicIT.java Organize imports 2016-07-20 00:34:16 +00:00