Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancisco Lopez <fjlopez@gitlab.com>2017-11-08 12:13:22 +0300
committerFrancisco Lopez <fjlopez@gitlab.com>2017-11-17 12:01:21 +0300
commit374179a97042da3a4d5312afcdb0dc90a44634f0 (patch)
tree32c75aada478c764f4ebdd36f3b981f968d4f452 /spec/requests/rack_attack_global_spec.rb
parent41ebd06ddc837c80ba6ca95c6d5fea2b76cef8d2 (diff)
Removing private token
Diffstat (limited to 'spec/requests/rack_attack_global_spec.rb')
-rw-r--r--spec/requests/rack_attack_global_spec.rb27
1 files changed, 0 insertions, 27 deletions
diff --git a/spec/requests/rack_attack_global_spec.rb b/spec/requests/rack_attack_global_spec.rb
index 9a0513d66a7..9cda4bcf966 100644
--- a/spec/requests/rack_attack_global_spec.rb
+++ b/spec/requests/rack_attack_global_spec.rb
@@ -189,26 +189,6 @@ describe 'Rack Attack global throttles' do
end
end
- describe 'API requests authenticated with private token', :api do
- let(:user) { create(:user) }
- let(:other_user) { create(:user) }
- let(:throttle_setting_prefix) { 'throttle_authenticated_api' }
-
- context 'with the token in the query string' do
- let(:get_args) { [api(api_partial_url, user)] }
- let(:other_user_get_args) { [api(api_partial_url, other_user)] }
-
- it_behaves_like 'rate-limited token-authenticated requests'
- end
-
- context 'with the token in the headers' do
- let(:get_args) { api_get_args_with_token_headers(api_partial_url, private_token_headers(user)) }
- let(:other_user_get_args) { api_get_args_with_token_headers(api_partial_url, private_token_headers(other_user)) }
-
- it_behaves_like 'rate-limited token-authenticated requests'
- end
- end
-
describe 'API requests authenticated with personal access token', :api do
let(:user) { create(:user) }
let(:token) { create(:personal_access_token, user: user) }
@@ -261,13 +241,6 @@ describe 'Rack Attack global throttles' do
let(:throttle_setting_prefix) { 'throttle_authenticated_web' }
context 'with the token in the query string' do
- context 'with the atom extension' do
- let(:get_args) { [rss_url(user)] }
- let(:other_user_get_args) { [rss_url(other_user)] }
-
- it_behaves_like 'rate-limited token-authenticated requests'
- end
-
context 'with the atom format in the Accept header' do
let(:get_args) { [rss_url(user), nil, { 'HTTP_ACCEPT' => 'application/atom+xml' }] }
let(:other_user_get_args) { [rss_url(other_user), nil, { 'HTTP_ACCEPT' => 'application/atom+xml' }] }