Merge branch 'develop' into private-me-several_enhancements
This commit is contained in:
commit
a160c518e1
3 changed files with 13 additions and 2 deletions
|
@ -232,6 +232,18 @@ test:integration:telegram:
|
||||||
- ruby -I test test/integration/telegram_controller_test.rb
|
- ruby -I test test/integration/telegram_controller_test.rb
|
||||||
- rake db:drop
|
- rake db:drop
|
||||||
|
|
||||||
|
test:integration:twilio:
|
||||||
|
<<: *artifacts_error
|
||||||
|
stage: test
|
||||||
|
variables:
|
||||||
|
RAILS_ENV: "test"
|
||||||
|
tags:
|
||||||
|
- core
|
||||||
|
script:
|
||||||
|
- rake zammad:db:init
|
||||||
|
- ruby -I test test/integration/twilio_sms_controller_test.rb
|
||||||
|
- rake db:drop
|
||||||
|
|
||||||
test:integration:idoit:
|
test:integration:idoit:
|
||||||
<<: *artifacts_error
|
<<: *artifacts_error
|
||||||
stage: test
|
stage: test
|
||||||
|
|
|
@ -335,6 +335,7 @@ class Scheduler < ApplicationModel
|
||||||
loop do
|
loop do
|
||||||
success, failure = Delayed::Worker.new.work_off
|
success, failure = Delayed::Worker.new.work_off
|
||||||
if failure.nonzero?
|
if failure.nonzero?
|
||||||
|
p Delayed::Job.where('last_error IS NOT NULL').to_json # rubocop:disable Rails/Output
|
||||||
raise "ERROR: #{failure} failed background jobs: #{Delayed::Job.where('last_error IS NOT NULL').inspect}"
|
raise "ERROR: #{failure} failed background jobs: #{Delayed::Job.where('last_error IS NOT NULL').inspect}"
|
||||||
end
|
end
|
||||||
break if success.zero?
|
break if success.zero?
|
||||||
|
|
|
@ -167,10 +167,8 @@ class TwilioSmsControllerTest < ActionDispatch::IntegrationTest
|
||||||
headers: {
|
headers: {
|
||||||
'Accept' => 'application/json',
|
'Accept' => 'application/json',
|
||||||
'Accept-Charset' => 'utf-8',
|
'Accept-Charset' => 'utf-8',
|
||||||
'Accept-Encoding' => 'gzip;q=1.0,deflate;q=0.6,identity;q=0.3',
|
|
||||||
'Authorization' => 'Basic MTExOjIyMw==',
|
'Authorization' => 'Basic MTExOjIyMw==',
|
||||||
'Content-Type' => 'application/x-www-form-urlencoded',
|
'Content-Type' => 'application/x-www-form-urlencoded',
|
||||||
'User-Agent' => 'twilio-ruby/5.10.2 (ruby/x86_64-darwin16 2.4.4-p296)'
|
|
||||||
}
|
}
|
||||||
).to_return(status: 200, body: '', headers: {})
|
).to_return(status: 200, body: '', headers: {})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue