diff options
author | Robert Speicher <robert@gitlab.com> | 2016-08-19 18:55:30 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2016-08-19 18:55:30 +0000 |
commit | 3043b31c458bf720843a84b35c9fbad5c1488c1d (patch) | |
tree | b90e1df74cc8c53c891f06912e65575fd0f2be48 /spec/gitlab_config_spec.rb | |
parent | 4f8e91fac043f09ea94a3542eeff9734db33645a (diff) | |
parent | ee684a0973b2f5fbb30fcf2f1b3099564ca15ac9 (diff) | |
download | gitlab-shell-3.4.0.tar.gz |
Merge branch 'feature/redis-sentinel' into 'master'
v3.4.0
Sentinel Support
Sentinel connection parameters in `config.yml` file.
Fixes #29
See merge request !85
Diffstat (limited to 'spec/gitlab_config_spec.rb')
-rw-r--r-- | spec/gitlab_config_spec.rb | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/spec/gitlab_config_spec.rb b/spec/gitlab_config_spec.rb index 6c1af85..b92da65 100644 --- a/spec/gitlab_config_spec.rb +++ b/spec/gitlab_config_spec.rb @@ -6,17 +6,8 @@ describe GitlabConfig do describe :redis do before do - config.instance_variable_set(:@config, YAML.load(<<eos -redis: - bin: /usr/bin/redis-cli - host: 127.0.1.1 - port: 6378 - pass: secure - database: 1 - socket: /var/run/redis/redis.sock - namespace: my:gitlab -eos - )) + config_file = File.read('spec/fixtures/gitlab_config_redis.yml') + config.instance_variable_set(:@config, YAML.load(config_file)) end it { config.redis['bin'].should eq('/usr/bin/redis-cli') } @@ -26,6 +17,7 @@ eos it { config.redis['namespace'].should eq('my:gitlab') } it { config.redis['socket'].should eq('/var/run/redis/redis.sock') } it { config.redis['pass'].should eq('secure') } + it { config.redis['sentinels'].should eq([{ 'host' => '127.0.0.1', 'port' => 26380 }]) } end describe :gitlab_url do |