7036f75f67
When object storage is enabled, the logos used to customize a GitLab appearance causes the time-limited URLs to be used. We fix this by forcing all of these URLs to use the /uploads/-/system prefix so that they will always be proxied through GitLab. Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/6778
26 lines
622 B
Ruby
26 lines
622 B
Ruby
# Read about factories at https://github.com/thoughtbot/factory_bot
|
|
|
|
FactoryBot.define do
|
|
factory :appearance do
|
|
title "GitLab Community Edition"
|
|
description "Open source software to collaborate on code"
|
|
new_project_guidelines "Custom project guidelines"
|
|
end
|
|
|
|
trait :with_logo do
|
|
logo { fixture_file_upload('spec/fixtures/dk.png') }
|
|
end
|
|
|
|
trait :with_header_logo do
|
|
header_logo { fixture_file_upload('spec/fixtures/dk.png') }
|
|
end
|
|
|
|
trait :with_favicon do
|
|
favicon { fixture_file_upload('spec/fixtures/dk.png') }
|
|
end
|
|
|
|
trait :with_logos do
|
|
with_logo
|
|
with_header_logo
|
|
end
|
|
end
|