File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
feast/templates/postgres/feature_repo
tests/unit/local_feast_tests Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ project: my_project
22provider : local
33registry :
44 registry_type : sql
5- path :
postgresql://postgres:[email protected] :55001/feast 5+ path : postgresql://DB_USERNAME:DB_PASSWORD@DB_HOST:DB_PORT/DB_NAME
66 cache_ttl_seconds : 60
77 sqlalchemy_config_kwargs :
88 echo : false
Original file line number Diff line number Diff line change @@ -67,3 +67,17 @@ def test_repo_init_with_underscore_in_project_name() -> None:
6767 )
6868 result = runner .run (["apply" ], cwd = repo_dir )
6969 assert result .returncode != 0
70+
71+
72+ def test_postgres_template_registry_path_is_parameterized () -> None :
73+ template_fs_yaml = (
74+ Path (__file__ ).resolve ().parents [3 ]
75+ / "feast"
76+ / "templates"
77+ / "postgres"
78+ / "feature_repo"
79+ / "feature_store.yaml"
80+ )
81+ contents = template_fs_yaml .read_text (encoding = "utf-8" )
82+ expected = "path: postgresql://DB_USERNAME:DB_PASSWORD@DB_HOST:DB_PORT/DB_NAME"
83+ assert expected in contents
You can’t perform that action at this time.
0 commit comments