Commit 52ef30a6 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'smh-add-testing-flag-to-praefect' into 'master'

Set a flag to allow unsupported election strategy in Praefect

See merge request gitlab-org/gitlab!62564
parents b7218a5b faaa662c
...@@ -153,8 +153,14 @@ module Gitlab ...@@ -153,8 +153,14 @@ module Gitlab
second_storage_nodes = [{ storage: 'test_second_storage', address: "unix:#{gitaly_dir}/gitaly2.socket", primary: true, token: 'secret' }] second_storage_nodes = [{ storage: 'test_second_storage', address: "unix:#{gitaly_dir}/gitaly2.socket", primary: true, token: 'secret' }]
storages = [{ name: 'default', node: nodes }, { name: 'test_second_storage', node: second_storage_nodes }] storages = [{ name: 'default', node: nodes }, { name: 'test_second_storage', node: second_storage_nodes }]
failover = { enabled: false } failover = { enabled: false, election_strategy: 'local' }
config = { socket_path: "#{gitaly_dir}/praefect.socket", memory_queue_enabled: true, virtual_storage: storages, failover: failover } config = {
i_understand_my_election_strategy_is_unsupported_and_will_be_removed_without_warning: true,
socket_path: "#{gitaly_dir}/praefect.socket",
memory_queue_enabled: true,
virtual_storage: storages,
failover: failover
}
config[:token] = 'secret' if Rails.env.test? config[:token] = 'secret' if Rails.env.test?
TomlRB.dump(config) TomlRB.dump(config)
......
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