7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# File 'lib/gitlab/qa/scenario/test/integration/praefect.rb', line 7
def perform(release, *rspec_args)
Component::Gitlab.perform do |gitlab|
gitlab.release = Release.new(release)
gitlab.name = 'gitlab'
gitlab.network = 'test'
gitlab.omnibus_config = <<~OMNIBUS
gitaly['enable'] = true;
gitaly['auth_token'] = 'praefect-gitaly-token';
gitaly['storage'] = [
{
'name' => 'praefect-gitaly-0',
'path' => '/var/opt/gitlab/git-data/repositories'
}
];
praefect['enable'] = true;
praefect['listen_addr'] = '0.0.0.0:2305';
praefect['auth_token'] = 'praefect-token';
praefect['virtual_storages'] = {
'default' => {
'praefect-gitaly-0' => {
'address' => 'unix:/var/opt/gitlab/gitaly/gitaly.socket',
'token' => 'praefect-gitaly-token',
'primary' => true
}
}
};
gitlab_rails['gitaly_token'] = 'praefect-token';
git_data_dirs({
'default' => {
'gitaly_address' => 'tcp://localhost:2305'
}
});
OMNIBUS
gitlab.instance do
puts "Running Praefect specs!"
Component::Specs.perform do |specs|
specs.suite = 'Test::Instance::All'
specs.release = gitlab.release
specs.network = gitlab.network
specs.args = [gitlab.address, *rspec_args]
end
end
end
end
|