Skip to content

Commit e680cc2

Browse files
committed
Add integration test for history installation
1 parent a4b9490 commit e680cc2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
def test_history_installation_run_creates_history_records_table(az_cli_ctx, sql_backend) -> None:
2+
az_cli_ctx.history_installation.run()
3+
query = (
4+
f"SELECT 1 FROM tables WHERE table_catalog = '{az_cli_ctx.config.ucx_catalog}' "
5+
"AND table_schema = 'history' AND table_name = 'records'"
6+
)
7+
assert any(sql_backend.fetch(query, catalog="system", schema="information_schema"))

0 commit comments

Comments
 (0)