Added basic controller test for restart_failed_jobs route.
This commit is contained in:
parent
60e7d990ea
commit
68ba6b3087
1 changed files with 6 additions and 0 deletions
|
@ -391,4 +391,10 @@ class MonitoringControllerTest < ActionDispatch::IntegrationTest
|
|||
|
||||
end
|
||||
|
||||
test '09 check restart_failed_jobs' do
|
||||
credentials = ActionController::HttpAuthentication::Basic.encode_credentials('monitoring-admin@example.com', 'adminpw')
|
||||
post "/api/v1/monitoring/restart_failed_jobs", {}, @headers.merge('Authorization' => credentials)
|
||||
assert_response(200)
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue