from pathlib import Path
ROOT=Path(__file__).resolve().parents[1]
def text(p): return (ROOT/p).read_text()
def test_v025_router_and_page():
    s=text('app/main.py'); assert 'v025_router' in s and '/connectivity-hub' in s
def test_v025_models():
    s=text('app/models/entities.py')
    for n in ['ConnectorDefinition','TenantConnectorInstance','ConnectorDiscoveredObject','ConnectorSyncProfile','ConnectorTestRun']: assert f'class {n}' in s
def test_v025_catalog_and_security():
    s=text('app/services/connectivity_hub.py'); assert 'BUILTINS' in s and 'encrypt_secret' in s and 'oracle' in s and 'sqlserver' in s and 'rest' in s
def test_v025_migration():
    s=text('migrations/025_universal_connectivity_hub.sql'); assert 'connector_definitions_v025' in s and 'ENABLE ROW LEVEL SECURITY' in s
