Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-07-09Updates from `rubocop -a`Lin Jen-Shin
2018-07-06Fix User role displayed on projects dashboardFrancisco Javier López
2018-06-21Implement `expect_next_instance_of` and use itLin Jen-Shin
We need this because `expect_any_instance_of` doesn't work on prepended models. Now we could use the same code between CE/EE
2018-06-14Port route helper from EE to CELin Jen-Shin
2018-06-12Find and mark more Git disk access locations, part 2Jacob Vosmaer
2018-06-05Fix Fog mockingKamil Trzciński
2018-05-10Support resetting of Prometheus metrics between test runsStan Hu
Adding the :prometheus tag to an rspec test will clear out memory-mapped files and reset the registry. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/39968
2018-05-04Introduce Redis helpers. Rename BuildTraceChunkFlushToDbWorker to ↵Shinya Maeda
Ci::BuildTraceChunkFlushWorker.
2018-04-25Gitlab::Shell works on shard name, not pathZeger-Jan van de Weg
Direct disk access is done through Gitaly now, so the legacy path was deprecated. This path was used in Gitlab::Shell however. This required the refactoring in this commit. Added is the removal of direct path access on the project model, as that lookup wasn't needed anymore is most cases. Closes https://gitlab.com/gitlab-org/gitaly/issues/1111
2018-04-23Move spec helpers/matchers/shared examples/contexts to their relevant folderRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-04-06Introduce a new FactoriesInMigrationSpecs copRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-04-03Use shard name in Git::GitlabProjects instead of shard pathAhmad Sherif
Closes gitaly#1110
2018-03-28Clean the test path after each spec runStan Hu
FactoryBot's build_stubbed ignores the current database sequence of the projects table and starts at ID 1000. If more than 1000 projects are created during a test run, leftover repositories can cause spec failures. For example, a spec that expects an empty repository may fail since there may be existing content. Closes #5461
2018-03-22Add HTTPS-only pagesRob Watson
Closes #28857
2018-03-01Adapt cycle analytics spec helper and cycle analytics usage data specTiago Botelho
2018-02-22Port `read_cross_project` ability from EEBob Van Landuyt
2018-02-17Make :migration specs a little more robustMichael Kozono
E.g. https://gitlab.com/gitlab-org/gitlab-ce/-/jobs/52873034
2018-01-19Ensure hooks are deleted regardless of the project forking methodAlejandro Rodríguez
2018-01-15Use an at_exit hook to stop test gitalyJacob Vosmaer
2017-12-14Replace factory_girl_rails with factory_bot_railsRémy Coutable
I've followed the [upgrade guide](https://github.com/thoughtbot/factory_bot/blob/4-9-0-stable/UPGRADE_FROM_FACTORY_GIRL.md) and ran these two commands: ``` grep -e FactoryGirl **/*.rake **/*.rb -s -l | xargs sed -i "" "s|FactoryGirl|FactoryBot|" grep -e factory_girl **/*.rake **/*.rb -s -l | xargs sed -i "" "s|factory_girl|factory_bot|" ``` Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-12-08Move the circuitbreaker check out in a separate processBob Van Landuyt
Moving the check out of the general requests, makes sure we don't have any slowdown in the regular requests. To keep the process performing this checks small, the check is still performed inside a unicorn. But that is called from a process running on the same server. Because the checks are now done outside normal request, we can have a simpler failure strategy: The check is now performed in the background every `circuitbreaker_check_interval`. Failures are logged in redis. The failures are reset when the check succeeds. Per check we will try `circuitbreaker_access_retries` times within `circuitbreaker_storage_timeout` seconds. When the number of failures exceeds `circuitbreaker_failure_count_threshold`, we will block access to the storage. After `failure_reset_time` of no checks, we will clear the stored failures. This could happen when the process that performs the checks is not running.
2017-11-30Set an artificial $HOME for gitaly in testJacob Vosmaer (GitLab)
2017-11-21Fix reply quote keyboard shortcut on MRsEric Eastwood
Fix https://gitlab.com/gitlab-org/gitlab-ce/issues/40295
2017-11-03Merge branch 'master' into sh-headless-chrome-supportMike Greiling
* master: (109 commits) Remove Filesystem check metrics that use too much CPU to handle requests Set merge_request_diff_id on MR when creating Add a column linking an MR to its diff Remove useless closeReopenReport specs Clarify external artifacts only working when GitLab pages is enabled Send SIGSTP before SIGTERM to actually give Sidekiq jobs 30s to finish when the memory killer kicks in Remove an exception from the git user default SSH config check Geo route whitelisting is too optimistic Update .nvmrc to current stable (v9.0.0) Update documentation Address Douwe's feedback Refactor responsive table styles to support nested error block Add changelog items Update specs for sudo behavior Move RSS and incoming email tokens from User Settings > Accounts to User Settings > Access Tokens Remove user authentication_token column Migrate user private tokens to personal access tokens Add sudo API scope Consistently use PersonalAccessToken instead of PersonalToken Remove User#private_token ...
2017-11-02add InspectRequests helper automatically to :js testsMike Greiling
2017-11-02add CookieHelper and InputHelper automatically to :js testsMike Greiling
2017-10-16Add LiveDebugger#live_debug to debug Capybara in feature tests.Rémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-10-04Improve the flaky examples detection jobsRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-10-03Resolve "Precompiled assets with digest strings are ignored in CI"Mike Greiling
2017-09-22Automatically set a :type for specsRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-09-14Force `RAILS_ENV` to `test` in `spec/spec_helper.rb`Rémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-08-22Stub `ForkedStorageCheck.storage_available?` by default in all specsRobert Speicher
Add `:broken_storage` metadata to examples to disable this behavior only when necessary.
2017-08-17Migrate down before each migration unit testGrzegorz Bizon
`migrate!` helper triggers a migration that is under the test, so we need to revert it before each subsequent example. This means that we need to place it in `before(:each, :migration)` hook. We still want to migrate everything up *after* each *context*, so in otherwords we need to place migrate up helper in `before(:context, :migration)`.
2017-08-16Make it possible to provide schema version in testsGrzegorz Bizon
2017-08-16Migrate db schema for context in :migration specsGrzegorz Bizon
2017-08-14Merge branch '35804-document-table-based-tests' into 'master'Robert Speicher
Use rspec-parameterized for table-based tests Closes #35804 See merge request !13469
2017-08-11Merge branch '32004-use-timecop-safe-mode' into 'master'Robert Speicher
Enable Timecop safe mode Closes #32004 See merge request !13498
2017-08-11Use a new RspecFlakyListener to detect flaky specsRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-08-11Enable Timecop safe modeRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-08-11Use rspec-parameterized for table-based testsNick Thomas
2017-08-07Reset only migration modelsLin Jen-Shin
So that we could make sure migration tests could run even if geo is not setup in EE. This is because we have a model like this: ``` ruby class Geo::BaseRegistry < ActiveRecord::Base def self.connection raise 'Geo secondary database is not configured' unless Gitlab::Geo.geo_database_configured? super end end ```
2017-08-02Don't send rejection mails for all auto-generated mailsLin Jen-Shin
Also make it easier to have mailer helper
2017-07-31Remove events column from notification settingsSean McGivern
This was migrated to separate columns in 9.4, and now just needs to be removed for real.
2017-07-28Ensure Gitlab::Application.routes.default_url_options are set correctly in ↵Rémy Coutable
Capybara + :js specs Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-24Update shoulda-matchers gem to 3.1.2Dmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2017-07-19Update Prometheus gem to version that explicitly calls `munmap`Paweł Chojnacki
2017-07-13Enable all feature flags by default in specsBob Van Landuyt
Otherwise some features would go untested in non-specific contexts I did need to disable the `gitlab_git_diff_size_limit_increase`-feature in some specs since we depend on diffs being expandable while the file we are testing on is smaller than the increased limit.
2017-07-12Replace 'browse_files.feature' spinach test with an rspec analogblackst0ne
2017-07-11Support multiple Redis instances based on queue typePaul Charlton
2017-07-07Include new URL helpers retroactively into includers of Gitlab::RoutingDouwe Maan