Skip to content

Commit 89d8c48

Browse files
authored
Merge pull request #1130 from timofurrer/feature/disable-application-settings-cache
Disable application settings cache for test instance
2 parents 68f0d0c + deb85a6 commit 89d8c48

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

scripts/gitlab.rb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,13 @@
88
registry_nginx['ssl_certificate'] = "/etc/gitlab/ssl/gitlab-registry.pem"
99
registry_nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/gitlab-registry.key"
1010

11-
gitlab_rails['initial_shared_runners_registration_token'] = "ACCTEST1234567890123_RUNNER_REG_TOKEN"
11+
gitlab_rails['initial_shared_runners_registration_token'] = "ACCTEST1234567890123_RUNNER_REG_TOKEN"
12+
13+
# This setting is required to disable caching for application settings
14+
# which is required to test different scenarios in the acceptance tests.
15+
# see https://gitlab.com/gitlab-org/gitlab/-/issues/364812#note_986366898
16+
# see https://github.com/gitlabhq/terraform-provider-gitlab/pull/1128
17+
gitlab_rails['application_settings_cache_seconds'] = 0
18+
gitlab_rails['env'] = {
19+
'IN_MEMORY_APPLICATION_SETTINGS' => 'false'
20+
}

0 commit comments

Comments
 (0)