Skip to content

Commit 90559fc

Browse files
authored
Add Redis to the universal integration tests (#1784)
* Add Redis to the universal integration tests Signed-off-by: Achal Shah <achals@gmail.com> * Static config Signed-off-by: Achal Shah <achals@gmail.com>
1 parent c0fe653 commit 90559fc

1 file changed

Lines changed: 24 additions & 4 deletions

File tree

‎sdk/python/tests/integration/feature_repos/test_repo_configuration.py‎

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,37 @@ class TestRepoConfig:
3636
infer_event_timestamp_col: bool = True
3737

3838

39+
def ds_creator_path(cls: str):
40+
return f"tests.integration.feature_repos.universal.data_sources.{cls}"
41+
42+
43+
DYNAMO_CONFIG = {"type": "dynamodb", "region": "us-west-2"}
44+
REDIS_CONFIG = {"type": "redis", "connection_string": "localhost:6379,db=0"}
3945
FULL_REPO_CONFIGS: List[TestRepoConfig] = [
40-
TestRepoConfig(), # Local
46+
# Local configurations
47+
TestRepoConfig(),
48+
TestRepoConfig(online_store=REDIS_CONFIG),
49+
# GCP configurations
4150
TestRepoConfig(
4251
provider="gcp",
43-
offline_store_creator="tests.integration.feature_repos.universal.data_sources.bigquery.BigQueryDataSourceCreator",
52+
offline_store_creator=ds_creator_path("bigquery.BigQueryDataSourceCreator"),
4453
online_store="datastore",
4554
),
55+
TestRepoConfig(
56+
provider="gcp",
57+
offline_store_creator=ds_creator_path("bigquery.BigQueryDataSourceCreator"),
58+
online_store=REDIS_CONFIG,
59+
),
60+
# AWS configurations
61+
TestRepoConfig(
62+
provider="aws",
63+
offline_store_creator=ds_creator_path("redshift.RedshiftDataSourceCreator"),
64+
online_store=DYNAMO_CONFIG,
65+
),
4666
TestRepoConfig(
4767
provider="aws",
48-
offline_store_creator="tests.integration.feature_repos.universal.data_sources.redshift.RedshiftDataSourceCreator",
49-
online_store={"type": "dynamodb", "region": "us-west-2"},
68+
offline_store_creator=ds_creator_path("redshift.RedshiftDataSourceCreator"),
69+
online_store=REDIS_CONFIG,
5070
),
5171
]
5272

0 commit comments

Comments
 (0)