summaryrefslogtreecommitdiff
path: root/spec/support/test_env.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix Error 500 when creating a merge request that contains an image that was ↵stanhu/gitlab-ce-fix-error-500-with-mr-imagesStan Hu2016-11-141-0/+1
| | | | | | | | | | | | | | | | | deleted and added Steps to reproduce: 1. Start with a repo with an image 2. Add a commit to delete the image 3. Add another commit to replace the image with another image In a diff comparison, we really just compare about what the image was before the diff, not the direct parent of the last commit. This MR fixes that. Closes #3893, gitlab-org/gitlab-ee#678 Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fix expanding a collapsed diff when converting a symlink to a regular fileadam-fix-collapsed-diff-symlink-file-conversionAdam Niedzielski2016-11-101-0/+1
| | | | | In this case comparing old_path and new_path is not enough because there are two entires that match.
* Use `git update-ref --stdin -z` to speed up TestEnv.set_repo_refsNick Thomas2016-11-071-13/+11
| | | | | Previously, we were calling `git update-ref <ref> <sha>` about 30 times per test using `create(:project)` or similar.
* Merge branch 'master' into merge-conflicts-editor-2Alfredo Sumaran2016-10-171-1/+3
|\
| * Fix Test Env (proper error handling when gitlab-shell is not clonned)Valery Sizov2016-10-171-1/+3
| |
* | Merge branch 'master' into merge-conflicts-editor-2Sean McGivern2016-10-171-0/+1
|\ \ | |/
| * Fix Spinach merge request diff failuresStan Hu2016-10-151-0/+1
| | | | | | | | | | | | | | | | gitlab-git-test `master` was updated in ff076d88, and this caused the merge request diffs to change in a way that broke assumptions in the Spinach tests. Partial fix to #23378
* | Fix specsSean McGivern2016-10-131-2/+2
|/
* writes tests to verify the issue is solved and fixes breaking issues.tiagonbotelho2016-10-091-1/+3
|
* Fix resolving conflicts on forks21459-resolving-merge-conflicts-from-a-forked-repo-through-uiSean McGivern2016-08-301-20/+27
| | | | | | Forks may not be up-to-date with the target project, and so might not contain one of the parent refs in their repo. Fetch this if it isn't present.
* Handle non-UTF-8 conflicts gracefully21247-mergerequestscontroller-conflicts-may-fail-with-iso-8859-dataSean McGivern2016-08-251-1/+2
| | | | | | | These can't be resolved in the UI because if they aren't in a UTF-8 compatible encoding, they can't be rendered as JSON. Even if they could, we would be implicitly changing the file encoding anyway, which seems like a bad idea.
* Add more tests for conflictsSean McGivern2016-08-121-21/+25
|
* Add backend for merge conflicts readingSean McGivern2016-08-121-0/+2
|
* Add failing test for #20462winniehell2016-08-021-0/+1
|
* Trim extra displayed carriage returns in diffs and files with CRLFsStan Hu2016-08-011-1/+2
| | | | Closes #20440
* Ensure relative paths for video are rewritten as we do for images20189-markdown-video-doesn-t-work-when-the-referenced-video-file-is-in-same-repoRémy Coutable2016-07-261-1/+2
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Collapsed diffs lines/size don't accumulate to overflow diffs.19820-safer-diffsPaco Guzman2016-07-181-1/+3
|
* Fix feature specs on CIsingle-file-diffsSean McGivern2016-07-111-15/+14
| | | | | MySQL's text column isn't big enough for the diffs in the expand-collapse-diffs branch.
* Support renames in diff_for_path actionsSean McGivern2016-07-111-13/+15
|
* Improve the error message displayed when branch creation fails.Timothy Andrew2016-07-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Note: This feature was developed independently on master while this was in review. I've removed the conflicting bits and left the relevant additions, mainly a test for `Gitlab::Git::Hook`. The original commit message follows: 1. `gitlab-shell` outputs errors to `stderr`, but we weren't using this information, prior to this commit. Now we capture the `stderr`, and display it in the flash message when branch creation fails. 2. This can be used to display better errors for other git operation failures with small tweaks. 3. The return value of `Gitlab::Git::Hook#trigger` is changed from a simple `true`/`false` to a tuple of `[status, errors]`. All usages and tests have been updated to reflect this change. 4. This is only relevant to branch creation _from the Web UI_, since SSH and HTTP pushes access `gitlab-shell` either directly or through `gitlab-workhorse`. 5. A few minor changes need to be made on the `gitlab-shell` end. Right now, the `stderr` message it outputs is prefixed by "GitLab: ", which shows up in our flash message. This is better removed.
* Remove hardcoded gitlab-shell version in test env now that the required tag ↵Alejandro Rodríguez2016-06-301-2/+1
| | | | is published
* Refactor repository paths handling to allow multiple git mount pointsAlejandro Rodríguez2016-06-291-5/+6
|
* support cgi style options, such as erb?parent=jsonhttp://jneen.net/2016-06-271-1/+1
|
* fix the spec, using project.change_headhttp://jneen.net/2016-06-271-0/+1
|
* Revert "bump the master sha for gitlab-test!9"http://jneen.net/2016-06-271-1/+1
| | | | This reverts commit b435d7405364d28ec364072f4437512da2876762.
* bump the master sha for gitlab-test!9http://jneen.net/2016-06-271-1/+1
|
* Fix Error 500 when viewing a blob with binary characters after the 1024-byte ↵Stan Hu2016-06-121-0/+1
| | | | | | | | | | | | | | | | mark Here was the problem: 1. When determining whether a given blob is viewable text, gitlab_git reads the first 1024 bytes and checks with Linguist whether it is a text or binary file. 2. If the blob is text, GitLab will attempt to display it. 3. However, if the text has binary characters after the first 1024 bytes, then GitLab will attempt to load the entire contents, but the encoding will be ASCII-8BIT since there are binary characters. 4. The Error 500 results when GitLab attempts to display a mix UTF-8 and ASCII-8BIT. To fix this, we load as much data as we are willing to display so that the detection will work properly. Requires an update to gitlab_git: gitlab-org/gitlab_git!86 Closes #13826
* Fix creation of merge requests for orphaned branchesStan Hu2016-04-041-0/+1
| | | | Closes #14875
* Prevent transient Capybara timeouts during feature testsrs-transient-capybara-timeoutRobert Speicher2016-01-281-1/+16
| | | | | | | | | | | The problem occurred because asset compilation takes a long time, so when the asset cache didn't exist and the first test ran, it would often (randomly) time out during the generation before the actual test even had a chance to run. Now we check if the cache exists before the suite runs, and if not, we manually fire a request to the root URL in order to generate it. This should allow subsequent tests to use the cached assets.
* Merge branch 'serve_lfs_object' into 'master' Douwe Maan2015-12-081-0/+1
|\ | | | | | | | | | | | | Serve LFS object Depends on gitlab-org/gitlab_git!57 See merge request !1976
| * Fix specs caused by update of gitlab-test repo.serve_lfs_objectMarin Jankovski2015-12-081-1/+2
| |
| * Add specs for showing lfs object in UI.Marin Jankovski2015-12-071-1/+1
| |
* | Fix 500 error when creating a merge request that removes a submoduleDouglas Barbosa Alexandre2015-12-041-1/+2
|/
* Replace all usages of `git` command with configurable binary pathrs-git-bin-pathRobert Speicher2015-11-031-4/+4
| | | | Closes #3311
* Fix error preventing displaying of commit data for a directory with a ↵Stan Hu2015-10-121-1/+1
| | | | | | leading dot Closes https://github.com/gitlabhq/gitlabhq/issues/8763
* Refactor pre/post receive commit services into one classDmitriy Zaporozhets2015-08-141-1/+1
|
* Fix tests for web editorDmitriy Zaporozhets2015-08-141-3/+0
|
* Disable pre-receive check in test envDmitriy Zaporozhets2015-08-141-0/+7
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into ↵Jacob Vosmaer2015-07-291-1/+2
|\ | | | | | | backup-archive-permissions
| * Fix commit data retrieval when branch name has single quotesStan Hu2015-07-261-1/+2
| | | | | | | | Closes #1724
* | Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into ↵Jacob Vosmaer2015-07-271-3/+8
|\ \ | |/ | | | | backup-archive-permissions
| * Fix 404 error in files view after deleting the last file in a repositoryStan Hu2015-07-211-3/+8
| | | | | | | | Closes #1362
* | Use a separate backup test directory and nuke its contentsJacob Vosmaer2015-07-241-0/+5
|/
* Update mock and stub syntax for specsRobert Speicher2015-06-221-2/+4
|
* Don't delete gitlab-test-fork folder after every test runRobert Speicher2015-05-021-1/+2
|
* Fix "Revspec not found" errors when viewing diffs in a forked project with ↵Stan Hu2015-04-271-7/+46
| | | | | | submodules Closes #1413
* Define GIT_TEMPLATE_DIR environment variable in TestEnvRobert Speicher2015-03-271-1/+7
| | | | | | | | | See http://schacon.github.io/git/git-init.html#_template_directory Without this variable, any global git hooks a developer might have in ~/.git_template would be linked in the `.git/hooks` folder for every test repository that gets checked out by TestEnv, and would cause certain specs to fail due to pre-existing hook files.
* TestEnv improvementsRobert Speicher2015-02-161-14/+20
| | | | | | - Simplify cleaning the temporary testing path in TestEnv - Don't run gitlab:shell:install if it's already installed - Run git commands quietly
* Updated rspec to rspec 3.x syntaxJeroen van Baarsen2015-02-121-3/+1
| | | | Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
* Add flatten-dir branch to seed repoDmitriy Zaporozhets2015-01-101-0/+1
|