Added basic controller test for restart_failed_jobs route.

This commit is contained in:
Rolf Schmidt 2017-09-07 17:43:57 +02:00
parent 60e7d990ea
commit 68ba6b3087

View file

@ -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