summaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-181-0/+4
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-161-0/+11
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-111-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-071-0/+2
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-061-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-021-0/+4
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-021-0/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-261-0/+19
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-181-1/+3
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-131-0/+2
|
* Use stub_rails_env for Rails.env stubbing66966-convert-rails-env-stub-usages-to-use-railshelpers-stub_rails_env-insteadAsh McKenzie2019-09-051-0/+1
| | | | | RailsHelpers.stub_rails_env takes care of stubbing Rails.env
* Stub DetectRepositoryLanguagesWorker for all testsIgor2019-09-031-0/+6
| | | | | It performs an expensive operation, but isn't required in most of tests
* Allow to use focus: true in specsGiorgenes Gelatti2019-08-111-0/+3
|
* Again run quarantine specs if tag providedtc-reanble-running-quarantined-specsToon Claes2019-08-021-2/+2
| | | | | | In f59438c0a9da7bb4d98291d2adedfc5a13a50798 we changed how quarantined specs are excluded. But that made it impossible to run them by providing `--tag quarantine`, this changes that.
* Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhqRobert Speicher2019-07-291-0/+1
|\
| * Merge branch 'security-dns-ssrf-bypass' into 'master'GitLab Release Tools Bot2019-07-261-0/+1
| |\ | | | | | | | | | | | | | | | | | | Server Side Request Forgery mitigation bypass Closes #2872 See merge request gitlab/gitlabhq!3205
| | * Fix Server Side Request Forgery mitigation bypassFrancisco Javier López2019-07-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we can't resolve the hostname or it is invalid, we shouldn't even perform the request. This fix also fixes the problem the SSRF rebinding attack. We can't stub feature flags outside example blocks. Nevertheless, there are some actions that calls the UrlBlocker, that are performed outside example blocks, ie: `set` instruction. That's why we have to use some signalign mechanism outside the scope of the specs.
* | | Remove code related to object hierarchy in MySQLremove-nested-groups-checksHeinrich Lee Yu2019-07-251-8/+0
|/ / | | | | | | | | These are not required because MySQL is not supported anymore
* | Remove dead MySQL codeNick Thomas2019-07-231-4/+0
| | | | | | | | None of this code can be reached any more, so it can all be removed
* | Merge branch 'webide-commit-use-correct-parent' into 'master'Nick Thomas2019-07-181-0/+1
|\ \ | | | | | | | | | | | | Use correct parent when committing in WebIDE See merge request gitlab-org/gitlab-ce!29598
| * | Add start_sha to commits APIMarkus Koller2019-07-181-0/+1
| |/ | | | | | | | | | | | | | | | | | | When passing start_branch on committing from the WebIDE, it's possible that the branch has changed since editing started, which results in the change being applied on top of the latest commit in the branch and overwriting the new changes. By passing the start_sha instead we can make sure that the change is applied on top of the commit which the user started editing from.
* | Wrap rugged calls with access disk blockjc-wrap-rugged-calls-with-disk-accessJohn Cai2019-07-161-0/+2
|/ | | | | Whenever we use the rugged implementation, we are going straight to disk so we want to bypass the disk access check.
* Merge branch 'js-specs-transactions' into 'master'Andreas Brandl2019-07-121-1/+11
|\ | | | | | | | | | | | | Use transactions in JS feature specs Closes #60207 See merge request gitlab-org/gitlab-ce!27496
| * Use transactions in JS feature specsjs-specs-transactionsHeinrich Lee Yu2019-07-121-1/+11
| | | | | | | | | | Uses Rails transactional tests instead of DatabaseCleaner transaction strategy because that doesn't work with JS tests
* | Gather memory usage data in testsAleksei Lipniagov2019-07-121-0/+1
|/ | | | Log memory stats after running each spec file and compile the report.
* Add a memory cache local to the thread to reduce Redis loadStan Hu2019-07-011-0/+2
| | | | | | | | | | | | Loading `ApplicationSetting` from Redis was responsible for at least 50% of the CPU load of the Redis cluster on GitLab.com. Since these values generally don't change very much, we can load this from the database and cache it in memory, skipping Redis altogther. We use `ActiveSupport::Cache::MemoryStore` as a drop-in replacement for `RedisCacheStore` even though we probably don't need synchronized access within `Thread.current`. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/63977
* Disable Rails SQL query cache when applying service templatessh-service-template-bugStan Hu2019-06-251-0/+6
| | | | | | | | | | When the SQL query cache is active, the SELECT query for finding projects to apply service templates returns the same values. This causes an infinite loop because even though bulk INSERT queries are made, the cached results never reflect that progress. To fix this, we call `Project.uncached` around the query to ensure new data is retrieved. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/63595
* Revert "Merge branch 'revert-04c3c6dd' into 'master'"Rémy Coutable2019-05-221-1/+4
| | | | | This reverts commit 744f1f2e7037f5c70c3168d9e2e89b1c327465d2, reversing changes made to c4d930e5f54e7da07c80cc028dfc0f5c08719146.
* Revert "Merge branch 'reorganize-tests-jobs-by-level' into 'master'"revert-04c3c6ddKamil Trzciński2019-05-221-4/+1
| | | This reverts merge request !27514
* Reorganize test jobs by levelreorganize-tests-jobs-by-levelRémy Coutable2019-05-201-1/+4
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fix unrelated errors when teardowning quanrantined specsavoid-unrelated-errors-in-quarantined-specsRémy Coutable2019-05-101-1/+1
| | | | | | | | | | | | | Since we're skipping the example in a before hook, the @_subscribers instance variable that is normally set in the setup phase of the test by https://github.com/rails/rails-controller-testing/blob/21014e48be124dd8d0af250b79f682519d445015/lib/rails/controller/testing/template_assertions.rb#L21 isn't set but the teardown phase of the example still happens and tries to iterate over the array of subcribers: https://github.com/rails/rails-controller-testing/blob/21014e48be124dd8d0af250b79f682519d445015/lib/rails/controller/testing/template_assertions.rb#L54 Using an around hook allows the @_subscribers instance variable to be set. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Show full Rspec backtrace only in CIHeinrich Lee Yu2019-05-031-1/+1
|
* Add full backtrace for RSpec outputStan Hu2019-04-291-0/+1
| | | | Attempt to debug https://gitlab.com/gitlab-org/gitlab-ce/issues/60953
* Introduce the wait_for helper for system testsce-11224-flaky-test-projects-audit-events-adding-an-ssh-key-appears-in-the-project-s-audit-events-ee-spec-features-projects-audit_events_specRémy Coutable2019-04-181-0/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Double retries for rspec-retriesLin Jen-Shin2019-04-101-2/+2
| | | | It was 2*4 => 8 times before, so 4 times is still half retries
* Reduce number of rspec retriesSanad Liaquat2019-04-091-2/+2
| | | | | In both e2e QA tests and unit tests, reduce the number of retires to 2 (i.e., 1 initial and one retry)
* Merge branch '6539-extract-ee-specific-code' into 'master'Rémy Coutable2019-04-011-0/+1
|\ | | | | | | | | Add no-op license helper to CE See merge request gitlab-org/gitlab-ce!26723
| * Add no-op license helper to CE6539-extract-ee-specific-codeAlexandru Croitor2019-03-281-0/+1
| | | | | | | | | | | | | | | | Add no-op license helper to CE to make it compatible with EE codebase. Helper will be overwritten in EE to allow for CE specs to be run under EE codebase. https://gitlab.com/gitlab-org/gitlab-ee/issues/6539
* | Factorize policy helpers into PolicyHelpersRémy Coutable2019-03-271-0/+1
|/ | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Bring back Rugged implementation of find_commitStan Hu2019-03-011-1/+8
| | | | | | | | | | | | | | | | This brings back some of the changes in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/20339. For users using Gitaly on top of NFS, accessing the Git data directly via Rugged is more performant than Gitaly. This merge request introduces the feature flag `rugged_find_commit` to activate Rugged paths. There are also Rake tasks `gitlab:features:enable_rugged` and `gitlab:features:disable_rugged` to enable/disable these feature flags altogether. Part of four Rugged changes identified in https://gitlab.com/gitlab-org/gitlab-ce/issues/57317.
* Revert the "What's new" featureBrandon Labuschagne2019-01-291-5/+0
|
* Add jobs to run quarantine testsRémy Coutable2019-01-151-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Allow to quarantine testsRémy Coutable2019-01-151-0/+5
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Resolve "Add "What's new" menu item in top navigation"Brandon Labuschagne2019-01-141-0/+5
|
* Merge remote-tracking branch 'upstream/master' into ↵Lin Jen-Shin2018-12-261-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 54953-error-500-viewing-merge-request-due-to-nil-commit_email_hostname * upstream/master: (115 commits) [CE] Speed up login page usage Add new line and comments Fix the seeder 24_forks.rb cannot find public project Milestones on community contribution issues Removed Gitlab Upgrader found in /lib/gitlab/upgrader.rb Fix and move specs into admin_disables_git_access_protocol_spec.rb Fix HTTP/SSH clone panel for mobile Add spec for HTTP/SSH clone panel Fix missing Git clone button when protocol restriction setting enabled Fix deprecation: Using positional arguments in integration tests Extend override check to also check arity Update tm cli version Bump Gitaly version to v1.12.0 Add @dbalexandre to CODEOWNERS Update verbiage for clarity Change group-cluster beta to regular note Change alpha states to use note instead of warning Update registry section. Update serverless.yaml formatting Clarify obtaining application URL Add @godfat to CODEOWNERS ...
| * Rename GroupHierarchy into ObjectHierarchyJarka Košanová2018-12-191-1/+1
| | | | | | | | | | | | - we now use the hierarchy class also for epics - also rename supports_nested_groups? into supports_nested_objects? - move it to a concern
* | Make sure we clear the application settings afterLin Jen-Shin2018-12-191-0/+2
| | | | | | | | migration tests.
* | Use fake application settings for migration testsLin Jen-Shin2018-12-191-0/+2
|/
* Merge branch 'fix-rspec-offcense' into 'master'Rémy Coutable2018-12-171-3/+3
|\ | | | | | | | | Fix RSpec/HookArgument rubocop offense See merge request gitlab-org/gitlab-ce!23776
| * Fix RSpec/HookArgument rubocop offenseSemyon Pupkov2018-12-111-3/+3
| |