summaryrefslogtreecommitdiff
path: root/spec/workers/post_receive_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Rename GitPushService -> Git::BranchPushServiceNick Thomas2019-03-251-7/+7
|
* Rename GitTagPushService -> Git::TagPushServiceNick Thomas2019-03-251-6/+6
|
* Fix failing test in spec/workers/post_receive_spec.rbsh-fix-ee-issue-8871Stan Hu2019-02-061-4/+11
| | | | | | | | | | | | | | | | | This is what was happening before: 1. `Project#set_timestamps_for_create` was called at creation time and set the `last_activity_at` and `last_repository_updated_at` to the current timestamp T. 2. The test ran `PostReceive#perform`, which then called `PostReceive#process_wiki_changes`. If less than 500 milliseconds elapsed since T, then the update would just set the timestamp to T. To fix this problem, we can just use Timecop to ensure at least one second has elapsed after attempting to process changes. Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/8871
* Removes idenfitication by commit from Gitlab::Identifier51335-fail-early-when-user-cannot-be-identifiedTiago Botelho2018-10-251-0/+11
| | | | | | | Before we would need to identify a user when pushing through the GitLab UI. Since this is no longer the case we can remove the identification by commit and instead, use the identify_using_user
* User not defined in PostReceive#process_project_changesTiago Botelho2018-10-251-56/+68
| | | | | | | When Gitlab::GitPostReceive#changes_refs is empty user would not get defined and nil would be passed to PostReceive#after_project_changes_hooks which would then throw an error.
* Update project activity when pushing to a wiki repositoryda-update-project-activityDouglas Barbosa Alexandre2018-03-071-0/+12
|
* Improve post_receive spec by not stubbing private methodsGrzegorz Bizon2017-10-101-5/+7
|
* Fix post receive specs regarding pipeline creationGrzegorz Bizon2017-09-261-5/+8
|
* Removes default scope from sortable23079-remove-default-scope-in-sortableTiago Botelho2017-09-071-0/+2
|
* Enable the Layout/SpaceBeforeBlockBraces coprc/enable-the-Layout/SpaceBeforeBlockBraces-copRémy Coutable2017-08-091-2/+2
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge remote-tracking branch 'upstream/master' into 30634-protected-pipelineLin Jen-Shin2017-06-291-44/+31
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * upstream/master: (1168 commits) Job details won't scroll horizontally to show long lines Bring back branches badge to main project page Limit OpenGraph image size to 64x64 Improve changelog Split up MergeRequestsController Add parent_id back to the tests Make changelog more descriptive Improve tests text Rename members_count to members_count_with_descendants and expose only to group admins Fix a bug where an invalid sort param value was passed to Gitaly Drop default ORDER scope when calling a find method on a Sortable model Add tests for project import state transition: [:started] => [:finished] Add CHANGELOG Perform housekeeping only when an import of a fresh project is completed Strip trailing whitespace in relative submodule URL Adjust projects spec on namespace fields Add "members_count" and "parent_id" data on namespaces API Removes redundant pending delete checks Fix gitaly ref encoding bugs Add ProjectWiki#ensure_repository ...
| * Use gl_repository exclusively as identifier on post-receivepostreceive-gl-repositoryAlejandro Rodríguez2017-06-271-25/+13
| |
| * Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon2017-06-211-3/+3
| |
| * Add “Project moved” error to Git-over-SSHMichael Kozono2017-06-161-1/+1
| |
| * Correct RSpec/SingleLineHook cop offensesRobert Speicher2017-06-141-1/+3
| |
| * Refactor PostReceive worker to limit merge conflictsport-post-receive-changesDouglas Barbosa Alexandre2017-06-051-16/+13
| |
* | Try to report why it's failing and fix testsLin Jen-Shin2017-06-061-0/+1
|/
* Disable auto_cancel_pending_pipelines in PostReceive testLin Jen-Shin2017-05-151-2/+5
|
* Added repository_update hookGabriel Mazetto2017-05-121-1/+22
|
* Allow gl-repository strings as project identifiers in PostReceive workerAlejandro Rodríguez2017-05-051-11/+32
|
* Auto-correct `RSpec/DescribedClass` violationsrs-described_class-cop-2Robert Speicher2017-05-011-9/+9
|
* Use `:empty_project` where possible in worker specsRobert Speicher2017-03-271-1/+1
|
* Update storage settings to allow extra values per shard28447-hybrid-repository-storagesAlejandro Rodríguez2017-03-031-1/+1
| | | | | | | This will be necessary when adding gitaly settings. This version doesn't make any functional changes, but allows us to include this breaking change in 9.0 and add the needed extra settings in the future with backwards compatibility
* replace `find_with_namespace` with `find_by_full_path`Adam Pahlevi2017-02-031-3/+3
| | | | add complete changelog for !8949
* Extract project#update_merge_requests and SystemHooks to its own worker from ↵15463-extract-update-merge-requestsPaco Guzman2016-10-131-1/+7
| | | | GitPushService
* Refactor Gitlab::IdentifierYorick Peterse2016-10-051-1/+3
| | | | | | This refactors Gitlab::Identifier so it uses fewer queries and is actually tested. Queries are reduced by caching the output as well as using 1 query (instead of 2) to find a user using an SSH key.
* Pre-create all builds for Pipeline when a trigger is receivedKamil Trzcinski2016-08-111-1/+7
| | | | | | | | | | | This change simplifies a Pipeline processing by introducing a special new status: created. This status is used for all builds that are created for a pipeline. We are then processing next stages and queueing some of the builds (created -> pending) or skipping them (created -> skipped). This makes it possible to simplify and solve a few ordering problems with how previously builds were scheduled. This also allows us to visualise a full pipeline (with created builds). This also removes an after_touch used for updating a pipeline state parameters. Right now in various places we explicitly call a reload_status! on pipeline to force it to be updated and saved.
* adds second batch of tests changed to active tenseactive-tense-test-coveragetiagonbotelho2016-08-091-3/+3
|
* Refactor repository paths handling to allow multiple git mount pointsAlejandro Rodríguez2016-06-291-1/+1
|
* Rename all `[ci_]commit` to `[ci_]pipeline` in specs and featuresKamil Trzcinski2016-06-031-2/+2
|
* Rename Ci::Commit to Ci::Pipeline and rename some of the ci_commit to pipelineKamil Trzcinski2016-06-021-4/+4
|
* Enable RSpec/NotToNot cop and auto-correct offensesrs-rubocop-nottonotRobert Speicher2016-05-241-1/+1
| | | | Also removes the note from the development/testing.md guide
* Fix creation of Ci::Commit object which can lead to pending, failed in some ↵Kamil Trzcinski2016-05-191-0/+16
| | | | scenarios
* Fix high CPU usage when PostReceive receives refs/merge-requests/<id>push-refKamil Trzcinski2016-04-111-4/+39
|
* web hooks to webhooksashleys2016-03-101-1/+1
|
* Expire cache when merge request source branch was removedfix-branches-cache-after-mergeDmitriy Zaporozhets2015-08-281-1/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Update mock and stub syntax for specsRobert Speicher2015-06-221-1/+1
|
* Prevent gitlab-shell character encoding issues by receiving its changes as ↵Douwe Maan2015-03-151-9/+9
| | | | raw data.
* Updated rspec to rspec 3.x syntaxJeroen van Baarsen2015-02-121-8/+8
| | | | Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
* Fix post-receive specsDmitriy Zaporozhets2014-09-021-4/+7
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Merge branch 'improve/mr_diff'Dmitriy Zaporozhets2014-01-231-1/+1
|\ | | | | | | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> Conflicts: features/steps/project/project_fork.rb features/steps/project/project_forked_merge_requests.rb features/steps/project/project_issue_tracker.rb features/steps/project/project_markdown_render.rb features/steps/shared/project.rb
| * Make changes to testsDmitriy Zaporozhets2014-01-221-1/+1
| | | | | | | | | | | | | | * project_with_code -> project * project -> ermpty_project Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Remove deprecated findersskv2014-01-191-1/+1
|/
* fixed test using repo with commits but old factoryDmitriy Zaporozhets2013-04-011-1/+1
|
* Fixing testsDmitriy Zaporozhets2013-02-251-2/+0
|
* fixing tests after refactoringDmitriy Zaporozhets2013-02-111-1/+1
|
* Fixed: post-receive, project remove, testsDmitriy Zaporozhets2013-02-051-2/+2
|
* sidekiq with green testsDmitriy Zaporozhets2013-01-091-4/+4
|
* Update uses of Gitolite.config.foo settingsRiyad Preukschas2012-12-201-1/+1
|
* Fix spec/workers/post_receive_spec.rbDmitriy Zaporozhets2012-12-131-2/+2
|