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:
Diffstat (limited to 'spec/features/ide/clientside_preview_csp_spec.rb')
-rw-r--r--spec/features/ide/clientside_preview_csp_spec.rb31
1 files changed, 0 insertions, 31 deletions
diff --git a/spec/features/ide/clientside_preview_csp_spec.rb b/spec/features/ide/clientside_preview_csp_spec.rb
deleted file mode 100644
index 04427a5c294..00000000000
--- a/spec/features/ide/clientside_preview_csp_spec.rb
+++ /dev/null
@@ -1,31 +0,0 @@
-# frozen_string_literal: true
-
-require 'spec_helper'
-
-RSpec.describe 'IDE Clientside Preview CSP', feature_category: :web_ide do
- let_it_be(:user) { create(:user) }
-
- shared_context 'disable feature' do
- before do
- stub_application_setting(web_ide_clientside_preview_enabled: false)
- end
- end
-
- it_behaves_like 'setting CSP', 'frame-src' do
- let(:allowlisted_url) { 'https://sandbox.gitlab-static.test' }
- let(:extended_controller_class) { IdeController }
-
- subject do
- visit ide_path
-
- response_headers['Content-Security-Policy']
- end
-
- before do
- stub_application_setting(web_ide_clientside_preview_enabled: true)
- stub_application_setting(web_ide_clientside_preview_bundler_url: allowlisted_url)
-
- sign_in(user)
- end
- end
-end