mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 19:20:37 +02:00
Fix airbrake configuration in test
This commit is contained in:
parent
8666f4f714
commit
0ef6bd0475
2 changed files with 28 additions and 0 deletions
|
@ -152,3 +152,8 @@ same_site_session_cookies: 'false' # false|strict|lax
|
||||||
test:
|
test:
|
||||||
payments_seb_bank_certificate: 'test/fixtures/files/seb_bank_cert.pem'
|
payments_seb_bank_certificate: 'test/fixtures/files/seb_bank_cert.pem'
|
||||||
payments_seb_seller_private: 'test/fixtures/files/seb_seller_key.pem'
|
payments_seb_seller_private: 'test/fixtures/files/seb_seller_key.pem'
|
||||||
|
|
||||||
|
# Airbrake // Errbit:
|
||||||
|
airbrake_host: "https://your-errbit-host.ee"
|
||||||
|
airbrake_project_id: "1"
|
||||||
|
airbrake_project_key: "api_key"
|
||||||
|
|
23
config/initializers/errbit.rb
Normal file
23
config/initializers/errbit.rb
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
module Patches
|
||||||
|
module Airbrake
|
||||||
|
module SyncSender
|
||||||
|
def build_https(uri)
|
||||||
|
super.tap do |req|
|
||||||
|
req.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
Airbrake::SyncSender.prepend(::Patches::Airbrake::SyncSender)
|
||||||
|
|
||||||
|
Airbrake.configure do |config|
|
||||||
|
config.host = ENV['airbrake_host']
|
||||||
|
config.project_id = ENV['airbrake_project_id']
|
||||||
|
config.project_key = ENV['airbrake_project_key']
|
||||||
|
|
||||||
|
# Uncomment for Rails apps
|
||||||
|
config.environment = Rails.env
|
||||||
|
config.ignore_environments = %w(development test)
|
||||||
|
end
|
Loading…
Add table
Add a link
Reference in a new issue