Skip to content

Commit

Permalink
add lock store config
Browse files Browse the repository at this point in the history
  • Loading branch information
vcidst committed Sep 21, 2023
1 parent 788f028 commit 97c1f7d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions data/test_endpoints/example_endpoints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,18 @@ tracker_store:
ssl_keyfile: "keyfile.key"
ssl_certfile: "certfile.crt"
ssl_ca_certs: "my-bundle.ca-bundle"
lock_store:
type: redis
url: localhost
port: 6379
db: 0
username: username
password: password
key_prefix: lock
use_ssl: True
ssl_keyfile: "keyfile.key"
ssl_certfile: "certfile.crt"
ssl_ca_certs: "my-bundle.ca-bundle"
# example of mongoDB external tracker store config
#tracker_store:
#type: mongod
Expand Down
1 change: 1 addition & 0 deletions tests/core/test_lock_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ def test_create_lock_store_from_endpoint_config(endpoints_path: Text):
ssl_keyfile="keyfile.key",
ssl_certfile="certfile.crt",
ssl_ca_certs="my-bundle.ca-bundle",
key_prefix="lock",
)

assert isinstance(tracker_store, type(LockStore.create(store)))

0 comments on commit 97c1f7d

Please sign in to comment.