Skip to content

Commit ec87592

Browse files
Merge remote-tracking branch 'erindru/fresioas-sqlmesh-fabric-integration-tests' into feat/add-fabric-engine
2 parents 481c9a7 + ecf3e7b commit ec87592

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,9 @@ clickhouse-cloud-test: guard-CLICKHOUSE_CLOUD_HOST guard-CLICKHOUSE_CLOUD_USERNA
173173
athena-test: guard-AWS_ACCESS_KEY_ID guard-AWS_SECRET_ACCESS_KEY guard-ATHENA_S3_WAREHOUSE_LOCATION engine-athena-install
174174
pytest -n auto -m "athena" --retries 3 --junitxml=test-results/junit-athena.xml
175175

176+
fabric-test: guard-FABRIC_HOST guard-FABRIC_CLIENT_ID guard-FABRIC_CLIENT_SECRET guard-FABRIC_DATABASE engine-fabric-install
177+
pytest -n auto -m "fabric" --retries 3 --junitxml=test-results/junit-fabric.xml
178+
176179
vscode_settings:
177180
mkdir -p .vscode
178181
cp -r ./tooling/vscode/*.json .vscode/

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ dev = [
103103
dbt = ["dbt-core<2"]
104104
dlt = ["dlt"]
105105
duckdb = []
106+
fabric = ["pyodbc"]
106107
gcppostgres = ["cloud-sql-python-connector[pg8000]>=1.8.0"]
107108
github = ["PyGithub~=2.5.0"]
108109
llm = ["langchain", "openai"]

tests/core/engine_adapter/integration/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ def pytest_marks(self) -> t.List[MarkDecorator]:
8282
IntegrationTestEngine("bigquery", native_dataframe_type="bigframe", cloud=True),
8383
IntegrationTestEngine("databricks", native_dataframe_type="pyspark", cloud=True),
8484
IntegrationTestEngine("snowflake", native_dataframe_type="snowpark", cloud=True),
85+
IntegrationTestEngine("fabric", cloud=True)
8586
]
8687

8788
ENGINES_BY_NAME = {e.engine: e for e in ENGINES}

tests/core/engine_adapter/integration/config.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,5 +186,18 @@ gateways:
186186
state_connection:
187187
type: duckdb
188188

189+
inttest_fabric:
190+
connection:
191+
type: fabric
192+
driver: pyodbc
193+
host: {{ env_var("FABRIC_HOST") }}
194+
user: {{ env_var("FABRIC_CLIENT_ID") }}
195+
password: {{ env_var("FABRIC_CLIENT_SECRET") }}
196+
database: {{ env_var("FABRIC_DATABASE") }}
197+
odbc_properties:
198+
Authentication: ActiveDirectoryServicePrincipal
199+
state_connection:
200+
type: duckdb
201+
189202
model_defaults:
190203
dialect: duckdb

0 commit comments

Comments
 (0)