Skip to content

Commit 9cc20b1

Browse files
committed
chore: Add support for consul
1 parent 07dec34 commit 9cc20b1

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

contract-tests/Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ gem 'thin', :platforms => :ruby
1414

1515
gem "redis", "~> 5.3"
1616
gem "connection_pool", "~> 2.4"
17+
18+
gem "diplomat", "~> 2.6"

contract-tests/client_entity.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ def initialize(log, config)
4949
store_config[:redis_url] = config[:persistentDataStore][:store][:dsn]
5050
store = LaunchDarkly::Integrations::Redis.new_feature_store(store_config)
5151
opts[:feature_store] = store
52+
when 'consul'
53+
store_config[:url] = config[:persistentDataStore][:store][:url]
54+
store = LaunchDarkly::Integrations::Consul.new_feature_store(store_config)
55+
opts[:feature_store] = store
5256
end
5357
end
5458

contract-tests/service.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
'omit-anonymous-contexts',
4747
'client-prereq-events',
4848
'persistent-data-store-redis',
49+
'persistent-data-store-consul',
4950
],
5051
}.to_json
5152
end

0 commit comments

Comments
 (0)