summaryrefslogtreecommitdiff
path: root/spec/requests/recursive_webhook_detection_spec.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-01-19 12:17:41 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-01-19 12:17:41 +0000
commite67f3f55d2b887e13181a37e34275a82fce28b9a (patch)
treeb5e6fb003a03eaeb537e8fccf11af654d5dbd1c9 /spec/requests/recursive_webhook_detection_spec.rb
parenta87e8cad90b7d6d602cb5701d1dc588587684597 (diff)
downloadgitlab-ce-e67f3f55d2b887e13181a37e34275a82fce28b9a.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/requests/recursive_webhook_detection_spec.rb')
-rw-r--r--spec/requests/recursive_webhook_detection_spec.rb18
1 files changed, 0 insertions, 18 deletions
diff --git a/spec/requests/recursive_webhook_detection_spec.rb b/spec/requests/recursive_webhook_detection_spec.rb
index 09a352da84b..a3014bf1d73 100644
--- a/spec/requests/recursive_webhook_detection_spec.rb
+++ b/spec/requests/recursive_webhook_detection_spec.rb
@@ -45,20 +45,6 @@ RSpec.describe 'Recursive webhook detection', :sidekiq_inline, :clean_gitlab_red
.once
end
- shared_examples 'when the feature flag is disabled' do
- it 'executes and logs no errors' do
- stub_feature_flags(webhook_recursion_detection: false)
- stub_requests
-
- expect(Gitlab::AuthLogger).not_to receive(:error)
-
- trigger_web_hooks
-
- expect(WebMock).to have_requested(:post, stubbed_hostname(project_hook.url)).once
- expect(WebMock).to have_requested(:post, stubbed_hostname(system_hook.url)).once
- end
- end
-
context 'when one of the webhooks is recursive' do
before do
# Recreate the necessary state for the previous request to be
@@ -87,8 +73,6 @@ RSpec.describe 'Recursive webhook detection', :sidekiq_inline, :clean_gitlab_red
expect(WebMock).to have_requested(:post, stubbed_hostname(project_hook.url)).once
expect(WebMock).to have_requested(:post, stubbed_hostname(system_hook.url)).once
end
-
- include_examples 'when the feature flag is disabled'
end
context 'when the count limit has been reached' do
@@ -134,8 +118,6 @@ RSpec.describe 'Recursive webhook detection', :sidekiq_inline, :clean_gitlab_red
expect(WebMock).to have_requested(:post, stubbed_hostname(system_hook.url)).once
end
end
-
- include_examples 'when the feature flag is disabled'
end
context 'when the recursive webhook detection header is absent' do