diff options
author | Markus Koller <mkoller@gitlab.com> | 2019-05-23 17:45:39 +0300 |
---|---|---|
committer | Markus Koller <mkoller@gitlab.com> | 2019-05-24 18:17:14 +0300 |
commit | 1b1a960bf3e86d946f24ecb5de5b2f011c0d3846 (patch) | |
tree | 80ab4e6614106be8214be2a00b3b2c7f3dfb517b /spec/requests | |
parent | c0ea4164cdc21e831fbbfa9dee48a6fa2766d9fc (diff) |
Remove the circuit breaker API
The circuit breaker itself was removed in 11.5, this removes the
corresponding API endpoints which returned empty data since then.
Diffstat (limited to 'spec/requests')
-rw-r--r-- | spec/requests/api/circuit_breakers_spec.rb | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/spec/requests/api/circuit_breakers_spec.rb b/spec/requests/api/circuit_breakers_spec.rb deleted file mode 100644 index 6c7cb151c74..00000000000 --- a/spec/requests/api/circuit_breakers_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -require 'spec_helper' - -describe API::CircuitBreakers do - set(:user) { create(:user) } - set(:admin) { create(:admin) } - - describe 'GET circuit_breakers/repository_storage' do - it 'returns a 401 for anonymous users' do - get api('/circuit_breakers/repository_storage') - - expect(response).to have_gitlab_http_status(401) - end - - it 'returns a 403 for users' do - get api('/circuit_breakers/repository_storage', user) - - expect(response).to have_gitlab_http_status(403) - end - - it 'returns an Array of storages' do - get api('/circuit_breakers/repository_storage', admin) - - expect(response).to have_gitlab_http_status(200) - expect(json_response).to be_kind_of(Array) - expect(json_response).to be_empty - end - - describe 'GET circuit_breakers/repository_storage/failing' do - it 'returns an array of failing storages' do - get api('/circuit_breakers/repository_storage/failing', admin) - - expect(response).to have_gitlab_http_status(200) - expect(json_response).to be_kind_of(Array) - expect(json_response).to be_empty - end - end - end - - describe 'DELETE circuit_breakers/repository_storage' do - it 'clears all circuit_breakers' do - delete api('/circuit_breakers/repository_storage', admin) - - expect(response).to have_gitlab_http_status(204) - end - end -end |