Skip to content

Commit

Permalink
change the endpoints yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
vcidst committed Sep 21, 2023
1 parent 59c3289 commit a1690aa
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 2 deletions.
33 changes: 33 additions & 0 deletions data/test_endpoints/lockstore_endpoints.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
nlg:
url: http://localhost:5055/nlg # url of the nlg endpoint
# you can also specify additional parameters, if you need them:
# headers:
# my-custom-header: value
# token: "my_authentication_token" # will be passed as a get parameter
# basic_auth:
# username: user
# password: pass
# example of redis external lock store config
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
#url: mongodb://localhost:27017
#db: rasa
#user: username
#password: password
action_endpoint:
url: http://localhost:5055/webhook
cafile: ./some_test_file
empty:
3 changes: 3 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ def e2e_story_file_trips_circuit_breaker_path() -> Text:
def endpoints_path() -> Text:
return "data/test_endpoints/example_endpoints.yml"

@pytest.fixture(scope="session")
def lockstore_endpoints_path() -> Text:
return "data/test_endpoints/lockstore_endpoints.yml"

# https://github.com/pytest-dev/pytest-asyncio/issues/68
# this event_loop is used by pytest-asyncio, and redefining it
Expand Down
4 changes: 2 additions & 2 deletions tests/core/test_lock_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,8 @@ async def test_redis_lock_store_with_valid_prefix(monkeypatch: MonkeyPatch):
pass


def test_create_lock_store_from_endpoint_config(endpoints_path: Text):
store = read_endpoint_config(endpoints_path, "tracker_store")
def test_create_lock_store_from_endpoint_config(lockstore_endpoints_path: Text):
store = read_endpoint_config(lockstore_endpoints_path, "tracker_store")
tracker_store = RedisLockStore(
host="localhost",
port=6379,
Expand Down

0 comments on commit a1690aa

Please sign in to comment.