Skip to content
Snippets Groups Projects
Commit cfe3cfb3 authored by Andrew Newdigate's avatar Andrew Newdigate
Browse files

Adding chaos to GitLab through chaos endpoints

parent e62168fc
No related branches found
No related tags found
No related merge requests found
# frozen_string_literal: true
class ChaosController < ActionController::Base
def sleep
duration_s = params[:duration_s] ? params[:duration_s].to_i : 30
Kernel.sleep duration_s
render text: "OK", content_type: 'text/plain'
end
end
Loading
Loading
@@ -82,6 +82,8 @@ Rails.application.routes.draw do
 
draw :operations
draw :instance_statistics
get '/chaos/sleep' => 'chaos#sleep'
end
 
draw :api
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment