summaryrefslogtreecommitdiff
path: root/spec/initializers
Commit message (Collapse)AuthorAgeFilesLines
* Remove ignored circuit_breaker columnsZeger-Jan van de Weg2019-06-281-20/+0
| | | | | | The circuit breaker itself got removed a while ago, when that happened some parts got left behind. Using grep old stale settings and validations were found and are now removed.
* Store Let's Encrypt private key in settingsVladimir Shushlin2019-05-281-11/+0
| | | | | | | | | | | | | | | | Storing this key in secrets.yml was a bad idea, it would require users using HA setups to manually replicate secrets across nodes during update, it also needed support from omnibus package * Revert "Generate Let's Encrypt private key" This reverts commit 444959bfa0b79e827a2a1a7a314acac19390f976. * Add Let's Encrypt private key to settings as encrypted attribute * Generate Let's Encrypt private key in database migration
* Generate Let's Encrypt private keyVladimir Shushlin2019-05-091-0/+11
|
* Run rubocop -a on CE filessh-upgrade-rubocop-0.68.0-ceStan Hu2019-05-051-2/+2
|
* Support both 0 and NULL lock_versionsDouwe Maan2018-12-271-0/+44
|
* Always load the metrics the lastLin Jen-Shin2018-12-211-1/+1
| | | | | Because this could potentially load a model and we shouldn't load models before all the patches we have in places.
* Update specs to rails5 formatblackst0ne-convert-specs-rails5-styleblackst0ne2018-12-191-2/+2
| | | | | | | | | | Updates specs to use new rails5 format. The old format: `get :show, { some: params }, { some: headers }` The new format: `get :show, params: { some: params }, headers: { some: headers }`
* Revert "Prefer to use correlation-id in logs"Kamil Trzciński2018-12-061-3/+3
| | | | This reverts commit 3560b11922fd180eea5cafd0e763e0e601c5c4ee.
* Prefer to use correlation-id in logsKamil Trzciński2018-12-061-3/+3
| | | | This changes `correlation_id` to be `correlation-id` when passed via jobs
* Log and pass correlation-id between Unicorn, Sidekiq and GitalyKamil Trzciński2018-12-061-0/+38
| | | | | | | | The Correlation ID is taken or generated from received X-Request-ID. Then it is being passed to all executed services (sidekiq workers or gitaly calls). The Correlation ID is logged in all structured logs as `correlation_id`.
* Correctly handle data-loss scenarios when encrypting columnsNick Thomas2018-11-271-0/+30
| | | | | | | | | If the EncryptColumns background migration runs in a sidekiq with a stale view of the database schema, or when the purported destination columns don't actually exist, data loss can result. Attempt to work around these issues by reloading schema information before running the migration, and raising errors if the model reports that any of its source or destination columns are missing.
* Eliminate duplicated wordsTakuya Noguchi2018-11-221-1/+1
| | | | Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
* Migrate storage nesting check to GitalyJacob Vosmaer (GitLab)2018-06-271-43/+0
|
* Fix Fog mockingKamil Trzciński2018-06-051-6/+6
|
* Update validatorpresigned-multipart-uploadsKamil Trzciński2018-06-041-3/+4
|
* Support presigned multipart uploadsKamil Trzciński2018-06-042-71/+89
|
* Merge branch 'sh-bump-ruby-2.4' into 'master'Stan Hu2018-06-011-1/+1
|\ | | | | | | | | Upgrade to Ruby 2.4.4 See merge request gitlab-org/gitlab-ce!19055
| * Upgrade to Ruby 2.4.4sh-bump-ruby-2.4Stan Hu2018-05-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Fixes that make this work: * A change in Ruby (https://github.com/ruby/ruby/commit/ce635262f53b760284d56bb1027baebaaec175d1) requires passing in the exact required length for OpenSSL keys and IVs. * Ensure the secrets.yml is generated before any prepended modules are loaded. This is done by renaming the `secret_token.rb` initializer to `01_secret_token.rb`, which is a bit ugly but involves the least impact on other files.
* | Replace grape-route-helpers with our own grape-path-helpersStan Hu2018-05-301-14/+0
|/ | | | | | | | | | | This gem (https://gitlab.com/gitlab-org/grape-path-helpers) makes a number of changes: 1. Brings in @mdelaossa's changes in https://github.com/reprah/grape-route-helpers/pull/21 2. Fixes some broken specs and code for Grape 1.0+ 3. Optimizes the generation of paths by bringing in @dblessing's HashWithIndifferentAccess changes in https://gitlab.com/gitlab-org/gitlab-ce/issues/45718#note_70123793 Closes #45718
* Remove method call to deprecated methodZeger-Jan van de Weg2018-05-111-20/+0
| | | | | Given the settings initializer creates Gitaly Storage Settings objects already, the calls to path can be moved to that initializer.
* Replacing gollum libs for custom gitlab onesFrancisco Javier López2018-04-131-62/+0
|
* Add `direct_upload` setting for artifactsdirect-upload-of-artifactsKamil Trzciński2018-04-051-0/+71
|
* Merge branch '40781-os-to-ce' into 'master'Sean McGivern2018-03-271-0/+24
|\ | | | | | | | | | | | | Bring Object Storage to CE Closes #4171, #4163, #3370, #2841, and #29203 See merge request gitlab-org/gitlab-ce!17358
| * Merge branch '4879-support-private-https-urls-for-object-storage' into 'master'Sean McGivern2018-02-281-0/+24
| | | | | | | | | | | | | | Resolve ""Support private HTTPS urls for object storage"" Closes #4879 See merge request gitlab-org/gitlab-ee!4475
* | Route path lookups through legacy_disk_pathmark-legacy-git-accessJacob Vosmaer2018-03-212-8/+8
|/
* Fix grape-route-helper route shadowinggrape-router-helpers-bugfixMario de la Ossa2018-01-291-0/+14
| | | | | Bringing in https://github.com/reprah/grape-route-helpers/pull/21 as a monkey patch since the grape-route-helpers project seems to be abandoned
* Default to HTTPS for all Gravatar URLsdefault-to-https-for-gravatar-urlsAchilleas Pipinellis2018-01-251-1/+1
| | | | | If using gravatar.com, both plain_url and ssl_url in settings are now served via HTTPS. Make this the default.
* Fixing bug related to wiki last versionFrancisco Javier López2018-01-091-0/+62
|
* Fix rspec errors, and add more tests to MethodCall and ActionViewPawel Chojnacki2017-11-021-4/+1
|
* Read circuitbreaker settings from `Gitlab::CurrentSettings`Bob Van Landuyt2017-10-171-20/+0
| | | | Instead of from the configuration file
* Upgrade doorkeeper-openid_connectMarkus Koller2017-09-201-9/+9
|
* Clean up read_registry scope changesRobin Bobbitt2017-09-181-2/+2
| | | | Closes #37789
* Fix doorkeeper failureKamil Trzciński2017-09-131-1/+1
|
* Setup repositories settings properlymk-setup-settings-properlyMichael Kozono2017-08-171-0/+9
|
* Setup LDAP settings properlyMichael Kozono2017-08-171-0/+16
|
* Add a Circuitbreaker for storage pathsBob Van Landuyt2017-08-042-0/+32
|
* Use described_class when possibleRémy Coutable2017-07-271-20/+20
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Remove superfluous lib: true, type: redis, service: true, models: true, ↵Rémy Coutable2017-07-275-5/+5
| | | | | | services: true, no_db: true, api: true Signed-off-by: Rémy Coutable <remy@rymai.me>
* Instrument Unicorn with Ruby exporterPaweł Chojnacki2017-07-041-1/+9
|
* Instrument MergeRequestDiff#load_commitsinstrument-merge-request-diff-load-commitsSean McGivern2017-06-141-0/+1
| | | | | | | This instrumentation isn't needed strictly for performance measurements, but just to see which controller actions call this method at all. See <https://gitlab.com/gitlab-org/gitlab-ce/issues/30224#note_32306159> for more details.
* Enable Style/Proc cop for rubocopmhasbini2017-04-021-1/+1
|
* Improve storage validation after configuration structure updatestorage-validation-improvementAlejandro Rodríguez2017-03-081-39/+53
| | | | | | | | | | Besides improving the error message to specify what exactly you need to do to solve the error, we now don't skip all storage validations on the test environment, so that you also get a nice error message if you're running tests. Now if conditions are met to skip valitaions (test env or env variable) we still make sure the settings _look_ sane, we just skip verifying the paths exists and meet the given conditions.
* Merge branch '28447-hybrid-repository-storages' into 'master' Sean McGivern2017-03-071-4/+24
|\ | | | | | | | | Update storage settings to allow extra values per shard See merge request !9597
| * Update storage settings to allow extra values per shard28447-hybrid-repository-storagesAlejandro Rodríguez2017-03-031-4/+24
| | | | | | | | | | | | | | 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
* | Add specs for Doorkeeper resource_owner_authenticatorMarkus Koller2017-03-071-4/+63
| |
* | Only use API scopes for personal access tokensMarkus Koller2017-03-071-0/+12
| |
* | Implement OpenID Connect identity providerMarkus Koller2017-03-071-3/+22
| |
* | Execute metrics initializer earlieretag-notes-pollingAdam Niedzielski2017-03-011-1/+1
|/ | | | | This makes sure that Gitlab::Metrics::RackMiddleware is added before Gitlab::EtagCaching::Middleware.
* Enable Style/SpaceInsideBracketsDouwe Maan2017-02-231-2/+2
|
* Add metric initializer specadd-metrics-initializer-specSean McGivern2017-01-241-0/+16
| | | | | | | | | | An empty file in one of the instrumented directories will cause the app to fail to start when metrics are enabled. Metrics aren't enabled by default in development or test. We could handle the empty file case explicitly, but a file could still not define the constant it is expected to, so instead run the initializer manually in a spec and check that it succeeds.