summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2019-01-25 16:06:55 +0000
committerNick Thomas <nick@gitlab.com>2019-01-25 16:06:55 +0000
commit2b8f19435bd81b24f512236245445109c14a2297 (patch)
tree5380acd4f4c798a513dc70d2f769dc1aedc450f3 /spec
parent51441b97abdec1c37c96173b08c7b527f342b80f (diff)
parente3cacb95a85080c9bd8993b26e996d952fbab05f (diff)
downloadgitlab-ce-2b8f19435bd81b24f512236245445109c14a2297.tar.gz
Merge branch 'elasticsearch-via-gitaly-ee' into 'master'
Add connection_data method to Gitaly client See merge request gitlab-org/gitlab-ce!24669
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/gitlab/gitaly_client_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/lib/gitlab/gitaly_client_spec.rb b/spec/lib/gitlab/gitaly_client_spec.rb
index e41a75c37a7..cf12baf1a93 100644
--- a/spec/lib/gitlab/gitaly_client_spec.rb
+++ b/spec/lib/gitlab/gitaly_client_spec.rb
@@ -119,6 +119,15 @@ describe Gitlab::GitalyClient do
end
end
+ describe '.connection_data' do
+ it 'returns connection data' do
+ address = 'tcp://localhost:9876'
+ stub_repos_storages address
+
+ expect(described_class.connection_data('default')).to eq({ 'address' => address, 'token' => 'secret' })
+ end
+ end
+
describe 'allow_n_plus_1_calls' do
context 'when RequestStore is enabled', :request_store do
it 'returns the result of the allow_n_plus_1_calls block' do