Commit 3611d142 authored by Vladimir Shushlin's avatar Vladimir Shushlin

Remove pages_internal_api feature flag

This API is used only internally, and we don't use this
feature flag inside pages daemon itself
parent d4083f52
...@@ -5,7 +5,6 @@ module API ...@@ -5,7 +5,6 @@ module API
module Internal module Internal
class Pages < Grape::API class Pages < Grape::API
before do before do
not_found! unless Feature.enabled?(:pages_internal_api)
authenticate_gitlab_pages_request! authenticate_gitlab_pages_request!
end end
......
...@@ -14,19 +14,6 @@ describe API::Internal::Pages do ...@@ -14,19 +14,6 @@ describe API::Internal::Pages do
get api("/internal/pages"), headers: headers, params: { host: host } get api("/internal/pages"), headers: headers, params: { host: host }
end end
context 'feature flag disabled' do
before do
stub_feature_flags(pages_internal_api: false)
end
it 'responds with 404 Not Found' do
query_host('pages.gitlab.io')
expect(response).to have_gitlab_http_status(:not_found)
end
end
context 'feature flag enabled' do
context 'not authenticated' do context 'not authenticated' do
it 'responds with 401 Unauthorized' do it 'responds with 401 Unauthorized' do
query_host('pages.gitlab.io') query_host('pages.gitlab.io')
...@@ -253,5 +240,4 @@ describe API::Internal::Pages do ...@@ -253,5 +240,4 @@ describe API::Internal::Pages do
end end
end end
end end
end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment