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:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-10-05 21:09:33 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-10-05 21:09:33 +0300
commitc20e6edd8a648a2cecb7ba0c4e8be48ce68e25a1 (patch)
tree804cbc1984f4b6636d958bf7b70a00f323a8137f /spec/requests/api/internal
parent3e6c042eb05e09d88c2bd988cb9ef5f9eba67794 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/requests/api/internal')
-rw-r--r--spec/requests/api/internal/pages_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/requests/api/internal/pages_spec.rb b/spec/requests/api/internal/pages_spec.rb
index 65aa2326af5..1eeb3404157 100644
--- a/spec/requests/api/internal/pages_spec.rb
+++ b/spec/requests/api/internal/pages_spec.rb
@@ -69,6 +69,15 @@ RSpec.describe API::Internal::Pages, feature_category: :pages do
context 'when querying a custom domain' do
let_it_be(:pages_domain) { create(:pages_domain, domain: 'pages.io', project: project) }
+ # We need to ensure not to return the unique domain when requesting a custom domain
+ # https://gitlab.com/gitlab-org/gitlab/-/issues/426435
+ before_all do
+ project.project_setting.update!(
+ pages_unique_domain: 'unique-domain',
+ pages_unique_domain_enabled: true
+ )
+ end
+
context 'when there are no pages deployed for the related project' do
before do
project.mark_pages_as_not_deployed