From b7c8417547d4f4459c195cf21f8cb6603b170673 Mon Sep 17 00:00:00 2001 From: acrylJonny Date: Mon, 2 Nov 2026 20:01:38 +0000 Subject: [PATCH 01/20] refactor(ingest): extract shared JDBC URL parsing into common/jdbc Move normalize_jdbc_url, validate_jdbc_url, JDBC_PREFIX, the Oracle thin, SQL Server and jTDS regexes, and the JDBC protocol platform fallback set from kafka_connect into datahub.ingestion.source.common.jdbc so other connectors can reuse them. kafka_connect now imports them from there with no behaviour change; its normalize/validate unit tests move with them. Add parse_jdbc_url, which returns a JdbcUrlInfo (platform, host, port, database, schema_name). The platform comes from the SQLAlchemy URI mapper, with overrides for sap (hana) and mariadb and the existing db2, teradata and cassandra fallbacks. It covers postgres, redshift, mysql, mariadb, db2, SQL Server, jTDS, Oracle thin, Snowflake, SAP HANA, Teradata, ClickHouse, Vertica, Trino, Presto and Hive URLs, returns no platform for an unknown subprotocol and an empty result for input it cannot parse. Co-Authored-By: Claude Opus 5.5 --- .../datahub/ingestion/source/common/jdbc.py | 257 ++++++++++++++++++ .../ingestion/source/kafka_connect/common.py | 74 ----- .../source/kafka_connect/sink_connectors.py | 6 +- .../source/kafka_connect/source_connectors.py | 19 +- .../tests/unit/common/test_jdbc.py | 213 +++++++++++++++ ...est_kafka_connect_jdbc_parser_factories.py | 55 ---- 6 files changed, 481 insertions(+), 143 deletions(-) create mode 100644 metadata-ingestion/src/datahub/ingestion/source/common/jdbc.py create mode 100644 metadata-ingestion/tests/unit/common/test_jdbc.py diff --git a/metadata-ingestion/src/datahub/ingestion/source/common/jdbc.py b/metadata-ingestion/src/datahub/ingestion/source/common/jdbc.py new file mode 100644 index 0000000000000..66c4e49d68b85 --- /dev/null +++ b/metadata-ingestion/src/datahub/ingestion/source/common/jdbc.py @@ -0,0 +1,257 @@ +import re +from typing import Dict, Final, FrozenSet, Optional +from urllib.parse import SplitResult, parse_qsl, urlsplit + +from pydantic import BaseModel + +from datahub.ingestion.source.sql.sqlalchemy_uri_mapper import ( + get_platform_from_sqlalchemy_uri, +) + +JDBC_PREFIX: Final[str] = "jdbc:" + +# Regex patterns for non-standard JDBC URL formats (see normalize_jdbc_url) +_ORACLE_THIN_RE: Final = re.compile( + r"^(?:jdbc:)?oracle:(?:thin|oci):@/?" + r"/?(?P[^:/@\s]+)" + r":(?P\d+)" + r"(?:[:/](?P[^@?;\s]+))?" + r"(?:[;?].*)?$" +) +_SQLSERVER_RE: Final = re.compile( + r"^(?:jdbc:)?sqlserver://(?P[^:;/\s]+)" + r"(?::(?P\d+))?" + r"(?:;(?P.*))?$" +) +_JTDS_RE: Final = re.compile( + r"^(?:jdbc:)?jtds:sqlserver://(?P[^:/@\s]+)" + r"(?::(?P\d+))?" + r"(?:/(?P[^;?\s]+))?" + r"(?:[;?].*)?$" +) + +SQLSERVER_DEFAULT_PORT: Final[str] = "1433" +SQLSERVER_DATABASE_NAME_KEY: Final[str] = "databasename" +SQLSERVER_DATABASE_KEYS: Final[FrozenSet[str]] = frozenset( + {SQLSERVER_DATABASE_NAME_KEY, "database"} +) + +ORACLE_PLATFORM: Final[str] = "oracle" +MSSQL_PLATFORM: Final[str] = "mssql" +SNOWFLAKE_PLATFORM: Final[str] = "snowflake" +HANA_PLATFORM: Final[str] = "hana" +TERADATA_PLATFORM: Final[str] = "teradata" +_SQLALCHEMY_UNKNOWN_PLATFORM: Final[str] = "external" + +# JDBC subprotocols the SQLAlchemy mapper does not recognize but that are real +# DataHub platforms. Anything else stays unknown so a mistyped URL cannot invent +# a lineage platform. +JDBC_PROTOCOL_PLATFORM_FALLBACK: Final[FrozenSet[str]] = frozenset( + {"db2", TERADATA_PLATFORM, "cassandra"} +) +# Subprotocols whose name differs from the DataHub platform, or that the +# SQLAlchemy mapper would otherwise miss. +JDBC_SCHEME_PLATFORM_OVERRIDES: Final[Dict[str, str]] = { + "sap": HANA_PLATFORM, + "mariadb": "mariadb", +} + +# Platforms whose JDBC URL carries the database as the first path segment. +JDBC_PATH_DATABASE_PLATFORMS: Final[FrozenSet[str]] = frozenset( + {"postgres", "redshift", "mysql", "mariadb", "db2", "clickhouse", "vertica", "hive"} +) +# Platforms whose JDBC URL path is `/catalog/schema`. +JDBC_PATH_CATALOG_SCHEMA_PLATFORMS: Final[FrozenSet[str]] = frozenset( + {"trino", "presto"} +) + +SNOWFLAKE_DATABASE_KEY: Final[str] = "db" +SNOWFLAKE_SCHEMA_KEY: Final[str] = "schema" +HANA_DATABASE_KEY: Final[str] = "databasename" +TERADATA_DATABASE_KEY: Final[str] = "database" + +# DB2 appends `:prop=value;` to the database; Hive and others use `;` or `?`. +_PATH_SEGMENT_TERMINATORS_RE: Final = re.compile(r"[;:]") + + +class JdbcUrlInfo(BaseModel): + platform: Optional[str] = None + host: Optional[str] = None + port: Optional[int] = None + database: Optional[str] = None + schema_name: Optional[str] = None + + +def normalize_jdbc_url(url: str) -> str: + """Convert a JDBC URL to a form SQLAlchemy can parse. + + Non-standard formats handled: + - Oracle thin/OCI (oracle:thin:@[//]host:port/service) → oracle://host:port/service + - SQL Server JDBC (sqlserver://host[:port][;databaseName=db;...]) → mssql://host:port/db + - jTDS SQL Server (jtds:sqlserver://host[:port][/db]) → mssql://host:port/db + + All other URLs are returned unchanged after stripping a leading jdbc:. + """ + m = _ORACLE_THIN_RE.match(url) + if m: + host = m.group("host") + port = m.group("port") + db = m.group("db") or "" + return f"oracle://{host}:{port}/{db}" + + m = _SQLSERVER_RE.match(url) + if m: + host = m.group("host") + port = m.group("port") or SQLSERVER_DEFAULT_PORT + db = "" + params_str = m.group("params") or "" + for param in params_str.split(";"): + if "=" in param: + k, _, v = param.partition("=") + if k.strip().lower() == SQLSERVER_DATABASE_NAME_KEY: + db = v.strip() + break + return f"mssql://{host}:{port}/{db}" + + m = _JTDS_RE.match(url) + if m: + host = m.group("host") + port = m.group("port") or SQLSERVER_DEFAULT_PORT + db = m.group("db") or "" + return f"mssql://{host}:{port}/{db}" + + return url[len(JDBC_PREFIX) :] if url.startswith(JDBC_PREFIX) else url + + +def validate_jdbc_url(url: str) -> bool: + """Return whether url is a JDBC URL format we can parse.""" + if not url or not isinstance(url, str): + return False + if _ORACLE_THIN_RE.match(url) or _SQLSERVER_RE.match(url) or _JTDS_RE.match(url): + return True + if not url.startswith(JDBC_PREFIX): + return False + parts = url.split(":", 3) + return len(parts) >= 3 # jdbc:protocol:connection_details + + +def parse_jdbc_url(url: str) -> JdbcUrlInfo: + """Read the platform, host, port, database and schema from a JDBC URL. + + Returns an empty JdbcUrlInfo for anything it cannot parse, and one with no + platform for a subprotocol it does not recognize. For Oracle, `database` + holds the SID or service name, which DataHub does not use as a URN segment + by default, so callers decide whether to keep it. + """ + if not validate_jdbc_url(url): + return JdbcUrlInfo() + try: + return _parse_valid_jdbc_url(url) + except ValueError: + return JdbcUrlInfo() + + +def _parse_valid_jdbc_url(url: str) -> JdbcUrlInfo: + m = _ORACLE_THIN_RE.match(url) + if m: + return JdbcUrlInfo( + platform=ORACLE_PLATFORM, + host=m.group("host"), + port=int(m.group("port")), + database=m.group("db"), + ) + + m = _SQLSERVER_RE.match(url) + if m: + return JdbcUrlInfo( + platform=MSSQL_PLATFORM, + host=m.group("host"), + port=_to_port(m.group("port")), + database=_sqlserver_database(m.group("params") or ""), + ) + + m = _JTDS_RE.match(url) + if m: + return JdbcUrlInfo( + platform=MSSQL_PLATFORM, + host=m.group("host"), + port=_to_port(m.group("port")), + database=m.group("db"), + ) + + body = url[len(JDBC_PREFIX) :] + scheme = body.partition(":")[0].lower() + platform = _platform_for_scheme(scheme, body) + parts = urlsplit(body) + info = JdbcUrlInfo(platform=platform, host=parts.hostname, port=_split_port(parts)) + if platform is None: + return info + + segments = [segment for segment in parts.path.split("/") if segment] + if platform in JDBC_PATH_DATABASE_PLATFORMS: + if segments: + info.database = _clean_segment(segments[0]) + elif platform in JDBC_PATH_CATALOG_SCHEMA_PLATFORMS: + if segments: + info.database = _clean_segment(segments[0]) + if len(segments) > 1: + info.schema_name = _clean_segment(segments[1]) + elif platform == SNOWFLAKE_PLATFORM: + params = _query_params(parts.query) + info.database = params.get(SNOWFLAKE_DATABASE_KEY) or None + info.schema_name = params.get(SNOWFLAKE_SCHEMA_KEY) or None + elif platform == HANA_PLATFORM: + info.database = _query_params(parts.query).get(HANA_DATABASE_KEY) or None + elif platform == TERADATA_PLATFORM: + info.database = _teradata_database(parts.path) + return info + + +def _platform_for_scheme(scheme: str, body: str) -> Optional[str]: + override = JDBC_SCHEME_PLATFORM_OVERRIDES.get(scheme) + if override is not None: + return override + platform = get_platform_from_sqlalchemy_uri(body) + if platform != _SQLALCHEMY_UNKNOWN_PLATFORM: + return platform + if scheme in JDBC_PROTOCOL_PLATFORM_FALLBACK: + return scheme + return None + + +def _sqlserver_database(params: str) -> Optional[str]: + for param in params.split(";"): + key, _, value = param.partition("=") + if key.strip().lower() in SQLSERVER_DATABASE_KEYS and value.strip(): + return value.strip() + return None + + +def _teradata_database(path: str) -> Optional[str]: + # jdbc:teradata://host/DATABASE=db,CHARSET=UTF8 + for param in path.strip("/").split(","): + key, _, value = param.partition("=") + if key.strip().lower() == TERADATA_DATABASE_KEY and value.strip(): + return value.strip() + return None + + +def _query_params(query: str) -> Dict[str, str]: + return {key.lower(): value for key, value in parse_qsl(query)} + + +def _clean_segment(segment: str) -> Optional[str]: + return _PATH_SEGMENT_TERMINATORS_RE.split(segment, maxsplit=1)[0].strip() or None + + +def _to_port(port: Optional[str]) -> Optional[int]: + return int(port) if port else None + + +def _split_port(parts: SplitResult) -> Optional[int]: + # A malformed or multi-host netloc (`h1:3306,h2:3306`) makes `.port` raise; + # the database in the path is still worth returning. + try: + return parts.port + except ValueError: + return None diff --git a/metadata-ingestion/src/datahub/ingestion/source/kafka_connect/common.py b/metadata-ingestion/src/datahub/ingestion/source/kafka_connect/common.py index 3fd628f0012df..69afe4e9a964e 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/kafka_connect/common.py +++ b/metadata-ingestion/src/datahub/ingestion/source/kafka_connect/common.py @@ -69,33 +69,12 @@ SOURCE: Final[str] = "source" SINK: Final[str] = "sink" CONNECTOR_CLASS: Final[str] = "connector.class" -JDBC_PREFIX: Final[str] = "jdbc:" # The probe kind for a Kafka Connect connector (emitted as a DataFlow). No DataHub # subtype exists for it; declared once so the probe command and the Filters() # declaration on connector_patterns cannot drift apart. KAFKA_CONNECT_CONNECTOR_KIND: Final[str] = "Connector" -# Regex patterns for non-standard JDBC URL formats (see normalize_jdbc_url) -_ORACLE_THIN_RE: Final = re.compile( - r"^(?:jdbc:)?oracle:(?:thin|oci):@/?" - r"/?(?P[^:/@\s]+)" - r":(?P\d+)" - r"(?:[:/](?P[^@?;\s]+))?" - r"(?:[;?].*)?$" -) -_SQLSERVER_RE: Final = re.compile( - r"^(?:jdbc:)?sqlserver://(?P[^:;/\s]+)" - r"(?::(?P\d+))?" - r"(?:;(?P.*))?$" -) -_JTDS_RE: Final = re.compile( - r"^(?:jdbc:)?jtds:sqlserver://(?P[^:/@\s]+)" - r"(?::(?P\d+))?" - r"(?:/(?P[^;?\s]+))?" - r"(?:[;?].*)?$" -) - # Default connection settings DEFAULT_CONNECT_URI: Final[str] = "http://localhost:8083/" @@ -663,59 +642,6 @@ def unquote( return string -def normalize_jdbc_url(url: str) -> str: - """Convert a JDBC URL to a form SQLAlchemy can parse. - - Non-standard formats handled: - - Oracle thin/OCI (oracle:thin:@[//]host:port/service) → oracle://host:port/service - - SQL Server JDBC (sqlserver://host[:port][;databaseName=db;...]) → mssql://host:port/db - - jTDS SQL Server (jtds:sqlserver://host[:port][/db]) → mssql://host:port/db - - All other URLs are returned unchanged after stripping a leading jdbc:. - """ - m = _ORACLE_THIN_RE.match(url) - if m: - host = m.group("host") - port = m.group("port") - db = m.group("db") or "" - return f"oracle://{host}:{port}/{db}" - - m = _SQLSERVER_RE.match(url) - if m: - host = m.group("host") - port = m.group("port") or "1433" - db = "" - params_str = m.group("params") or "" - for param in params_str.split(";"): - if "=" in param: - k, _, v = param.partition("=") - if k.strip().lower() == "databasename": - db = v.strip() - break - return f"mssql://{host}:{port}/{db}" - - m = _JTDS_RE.match(url) - if m: - host = m.group("host") - port = m.group("port") or "1433" - db = m.group("db") or "" - return f"mssql://{host}:{port}/{db}" - - return remove_prefix(url, JDBC_PREFIX) - - -def validate_jdbc_url(url: str) -> bool: - """Return whether url is a JDBC URL format we can parse.""" - if not url or not isinstance(url, str): - return False - if _ORACLE_THIN_RE.match(url) or _SQLSERVER_RE.match(url) or _JTDS_RE.match(url): - return True - if not url.startswith(JDBC_PREFIX): - return False - parts = url.split(":", 3) - return len(parts) >= 3 # jdbc:protocol:connection_details - - def parse_table_identifier(identifier: str) -> str: """Parse table identifiers that may include quotes or schemas.""" if not identifier: diff --git a/metadata-ingestion/src/datahub/ingestion/source/kafka_connect/sink_connectors.py b/metadata-ingestion/src/datahub/ingestion/source/kafka_connect/sink_connectors.py index 2020ecdf3d443..fa23609eb6890 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/kafka_connect/sink_connectors.py +++ b/metadata-ingestion/src/datahub/ingestion/source/kafka_connect/sink_connectors.py @@ -5,6 +5,10 @@ from sqlalchemy.engine.url import URL, make_url +from datahub.ingestion.source.common.jdbc import ( + normalize_jdbc_url, + validate_jdbc_url, +) from datahub.ingestion.source.kafka_connect.common import ( KAFKA, BaseConnector, @@ -14,8 +18,6 @@ KafkaConnectSourceReport, get_dataset_name, has_three_level_hierarchy, - normalize_jdbc_url, - validate_jdbc_url, ) from datahub.ingestion.source.kafka_connect.config_constants import ( ConnectorConfigKeys, diff --git a/metadata-ingestion/src/datahub/ingestion/source/kafka_connect/source_connectors.py b/metadata-ingestion/src/datahub/ingestion/source/kafka_connect/source_connectors.py index 6e7f063fdd047..5421b4df1c734 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/kafka_connect/source_connectors.py +++ b/metadata-ingestion/src/datahub/ingestion/source/kafka_connect/source_connectors.py @@ -6,7 +6,6 @@ ClassVar, Dict, Final, - FrozenSet, Iterable, List, Optional, @@ -15,11 +14,16 @@ from sqlalchemy.engine.url import make_url +from datahub.ingestion.source.common.jdbc import ( + JDBC_PREFIX, + JDBC_PROTOCOL_PLATFORM_FALLBACK, + normalize_jdbc_url, + validate_jdbc_url, +) from datahub.ingestion.source.kafka_connect.common import ( CLOUD_JDBC_SOURCE_CLASSES, CONNECTOR_CLASS, DEBEZIUM_CONNECTORS_WITH_2_LEVEL_CONTAINER, - JDBC_PREFIX, KAFKA, KNOWN_TOPIC_ROUTING_TRANSFORMS, MYSQL_CDC_SOURCE_V2_CLOUD, @@ -31,11 +35,9 @@ KafkaConnectLineage, get_dataset_name, has_three_level_hierarchy, - normalize_jdbc_url, parse_comma_separated_list, remove_prefix, unquote, - validate_jdbc_url, ) from datahub.ingestion.source.kafka_connect.pattern_matchers import ( JavaRegexMatcher, @@ -50,13 +52,6 @@ logger = logging.getLogger(__name__) -# JDBC subprotocols the SQLAlchemy mapper does not recognize but that are real -# DataHub platforms. Anything else falls through as "unknown" so a mistyped URL -# cannot invent a lineage platform. -_JDBC_PROTOCOL_PLATFORM_FALLBACK: Final[FrozenSet[str]] = frozenset( - {"db2", "teradata", "cassandra"} -) - @dataclass(frozen=True) class TableId: @@ -1485,7 +1480,7 @@ def _extract_platform_from_jdbc_url(self, jdbc_url: str) -> str: protocol = normalized[:protocol_end].lower() if protocol == "postgresql": return "postgres" - if protocol in _JDBC_PROTOCOL_PLATFORM_FALLBACK: + if protocol in JDBC_PROTOCOL_PLATFORM_FALLBACK: return protocol return "unknown" except Exception: diff --git a/metadata-ingestion/tests/unit/common/test_jdbc.py b/metadata-ingestion/tests/unit/common/test_jdbc.py new file mode 100644 index 0000000000000..2cfa94978169f --- /dev/null +++ b/metadata-ingestion/tests/unit/common/test_jdbc.py @@ -0,0 +1,213 @@ +import pytest + +from datahub.ingestion.source.common.jdbc import ( + JdbcUrlInfo, + normalize_jdbc_url, + parse_jdbc_url, + validate_jdbc_url, +) + + +@pytest.mark.parametrize( + "url,expected", + [ + ("jdbc:postgresql://host:5432/db", "postgresql://host:5432/db"), + ("jdbc:mysql://host:3306/db", "mysql://host:3306/db"), + ("jdbc:oracle:thin:@//host:1521/svc", "oracle://host:1521/svc"), + ( + "oracle:thin:@host:1521/svc.corp.example.com", + "oracle://host:1521/svc.corp.example.com", + ), + ("jdbc:oracle:thin:@host:1521:ORCL", "oracle://host:1521/ORCL"), + ("jdbc:oracle:oci:@//host:1521/svc", "oracle://host:1521/svc"), + ( + "jdbc:sqlserver://host:1433;databaseName=mydb;integratedSecurity=false", + "mssql://host:1433/mydb", + ), + ("jdbc:sqlserver://host;databaseName=mydb", "mssql://host:1433/mydb"), + ("jdbc:sqlserver://host:1433", "mssql://host:1433/"), + ( + "jdbc:sqlserver://host:1433;databaseName=db;password=p@ss", + "mssql://host:1433/db", + ), + ( + "jdbc:sqlserver://host:1433;databaseName=db;user=svc@tenant", + "mssql://host:1433/db", + ), + ("jdbc:oracle:thin:@host:1521/svc;foo=bar", "oracle://host:1521/svc"), + ("jdbc:jtds:sqlserver://host:1433/mydb", "mssql://host:1433/mydb"), + ("jdbc:jtds:sqlserver://host:1433", "mssql://host:1433/"), + ], +) +def test_normalize_jdbc_url(url: str, expected: str) -> None: + assert normalize_jdbc_url(url) == expected + + +@pytest.mark.parametrize( + "url,valid", + [ + ("jdbc:postgresql://host:5432/db", True), + ("oracle:thin:@host:1521/svc", True), + ("jdbc:oracle:thin:@//host:1521/svc", True), + ("jdbc:sqlserver://host:1433;databaseName=db", True), + ("jdbc:sqlserver://host:1433;databaseName=db;password=p@ss", True), + ("jdbc:jtds:sqlserver://host:1433/db", True), + ("", False), + ("not-a-url", False), + ("http://host:8080/path", False), + ], +) +def test_validate_jdbc_url(url: str, valid: bool) -> None: + assert validate_jdbc_url(url) is valid + + +@pytest.mark.parametrize( + "url,expected", + [ + ( + "jdbc:postgresql://pg.example.com:5432/sales?ssl=true", + JdbcUrlInfo( + platform="postgres", host="pg.example.com", port=5432, database="sales" + ), + ), + ( + "jdbc:postgresql://cluster.abc.us-east-1.redshift.amazonaws.com:5439/dev", + JdbcUrlInfo( + platform="redshift", + host="cluster.abc.us-east-1.redshift.amazonaws.com", + port=5439, + database="dev", + ), + ), + ( + "jdbc:redshift://rs.example.com:5439/dev", + JdbcUrlInfo( + platform="redshift", host="rs.example.com", port=5439, database="dev" + ), + ), + ( + "jdbc:mysql://my.example.com:3306/shop?useSSL=false", + JdbcUrlInfo( + platform="mysql", host="my.example.com", port=3306, database="shop" + ), + ), + ( + "jdbc:mariadb://maria.example.com/shop", + JdbcUrlInfo(platform="mariadb", host="maria.example.com", database="shop"), + ), + ( + "jdbc:db2://db2.example.com:50000/SAMPLE:currentSchema=APP;", + JdbcUrlInfo( + platform="db2", host="db2.example.com", port=50000, database="SAMPLE" + ), + ), + ( + "jdbc:sqlserver://sql.example.com:1433;encrypt=true;databaseName=sales", + JdbcUrlInfo( + platform="mssql", host="sql.example.com", port=1433, database="sales" + ), + ), + ( + "jdbc:sqlserver://sql.example.com;database=sales", + JdbcUrlInfo(platform="mssql", host="sql.example.com", database="sales"), + ), + ( + "jdbc:jtds:sqlserver://sql.example.com:1433/sales;domain=CORP", + JdbcUrlInfo( + platform="mssql", host="sql.example.com", port=1433, database="sales" + ), + ), + ( + "jdbc:oracle:thin:@ora.example.com:1521:ORCL", + JdbcUrlInfo( + platform="oracle", host="ora.example.com", port=1521, database="ORCL" + ), + ), + ( + "jdbc:oracle:thin:@//ora.example.com:1521/sales.example.com", + JdbcUrlInfo( + platform="oracle", + host="ora.example.com", + port=1521, + database="sales.example.com", + ), + ), + ( + "jdbc:snowflake://acct.snowflakecomputing.com/?db=ANALYTICS&schema=PUBLIC&warehouse=WH", + JdbcUrlInfo( + platform="snowflake", + host="acct.snowflakecomputing.com", + database="ANALYTICS", + schema_name="PUBLIC", + ), + ), + ( + "jdbc:sap://hana.example.com:30015/?databaseName=HXE", + JdbcUrlInfo( + platform="hana", host="hana.example.com", port=30015, database="HXE" + ), + ), + ( + "jdbc:teradata://td.example.com/DATABASE=sales,CHARSET=UTF8", + JdbcUrlInfo(platform="teradata", host="td.example.com", database="sales"), + ), + ( + "jdbc:clickhouse://ch.example.com:8123/events", + JdbcUrlInfo( + platform="clickhouse", + host="ch.example.com", + port=8123, + database="events", + ), + ), + ( + "jdbc:vertica://vt.example.com:5433/warehouse", + JdbcUrlInfo( + platform="vertica", + host="vt.example.com", + port=5433, + database="warehouse", + ), + ), + ( + "jdbc:trino://trino.example.com:8080/hive/sales", + JdbcUrlInfo( + platform="trino", + host="trino.example.com", + port=8080, + database="hive", + schema_name="sales", + ), + ), + ( + "jdbc:presto://presto.example.com:8080/hive", + JdbcUrlInfo( + platform="presto", host="presto.example.com", port=8080, database="hive" + ), + ), + ( + "jdbc:hive2://hive.example.com:10000/default;principal=hive/_HOST@REALM", + JdbcUrlInfo( + platform="hive", host="hive.example.com", port=10000, database="default" + ), + ), + ( + "jdbc:mysql://h1.example.com:3306,h2.example.com:3306/shop", + JdbcUrlInfo(platform="mysql", host="h1.example.com", database="shop"), + ), + ( + "jdbc:acme://acme.example.com:9999/db", + JdbcUrlInfo(host="acme.example.com", port=9999), + ), + ], +) +def test_parse_jdbc_url(url: str, expected: JdbcUrlInfo) -> None: + assert parse_jdbc_url(url) == expected + + +@pytest.mark.parametrize( + "url", + ["", "not-a-url", "http://host:8080/path", "jdbc:", "jdbc:mysql://[::1/db"], +) +def test_parse_jdbc_url_invalid(url: str) -> None: + assert parse_jdbc_url(url) == JdbcUrlInfo() diff --git a/metadata-ingestion/tests/unit/kafka_connect/test_kafka_connect_jdbc_parser_factories.py b/metadata-ingestion/tests/unit/kafka_connect/test_kafka_connect_jdbc_parser_factories.py index 1563a65e9100e..edc64f737643a 100644 --- a/metadata-ingestion/tests/unit/kafka_connect/test_kafka_connect_jdbc_parser_factories.py +++ b/metadata-ingestion/tests/unit/kafka_connect/test_kafka_connect_jdbc_parser_factories.py @@ -8,8 +8,6 @@ ConnectorManifest, KafkaConnectSourceConfig, KafkaConnectSourceReport, - normalize_jdbc_url, - validate_jdbc_url, ) from datahub.ingestion.source.kafka_connect.sink_connectors import ( JdbcSinkConnector, @@ -20,59 +18,6 @@ ) -@pytest.mark.parametrize( - "url,expected", - [ - ("jdbc:postgresql://host:5432/db", "postgresql://host:5432/db"), - ("jdbc:mysql://host:3306/db", "mysql://host:3306/db"), - ("jdbc:oracle:thin:@//host:1521/svc", "oracle://host:1521/svc"), - ( - "oracle:thin:@host:1521/svc.corp.example.com", - "oracle://host:1521/svc.corp.example.com", - ), - ("jdbc:oracle:thin:@host:1521:ORCL", "oracle://host:1521/ORCL"), - ("jdbc:oracle:oci:@//host:1521/svc", "oracle://host:1521/svc"), - ( - "jdbc:sqlserver://host:1433;databaseName=mydb;integratedSecurity=false", - "mssql://host:1433/mydb", - ), - ("jdbc:sqlserver://host;databaseName=mydb", "mssql://host:1433/mydb"), - ("jdbc:sqlserver://host:1433", "mssql://host:1433/"), - ( - "jdbc:sqlserver://host:1433;databaseName=db;password=p@ss", - "mssql://host:1433/db", - ), - ( - "jdbc:sqlserver://host:1433;databaseName=db;user=svc@tenant", - "mssql://host:1433/db", - ), - ("jdbc:oracle:thin:@host:1521/svc;foo=bar", "oracle://host:1521/svc"), - ("jdbc:jtds:sqlserver://host:1433/mydb", "mssql://host:1433/mydb"), - ("jdbc:jtds:sqlserver://host:1433", "mssql://host:1433/"), - ], -) -def test_normalize_jdbc_url(url: str, expected: str) -> None: - assert normalize_jdbc_url(url) == expected - - -@pytest.mark.parametrize( - "url,valid", - [ - ("jdbc:postgresql://host:5432/db", True), - ("oracle:thin:@host:1521/svc", True), - ("jdbc:oracle:thin:@//host:1521/svc", True), - ("jdbc:sqlserver://host:1433;databaseName=db", True), - ("jdbc:sqlserver://host:1433;databaseName=db;password=p@ss", True), - ("jdbc:jtds:sqlserver://host:1433/db", True), - ("", False), - ("not-a-url", False), - ("http://host:8080/path", False), - ], -) -def test_validate_jdbc_url(url: str, valid: bool) -> None: - assert validate_jdbc_url(url) is valid - - class TestJdbcParserFactorySource: """Test JdbcParserFactory for source connectors.""" From 687064932692ca040f24a42c3f48548568ddf90b Mon Sep 17 00:00:00 2001 From: acrylJonny Date: Mon, 2 Nov 2026 20:31:15 +0000 Subject: [PATCH 02/20] fix(ingest): parse JDBC sub-protocol, mixed-case and exact-scheme URLs parse_jdbc_url now drops driver-mode qualifiers such as mysql:loadbalance, redshift:iam and clickhouse:http(s) before parsing, so the token is no longer read as the database. The jdbc: prefix and subprotocol are matched case-insensitively while host and database keep their case. Platforms come from an explicit subprotocol map instead of the SQLAlchemy prefix mapper, so schemes like mysqlx stay unknown. A URL with no authority returns an empty result. Oracle, SQL Server and jTDS extraction is shared between normalize_jdbc_url and parse_jdbc_url; normalize_jdbc_url still reads only databaseName, so its output is unchanged. Co-Authored-By: Claude Opus 5.5 --- .../datahub/ingestion/source/common/jdbc.py | 209 ++++++++++++------ .../tests/unit/common/test_jdbc.py | 43 +++- 2 files changed, 178 insertions(+), 74 deletions(-) diff --git a/metadata-ingestion/src/datahub/ingestion/source/common/jdbc.py b/metadata-ingestion/src/datahub/ingestion/source/common/jdbc.py index 66c4e49d68b85..e668a4b160b95 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/common/jdbc.py +++ b/metadata-ingestion/src/datahub/ingestion/source/common/jdbc.py @@ -4,10 +4,6 @@ from pydantic import BaseModel -from datahub.ingestion.source.sql.sqlalchemy_uri_mapper import ( - get_platform_from_sqlalchemy_uri, -) - JDBC_PREFIX: Final[str] = "jdbc:" # Regex patterns for non-standard JDBC URL formats (see normalize_jdbc_url) @@ -30,30 +26,78 @@ r"(?:[;?].*)?$" ) +# `jdbc:` plus the subprotocol tokens before `//` or `@`, matched without +# regard to case so `JDBC:MySQL://` parses like `jdbc:mysql://`. +_JDBC_SCHEME_PREFIX_RE: Final = re.compile( + r"^(?:jdbc:)?[a-z][a-z0-9+.-]*(?::[a-z][a-z0-9+.-]*)*(?=:(?://|@))", + re.IGNORECASE, +) +# `scheme:qualifier://`, e.g. `mysql:loadbalance://` or `redshift:iam://`. +_JDBC_QUALIFIER_RE: Final = re.compile( + r"^(?P[^:]+):(?P[^:/]+):(?=//)" +) + SQLSERVER_DEFAULT_PORT: Final[str] = "1433" SQLSERVER_DATABASE_NAME_KEY: Final[str] = "databasename" SQLSERVER_DATABASE_KEYS: Final[FrozenSet[str]] = frozenset( {SQLSERVER_DATABASE_NAME_KEY, "database"} ) +# normalize_jdbc_url predates parse_jdbc_url and kafka_connect relies on its +# output, so it keeps reading only `databaseName`. +_SQLSERVER_NORMALIZE_DATABASE_KEYS: Final[FrozenSet[str]] = frozenset( + {SQLSERVER_DATABASE_NAME_KEY} +) ORACLE_PLATFORM: Final[str] = "oracle" MSSQL_PLATFORM: Final[str] = "mssql" SNOWFLAKE_PLATFORM: Final[str] = "snowflake" HANA_PLATFORM: Final[str] = "hana" TERADATA_PLATFORM: Final[str] = "teradata" -_SQLALCHEMY_UNKNOWN_PLATFORM: Final[str] = "external" +POSTGRES_PLATFORM: Final[str] = "postgres" +REDSHIFT_PLATFORM: Final[str] = "redshift" +# The Redshift JDBC driver also accepts `jdbc:postgresql://` URLs. +REDSHIFT_HOST_MARKER: Final[str] = "redshift.amazonaws" -# JDBC subprotocols the SQLAlchemy mapper does not recognize but that are real -# DataHub platforms. Anything else stays unknown so a mistyped URL cannot invent -# a lineage platform. +# JDBC subprotocols the SQLAlchemy URI mapper does not recognize but that are +# real DataHub platforms. JDBC_PROTOCOL_PLATFORM_FALLBACK: Final[FrozenSet[str]] = frozenset( {"db2", TERADATA_PLATFORM, "cassandra"} ) -# Subprotocols whose name differs from the DataHub platform, or that the -# SQLAlchemy mapper would otherwise miss. -JDBC_SCHEME_PLATFORM_OVERRIDES: Final[Dict[str, str]] = { - "sap": HANA_PLATFORM, +# Exact subprotocol matches only, so a mistyped or unrelated scheme such as +# `mysqlx` cannot invent a lineage platform. +JDBC_SCHEME_PLATFORMS: Final[Dict[str, str]] = { + "awsathena": "athena", + "bigquery": "bigquery", + "cassandra": "cassandra", + "clickhouse": "clickhouse", + "db2": "db2", + "hive": "hive", + "hive2": "hive", + "jtds": MSSQL_PLATFORM, "mariadb": "mariadb", + "mongodb": "mongodb", + "mysql": "mysql", + "oracle": ORACLE_PLATFORM, + "pinot": "pinot", + "postgresql": POSTGRES_PLATFORM, + "presto": "presto", + "redshift": REDSHIFT_PLATFORM, + "sap": HANA_PLATFORM, + "snowflake": SNOWFLAKE_PLATFORM, + "sqlserver": MSSQL_PLATFORM, + "teradata": TERADATA_PLATFORM, + "trino": "trino", + "vertica": "vertica", +} +# Driver-mode tokens between the subprotocol and `//`. They pick a connection +# strategy, not a host or database. +JDBC_SCHEME_QUALIFIERS: Final[Dict[str, FrozenSet[str]]] = { + "mysql": frozenset({"loadbalance", "replication"}), + "mariadb": frozenset( + {"loadbalance", "replication", "sequential", "failover", "aurora"} + ), + "redshift": frozenset({"iam"}), + "clickhouse": frozenset({"http", "https", "grpc", "tcp"}), } # Platforms whose JDBC URL carries the database as the first path segment. @@ -82,6 +126,15 @@ class JdbcUrlInfo(BaseModel): schema_name: Optional[str] = None +class _FixedFormatJdbcUrl(BaseModel): + """Oracle thin/OCI, SQL Server or jTDS URL fields, before normalization.""" + + platform: str + host: str + port: Optional[str] = None + database: Optional[str] = None + + def normalize_jdbc_url(url: str) -> str: """Convert a JDBC URL to a form SQLAlchemy can parse. @@ -92,35 +145,47 @@ def normalize_jdbc_url(url: str) -> str: All other URLs are returned unchanged after stripping a leading jdbc:. """ + fixed = _match_fixed_format_url(url, _SQLSERVER_NORMALIZE_DATABASE_KEYS) + if fixed is not None: + # Oracle URLs always carry a port; SQL Server and jTDS default it. + port = fixed.port or SQLSERVER_DEFAULT_PORT + return f"{fixed.platform}://{fixed.host}:{port}/{fixed.database or ''}" + + return url[len(JDBC_PREFIX) :] if url.startswith(JDBC_PREFIX) else url + + +def _match_fixed_format_url( + url: str, sqlserver_database_keys: FrozenSet[str] +) -> Optional[_FixedFormatJdbcUrl]: m = _ORACLE_THIN_RE.match(url) if m: - host = m.group("host") - port = m.group("port") - db = m.group("db") or "" - return f"oracle://{host}:{port}/{db}" + return _FixedFormatJdbcUrl( + platform=ORACLE_PLATFORM, + host=m.group("host"), + port=m.group("port"), + database=m.group("db"), + ) m = _SQLSERVER_RE.match(url) if m: - host = m.group("host") - port = m.group("port") or SQLSERVER_DEFAULT_PORT - db = "" - params_str = m.group("params") or "" - for param in params_str.split(";"): - if "=" in param: - k, _, v = param.partition("=") - if k.strip().lower() == SQLSERVER_DATABASE_NAME_KEY: - db = v.strip() - break - return f"mssql://{host}:{port}/{db}" + return _FixedFormatJdbcUrl( + platform=MSSQL_PLATFORM, + host=m.group("host"), + port=m.group("port"), + database=_sqlserver_database( + m.group("params") or "", sqlserver_database_keys + ), + ) m = _JTDS_RE.match(url) if m: - host = m.group("host") - port = m.group("port") or SQLSERVER_DEFAULT_PORT - db = m.group("db") or "" - return f"mssql://{host}:{port}/{db}" - - return url[len(JDBC_PREFIX) :] if url.startswith(JDBC_PREFIX) else url + return _FixedFormatJdbcUrl( + platform=MSSQL_PLATFORM, + host=m.group("host"), + port=m.group("port"), + database=m.group("db"), + ) + return None def validate_jdbc_url(url: str) -> bool: @@ -141,8 +206,12 @@ def parse_jdbc_url(url: str) -> JdbcUrlInfo: Returns an empty JdbcUrlInfo for anything it cannot parse, and one with no platform for a subprotocol it does not recognize. For Oracle, `database` holds the SID or service name, which DataHub does not use as a URN segment - by default, so callers decide whether to keep it. + by default, so callers decide whether to keep it. The `jdbc:` prefix and + subprotocol are matched case-insensitively. """ + if not url or not isinstance(url, str): + return JdbcUrlInfo() + url = _lowercase_scheme_prefix(url) if not validate_jdbc_url(url): return JdbcUrlInfo() try: @@ -151,38 +220,28 @@ def parse_jdbc_url(url: str) -> JdbcUrlInfo: return JdbcUrlInfo() -def _parse_valid_jdbc_url(url: str) -> JdbcUrlInfo: - m = _ORACLE_THIN_RE.match(url) - if m: - return JdbcUrlInfo( - platform=ORACLE_PLATFORM, - host=m.group("host"), - port=int(m.group("port")), - database=m.group("db"), - ) +def _lowercase_scheme_prefix(url: str) -> str: + m = _JDBC_SCHEME_PREFIX_RE.match(url) + if not m: + return url + return m.group(0).lower() + url[m.end() :] - m = _SQLSERVER_RE.match(url) - if m: - return JdbcUrlInfo( - platform=MSSQL_PLATFORM, - host=m.group("host"), - port=_to_port(m.group("port")), - database=_sqlserver_database(m.group("params") or ""), - ) - m = _JTDS_RE.match(url) - if m: +def _parse_valid_jdbc_url(url: str) -> JdbcUrlInfo: + fixed = _match_fixed_format_url(url, SQLSERVER_DATABASE_KEYS) + if fixed is not None: return JdbcUrlInfo( - platform=MSSQL_PLATFORM, - host=m.group("host"), - port=_to_port(m.group("port")), - database=m.group("db"), + platform=fixed.platform, + host=fixed.host, + port=_to_port(fixed.port), + database=fixed.database or None, ) - body = url[len(JDBC_PREFIX) :] - scheme = body.partition(":")[0].lower() - platform = _platform_for_scheme(scheme, body) + body = _strip_scheme_qualifier(url[len(JDBC_PREFIX) :]) parts = urlsplit(body) + if not parts.hostname: + return JdbcUrlInfo() + platform = _platform_for_scheme(parts.scheme, parts.hostname) info = JdbcUrlInfo(platform=platform, host=parts.hostname, port=_split_port(parts)) if platform is None: return info @@ -207,22 +266,26 @@ def _parse_valid_jdbc_url(url: str) -> JdbcUrlInfo: return info -def _platform_for_scheme(scheme: str, body: str) -> Optional[str]: - override = JDBC_SCHEME_PLATFORM_OVERRIDES.get(scheme) - if override is not None: - return override - platform = get_platform_from_sqlalchemy_uri(body) - if platform != _SQLALCHEMY_UNKNOWN_PLATFORM: - return platform - if scheme in JDBC_PROTOCOL_PLATFORM_FALLBACK: - return scheme - return None +def _strip_scheme_qualifier(body: str) -> str: + m = _JDBC_QUALIFIER_RE.match(body) + if m and m.group("qualifier") in JDBC_SCHEME_QUALIFIERS.get( + m.group("scheme"), frozenset() + ): + return f"{m.group('scheme')}:{body[m.end() :]}" + return body -def _sqlserver_database(params: str) -> Optional[str]: +def _platform_for_scheme(scheme: str, host: str) -> Optional[str]: + platform = JDBC_SCHEME_PLATFORMS.get(scheme) + if platform == POSTGRES_PLATFORM and REDSHIFT_HOST_MARKER in host: + return REDSHIFT_PLATFORM + return platform + + +def _sqlserver_database(params: str, keys: FrozenSet[str]) -> Optional[str]: for param in params.split(";"): - key, _, value = param.partition("=") - if key.strip().lower() in SQLSERVER_DATABASE_KEYS and value.strip(): + key, sep, value = param.partition("=") + if sep and key.strip().lower() in keys: return value.strip() return None diff --git a/metadata-ingestion/tests/unit/common/test_jdbc.py b/metadata-ingestion/tests/unit/common/test_jdbc.py index 2cfa94978169f..e1c4f021d37ac 100644 --- a/metadata-ingestion/tests/unit/common/test_jdbc.py +++ b/metadata-ingestion/tests/unit/common/test_jdbc.py @@ -199,6 +199,39 @@ def test_validate_jdbc_url(url: str, valid: bool) -> None: "jdbc:acme://acme.example.com:9999/db", JdbcUrlInfo(host="acme.example.com", port=9999), ), + ( + "jdbc:mysqlx://my.example.com:33060/shop", + JdbcUrlInfo(host="my.example.com", port=33060), + ), + ( + "jdbc:mysql:loadbalance://h1.example.com:3306,h2.example.com:3306/shop", + JdbcUrlInfo(platform="mysql", host="h1.example.com", database="shop"), + ), + ( + "jdbc:redshift:iam://rs.example.com:5439/dev", + JdbcUrlInfo( + platform="redshift", host="rs.example.com", port=5439, database="dev" + ), + ), + ( + "jdbc:clickhouse:https://ch.example.com:8443/events?ssl=true", + JdbcUrlInfo( + platform="clickhouse", + host="ch.example.com", + port=8443, + database="events", + ), + ), + ( + "JDBC:PostgreSQL://pg.example.com:5432/Sales", + JdbcUrlInfo( + platform="postgres", host="pg.example.com", port=5432, database="Sales" + ), + ), + ( + "JDBC:SQLServer://sql.example.com;databaseName=Sales", + JdbcUrlInfo(platform="mssql", host="sql.example.com", database="Sales"), + ), ], ) def test_parse_jdbc_url(url: str, expected: JdbcUrlInfo) -> None: @@ -207,7 +240,15 @@ def test_parse_jdbc_url(url: str, expected: JdbcUrlInfo) -> None: @pytest.mark.parametrize( "url", - ["", "not-a-url", "http://host:8080/path", "jdbc:", "jdbc:mysql://[::1/db"], + [ + "", + "not-a-url", + "http://host:8080/path", + "jdbc:", + "jdbc:mysql://", + "jdbc:mysql://[::1/db", + "jdbc:mysql:unknownmode://my.example.com/shop", + ], ) def test_parse_jdbc_url_invalid(url: str) -> None: assert parse_jdbc_url(url) == JdbcUrlInfo() From 8eda74204010ab1a859d00bfad9e359b1b9a3b45 Mon Sep 17 00:00:00 2001 From: acrylJonny Date: Mon, 2 Nov 2026 21:15:43 +0000 Subject: [PATCH 03/20] fix(ingest): skip blank SQL Server databaseName when parsing JDBC URLs parse_jdbc_url now keeps scanning past an empty databaseName so a later database parameter still resolves. normalize_jdbc_url keeps its first-match behaviour so kafka_connect output is unchanged. Co-Authored-By: Claude Opus 5.5 --- .../datahub/ingestion/source/common/jdbc.py | 23 ++++++++++++++----- .../tests/unit/common/test_jdbc.py | 5 ++++ 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/metadata-ingestion/src/datahub/ingestion/source/common/jdbc.py b/metadata-ingestion/src/datahub/ingestion/source/common/jdbc.py index e668a4b160b95..5709227322f52 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/common/jdbc.py +++ b/metadata-ingestion/src/datahub/ingestion/source/common/jdbc.py @@ -145,7 +145,9 @@ def normalize_jdbc_url(url: str) -> str: All other URLs are returned unchanged after stripping a leading jdbc:. """ - fixed = _match_fixed_format_url(url, _SQLSERVER_NORMALIZE_DATABASE_KEYS) + fixed = _match_fixed_format_url( + url, _SQLSERVER_NORMALIZE_DATABASE_KEYS, skip_blank_database=False + ) if fixed is not None: # Oracle URLs always carry a port; SQL Server and jTDS default it. port = fixed.port or SQLSERVER_DEFAULT_PORT @@ -155,7 +157,7 @@ def normalize_jdbc_url(url: str) -> str: def _match_fixed_format_url( - url: str, sqlserver_database_keys: FrozenSet[str] + url: str, sqlserver_database_keys: FrozenSet[str], skip_blank_database: bool ) -> Optional[_FixedFormatJdbcUrl]: m = _ORACLE_THIN_RE.match(url) if m: @@ -173,7 +175,7 @@ def _match_fixed_format_url( host=m.group("host"), port=m.group("port"), database=_sqlserver_database( - m.group("params") or "", sqlserver_database_keys + m.group("params") or "", sqlserver_database_keys, skip_blank_database ), ) @@ -228,7 +230,9 @@ def _lowercase_scheme_prefix(url: str) -> str: def _parse_valid_jdbc_url(url: str) -> JdbcUrlInfo: - fixed = _match_fixed_format_url(url, SQLSERVER_DATABASE_KEYS) + fixed = _match_fixed_format_url( + url, SQLSERVER_DATABASE_KEYS, skip_blank_database=True + ) if fixed is not None: return JdbcUrlInfo( platform=fixed.platform, @@ -282,10 +286,17 @@ def _platform_for_scheme(scheme: str, host: str) -> Optional[str]: return platform -def _sqlserver_database(params: str, keys: FrozenSet[str]) -> Optional[str]: +def _sqlserver_database( + params: str, keys: FrozenSet[str], skip_blank: bool +) -> Optional[str]: + # normalize_jdbc_url stops at the first `databaseName` even when blank, and + # kafka_connect depends on that; parse_jdbc_url keeps looking so + # `databaseName=;database=db` still yields `db`. for param in params.split(";"): key, sep, value = param.partition("=") - if sep and key.strip().lower() in keys: + if not sep or key.strip().lower() not in keys: + continue + if value.strip() or not skip_blank: return value.strip() return None diff --git a/metadata-ingestion/tests/unit/common/test_jdbc.py b/metadata-ingestion/tests/unit/common/test_jdbc.py index e1c4f021d37ac..e378e4ceaa027 100644 --- a/metadata-ingestion/tests/unit/common/test_jdbc.py +++ b/metadata-ingestion/tests/unit/common/test_jdbc.py @@ -26,6 +26,7 @@ ), ("jdbc:sqlserver://host;databaseName=mydb", "mssql://host:1433/mydb"), ("jdbc:sqlserver://host:1433", "mssql://host:1433/"), + ("jdbc:sqlserver://host;databaseName=;databaseName=db", "mssql://host:1433/"), ( "jdbc:sqlserver://host:1433;databaseName=db;password=p@ss", "mssql://host:1433/db", @@ -111,6 +112,10 @@ def test_validate_jdbc_url(url: str, valid: bool) -> None: "jdbc:sqlserver://sql.example.com;database=sales", JdbcUrlInfo(platform="mssql", host="sql.example.com", database="sales"), ), + ( + "jdbc:sqlserver://sql.example.com;databaseName=;database=sales", + JdbcUrlInfo(platform="mssql", host="sql.example.com", database="sales"), + ), ( "jdbc:jtds:sqlserver://sql.example.com:1433/sales;domain=CORP", JdbcUrlInfo( From d9e5cb3520ca4824c37d334c6ae0087663b47494 Mon Sep 17 00:00:00 2001 From: acrylJonny Date: Mon, 2 Nov 2026 18:30:32 +0000 Subject: [PATCH 04/20] feat(ingest/boomi): add Boomi Integration source for processes and folders Adds a `boomi` ingestion source for Boomi Integration (AtomSphere) using the Platform API. Folders become containers, each process becomes a DataFlow with one DataJob, and component creators/modifiers become owners. Active deployments (DeployedPackage) are recorded as properties and, by default, only deployed processes are ingested; a token without deployment access falls back to ingesting every process. Branch copies are deduped by componentId and the client stays under Boomi's 10 requests/second limit, retrying the 503s Boomi returns when throttling. Registers the boomi platform, logo, UI source entry and connector registry entry. Lineage and execution history follow in later changes. Co-Authored-By: Claude Opus 5.5 --- .../app/ingest/source/builder/constants.ts | 4 + .../app/ingest/source/builder/sources.json | 9 + .../app/ingestV2/source/builder/constants.ts | 4 + .../app/ingestV2/source/builder/sources.json | 10 + .../src/i18n/locales/en/ingest.sources.json | 1 + datahub-web-react/src/images/boomilogo.png | Bin 0 -> 31061 bytes .../static/img/logos/platforms/boomi.svg | 12 + .../docs/sources/boomi/README.md | 17 + .../docs/sources/boomi/boomi_post.md | 45 + .../docs/sources/boomi/boomi_pre.md | 37 + .../docs/sources/boomi/boomi_recipe.yml | 32 + .../docs/sources/integrations_catalog.json | 7 + metadata-ingestion/pyproject.toml | 6 + metadata-ingestion/setup.py | 6 + .../connector_registry/datahub.json | 38 + .../ingestion/source/boomi/__init__.py | 0 .../datahub/ingestion/source/boomi/client.py | 221 +++ .../source/boomi/component_parser.py | 29 + .../datahub/ingestion/source/boomi/config.py | 118 ++ .../ingestion/source/boomi/constants.py | 77 + .../datahub/ingestion/source/boomi/models.py | 88 ++ .../datahub/ingestion/source/boomi/report.py | 31 + .../datahub/ingestion/source/boomi/source.py | 448 ++++++ .../ingestion/source/common/subtypes.py | 6 + .../tests/integration/boomi/__init__.py | 0 .../boomi/golden/boomi_mces_golden.json | 1352 +++++++++++++++++ .../tests/integration/boomi/test_boomi.py | 378 +++++ .../tests/unit/boomi/__init__.py | 0 .../tests/unit/boomi/test_client.py | 137 ++ .../tests/unit/boomi/test_parsing.py | 65 + .../tests/unit/boomi/test_source.py | 207 +++ metadata-ingestion/uv.lock | 12 +- .../bootstrap_mcps/data-platforms.yaml | 10 + 33 files changed, 3402 insertions(+), 5 deletions(-) create mode 100644 datahub-web-react/src/images/boomilogo.png create mode 100644 docs-website/static/img/logos/platforms/boomi.svg create mode 100644 metadata-ingestion/docs/sources/boomi/README.md create mode 100644 metadata-ingestion/docs/sources/boomi/boomi_post.md create mode 100644 metadata-ingestion/docs/sources/boomi/boomi_pre.md create mode 100644 metadata-ingestion/docs/sources/boomi/boomi_recipe.yml create mode 100644 metadata-ingestion/src/datahub/ingestion/source/boomi/__init__.py create mode 100644 metadata-ingestion/src/datahub/ingestion/source/boomi/client.py create mode 100644 metadata-ingestion/src/datahub/ingestion/source/boomi/component_parser.py create mode 100644 metadata-ingestion/src/datahub/ingestion/source/boomi/config.py create mode 100644 metadata-ingestion/src/datahub/ingestion/source/boomi/constants.py create mode 100644 metadata-ingestion/src/datahub/ingestion/source/boomi/models.py create mode 100644 metadata-ingestion/src/datahub/ingestion/source/boomi/report.py create mode 100644 metadata-ingestion/src/datahub/ingestion/source/boomi/source.py create mode 100644 metadata-ingestion/tests/integration/boomi/__init__.py create mode 100644 metadata-ingestion/tests/integration/boomi/golden/boomi_mces_golden.json create mode 100644 metadata-ingestion/tests/integration/boomi/test_boomi.py create mode 100644 metadata-ingestion/tests/unit/boomi/__init__.py create mode 100644 metadata-ingestion/tests/unit/boomi/test_client.py create mode 100644 metadata-ingestion/tests/unit/boomi/test_parsing.py create mode 100644 metadata-ingestion/tests/unit/boomi/test_source.py diff --git a/datahub-web-react/src/app/ingest/source/builder/constants.ts b/datahub-web-react/src/app/ingest/source/builder/constants.ts index d2e9990ff7b3c..816e7aad6eedc 100644 --- a/datahub-web-react/src/app/ingest/source/builder/constants.ts +++ b/datahub-web-react/src/app/ingest/source/builder/constants.ts @@ -5,6 +5,7 @@ import azureLogo from '@images/azure-ad.png'; import azureDataFactoryLogo from '@images/azuredatafactorylogo.svg'; import bigidLogo from '@images/bigidlogo.png'; import bigqueryLogo from '@images/bigquerylogo.png'; +import boomiLogo from '@images/boomilogo.png'; import cassandraLogo from '@images/cassandralogo.png'; import clickhouseLogo from '@images/clickhouselogo.png'; import cockroachdbLogo from '@images/cockroachdblogo.png'; @@ -143,6 +144,8 @@ const MONGO_DB = 'mongodb'; const MONGO_DB_URN = `urn:li:dataPlatform:${MONGO_DB}`; export const MONTECARLO = 'montecarlo'; export const MONTECARLO_URN = `urn:li:dataPlatform:${MONTECARLO}`; +export const BOOMI = 'boomi'; +export const BOOMI_URN = `urn:li:dataPlatform:${BOOMI}`; const MSSQL = 'mssql'; const MSSQL_URN = `urn:li:dataPlatform:${MSSQL}`; export const MYSQL = 'mysql'; @@ -274,6 +277,7 @@ export const PLATFORM_URN_TO_LOGO = { [MODE_URN]: modeLogo, [MONGO_DB_URN]: mongodbLogo, [MONTECARLO_URN]: montecarloLogo, + [BOOMI_URN]: boomiLogo, [MSSQL_URN]: mssqlLogo, [MYSQL_URN]: mysqlLogo, [NOTION_URN]: notionLogo, diff --git a/datahub-web-react/src/app/ingest/source/builder/sources.json b/datahub-web-react/src/app/ingest/source/builder/sources.json index d6983b0d9e5b2..deee4ba3494c0 100644 --- a/datahub-web-react/src/app/ingest/source/builder/sources.json +++ b/datahub-web-react/src/app/ingest/source/builder/sources.json @@ -8,6 +8,15 @@ "recipe": "source:\n type: montecarlo\n config:\n api_id: ${MCD_ID}\n api_token: ${MCD_TOKEN}\n # api_endpoint: https://api.getmontecarlo.com/graphql\n\n # Map each Monte Carlo warehouse/resource UUID to a DataHub platform so\n # monitored-asset URNs match those emitted by your warehouse source.\n connection_to_platform_map:\n \"\":\n platform: snowflake\n platform_instance: prod\n env: PROD\n # Snowflake lowercases dataset URNs by default; set true so MC\n # assertion URNs attach to the same datasets. Set false only for a\n # case-preserving Snowflake/Redshift deployment.\n convert_urns_to_lowercase: true\n\n # Fallbacks for warehouses NOT listed above (auto-mapped or via default_platform).\n # default_platform: postgres\n # target_platform_instance: prod\n # target_env: PROD\n\n auto_map_connection_types: true\n include_assertions: true\n include_alerts: true\n alerts_lookback_days: 30\n # Opt in to also create Incident entities (Incidents tab). Off by default —\n # see the Limitations section (incidents stay ACTIVE with no RESOLVED signal).\n # emit_incidents_on_failure: true\n\n # Ingest monitor run history + measured metric values as SUCCESS run events.\n # run_events_lookback_days: 7\n # run_events_first: 5\n\n # monitor_pattern:\n # allow: [\".*freshness.*\"]\n # monitor_type_pattern:\n # deny: [\"VOLUME\"]\n # domain_ids: [\"\"]\n\n # rate_limit_requests_per_second: 5\n # rate_limit_burst: 10\n # rate_limit_daily: 5000\n # convert_urns_to_lowercase: true\n\n # Opt in to soft-delete assertions that no longer exist in Monte Carlo.\n # Leave disabled until you have confirmed the run is healthy end-to-end;\n # a partial run with transient errors skips deletion automatically.\n # stateful_ingestion:\n # enabled: true", "category": "Observability" }, + { + "urn": "urn:li:dataPlatform:boomi", + "name": "boomi", + "displayName": "Boomi", + "description": "Import folders, processes, deployments, and ownership from Boomi Integration.", + "docsUrl": "https://docs.datahub.com/docs/generated/ingestion/sources/boomi", + "recipe": "source:\n type: boomi\n config:\n account_id: \"${BOOMI_ACCOUNT_ID}\"\n username: \"${BOOMI_USERNAME}\"\n api_token: \"${BOOMI_API_TOKEN}\"\n # api_url: https://api.platform.gb.boomi.com\n include_undeployed_processes: false\n extract_owners: true\n stateful_ingestion:\n enabled: true\n", + "category": "ETL / ELT" + }, { "urn": "urn:li:dataPlatform:aerospike", "name": "aerospike", diff --git a/datahub-web-react/src/app/ingestV2/source/builder/constants.ts b/datahub-web-react/src/app/ingestV2/source/builder/constants.ts index 92a364cf901a1..9e6596c99cd34 100644 --- a/datahub-web-react/src/app/ingestV2/source/builder/constants.ts +++ b/datahub-web-react/src/app/ingestV2/source/builder/constants.ts @@ -4,6 +4,7 @@ import azureLogo from '@images/azure-ad.png'; import azureDataFactoryLogo from '@images/azuredatafactorylogo.svg'; import bigidLogo from '@images/bigidlogo.png'; import bigqueryLogo from '@images/bigquerylogo.png'; +import boomiLogo from '@images/boomilogo.png'; import cassandraLogo from '@images/cassandralogo.png'; import clickhouseLogo from '@images/clickhouselogo.png'; import cockroachdbLogo from '@images/cockroachdblogo.png'; @@ -240,6 +241,8 @@ const INFORMATICA = 'informatica'; const INFORMATICA_URN = `urn:li:dataPlatform:${INFORMATICA}`; const MONTECARLO = 'montecarlo'; const MONTECARLO_URN = `urn:li:dataPlatform:${MONTECARLO}`; +const BOOMI = 'boomi'; +const BOOMI_URN = `urn:li:dataPlatform:${BOOMI}`; const SNAPLOGIC = 'snaplogic'; const SNAPLOGIC_URN = `urn:li:dataPlatform:${SNAPLOGIC}`; const DLT = 'dlt'; @@ -331,6 +334,7 @@ export const PLATFORM_URN_TO_LOGO = { [VERTEXAI_URN]: vertexAI, [INFORMATICA_URN]: informaticaLogo, [MONTECARLO_URN]: montecarloLogo, + [BOOMI_URN]: boomiLogo, [SNAPLOGIC_URN]: snaplogicLogo, [FABRIC_URN]: fabricLogo, [FABRIC_DATA_FACTORY_URN]: fabricDataFactoryLogo, diff --git a/datahub-web-react/src/app/ingestV2/source/builder/sources.json b/datahub-web-react/src/app/ingestV2/source/builder/sources.json index d9077cd169fd1..e9485102b4daa 100644 --- a/datahub-web-react/src/app/ingestV2/source/builder/sources.json +++ b/datahub-web-react/src/app/ingestV2/source/builder/sources.json @@ -49,6 +49,16 @@ "category": "ETL / ELT", "isPopular": false }, + { + "urn": "urn:li:dataPlatform:boomi", + "name": "boomi", + "displayName": "Boomi", + "description": "Import folders, processes, deployments, and ownership from Boomi Integration.", + "docsUrl": "https://docs.datahub.com/docs/generated/ingestion/sources/boomi", + "recipe": "source:\n type: boomi\n config:\n account_id: \"${BOOMI_ACCOUNT_ID}\"\n username: \"${BOOMI_USERNAME}\"\n api_token: \"${BOOMI_API_TOKEN}\"\n # api_url: https://api.platform.gb.boomi.com\n include_undeployed_processes: false\n extract_owners: true\n stateful_ingestion:\n enabled: true\n", + "category": "ETL / ELT", + "isPopular": false + }, { "urn": "urn:li:dataPlatform:snaplogic", "name": "snaplogic", diff --git a/datahub-web-react/src/i18n/locales/en/ingest.sources.json b/datahub-web-react/src/i18n/locales/en/ingest.sources.json index edf5f6dabb7b1..549fa74f57ea4 100644 --- a/datahub-web-react/src/i18n/locales/en/ingest.sources.json +++ b/datahub-web-react/src/i18n/locales/en/ingest.sources.json @@ -16,6 +16,7 @@ "sources.athena.description": "Import Schemas, Tables, Views, and lineage to S3 from Athena.", "sources.azureAd.description": "Import Users and Groups from Azure Active Directory.", "sources.bigquery.description": "Import Projects, Datasets, Tables, Views, lineage, queries, and statistics from BigQuery.", + "sources.boomi.description": "Import folders, processes, deployments, and ownership from Boomi Integration.", "sources.cassandra.description": "Import Tables, Keyspaces, and column schemas from Cassandra.", "sources.clickhouse.description": "Import Tables, Views, Materialized Views, Dictionaries, statistics, queries, and lineage from ClickHouse.", "sources.cockroachdb.description": "Import Databases, Schemas, Tables, Views, statistics and lineage from CockroachDB.", diff --git a/datahub-web-react/src/images/boomilogo.png b/datahub-web-react/src/images/boomilogo.png new file mode 100644 index 0000000000000000000000000000000000000000..b6b5dd84ce2eea2e1ce65d66bcd8d9ad889a1355 GIT binary patch literal 31061 zcmW(-2RN1Q8~)BY_TI|w_$7PqT@gjdmOZn#Yz``)}{ z^}nuMxt!1UuIIU*`?;Uz6|1AAMoz*+0znY@eRUOG2!exe;Sdo4_-{Yp&nW~2vfNj> ztsgM9ak1o+ZIZGS7`7wd&!JrSrFL-TrQlsshn(Kd&hOpdR=+VBnp7OD@Avlhq6-f) zOI<2mBpnoN-RcWp>PbxA6fM(zVn=W{+NDt4KW~^ro$3^}*b<7~{A8{J&1~7ivgH(z z>2;7-pTg0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XuU%&CC87x=>}+f%$eZJb~? zr?L06TVr>L5b{iGbt%7G&>K(ki}dH}K~swsYuY2qGMYm{1B;WjJ9|w=`=b0FPDeX7 z$HNLEF0{+oZ4L=`M!1D&9=1@_J(O-?5j#!fiWh8~d(uZ!3)dwh7jz8I=byEG@PBob BCCUH* literal 0 HcmV?d00001 diff --git a/docs-website/static/img/logos/platforms/boomi.svg b/docs-website/static/img/logos/platforms/boomi.svg new file mode 100644 index 0000000000000..6ea81fbdfff01 --- /dev/null +++ b/docs-website/static/img/logos/platforms/boomi.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/metadata-ingestion/docs/sources/boomi/README.md b/metadata-ingestion/docs/sources/boomi/README.md new file mode 100644 index 0000000000000..ace2257179532 --- /dev/null +++ b/metadata-ingestion/docs/sources/boomi/README.md @@ -0,0 +1,17 @@ +## Overview + +Boomi Integration (the Boomi Enterprise Platform, formerly AtomSphere) is an integration platform as a service where you build processes that move data between applications, databases and files. Learn more in the [Boomi Platform API documentation](https://developer.boomi.com/docs/APIs/PlatformAPI/Introduction/Getting_started_platform). + +The DataHub integration for Boomi reads the Platform API. It ingests folders as containers and each process as a DataFlow with one DataJob, along with the process description, active deployments per environment, a link back to the Boomi build page, and owners taken from the process creator and last modifier. Stateful ingestion removes processes that were deleted or are no longer deployed. + +## Concept Mapping + +| Source Concept | DataHub Concept | Notes | +| -------------- | --------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `"boomi"` | [Data Platform](../../metamodel/entities/dataPlatform.md) | | +| Account | Platform instance | Set `platform_instance` to the account ID when you ingest more than one account. | +| Folder | [Container](../../metamodel/entities/container.md) | Subtype `Folder`. Nested by parent folder. | +| Process | [DataFlow](../../metamodel/entities/dataFlow.md) + one `process` [DataJob](../../metamodel/entities/dataJob.md) | Subtype `Process`. The DataFlow URN uses the component ID, so renames keep the entity. | +| Deployment | Custom property `deployments` on the DataFlow | `environment=packageVersion` for each active deployment. | +| Creator | Owner of type `DATAOWNER` | Boomi user names are emails, so owners become `urn:li:corpuser:`. | +| Last modifier | Owner of type `TECHNICAL_OWNER` | Only added when it differs from the creator. | diff --git a/metadata-ingestion/docs/sources/boomi/boomi_post.md b/metadata-ingestion/docs/sources/boomi/boomi_post.md new file mode 100644 index 0000000000000..d3e8dea57b646 --- /dev/null +++ b/metadata-ingestion/docs/sources/boomi/boomi_post.md @@ -0,0 +1,45 @@ +### Capabilities + +#### Processes and deployments + +The source plugin queries `ComponentMetadata` for current, non-deleted components of type `process`. For each process it reads the component XML to get the description, then emits: + +- A DataFlow named after the process, with the custom properties `componentId`, `version`, `branchName`, `modifiedDate`, `folderFullPath` and `deployments`. +- One DataJob with the ID `process`. Its inputs and outputs are empty in this release. + +Active deployments come from `DeployedPackage`, joined to environment names. `environment_pattern` controls which environments count. With `include_undeployed_processes: false` (the default), a process that has no active deployment in an allowed environment is skipped, and stateful ingestion soft-deletes it if it was ingested before. + +#### Folders + +Every folder that matches `folder_pattern` is emitted as a container, together with its parent folders so the browse path stays complete. `folder_pattern` is matched against the full folder path, for example `Acme/Production/Orders`. Processes in folders that do not match are skipped. + +#### Branches + +If Branch and Merge is enabled on the account, set `branch_name` (usually `main`). A branch copy of a component keeps the original component ID, so the source plugin keeps only the most recently modified copy of each component. + +#### Rate limiting + +Boomi allows 10 Platform API requests per second per account and answers with HTTP 503 when the limit is exceeded. The source plugin caps itself at `max_requests_per_second` (8 by default) and retries 503 and other 5xx responses with exponential backoff. Lower the cap if other API clients share the account. + +The source plugin makes one request per process to read its component XML, so an account with 1,000 processes needs a little over two minutes at the default rate. + +### Limitations + +- Lineage between processes and the systems they read and write is not extracted yet. +- Execution history is not ingested yet. +- A process is one DataFlow across all environments. The version deployed to each environment is only shown in the `deployments` property. +- Owners are only emitted as user URNs. If your DataHub users are not keyed by email, the owners do not link to existing users. + +### Troubleshooting + +#### HTTP 401 on every request + +Check that `username` is the plain user name (the source plugin adds the `BOOMI_TOKEN.` prefix), that the token has not been revoked, and that `account_id` matches the account the token belongs to. + +#### Warning "Cannot read Boomi deployments" + +The token's role lacks the privilege to query `DeployedPackage`. The run continues, ingests every process and leaves out the `deployments` property. Grant **Packaged Component Deployment** to restore deployment filtering. + +#### Fewer processes than expected + +Check the `processes_filtered` and `processes_undeployed_skipped` lists in the ingestion report. Undeployed processes are skipped unless `include_undeployed_processes` is `true`, and folder restrictions on the role hide processes entirely. diff --git a/metadata-ingestion/docs/sources/boomi/boomi_pre.md b/metadata-ingestion/docs/sources/boomi/boomi_pre.md new file mode 100644 index 0000000000000..bc1d19a24bb2b --- /dev/null +++ b/metadata-ingestion/docs/sources/boomi/boomi_pre.md @@ -0,0 +1,37 @@ +### Overview + +The `boomi` module ingests Boomi Integration processes and their folders through the Boomi Platform API. Each process becomes a DataFlow with a single `process` DataJob. By default only processes with an active deployment are ingested. + +### Prerequisites + +#### Create an API token + +The Platform API uses basic authentication with an API token. The source plugin sends the user name as `BOOMI_TOKEN.` and the token as the password. + +1. Sign in to Boomi as the user the source plugin will run as. The user needs the **API Access** privilege. +2. Open **Settings** > **My User Settings** and select the **Platform API Tokens** tab. +3. Click **Add New Token**, enter a name such as `datahub`, and click **Generate Token**. +4. Copy the token. Boomi does not show the full value again after you close the dialog. +5. Note your account ID, which looks like `mycompany-AB1CD2`. It is also part of the Platform API URL, `https://api.boomi.com/api/rest/v1/`. + +#### Minimum privileges + +Boomi has no built-in read-only API role. Create a custom role with the privileges below and assign it to the user that owns the token, or use a token for a user with the Administrator role. + +| Privilege | Needed for | +| ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | +| API Access | All Platform API calls. | +| Build Read Access | Listing processes (`ComponentMetadata`), reading process components, and listing folders. | +| Runtime Management Read Access | Environment names. | +| Packaged Component Deployment | Reading active deployments (`DeployedPackage`). Without it, the source plugin ingests every process and skips deployment properties. | + +Folder restrictions on the role also hide folders and the processes in them from the source plugin. + +#### Choose the API host + +| Region | `api_url` | +| -------------- | ----------------------------------- | +| Default (US) | `https://api.boomi.com` | +| United Kingdom | `https://api.platform.gb.boomi.com` | + +The "View in Boomi" link is only set for these two hosts. diff --git a/metadata-ingestion/docs/sources/boomi/boomi_recipe.yml b/metadata-ingestion/docs/sources/boomi/boomi_recipe.yml new file mode 100644 index 0000000000000..ab1e0bb09f6a7 --- /dev/null +++ b/metadata-ingestion/docs/sources/boomi/boomi_recipe.yml @@ -0,0 +1,32 @@ +source: + type: boomi + config: + account_id: "mycompany-AB1CD2" + # Sent as BOOMI_TOKEN.; do not add the prefix. + username: "svc-datahub@example.com" + api_token: "${BOOMI_API_TOKEN}" + # UK accounts: https://api.platform.gb.boomi.com + api_url: "https://api.boomi.com" + + # Set when Branch and Merge is enabled on the account. + # branch_name: main + + folder_pattern: + allow: + - "^MyCompany/Production(/.*)?$" + process_pattern: + deny: + - ".*[Tt]est.*" + environment_pattern: + allow: + - ".*" + + include_undeployed_processes: false + extract_owners: true + max_requests_per_second: 8 + + stateful_ingestion: + enabled: true + +sink: + # sink configs diff --git a/metadata-ingestion/docs/sources/integrations_catalog.json b/metadata-ingestion/docs/sources/integrations_catalog.json index 277a39f7cdca7..86c58095109d9 100644 --- a/metadata-ingestion/docs/sources/integrations_catalog.json +++ b/metadata-ingestion/docs/sources/integrations_catalog.json @@ -41,6 +41,13 @@ "Status Aspect" ] }, + "boomi": { + "platform_type": "ETL/ELT", + "support_status": "Alpha", + "title": "Boomi", + "description": "Import folders, processes, deployments, and ownership from Boomi Integration.", + "img_path": "img/logos/platforms/boomi.svg" + }, "business-glossary": { "platform_type": "Metadata Systems", "connection_type": "Pull", diff --git a/metadata-ingestion/pyproject.toml b/metadata-ingestion/pyproject.toml index 7164322dbc35b..3117a5a687522 100644 --- a/metadata-ingestion/pyproject.toml +++ b/metadata-ingestion/pyproject.toml @@ -205,6 +205,11 @@ bigquery-slim = [ "wcmatch>=10.1,<11.0.0", ] +boomi = [ + "defusedxml>=0.7.1,<0.8.0", + "requests<3.0.0", +] + cassandra = [ "cachetools<6.0.0", "cassandra-driver>=3.30.1,<4.0.0", @@ -1840,6 +1845,7 @@ fabric-data-factory = "datahub.ingestion.source.fabric.data_factory.source:Fabri bigid = "datahub.ingestion.source.bigid.bigid_source:BigIDSource" bigquery = "datahub.ingestion.source.bigquery_v2.bigquery:BigqueryV2Source" bigquery-queries = "datahub.ingestion.source.bigquery_v2.bigquery_queries:BigQueryQueriesSource" +boomi = "datahub.ingestion.source.boomi.source:BoomiSource" clickhouse = "datahub.ingestion.source.sql.clickhouse:ClickHouseSource" clickhouse-usage = "datahub.ingestion.source.usage.clickhouse_usage:ClickHouseUsageSource" cockroachdb = "datahub.ingestion.source.sql.cockroachdb:CockroachDBSource" diff --git a/metadata-ingestion/setup.py b/metadata-ingestion/setup.py index ea3f800247968..2aaea7c5a904f 100644 --- a/metadata-ingestion/setup.py +++ b/metadata-ingestion/setup.py @@ -665,6 +665,11 @@ | bigquery_sharing_common, "bigquery-slim": bigquery_common, "bigquery-queries": sql_common | bigquery_common | sqlglot_lib, + "boomi": { + "requests<3.0.0", + # Safe parsing of Platform API component XML. + "defusedxml>=0.7.1,<0.8.0", + }, "clickhouse": sql_common | clickhouse_common, "clickhouse-usage": sql_common | usage_common | clickhouse_common, "cockroachdb": sql_common @@ -1244,6 +1249,7 @@ "bigid = datahub.ingestion.source.bigid.bigid_source:BigIDSource", "bigquery = datahub.ingestion.source.bigquery_v2.bigquery:BigqueryV2Source", "bigquery-queries = datahub.ingestion.source.bigquery_v2.bigquery_queries:BigQueryQueriesSource", + "boomi = datahub.ingestion.source.boomi.source:BoomiSource", "clickhouse = datahub.ingestion.source.sql.clickhouse:ClickHouseSource", "clickhouse-usage = datahub.ingestion.source.usage.clickhouse_usage:ClickHouseUsageSource", "cockroachdb = datahub.ingestion.source.sql.cockroachdb:CockroachDBSource", diff --git a/metadata-ingestion/src/datahub/ingestion/autogenerated/connector_registry/datahub.json b/metadata-ingestion/src/datahub/ingestion/autogenerated/connector_registry/datahub.json index 449c0442a0daf..5bbbf8ce3c4e0 100644 --- a/metadata-ingestion/src/datahub/ingestion/autogenerated/connector_registry/datahub.json +++ b/metadata-ingestion/src/datahub/ingestion/autogenerated/connector_registry/datahub.json @@ -415,6 +415,44 @@ "platform_name": "BigQuery", "support_status": "GA" }, + "boomi": { + "capabilities": [ + { + "capability": "CONTAINERS", + "description": "Folders as containers", + "subtype_modifier": null, + "supported": true + }, + { + "capability": "DELETION_DETECTION", + "description": "Via stateful ingestion", + "subtype_modifier": null, + "supported": true + }, + { + "capability": "OWNERSHIP", + "description": "From process createdBy and modifiedBy", + "subtype_modifier": null, + "supported": true + }, + { + "capability": "PLATFORM_INSTANCE", + "description": "Enabled by default", + "subtype_modifier": null, + "supported": true + }, + { + "capability": "TEST_CONNECTION", + "description": "Enabled by default", + "subtype_modifier": null, + "supported": true + } + ], + "classname": "datahub.ingestion.source.boomi.source.BoomiSource", + "platform_id": "boomi", + "platform_name": "Boomi", + "support_status": "ALPHA" + }, "cassandra": { "capabilities": [ { diff --git a/metadata-ingestion/src/datahub/ingestion/source/boomi/__init__.py b/metadata-ingestion/src/datahub/ingestion/source/boomi/__init__.py new file mode 100644 index 0000000000000..e69de29bb2d1d diff --git a/metadata-ingestion/src/datahub/ingestion/source/boomi/client.py b/metadata-ingestion/src/datahub/ingestion/source/boomi/client.py new file mode 100644 index 0000000000000..da3a7ce886bd6 --- /dev/null +++ b/metadata-ingestion/src/datahub/ingestion/source/boomi/client.py @@ -0,0 +1,221 @@ +import logging +from typing import Dict, Iterator, List, Optional, Type, TypeVar, Union + +import requests +from pydantic import ValidationError +from requests.adapters import HTTPAdapter +from requests.auth import HTTPBasicAuth +from urllib3.util.retry import Retry + +from datahub.ingestion.source.boomi.config import BoomiSourceConfig +from datahub.ingestion.source.boomi.constants import ( + API_PATH_TEMPLATE, + COMPONENT_TYPE_PROCESS, + CONTENT_TYPE_JSON, + CONTENT_TYPE_TEXT, + CONTENT_TYPE_XML, + FIELD_ACTIVE, + FIELD_BRANCH_NAME, + FIELD_COMPONENT_TYPE, + FIELD_CURRENT_VERSION, + FIELD_DELETED, + FIELD_TYPE, + HEADER_ACCEPT, + HEADER_CONTENT_TYPE, + HTTP_GET, + HTTP_POST, + OBJECT_COMPONENT, + OBJECT_COMPONENT_METADATA, + OBJECT_DEPLOYED_PACKAGE, + OBJECT_ENVIRONMENT, + OBJECT_FOLDER, + OPERATOR_EQUALS, + QUERY_EXPRESSION_KEY, + QUERY_FILTER_KEY, + QUERY_MORE_SUFFIX, + QUERY_SUFFIX, + RETRY_BACKOFF_FACTOR, + RETRY_METHODS, + RETRY_STATUS_CODES, + RETRY_TOTAL, + TOKEN_USERNAME_PREFIX, + VALUE_FALSE, + VALUE_TRUE, +) +from datahub.ingestion.source.boomi.models import ( + BoomiModel, + ComponentMetadata, + DeployedPackage, + Environment, + Folder, + GroupingExpression, + QueryResponse, + SimpleExpression, +) +from datahub.ingestion.source.boomi.report import BoomiSourceReport +from datahub.utilities.ratelimiter import RateLimiter + +logger = logging.getLogger(__name__) + +M = TypeVar("M", bound=BoomiModel) + + +class BoomiApiError(Exception): + def __init__(self, status_code: int, message: str) -> None: + super().__init__(message) + self.status_code = status_code + + +def _equals(property_name: str, value: str) -> SimpleExpression: + return SimpleExpression( + property=property_name, operator=OPERATOR_EQUALS, argument=[value] + ) + + +class BoomiClient: + def __init__(self, config: BoomiSourceConfig, report: BoomiSourceReport) -> None: + self.config = config + self.report = report + self.base_url = API_PATH_TEMPLATE.format( + api_url=config.api_url, account_id=config.account_id + ) + self._limiter = RateLimiter(max_calls=config.max_requests_per_second) + self._session = requests.Session() + self._session.auth = HTTPBasicAuth( + TOKEN_USERNAME_PREFIX + config.username, + config.api_token.get_secret_value(), + ) + adapter = HTTPAdapter( + max_retries=Retry( + total=RETRY_TOTAL, + backoff_factor=RETRY_BACKOFF_FACTOR, + status_forcelist=RETRY_STATUS_CODES, + allowed_methods=RETRY_METHODS, + respect_retry_after_header=True, + raise_on_status=False, + ) + ) + self._session.mount("https://", adapter) + self._session.mount("http://", adapter) + + def close(self) -> None: + self._session.close() + + def _request( + self, + method: str, + path: str, + headers: Dict[str, str], + json_body: Optional[Dict[str, object]] = None, + text_body: Optional[str] = None, + ) -> requests.Response: + url = f"{self.base_url}/{path}" + with self._limiter: + response = self._session.request( + method, + url, + headers=headers, + json=json_body, + data=text_body, + timeout=self.config.request_timeout_seconds, + ) + self.report.report_api_call() + if not response.ok: + raise BoomiApiError( + response.status_code, + f"{method} {path} returned HTTP {response.status_code}: {response.text[:300]}", + ) + return response + + def query( + self, object_type: str, expression: Optional[GroupingExpression] = None + ) -> Iterator[Dict[str, object]]: + headers = { + HEADER_ACCEPT: CONTENT_TYPE_JSON, + HEADER_CONTENT_TYPE: CONTENT_TYPE_JSON, + } + body: Dict[str, object] = {} + if expression is not None: + body = { + QUERY_FILTER_KEY: { + QUERY_EXPRESSION_KEY: expression.model_dump(by_alias=True), + } + } + response = self._request( + HTTP_POST, f"{object_type}/{QUERY_SUFFIX}", headers, json_body=body + ) + page = QueryResponse.model_validate(response.json()) + yield from page.result + # queryMore takes the raw token as a text/plain body, not JSON. + more_headers = { + HEADER_ACCEPT: CONTENT_TYPE_JSON, + HEADER_CONTENT_TYPE: CONTENT_TYPE_TEXT, + } + while page.query_token: + response = self._request( + HTTP_POST, + f"{object_type}/{QUERY_MORE_SUFFIX}", + more_headers, + text_body=page.query_token, + ) + page = QueryResponse.model_validate(response.json()) + yield from page.result + + def _query_models( + self, + object_type: str, + model: Type[M], + expression: Optional[GroupingExpression] = None, + ) -> Iterator[M]: + for record in self.query(object_type, expression): + try: + yield model.model_validate(record) + except ValidationError as e: + self.report.invalid_records += 1 + self.report.warning( + title="Invalid Boomi API record", + message="Skipped a record that did not match the expected shape.", + context=f"object={object_type}, record={str(record)[:200]}", + exc=e, + ) + + def list_folders(self) -> Iterator[Folder]: + return self._query_models(OBJECT_FOLDER, Folder) + + def list_environments(self) -> Iterator[Environment]: + return self._query_models(OBJECT_ENVIRONMENT, Environment) + + def list_active_process_deployments(self) -> Iterator[DeployedPackage]: + expression = GroupingExpression( + nested_expression=[ + _equals(FIELD_COMPONENT_TYPE, COMPONENT_TYPE_PROCESS), + _equals(FIELD_ACTIVE, VALUE_TRUE), + ] + ) + return self._query_models(OBJECT_DEPLOYED_PACKAGE, DeployedPackage, expression) + + def list_processes(self, branch_name: Optional[str]) -> Iterator[ComponentMetadata]: + filters: List[Union[SimpleExpression, GroupingExpression]] = [ + _equals(FIELD_TYPE, COMPONENT_TYPE_PROCESS), + _equals(FIELD_CURRENT_VERSION, VALUE_TRUE), + _equals(FIELD_DELETED, VALUE_FALSE), + ] + if branch_name: + filters.append(_equals(FIELD_BRANCH_NAME, branch_name)) + return self._query_models( + OBJECT_COMPONENT_METADATA, + ComponentMetadata, + GroupingExpression(nested_expression=filters), + ) + + def get_component_xml(self, component_id: str) -> str: + response = self._request( + HTTP_GET, + f"{OBJECT_COMPONENT}/{component_id}", + {HEADER_ACCEPT: CONTENT_TYPE_XML}, + ) + return response.text + + def check_connectivity(self) -> None: + # One page of the cheapest Build-read query proves auth and privileges. + next(iter(self.list_processes(self.config.branch_name)), None) diff --git a/metadata-ingestion/src/datahub/ingestion/source/boomi/component_parser.py b/metadata-ingestion/src/datahub/ingestion/source/boomi/component_parser.py new file mode 100644 index 0000000000000..ffd1145ba6ea9 --- /dev/null +++ b/metadata-ingestion/src/datahub/ingestion/source/boomi/component_parser.py @@ -0,0 +1,29 @@ +from typing import Optional + +import defusedxml.ElementTree + +from datahub.ingestion.source.boomi.constants import ( + XML_ATTR_FOLDER_FULL_PATH, + XML_ELEMENT_DESCRIPTION, + XML_NAMESPACE_END, +) +from datahub.ingestion.source.boomi.models import ProcessComponentInfo + + +def local_name(tag: str) -> str: + # Real exports mix `bns:`-prefixed elements with `xmlns=""` children, so + # elements are matched on their local name regardless of namespace. + return tag.rsplit(XML_NAMESPACE_END, 1)[-1] + + +def parse_process_component(xml_text: str) -> ProcessComponentInfo: + root = defusedxml.ElementTree.fromstring(xml_text) + description: Optional[str] = None + for child in root: + if local_name(child.tag) == XML_ELEMENT_DESCRIPTION: + description = (child.text or "").strip() or None + break + return ProcessComponentInfo( + description=description, + folder_full_path=root.attrib.get(XML_ATTR_FOLDER_FULL_PATH), + ) diff --git a/metadata-ingestion/src/datahub/ingestion/source/boomi/config.py b/metadata-ingestion/src/datahub/ingestion/source/boomi/config.py new file mode 100644 index 0000000000000..1c1d504fbde1e --- /dev/null +++ b/metadata-ingestion/src/datahub/ingestion/source/boomi/config.py @@ -0,0 +1,118 @@ +from typing import Optional +from urllib.parse import urlparse + +from pydantic import Field, SecretStr, field_validator + +from datahub.configuration.common import AllowDenyPattern +from datahub.configuration.source_common import ( + EnvConfigMixin, + PlatformInstanceConfigMixin, +) +from datahub.ingestion.source.boomi.constants import ( + DEFAULT_API_URL, + DEFAULT_MAX_REQUESTS_PER_SECOND, + DEFAULT_REQUEST_TIMEOUT_SECONDS, + MAX_REQUESTS_PER_SECOND_LIMIT, +) +from datahub.ingestion.source.state.stale_entity_removal_handler import ( + StatefulIngestionConfigBase, + StatefulStaleMetadataRemovalConfig, +) + +_HTTP_SCHEMES = ("http", "https") + + +class BoomiSourceConfig( + PlatformInstanceConfigMixin, + EnvConfigMixin, + StatefulIngestionConfigBase, +): + account_id: str = Field( + description="Boomi account ID, for example `mycompany-AB1CD2`.", + ) + username: str = Field( + description=( + "Boomi user that owns the API token. The source plugin sends it as " + "`BOOMI_TOKEN.`, so do not add the prefix yourself." + ), + ) + api_token: SecretStr = Field( + description="Platform API token created under Settings > My User Settings > Platform API Tokens.", + ) + api_url: str = Field( + default=DEFAULT_API_URL, + description=( + "Platform API host. Use `https://api.platform.gb.boomi.com` for accounts " + "hosted in the UK." + ), + ) + branch_name: Optional[str] = Field( + default=None, + description=( + "Only ingest components on this branch. Set it when Branch and Merge is " + "enabled on the account, usually to `main`. Leave unset otherwise." + ), + ) + folder_pattern: AllowDenyPattern = Field( + default=AllowDenyPattern.allow_all(), + description=( + "Regex patterns matched against the folder full path, for example " + "`MyAccount/Production/Orders`. Processes in denied folders are skipped." + ), + ) + process_pattern: AllowDenyPattern = Field( + default=AllowDenyPattern.allow_all(), + description="Regex patterns matched against the process name.", + ) + environment_pattern: AllowDenyPattern = Field( + default=AllowDenyPattern.allow_all(), + description=( + "Regex patterns matched against the environment name. Only deployments " + "to allowed environments count towards deployment properties and " + "`include_undeployed_processes`." + ), + ) + include_undeployed_processes: bool = Field( + default=False, + description=( + "Also ingest processes that have no active deployment in an allowed " + "environment. If the token cannot read deployments, all processes " + "are ingested." + ), + ) + extract_owners: bool = Field( + default=True, + description=( + "Emit the process creator as a data owner and the last modifier as a " + "technical owner." + ), + ) + max_requests_per_second: int = Field( + default=DEFAULT_MAX_REQUESTS_PER_SECOND, + gt=0, + le=MAX_REQUESTS_PER_SECOND_LIMIT, + description=( + "Client-side cap on Platform API calls per second. Boomi allows 10 per " + "account, shared with any other API client." + ), + ) + request_timeout_seconds: int = Field( + default=DEFAULT_REQUEST_TIMEOUT_SECONDS, + gt=0, + description="Timeout for each Platform API request.", + ) + + stateful_ingestion: Optional[StatefulStaleMetadataRemovalConfig] = Field( + default=None, + description="Stateful ingestion and stale entity removal.", + ) + + @field_validator("api_url") + @classmethod + def _validate_api_url(cls, value: str) -> str: + parsed = urlparse(value) + if parsed.scheme not in _HTTP_SCHEMES or not parsed.netloc: + raise ValueError( + f"api_url must be an http(s) URL such as https://api.boomi.com, got {value!r}" + ) + return value.rstrip("/") diff --git a/metadata-ingestion/src/datahub/ingestion/source/boomi/constants.py b/metadata-ingestion/src/datahub/ingestion/source/boomi/constants.py new file mode 100644 index 0000000000000..27b01df8ce189 --- /dev/null +++ b/metadata-ingestion/src/datahub/ingestion/source/boomi/constants.py @@ -0,0 +1,77 @@ +from typing import Dict, FrozenSet, Tuple + +PLATFORM = "boomi" + +DEFAULT_API_URL = "https://api.boomi.com" +API_PATH_TEMPLATE = "{api_url}/api/rest/v1/{account_id}" +TOKEN_USERNAME_PREFIX = "BOOMI_TOKEN." + +OBJECT_COMPONENT = "Component" +OBJECT_COMPONENT_METADATA = "ComponentMetadata" +OBJECT_DEPLOYED_PACKAGE = "DeployedPackage" +OBJECT_ENVIRONMENT = "Environment" +OBJECT_FOLDER = "Folder" +QUERY_SUFFIX = "query" +QUERY_FILTER_KEY = "QueryFilter" +QUERY_EXPRESSION_KEY = "expression" +HTTP_GET = "GET" +HTTP_POST = "POST" +QUERY_MORE_SUFFIX = "queryMore" + +CONTENT_TYPE_JSON = "application/json" +CONTENT_TYPE_TEXT = "text/plain" +CONTENT_TYPE_XML = "application/xml" +HEADER_ACCEPT = "Accept" +HEADER_CONTENT_TYPE = "Content-Type" + +OPERATOR_AND = "and" +OPERATOR_EQUALS = "EQUALS" +FIELD_TYPE = "type" +FIELD_CURRENT_VERSION = "currentVersion" +FIELD_DELETED = "deleted" +FIELD_BRANCH_NAME = "branchName" +FIELD_COMPONENT_TYPE = "componentType" +FIELD_ACTIVE = "active" +VALUE_TRUE = "true" +VALUE_FALSE = "false" +COMPONENT_TYPE_PROCESS = "process" + +# Query responses can render a long as ["Long", n] instead of a plain number. +LONG_TYPE_TAG = "Long" + +# Boomi signals rate limiting with 503, not 429; 429 is kept in case a proxy +# in front of the API uses it. +RETRY_STATUS_CODES: Tuple[int, ...] = (429, 500, 502, 503, 504) +RETRY_METHODS: FrozenSet[str] = frozenset({"GET", "POST"}) +RETRY_TOTAL = 5 +RETRY_BACKOFF_FACTOR = 1.0 +HTTP_FORBIDDEN = 403 + +# Boomi documents 10 requests/second per account; stay below it by default. +DEFAULT_MAX_REQUESTS_PER_SECOND = 8 +MAX_REQUESTS_PER_SECOND_LIMIT = 10 +DEFAULT_REQUEST_TIMEOUT_SECONDS = 60 + +PROCESS_JOB_ID = "process" + +# Only these API hosts have a confirmed UI host; unknown hosts get no link. +API_HOST_TO_UI_HOST: Dict[str, str] = { + "api.boomi.com": "platform.boomi.com", + "api.platform.gb.boomi.com": "platform.gb.boomi.com", +} +PROCESS_URL_TEMPLATE = ( + "https://{ui_host}/AtomSphere.html#build;accountId={account_id};components={id}" +) + +XML_ATTR_FOLDER_FULL_PATH = "folderFullPath" +XML_ELEMENT_DESCRIPTION = "description" +XML_NAMESPACE_END = "}" + +PROP_COMPONENT_ID = "componentId" +PROP_VERSION = "version" +PROP_BRANCH_NAME = "branchName" +PROP_MODIFIED_DATE = "modifiedDate" +PROP_FOLDER_PATH = "folderFullPath" +PROP_DEPLOYMENTS = "deployments" +DEPLOYMENT_SEPARATOR = ", " +DEPLOYMENT_FORMAT = "{environment}={version}" diff --git a/metadata-ingestion/src/datahub/ingestion/source/boomi/models.py b/metadata-ingestion/src/datahub/ingestion/source/boomi/models.py new file mode 100644 index 0000000000000..25b47bfe627c2 --- /dev/null +++ b/metadata-ingestion/src/datahub/ingestion/source/boomi/models.py @@ -0,0 +1,88 @@ +from datetime import datetime +from typing import Dict, List, Optional, Union + +from pydantic import BaseModel, BeforeValidator, ConfigDict, Field +from pydantic.alias_generators import to_camel +from typing_extensions import Annotated + +from datahub.ingestion.source.boomi.constants import LONG_TYPE_TAG, OPERATOR_AND + + +def parse_long(value: object) -> object: + if isinstance(value, list) and len(value) == 2 and value[0] == LONG_TYPE_TAG: + return value[1] + return value + + +BoomiLong = Annotated[int, BeforeValidator(parse_long)] + + +class BoomiModel(BaseModel): + model_config = ConfigDict( + extra="ignore", alias_generator=to_camel, populate_by_name=True + ) + + +class ComponentMetadata(BoomiModel): + component_id: str + version: BoomiLong + name: str + type: str + sub_type: Optional[str] = None + created_by: Optional[str] = None + created_date: Optional[datetime] = None + modified_by: Optional[str] = None + modified_date: Optional[datetime] = None + deleted: bool = False + current_version: bool = True + folder_name: Optional[str] = None + folder_id: Optional[str] = None + branch_id: Optional[str] = None + branch_name: Optional[str] = None + + +class Folder(BoomiModel): + id: str + name: str + parent_id: Optional[str] = None + full_path: str + deleted: bool = False + + +class DeployedPackage(BoomiModel): + component_id: str + component_type: Optional[str] = None + environment_id: str + package_version: Optional[str] = None + active: bool = True + deployed_date: Optional[datetime] = None + branch_name: Optional[str] = None + + +class Environment(BoomiModel): + id: str + name: str + classification: Optional[str] = None + + +class QueryResponse(BoomiModel): + response_type: Optional[str] = Field(default=None, alias="@type") + result: List[Dict[str, object]] = Field(default_factory=list) + number_of_results: BoomiLong = 0 + query_token: Optional[str] = None + + +class SimpleExpression(BoomiModel): + property: str + operator: str + argument: List[str] + + +class GroupingExpression(BoomiModel): + operator: str = OPERATOR_AND + nested_expression: List[Union[SimpleExpression, "GroupingExpression"]] + + +class ProcessComponentInfo(BaseModel): + description: Optional[str] = None + folder_full_path: Optional[str] = None diff --git a/metadata-ingestion/src/datahub/ingestion/source/boomi/report.py b/metadata-ingestion/src/datahub/ingestion/source/boomi/report.py new file mode 100644 index 0000000000000..1acf6cbf07933 --- /dev/null +++ b/metadata-ingestion/src/datahub/ingestion/source/boomi/report.py @@ -0,0 +1,31 @@ +from dataclasses import dataclass, field + +from datahub.ingestion.source.state.stale_entity_removal_handler import ( + StaleEntityRemovalSourceReport, +) +from datahub.utilities.lossy_collections import LossyList + + +@dataclass +class BoomiSourceReport(StaleEntityRemovalSourceReport): + api_calls: int = 0 + + folders_scanned: int = 0 + folders_emitted: int = 0 + folders_filtered: LossyList[str] = field(default_factory=LossyList) + + environments_scanned: int = 0 + environments_filtered: LossyList[str] = field(default_factory=LossyList) + deployments_scanned: int = 0 + deployments_unavailable: bool = False + + processes_scanned: int = 0 + processes_emitted: int = 0 + processes_duplicate_branch_copies: int = 0 + processes_filtered: LossyList[str] = field(default_factory=LossyList) + processes_undeployed_skipped: LossyList[str] = field(default_factory=LossyList) + process_xml_failures: LossyList[str] = field(default_factory=LossyList) + invalid_records: int = 0 + + def report_api_call(self) -> None: + self.api_calls += 1 diff --git a/metadata-ingestion/src/datahub/ingestion/source/boomi/source.py b/metadata-ingestion/src/datahub/ingestion/source/boomi/source.py new file mode 100644 index 0000000000000..bf997245dd24a --- /dev/null +++ b/metadata-ingestion/src/datahub/ingestion/source/boomi/source.py @@ -0,0 +1,448 @@ +import logging +from dataclasses import dataclass, field +from datetime import datetime, timezone +from typing import Dict, Iterable, List, Optional, Set, Tuple, Union +from urllib.parse import urlparse + +import requests +from defusedxml.common import DefusedXmlException +from pydantic import ValidationError + +from datahub.emitter.mcp_builder import ContainerKey +from datahub.ingestion.api.common import PipelineContext +from datahub.ingestion.api.decorators import ( + SupportStatus, + capability, + config_class, + platform_name, + support_status, +) +from datahub.ingestion.api.source import ( + CapabilityReport, + SourceCapability, + TestableSource, + TestConnectionReport, +) +from datahub.ingestion.api.workunit import MetadataWorkUnit +from datahub.ingestion.source.boomi.client import BoomiApiError, BoomiClient +from datahub.ingestion.source.boomi.component_parser import parse_process_component +from datahub.ingestion.source.boomi.config import BoomiSourceConfig +from datahub.ingestion.source.boomi.constants import ( + API_HOST_TO_UI_HOST, + DEPLOYMENT_FORMAT, + DEPLOYMENT_SEPARATOR, + HTTP_FORBIDDEN, + PLATFORM, + PROCESS_JOB_ID, + PROCESS_URL_TEMPLATE, + PROP_BRANCH_NAME, + PROP_COMPONENT_ID, + PROP_DEPLOYMENTS, + PROP_FOLDER_PATH, + PROP_MODIFIED_DATE, + PROP_VERSION, +) +from datahub.ingestion.source.boomi.models import ( + ComponentMetadata, + Folder, + ProcessComponentInfo, +) +from datahub.ingestion.source.boomi.report import BoomiSourceReport +from datahub.ingestion.source.common.subtypes import ( + DataFlowSubTypes, + DataJobSubTypes, + DatasetContainerSubTypes, +) +from datahub.ingestion.source.state.stateful_ingestion_base import ( + StatefulIngestionSourceBase, +) +from datahub.metadata.schema_classes import ( + DataJobInputOutputClass, + OwnershipTypeClass, +) +from datahub.metadata.urns import CorpUserUrn +from datahub.sdk.container import Container +from datahub.sdk.dataflow import DataFlow +from datahub.sdk.datajob import DataJob +from datahub.sdk.entity import Entity +from datahub.utilities.sentinels import unset + +logger = logging.getLogger(__name__) + +STAGE_FOLDERS = "Folders" +STAGE_DEPLOYMENTS = "Deployments" +STAGE_PROCESSES = "Processes" + +_EPOCH = datetime.min.replace(tzinfo=timezone.utc) + + +class BoomiFolderKey(ContainerKey): + folder_id: str + + +@dataclass +class FolderIndex: + folders: Dict[str, Folder] = field(default_factory=dict) + allowed_ids: Set[str] = field(default_factory=set) + # Emitted containers are kept so children inherit their full browse path. + emitted: Dict[str, Container] = field(default_factory=dict) + + +def ui_host_for_api_url(api_url: str) -> Optional[str]: + host = urlparse(api_url).hostname + return API_HOST_TO_UI_HOST.get(host) if host else None + + +def dedupe_branch_copies( + components: Iterable[ComponentMetadata], +) -> Tuple[List[ComponentMetadata], int]: + # A branch copy shares its componentId with the original, so keep the most + # recently modified copy of each component. + latest: Dict[str, ComponentMetadata] = {} + duplicates = 0 + for component in components: + existing = latest.get(component.component_id) + if existing is None: + latest[component.component_id] = component + continue + duplicates += 1 + if (component.modified_date or _EPOCH, component.version) > ( + existing.modified_date or _EPOCH, + existing.version, + ): + latest[component.component_id] = component + return list(latest.values()), duplicates + + +@platform_name("Boomi") +@config_class(BoomiSourceConfig) +@support_status(SupportStatus.ALPHA) +@capability(SourceCapability.PLATFORM_INSTANCE, "Enabled by default") +@capability(SourceCapability.CONTAINERS, "Folders as containers") +@capability(SourceCapability.DELETION_DETECTION, "Via stateful ingestion") +@capability(SourceCapability.OWNERSHIP, "From process createdBy and modifiedBy") +@capability(SourceCapability.TEST_CONNECTION, "Enabled by default") +class BoomiSource(StatefulIngestionSourceBase, TestableSource): + config: BoomiSourceConfig + report: BoomiSourceReport + platform: str = PLATFORM + + def __init__(self, config: BoomiSourceConfig, ctx: PipelineContext): + super().__init__(config, ctx) + self.config = config + self.report = BoomiSourceReport() + self.client = BoomiClient(config, self.report) + self._ui_host = ui_host_for_api_url(config.api_url) + + @classmethod + def create(cls, config_dict: Dict, ctx: PipelineContext) -> "BoomiSource": + config = BoomiSourceConfig.model_validate(config_dict) + return cls(config, ctx) + + @staticmethod + def test_connection(config_dict: dict) -> TestConnectionReport: + try: + config = BoomiSourceConfig.model_validate(config_dict) + except (ValidationError, ValueError) as e: + return TestConnectionReport( + internal_failure=True, + internal_failure_reason=f"Failed to parse config: {e}", + ) + client = BoomiClient(config, BoomiSourceReport()) + try: + client.check_connectivity() + return TestConnectionReport( + basic_connectivity=CapabilityReport(capable=True) + ) + except (BoomiApiError, requests.RequestException) as e: + return TestConnectionReport( + basic_connectivity=CapabilityReport( + capable=False, failure_reason=str(e) + ) + ) + finally: + client.close() + + def get_report(self) -> BoomiSourceReport: + return self.report + + def close(self) -> None: + self.client.close() + super().close() + + def get_workunits_internal(self) -> Iterable[Union[MetadataWorkUnit, Entity]]: + with self.report.new_stage(STAGE_FOLDERS): + index = self._load_folders() + yield from self._emit_folders(index) + with self.report.new_stage(STAGE_DEPLOYMENTS): + deployments = self._load_deployments() + with self.report.new_stage(STAGE_PROCESSES): + yield from self._emit_processes(index, deployments) + + def _load_folders(self) -> FolderIndex: + index = FolderIndex() + try: + for folder in self.client.list_folders(): + self.report.folders_scanned += 1 + if folder.deleted: + continue + index.folders[folder.id] = folder + if self.config.folder_pattern.allowed(folder.full_path): + index.allowed_ids.add(folder.id) + else: + self.report.folders_filtered.append(folder.full_path) + except (BoomiApiError, requests.RequestException, ValidationError) as e: + self.report.warning( + title="Failed to list Boomi folders", + message="Processes are emitted without folder containers.", + exc=e, + ) + return index + + def _emit_folders(self, index: FolderIndex) -> Iterable[Entity]: + # Ancestors of an allowed folder are emitted too, so the browse path + # stays intact when the pattern only allows a subtree. + for folder_id in sorted(index.allowed_ids): + yield from self._emit_folder_chain(folder_id, index, set()) + + def _emit_folder_chain( + self, folder_id: str, index: FolderIndex, visiting: Set[str] + ) -> Iterable[Entity]: + folder = index.folders.get(folder_id) + if folder is None or folder_id in index.emitted or folder_id in visiting: + return + visiting.add(folder_id) + if folder.parent_id: + yield from self._emit_folder_chain(folder.parent_id, index, visiting) + container = Container( + self._folder_key(folder_id), + display_name=folder.name, + qualified_name=folder.full_path, + subtype=DatasetContainerSubTypes.BOOMI_FOLDER, + parent_container=self._parent_container(folder.parent_id, index), + ) + index.emitted[folder_id] = container + self.report.folders_emitted += 1 + yield container + + @staticmethod + def _parent_container( + folder_id: Optional[str], index: FolderIndex + ) -> Optional[Container]: + return index.emitted.get(folder_id) if folder_id else None + + def _folder_key(self, folder_id: str) -> BoomiFolderKey: + return BoomiFolderKey( + platform=PLATFORM, + instance=self.config.platform_instance, + env=self.config.env, + folder_id=folder_id, + ) + + def _load_environment_names(self) -> Dict[str, str]: + names: Dict[str, str] = {} + try: + for environment in self.client.list_environments(): + self.report.environments_scanned += 1 + names[environment.id] = environment.name + except (BoomiApiError, requests.RequestException, ValidationError) as e: + self.report.warning( + title="Failed to list Boomi environments", + message="Deployments are labelled with environment IDs instead of names, and environment_pattern is matched against the IDs.", + exc=e, + ) + return names + + def _load_deployments(self) -> Optional[Dict[str, List[str]]]: + # componentId -> sorted `environment=packageVersion` labels. None means + # deployments are unknown, so undeployed processes cannot be told apart. + environment_names = self._load_environment_names() + deployments: Dict[str, List[str]] = {} + filtered_environments: Set[str] = set() + try: + for package in self.client.list_active_process_deployments(): + self.report.deployments_scanned += 1 + environment = environment_names.get( + package.environment_id, package.environment_id + ) + if not self.config.environment_pattern.allowed(environment): + filtered_environments.add(environment) + continue + deployments.setdefault(package.component_id, []).append( + DEPLOYMENT_FORMAT.format( + environment=environment, version=package.package_version + ) + ) + except (BoomiApiError, requests.RequestException, ValidationError) as e: + self.report.deployments_unavailable = True + if isinstance(e, BoomiApiError) and e.status_code == HTTP_FORBIDDEN: + self.report.warning( + title="Cannot read Boomi deployments", + message="The API token is not allowed to query DeployedPackage. Deployment properties are skipped and all processes are ingested.", + exc=e, + ) + else: + self.report.failure( + title="Failed to list Boomi deployments", + message="Deployment properties are skipped and all processes are ingested.", + exc=e, + ) + return None + for environment in sorted(filtered_environments): + self.report.environments_filtered.append(environment) + return {key: sorted(values) for key, values in deployments.items()} + + def _process_folder_allowed( + self, process: ComponentMetadata, index: FolderIndex + ) -> bool: + if process.folder_id and process.folder_id in index.folders: + return process.folder_id in index.allowed_ids + # The folder is hidden from this token (or listing failed), so fall back + # to the folder name, which is all ComponentMetadata carries. + return self.config.folder_pattern.allowed(process.folder_name or "") + + def _emit_processes( + self, + index: FolderIndex, + deployments: Optional[Dict[str, List[str]]], + ) -> Iterable[Entity]: + try: + processes, duplicates = dedupe_branch_copies( + self.client.list_processes(self.config.branch_name) + ) + except (BoomiApiError, requests.RequestException, ValidationError) as e: + self.report.failure( + title="Failed to list Boomi processes", + message="No processes were ingested. Check the token has Build Read Access.", + exc=e, + ) + return + self.report.processes_duplicate_branch_copies = duplicates + for process in sorted(processes, key=lambda p: p.component_id): + self.report.processes_scanned += 1 + if not self.config.process_pattern.allowed( + process.name + ) or not self._process_folder_allowed(process, index): + self.report.processes_filtered.append(process.name) + continue + process_deployments: List[str] = [] + if deployments is not None: + process_deployments = deployments.get(process.component_id, []) + if ( + not process_deployments + and not self.config.include_undeployed_processes + ): + self.report.processes_undeployed_skipped.append(process.name) + continue + try: + yield from self._make_process_entities( + process, index, process_deployments + ) + self.report.processes_emitted += 1 + except Exception as e: + self.report.warning( + title="Failed to process Boomi process", + message="The process was skipped.", + context=f"componentId={process.component_id}, name={process.name}", + exc=e, + ) + + def _fetch_process_info(self, process: ComponentMetadata) -> ProcessComponentInfo: + try: + xml_text = self.client.get_component_xml(process.component_id) + return parse_process_component(xml_text) + except ( + BoomiApiError, + requests.RequestException, + DefusedXmlException, + SyntaxError, + ) as e: + # defusedxml's ParseError subclasses SyntaxError. + self.report.process_xml_failures.append(process.component_id) + self.report.warning( + title="Failed to read Boomi process component", + message="The process is emitted without a description.", + context=f"componentId={process.component_id}, name={process.name}", + exc=e, + ) + return ProcessComponentInfo() + + def _make_process_entities( + self, + process: ComponentMetadata, + index: FolderIndex, + process_deployments: List[str], + ) -> Iterable[Entity]: + info = self._fetch_process_info(process) + folder = index.folders.get(process.folder_id) if process.folder_id else None + folder_path = folder.full_path if folder else info.folder_full_path + custom_properties = { + PROP_COMPONENT_ID: process.component_id, + PROP_VERSION: str(process.version), + } + if process.branch_name: + custom_properties[PROP_BRANCH_NAME] = process.branch_name + if process.modified_date: + custom_properties[PROP_MODIFIED_DATE] = process.modified_date.isoformat() + if folder_path: + custom_properties[PROP_FOLDER_PATH] = folder_path + if process_deployments: + custom_properties[PROP_DEPLOYMENTS] = DEPLOYMENT_SEPARATOR.join( + process_deployments + ) + owners = self._owners(process) + folder_container = self._parent_container(process.folder_id, index) + flow = DataFlow( + platform=PLATFORM, + name=process.component_id, + display_name=process.name, + platform_instance=self.config.platform_instance, + env=self.config.env, + description=info.description, + external_url=self._process_url(process.component_id), + custom_properties=custom_properties, + created=process.created_date, + last_modified=process.modified_date, + subtype=DataFlowSubTypes.BOOMI_PROCESS, + owners=owners, + parent_container=folder_container if folder_container else unset, + ) + yield flow + yield DataJob( + name=PROCESS_JOB_ID, + flow=flow, + display_name=process.name, + description=info.description, + subtype=DataJobSubTypes.BOOMI_PROCESS_JOB, + owners=owners, + # Lineage is not resolved yet; emit an empty aspect so later runs + # that add edges overwrite a known baseline. + extra_aspects=[ + DataJobInputOutputClass(inputDatasets=[], outputDatasets=[]) + ], + ) + + def _process_url(self, component_id: str) -> Optional[str]: + if self._ui_host is None: + return None + return PROCESS_URL_TEMPLATE.format( + ui_host=self._ui_host, + account_id=self.config.account_id, + id=component_id, + ) + + def _owners( + self, process: ComponentMetadata + ) -> Optional[List[Tuple[CorpUserUrn, str]]]: + if not self.config.extract_owners: + return None + owners: List[Tuple[CorpUserUrn, str]] = [] + if process.created_by: + owners.append( + (CorpUserUrn(process.created_by), OwnershipTypeClass.DATAOWNER) + ) + if process.modified_by and process.modified_by != process.created_by: + owners.append( + (CorpUserUrn(process.modified_by), OwnershipTypeClass.TECHNICAL_OWNER) + ) + return owners or None diff --git a/metadata-ingestion/src/datahub/ingestion/source/common/subtypes.py b/metadata-ingestion/src/datahub/ingestion/source/common/subtypes.py index dcec8fec9a848..cee3ac7b8ebe4 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/common/subtypes.py +++ b/metadata-ingestion/src/datahub/ingestion/source/common/subtypes.py @@ -103,6 +103,8 @@ class DatasetContainerSubTypes(StrEnum): MATILLION_PROJECT = "Project" MATILLION_ENVIRONMENT = "Environment" MATILLION_FOLDER = "Folder" + # Boomi Integration + BOOMI_FOLDER = "Folder" # Microsoft Fabric FABRIC_LAKEHOUSE = "Fabric Lakehouse" FABRIC_WAREHOUSE = "Fabric Warehouse" @@ -242,6 +244,8 @@ class DataFlowSubTypes(StrEnum): SAP_TASK_CHAIN = "Task Chain" # Amazon Data Firehose — each Firehose stream is its own pipeline (DataFlow). KINESIS_FIREHOSE_STREAM = "Firehose Stream" + # Boomi Integration + BOOMI_PROCESS = "Process" class DataJobSubTypes(StrEnum): @@ -252,6 +256,8 @@ class DataJobSubTypes(StrEnum): SAP_TASK_CHAIN_STEP = "Task Chain Step" # Amazon Data Firehose — the single delivery step within a Firehose stream. KINESIS_FIREHOSE_DELIVERY = "Delivery" + # Boomi Integration: one job per process. + BOOMI_PROCESS_JOB = "Process" # ADF Activity Types ADF_COPY_ACTIVITY = "Copy Activity" ADF_DATA_FLOW_ACTIVITY = "Data Flow Activity" diff --git a/metadata-ingestion/tests/integration/boomi/__init__.py b/metadata-ingestion/tests/integration/boomi/__init__.py new file mode 100644 index 0000000000000..e69de29bb2d1d diff --git a/metadata-ingestion/tests/integration/boomi/golden/boomi_mces_golden.json b/metadata-ingestion/tests/integration/boomi/golden/boomi_mces_golden.json new file mode 100644 index 0000000000000..46fcc1634480a --- /dev/null +++ b/metadata-ingestion/tests/integration/boomi/golden/boomi_mces_golden.json @@ -0,0 +1,1352 @@ +[ +{ + "entityType": "container", + "entityUrn": "urn:li:container:f506f8da02e731bf781590d53f901321", + "changeType": "UPSERT", + "aspectName": "containerProperties", + "aspect": { + "json": { + "customProperties": { + "platform": "boomi", + "env": "PROD", + "folder_id": "F0" + }, + "name": "Acme", + "qualifiedName": "Acme", + "env": "PROD" + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "container", + "entityUrn": "urn:li:container:f506f8da02e731bf781590d53f901321", + "changeType": "UPSERT", + "aspectName": "dataPlatformInstance", + "aspect": { + "json": { + "platform": "urn:li:dataPlatform:boomi" + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "container", + "entityUrn": "urn:li:container:f506f8da02e731bf781590d53f901321", + "changeType": "UPSERT", + "aspectName": "subTypes", + "aspect": { + "json": { + "typeNames": [ + "Folder" + ] + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "container", + "entityUrn": "urn:li:container:f506f8da02e731bf781590d53f901321", + "changeType": "UPSERT", + "aspectName": "browsePathsV2", + "aspect": { + "json": { + "path": [] + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "container", + "entityUrn": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4", + "changeType": "UPSERT", + "aspectName": "containerProperties", + "aspect": { + "json": { + "customProperties": { + "platform": "boomi", + "env": "PROD", + "folder_id": "F1" + }, + "name": "Production", + "qualifiedName": "Acme/Production", + "env": "PROD" + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "container", + "entityUrn": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4", + "changeType": "UPSERT", + "aspectName": "dataPlatformInstance", + "aspect": { + "json": { + "platform": "urn:li:dataPlatform:boomi" + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "container", + "entityUrn": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4", + "changeType": "UPSERT", + "aspectName": "container", + "aspect": { + "json": { + "container": "urn:li:container:f506f8da02e731bf781590d53f901321" + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "container", + "entityUrn": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4", + "changeType": "UPSERT", + "aspectName": "subTypes", + "aspect": { + "json": { + "typeNames": [ + "Folder" + ] + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "container", + "entityUrn": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4", + "changeType": "UPSERT", + "aspectName": "browsePathsV2", + "aspect": { + "json": { + "path": [ + { + "id": "urn:li:container:f506f8da02e731bf781590d53f901321", + "urn": "urn:li:container:f506f8da02e731bf781590d53f901321" + } + ] + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "container", + "entityUrn": "urn:li:container:5509f8b7de9ff036b2eed973b2f8bfb8", + "changeType": "UPSERT", + "aspectName": "containerProperties", + "aspect": { + "json": { + "customProperties": { + "platform": "boomi", + "env": "PROD", + "folder_id": "F2" + }, + "name": "Orders", + "qualifiedName": "Acme/Production/Orders", + "env": "PROD" + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "container", + "entityUrn": "urn:li:container:5509f8b7de9ff036b2eed973b2f8bfb8", + "changeType": "UPSERT", + "aspectName": "dataPlatformInstance", + "aspect": { + "json": { + "platform": "urn:li:dataPlatform:boomi" + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "container", + "entityUrn": "urn:li:container:5509f8b7de9ff036b2eed973b2f8bfb8", + "changeType": "UPSERT", + "aspectName": "container", + "aspect": { + "json": { + "container": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4" + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "container", + "entityUrn": "urn:li:container:5509f8b7de9ff036b2eed973b2f8bfb8", + "changeType": "UPSERT", + "aspectName": "subTypes", + "aspect": { + "json": { + "typeNames": [ + "Folder" + ] + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "container", + "entityUrn": "urn:li:container:5509f8b7de9ff036b2eed973b2f8bfb8", + "changeType": "UPSERT", + "aspectName": "browsePathsV2", + "aspect": { + "json": { + "path": [ + { + "id": "urn:li:container:f506f8da02e731bf781590d53f901321", + "urn": "urn:li:container:f506f8da02e731bf781590d53f901321" + }, + { + "id": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4", + "urn": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4" + } + ] + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "container", + "entityUrn": "urn:li:container:24281d154ab11b302c53e5adcedfbced", + "changeType": "UPSERT", + "aspectName": "containerProperties", + "aspect": { + "json": { + "customProperties": { + "platform": "boomi", + "env": "PROD", + "folder_id": "F3" + }, + "name": "Finance", + "qualifiedName": "Acme/Production/Finance", + "env": "PROD" + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "container", + "entityUrn": "urn:li:container:24281d154ab11b302c53e5adcedfbced", + "changeType": "UPSERT", + "aspectName": "dataPlatformInstance", + "aspect": { + "json": { + "platform": "urn:li:dataPlatform:boomi" + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "container", + "entityUrn": "urn:li:container:24281d154ab11b302c53e5adcedfbced", + "changeType": "UPSERT", + "aspectName": "container", + "aspect": { + "json": { + "container": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4" + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "container", + "entityUrn": "urn:li:container:24281d154ab11b302c53e5adcedfbced", + "changeType": "UPSERT", + "aspectName": "subTypes", + "aspect": { + "json": { + "typeNames": [ + "Folder" + ] + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "container", + "entityUrn": "urn:li:container:24281d154ab11b302c53e5adcedfbced", + "changeType": "UPSERT", + "aspectName": "browsePathsV2", + "aspect": { + "json": { + "path": [ + { + "id": "urn:li:container:f506f8da02e731bf781590d53f901321", + "urn": "urn:li:container:f506f8da02e731bf781590d53f901321" + }, + { + "id": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4", + "urn": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4" + } + ] + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,p-customer-upsert,PROD)", + "changeType": "UPSERT", + "aspectName": "dataPlatformInstance", + "aspect": { + "json": { + "platform": "urn:li:dataPlatform:boomi" + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,p-customer-upsert,PROD)", + "changeType": "UPSERT", + "aspectName": "dataFlowInfo", + "aspect": { + "json": { + "customProperties": { + "componentId": "p-customer-upsert", + "version": "4", + "branchName": "main", + "modifiedDate": "2026-09-20T10:00:00+00:00", + "folderFullPath": "Acme/Production/Orders", + "deployments": "Test=2.0" + }, + "externalUrl": "https://platform.boomi.com/AtomSphere.html#build;accountId=acme-AB1CD2;components=p-customer-upsert", + "name": "Customer Upsert", + "created": { + "time": 1768465800000 + }, + "lastModified": { + "time": 1789898400000 + }, + "env": "PROD" + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,p-customer-upsert,PROD)", + "changeType": "UPSERT", + "aspectName": "subTypes", + "aspect": { + "json": { + "typeNames": [ + "Process" + ] + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,p-customer-upsert,PROD)", + "changeType": "UPSERT", + "aspectName": "ownership", + "aspect": { + "json": { + "owners": [ + { + "owner": "urn:li:corpuser:svc@example.com", + "type": "DATAOWNER" + }, + { + "owner": "urn:li:corpuser:ops@example.com", + "type": "TECHNICAL_OWNER" + } + ], + "ownerTypes": {}, + "lastModified": { + "time": 0, + "actor": "urn:li:corpuser:unknown" + } + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,p-customer-upsert,PROD)", + "changeType": "UPSERT", + "aspectName": "container", + "aspect": { + "json": { + "container": "urn:li:container:5509f8b7de9ff036b2eed973b2f8bfb8" + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,p-customer-upsert,PROD)", + "changeType": "UPSERT", + "aspectName": "browsePathsV2", + "aspect": { + "json": { + "path": [ + { + "id": "urn:li:container:f506f8da02e731bf781590d53f901321", + "urn": "urn:li:container:f506f8da02e731bf781590d53f901321" + }, + { + "id": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4", + "urn": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4" + }, + { + "id": "urn:li:container:5509f8b7de9ff036b2eed973b2f8bfb8", + "urn": "urn:li:container:5509f8b7de9ff036b2eed973b2f8bfb8" + } + ] + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-customer-upsert,PROD),process)", + "changeType": "UPSERT", + "aspectName": "dataJobInputOutput", + "aspect": { + "json": { + "inputDatasets": [], + "outputDatasets": [] + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-customer-upsert,PROD),process)", + "changeType": "UPSERT", + "aspectName": "dataPlatformInstance", + "aspect": { + "json": { + "platform": "urn:li:dataPlatform:boomi" + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-customer-upsert,PROD),process)", + "changeType": "UPSERT", + "aspectName": "dataJobInfo", + "aspect": { + "json": { + "customProperties": {}, + "name": "Customer Upsert", + "type": { + "string": "COMMAND" + }, + "flowUrn": "urn:li:dataFlow:(boomi,p-customer-upsert,PROD)", + "env": "PROD" + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-customer-upsert,PROD),process)", + "changeType": "UPSERT", + "aspectName": "subTypes", + "aspect": { + "json": { + "typeNames": [ + "Process" + ] + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-customer-upsert,PROD),process)", + "changeType": "UPSERT", + "aspectName": "ownership", + "aspect": { + "json": { + "owners": [ + { + "owner": "urn:li:corpuser:svc@example.com", + "type": "DATAOWNER" + }, + { + "owner": "urn:li:corpuser:ops@example.com", + "type": "TECHNICAL_OWNER" + } + ], + "ownerTypes": {}, + "lastModified": { + "time": 0, + "actor": "urn:li:corpuser:unknown" + } + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-customer-upsert,PROD),process)", + "changeType": "UPSERT", + "aspectName": "browsePathsV2", + "aspect": { + "json": { + "path": [ + { + "id": "urn:li:container:f506f8da02e731bf781590d53f901321", + "urn": "urn:li:container:f506f8da02e731bf781590d53f901321" + }, + { + "id": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4", + "urn": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4" + }, + { + "id": "urn:li:container:5509f8b7de9ff036b2eed973b2f8bfb8", + "urn": "urn:li:container:5509f8b7de9ff036b2eed973b2f8bfb8" + }, + { + "id": "urn:li:dataFlow:(boomi,p-customer-upsert,PROD)", + "urn": "urn:li:dataFlow:(boomi,p-customer-upsert,PROD)" + } + ] + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,p-invoice-export,PROD)", + "changeType": "UPSERT", + "aspectName": "dataPlatformInstance", + "aspect": { + "json": { + "platform": "urn:li:dataPlatform:boomi" + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,p-invoice-export,PROD)", + "changeType": "UPSERT", + "aspectName": "dataFlowInfo", + "aspect": { + "json": { + "customProperties": { + "componentId": "p-invoice-export", + "version": "3", + "branchName": "main", + "modifiedDate": "2026-09-01T10:00:00+00:00", + "folderFullPath": "Acme/Production/Finance", + "deployments": "Production=1.2" + }, + "externalUrl": "https://platform.boomi.com/AtomSphere.html#build;accountId=acme-AB1CD2;components=p-invoice-export", + "name": "Invoice Export", + "description": "Exports posted invoices to the finance warehouse.", + "created": { + "time": 1768465800000 + }, + "lastModified": { + "time": 1788256800000 + }, + "env": "PROD" + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,p-invoice-export,PROD)", + "changeType": "UPSERT", + "aspectName": "subTypes", + "aspect": { + "json": { + "typeNames": [ + "Process" + ] + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,p-invoice-export,PROD)", + "changeType": "UPSERT", + "aspectName": "ownership", + "aspect": { + "json": { + "owners": [ + { + "owner": "urn:li:corpuser:svc@example.com", + "type": "DATAOWNER" + } + ], + "ownerTypes": {}, + "lastModified": { + "time": 0, + "actor": "urn:li:corpuser:unknown" + } + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,p-invoice-export,PROD)", + "changeType": "UPSERT", + "aspectName": "container", + "aspect": { + "json": { + "container": "urn:li:container:24281d154ab11b302c53e5adcedfbced" + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,p-invoice-export,PROD)", + "changeType": "UPSERT", + "aspectName": "browsePathsV2", + "aspect": { + "json": { + "path": [ + { + "id": "urn:li:container:f506f8da02e731bf781590d53f901321", + "urn": "urn:li:container:f506f8da02e731bf781590d53f901321" + }, + { + "id": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4", + "urn": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4" + }, + { + "id": "urn:li:container:24281d154ab11b302c53e5adcedfbced", + "urn": "urn:li:container:24281d154ab11b302c53e5adcedfbced" + } + ] + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-invoice-export,PROD),process)", + "changeType": "UPSERT", + "aspectName": "dataJobInputOutput", + "aspect": { + "json": { + "inputDatasets": [], + "outputDatasets": [] + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-invoice-export,PROD),process)", + "changeType": "UPSERT", + "aspectName": "dataPlatformInstance", + "aspect": { + "json": { + "platform": "urn:li:dataPlatform:boomi" + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-invoice-export,PROD),process)", + "changeType": "UPSERT", + "aspectName": "dataJobInfo", + "aspect": { + "json": { + "customProperties": {}, + "name": "Invoice Export", + "description": "Exports posted invoices to the finance warehouse.", + "type": { + "string": "COMMAND" + }, + "flowUrn": "urn:li:dataFlow:(boomi,p-invoice-export,PROD)", + "env": "PROD" + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-invoice-export,PROD),process)", + "changeType": "UPSERT", + "aspectName": "subTypes", + "aspect": { + "json": { + "typeNames": [ + "Process" + ] + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-invoice-export,PROD),process)", + "changeType": "UPSERT", + "aspectName": "ownership", + "aspect": { + "json": { + "owners": [ + { + "owner": "urn:li:corpuser:svc@example.com", + "type": "DATAOWNER" + } + ], + "ownerTypes": {}, + "lastModified": { + "time": 0, + "actor": "urn:li:corpuser:unknown" + } + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-invoice-export,PROD),process)", + "changeType": "UPSERT", + "aspectName": "browsePathsV2", + "aspect": { + "json": { + "path": [ + { + "id": "urn:li:container:f506f8da02e731bf781590d53f901321", + "urn": "urn:li:container:f506f8da02e731bf781590d53f901321" + }, + { + "id": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4", + "urn": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4" + }, + { + "id": "urn:li:container:24281d154ab11b302c53e5adcedfbced", + "urn": "urn:li:container:24281d154ab11b302c53e5adcedfbced" + }, + { + "id": "urn:li:dataFlow:(boomi,p-invoice-export,PROD)", + "urn": "urn:li:dataFlow:(boomi,p-invoice-export,PROD)" + } + ] + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,p-orders-sync,PROD)", + "changeType": "UPSERT", + "aspectName": "dataPlatformInstance", + "aspect": { + "json": { + "platform": "urn:li:dataPlatform:boomi" + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,p-orders-sync,PROD)", + "changeType": "UPSERT", + "aspectName": "dataFlowInfo", + "aspect": { + "json": { + "customProperties": { + "componentId": "p-orders-sync", + "version": "7", + "branchName": "main", + "modifiedDate": "2026-09-01T10:00:00+00:00", + "folderFullPath": "Acme/Production/Orders", + "deployments": "Production=3.0, Test=4.0" + }, + "externalUrl": "https://platform.boomi.com/AtomSphere.html#build;accountId=acme-AB1CD2;components=p-orders-sync", + "name": "Orders Sync", + "description": "Copies new orders from the web shop into the ERP.", + "created": { + "time": 1768465800000 + }, + "lastModified": { + "time": 1788256800000 + }, + "env": "PROD" + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,p-orders-sync,PROD)", + "changeType": "UPSERT", + "aspectName": "subTypes", + "aspect": { + "json": { + "typeNames": [ + "Process" + ] + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,p-orders-sync,PROD)", + "changeType": "UPSERT", + "aspectName": "ownership", + "aspect": { + "json": { + "owners": [ + { + "owner": "urn:li:corpuser:svc@example.com", + "type": "DATAOWNER" + }, + { + "owner": "urn:li:corpuser:dev@example.com", + "type": "TECHNICAL_OWNER" + } + ], + "ownerTypes": {}, + "lastModified": { + "time": 0, + "actor": "urn:li:corpuser:unknown" + } + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,p-orders-sync,PROD)", + "changeType": "UPSERT", + "aspectName": "container", + "aspect": { + "json": { + "container": "urn:li:container:5509f8b7de9ff036b2eed973b2f8bfb8" + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,p-orders-sync,PROD)", + "changeType": "UPSERT", + "aspectName": "browsePathsV2", + "aspect": { + "json": { + "path": [ + { + "id": "urn:li:container:f506f8da02e731bf781590d53f901321", + "urn": "urn:li:container:f506f8da02e731bf781590d53f901321" + }, + { + "id": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4", + "urn": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4" + }, + { + "id": "urn:li:container:5509f8b7de9ff036b2eed973b2f8bfb8", + "urn": "urn:li:container:5509f8b7de9ff036b2eed973b2f8bfb8" + } + ] + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-orders-sync,PROD),process)", + "changeType": "UPSERT", + "aspectName": "dataJobInputOutput", + "aspect": { + "json": { + "inputDatasets": [], + "outputDatasets": [] + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-orders-sync,PROD),process)", + "changeType": "UPSERT", + "aspectName": "dataPlatformInstance", + "aspect": { + "json": { + "platform": "urn:li:dataPlatform:boomi" + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-orders-sync,PROD),process)", + "changeType": "UPSERT", + "aspectName": "dataJobInfo", + "aspect": { + "json": { + "customProperties": {}, + "name": "Orders Sync", + "description": "Copies new orders from the web shop into the ERP.", + "type": { + "string": "COMMAND" + }, + "flowUrn": "urn:li:dataFlow:(boomi,p-orders-sync,PROD)", + "env": "PROD" + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-orders-sync,PROD),process)", + "changeType": "UPSERT", + "aspectName": "subTypes", + "aspect": { + "json": { + "typeNames": [ + "Process" + ] + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-orders-sync,PROD),process)", + "changeType": "UPSERT", + "aspectName": "ownership", + "aspect": { + "json": { + "owners": [ + { + "owner": "urn:li:corpuser:svc@example.com", + "type": "DATAOWNER" + }, + { + "owner": "urn:li:corpuser:dev@example.com", + "type": "TECHNICAL_OWNER" + } + ], + "ownerTypes": {}, + "lastModified": { + "time": 0, + "actor": "urn:li:corpuser:unknown" + } + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-orders-sync,PROD),process)", + "changeType": "UPSERT", + "aspectName": "browsePathsV2", + "aspect": { + "json": { + "path": [ + { + "id": "urn:li:container:f506f8da02e731bf781590d53f901321", + "urn": "urn:li:container:f506f8da02e731bf781590d53f901321" + }, + { + "id": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4", + "urn": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4" + }, + { + "id": "urn:li:container:5509f8b7de9ff036b2eed973b2f8bfb8", + "urn": "urn:li:container:5509f8b7de9ff036b2eed973b2f8bfb8" + }, + { + "id": "urn:li:dataFlow:(boomi,p-orders-sync,PROD)", + "urn": "urn:li:dataFlow:(boomi,p-orders-sync,PROD)" + } + ] + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "container", + "entityUrn": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4", + "changeType": "UPSERT", + "aspectName": "status", + "aspect": { + "json": { + "removed": false + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "container", + "entityUrn": "urn:li:container:24281d154ab11b302c53e5adcedfbced", + "changeType": "UPSERT", + "aspectName": "status", + "aspect": { + "json": { + "removed": false + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "container", + "entityUrn": "urn:li:container:5509f8b7de9ff036b2eed973b2f8bfb8", + "changeType": "UPSERT", + "aspectName": "status", + "aspect": { + "json": { + "removed": false + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "container", + "entityUrn": "urn:li:container:f506f8da02e731bf781590d53f901321", + "changeType": "UPSERT", + "aspectName": "status", + "aspect": { + "json": { + "removed": false + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,p-customer-upsert,PROD)", + "changeType": "UPSERT", + "aspectName": "status", + "aspect": { + "json": { + "removed": false + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,p-invoice-export,PROD)", + "changeType": "UPSERT", + "aspectName": "status", + "aspect": { + "json": { + "removed": false + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,p-orders-sync,PROD)", + "changeType": "UPSERT", + "aspectName": "status", + "aspect": { + "json": { + "removed": false + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-customer-upsert,PROD),process)", + "changeType": "UPSERT", + "aspectName": "status", + "aspect": { + "json": { + "removed": false + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-invoice-export,PROD),process)", + "changeType": "UPSERT", + "aspectName": "status", + "aspect": { + "json": { + "removed": false + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-orders-sync,PROD),process)", + "changeType": "UPSERT", + "aspectName": "status", + "aspect": { + "json": { + "removed": false + } + }, + "systemMetadata": { + "lastObserved": 1790856000000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +} +] \ No newline at end of file diff --git a/metadata-ingestion/tests/integration/boomi/test_boomi.py b/metadata-ingestion/tests/integration/boomi/test_boomi.py new file mode 100644 index 0000000000000..2fde301dbc117 --- /dev/null +++ b/metadata-ingestion/tests/integration/boomi/test_boomi.py @@ -0,0 +1,378 @@ +import json +from pathlib import Path +from typing import Dict, List, Optional +from unittest.mock import MagicMock, patch + +import pytest +import requests_mock +import time_machine + +from datahub.ingestion.run.pipeline import Pipeline +from datahub.ingestion.source.boomi.report import BoomiSourceReport +from datahub.testing import mce_helpers +from tests.test_helpers.state_helpers import ( + get_current_checkpoint_from_pipeline, + run_and_get_pipeline, + validate_all_providers_have_committed_successfully, +) + +FROZEN_TIME = "2026-10-01 12:00:00" +ACCOUNT_ID = "acme-AB1CD2" +BASE_URL = f"https://api.boomi.com/api/rest/v1/{ACCOUNT_ID}" +GOLDEN_DIR = Path(__file__).parent / "golden" + +FOLDERS: List[Dict[str, object]] = [ + {"id": "F0", "name": "Acme", "fullPath": "Acme", "deleted": False}, + { + "id": "F1", + "name": "Production", + "parentId": "F0", + "fullPath": "Acme/Production", + "deleted": False, + }, + { + "id": "F2", + "name": "Orders", + "parentId": "F1", + "fullPath": "Acme/Production/Orders", + "deleted": False, + }, + { + "id": "F3", + "name": "Finance", + "parentId": "F1", + "fullPath": "Acme/Production/Finance", + "deleted": False, + }, + { + "id": "F4", + "name": "Sandbox", + "parentId": "F0", + "fullPath": "Acme/Sandbox", + "deleted": False, + }, + { + "id": "F5", + "name": "Archive", + "parentId": "F0", + "fullPath": "Acme/Archive", + "deleted": True, + }, +] + +ENVIRONMENTS: List[Dict[str, object]] = [ + {"id": "env-prod", "name": "Production", "classification": "PROD"}, + {"id": "env-test", "name": "Test", "classification": "TEST"}, + {"id": "env-dev", "name": "Dev", "classification": "TEST"}, +] + + +def _process( + component_id: str, + name: str, + folder_id: str, + folder_name: str, + version: object = 1, + created_by: str = "svc@example.com", + modified_by: str = "svc@example.com", + modified_date: str = "2026-09-01T10:00:00Z", + branch_name: Optional[str] = "main", +) -> Dict[str, object]: + record: Dict[str, object] = { + "@type": "ComponentMetadata", + "componentId": component_id, + "version": version, + "name": name, + "type": "process", + "subType": "", + "createdBy": created_by, + "createdDate": "2026-01-15T08:30:00Z", + "modifiedBy": modified_by, + "modifiedDate": modified_date, + "deleted": False, + "currentVersion": True, + "folderName": folder_name, + "folderId": folder_id, + } + if branch_name: + record["branchName"] = branch_name + record["branchId"] = f"branch-{branch_name}" + return record + + +PROCESSES_PAGE_1 = [ + _process( + "p-orders-sync", + "Orders Sync", + "F2", + "Orders", + version=["Long", 7], + modified_by="dev@example.com", + ), + _process("p-invoice-export", "Invoice Export", "F3", "Finance", version=3), + _process( + "p-customer-upsert", + "Customer Upsert", + "F2", + "Orders", + version=2, + modified_date="2026-08-01T10:00:00Z", + ), +] +PROCESSES_PAGE_2 = [ + # Same component returned twice; the newer copy must win. + _process( + "p-customer-upsert", + "Customer Upsert", + "F2", + "Orders", + version=4, + modified_by="ops@example.com", + modified_date="2026-09-20T10:00:00Z", + ), + _process("p-legacy-cleanup", "Legacy Cleanup", "F1", "Production"), + _process("p-orders-sync-test", "Orders Sync Test", "F2", "Orders"), + _process("p-sandbox-probe", "Sandbox Probe", "F4", "Sandbox"), + _process("p-shipment-notify", "Shipment Notify", "F3", "Finance"), +] + +DEPLOYMENTS: List[Dict[str, object]] = [ + { + "componentId": "p-orders-sync", + "componentType": "process", + "environmentId": "env-prod", + "packageVersion": "3.0", + "active": True, + }, + { + "componentId": "p-orders-sync", + "componentType": "process", + "environmentId": "env-test", + "packageVersion": "4.0", + "active": True, + }, + { + "componentId": "p-invoice-export", + "componentType": "process", + "environmentId": "env-prod", + "packageVersion": "1.2", + "active": True, + }, + { + "componentId": "p-customer-upsert", + "componentType": "process", + "environmentId": "env-test", + "packageVersion": "2.0", + "active": True, + }, + { + "componentId": "p-orders-sync-test", + "componentType": "process", + "environmentId": "env-test", + "packageVersion": "1.0", + "active": True, + }, + { + "componentId": "p-sandbox-probe", + "componentType": "process", + "environmentId": "env-prod", + "packageVersion": "1.0", + "active": True, + }, + # Only deployed to an environment denied by environment_pattern. + { + "componentId": "p-shipment-notify", + "componentType": "process", + "environmentId": "env-dev", + "packageVersion": "1.0", + "active": True, + }, +] + +COMPONENT_XML_TEMPLATE = """ + + + {description} + + + + + + + + + +""" + +COMPONENT_XML: Dict[str, str] = { + "p-orders-sync": COMPONENT_XML_TEMPLATE.format( + id="p-orders-sync", + name="Orders Sync", + path="Acme/Production/Orders", + description="Copies new orders from the web shop into the ERP.", + ), + "p-invoice-export": COMPONENT_XML_TEMPLATE.format( + id="p-invoice-export", + name="Invoice Export", + path="Acme/Production/Finance", + description="Exports posted invoices to the finance warehouse.", + ), + "p-customer-upsert": COMPONENT_XML_TEMPLATE.format( + id="p-customer-upsert", + name="Customer Upsert", + path="Acme/Production/Orders", + description="", + ), +} + + +def _page( + records: List[Dict[str, object]], token: Optional[str] = None +) -> Dict[str, object]: + page: Dict[str, object] = { + "@type": "QueryResult", + "result": records, + "numberOfResults": len(records), + } + if token: + page["queryToken"] = token + return page + + +def _register_mocks( + mock: requests_mock.Mocker, deployments: List[Dict[str, object]] = DEPLOYMENTS +) -> None: + mock.post(f"{BASE_URL}/Folder/query", json=_page(FOLDERS)) + mock.post(f"{BASE_URL}/Environment/query", json=_page(ENVIRONMENTS)) + mock.post(f"{BASE_URL}/DeployedPackage/query", json=_page(deployments)) + mock.post( + f"{BASE_URL}/ComponentMetadata/query", + json=_page(PROCESSES_PAGE_1, token="page-2-token"), + ) + mock.post( + f"{BASE_URL}/ComponentMetadata/queryMore", + json=_page(PROCESSES_PAGE_2), + ) + for component_id, xml in COMPONENT_XML.items(): + mock.get(f"{BASE_URL}/Component/{component_id}", text=xml) + + +def _recipe(output_path: Path) -> Dict[str, object]: + return { + "run_id": "boomi-test", + "source": { + "type": "boomi", + "config": { + "account_id": ACCOUNT_ID, + "username": "svc@example.com", + "api_token": "dummy-token", + "branch_name": "main", + "folder_pattern": {"deny": ["^Acme/Sandbox.*"]}, + "process_pattern": {"deny": [".* Test$"]}, + "environment_pattern": {"deny": ["^Dev$"]}, + "max_requests_per_second": 10, + }, + }, + "sink": {"type": "file", "config": {"filename": str(output_path)}}, + } + + +@time_machine.travel(FROZEN_TIME, tick=False) +@pytest.mark.integration +def test_boomi_ingestion(pytestconfig: pytest.Config, tmp_path: Path) -> None: + output_path = tmp_path / "boomi_mces.json" + with requests_mock.Mocker() as mock: + _register_mocks(mock) + pipeline = Pipeline.create(_recipe(output_path)) + pipeline.run() + pipeline.raise_from_status() + + query_more = [r for r in mock.request_history if r.path.endswith("/querymore")] + assert len(query_more) == 1 + assert query_more[0].text == "page-2-token" + assert query_more[0].headers["Content-Type"] == "text/plain" + + report = pipeline.source.get_report() + assert isinstance(report, BoomiSourceReport) + assert report.processes_emitted == 3 + assert report.processes_duplicate_branch_copies == 1 + assert sorted(report.processes_undeployed_skipped) == [ + "Legacy Cleanup", + "Shipment Notify", + ] + assert sorted(report.processes_filtered) == ["Orders Sync Test", "Sandbox Probe"] + + mce_helpers.check_golden_file( + pytestconfig, + output_path=output_path, + golden_path=GOLDEN_DIR / "boomi_mces_golden.json", + ) + + +@time_machine.travel(FROZEN_TIME, tick=False) +@pytest.mark.integration +def test_boomi_stateful_removes_undeployed_process( + tmp_path: Path, mock_datahub_graph: MagicMock +) -> None: + recipe = _recipe(tmp_path / "run1.json") + source_config = recipe["source"]["config"] # type: ignore[index] + source_config["stateful_ingestion"] = { + "enabled": True, + "remove_stale_metadata": True, + "fail_safe_threshold": 100.0, + "state_provider": { + "type": "datahub", + "config": {"datahub_api": {"server": "http://localhost:8080"}}, + }, + } + recipe["pipeline_name"] = "boomi_stateful_test" + + with ( + patch( + "datahub.ingestion.source.state_provider.datahub_ingestion_checkpointing_provider.DataHubGraph", + mock_datahub_graph, + ) as mock_checkpoint, + requests_mock.Mocker() as mock, + ): + mock_checkpoint.return_value = mock_datahub_graph + _register_mocks(mock) + pipeline_run1 = run_and_get_pipeline(recipe) + checkpoint1 = get_current_checkpoint_from_pipeline(pipeline_run1) + + # The invoice export loses its only deployment between runs. + _register_mocks( + mock, + deployments=[ + d for d in DEPLOYMENTS if d["componentId"] != "p-invoice-export" + ], + ) + recipe["sink"] = { + "type": "file", + "config": {"filename": str(tmp_path / "run2.json")}, + } + pipeline_run2 = run_and_get_pipeline(recipe) + checkpoint2 = get_current_checkpoint_from_pipeline(pipeline_run2) + + assert checkpoint1 and checkpoint1.state + assert checkpoint2 and checkpoint2.state + validate_all_providers_have_committed_successfully(pipeline_run1, 1) + validate_all_providers_have_committed_successfully(pipeline_run2, 1) + removed = set( + checkpoint1.state.get_urns_not_in( + type="dataFlow", other_checkpoint_state=checkpoint2.state + ) + ) | set( + checkpoint1.state.get_urns_not_in( + type="dataJob", other_checkpoint_state=checkpoint2.state + ) + ) + assert removed == { + "urn:li:dataFlow:(boomi,p-invoice-export,PROD)", + "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-invoice-export,PROD),process)", + } + soft_deleted = { + mcp["entityUrn"] + for mcp in json.loads((tmp_path / "run2.json").read_text()) + if mcp.get("aspectName") == "status" and mcp["aspect"]["json"]["removed"] + } + assert soft_deleted == removed diff --git a/metadata-ingestion/tests/unit/boomi/__init__.py b/metadata-ingestion/tests/unit/boomi/__init__.py new file mode 100644 index 0000000000000..e69de29bb2d1d diff --git a/metadata-ingestion/tests/unit/boomi/test_client.py b/metadata-ingestion/tests/unit/boomi/test_client.py new file mode 100644 index 0000000000000..abb32e3ffb584 --- /dev/null +++ b/metadata-ingestion/tests/unit/boomi/test_client.py @@ -0,0 +1,137 @@ +import base64 +import json +import threading +from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer +from typing import Iterator, List + +import pytest +import requests_mock + +from datahub.ingestion.source.boomi.client import BoomiApiError, BoomiClient +from datahub.ingestion.source.boomi.config import BoomiSourceConfig +from datahub.ingestion.source.boomi.report import BoomiSourceReport + +ACCOUNT_ID = "acme-AB1CD2" +BASE_URL = f"https://api.boomi.com/api/rest/v1/{ACCOUNT_ID}" + + +def _client(api_url: str = "https://api.boomi.com") -> BoomiClient: + config = BoomiSourceConfig.model_validate( + { + "account_id": ACCOUNT_ID, + "username": "svc@example.com", + "api_token": "secret-token", + "api_url": api_url, + "max_requests_per_second": 10, + } + ) + return BoomiClient(config, BoomiSourceReport()) + + +def _folder(folder_id: str) -> dict: + return {"id": folder_id, "name": folder_id, "fullPath": f"Acme/{folder_id}"} + + +def test_query_follows_query_tokens_until_exhausted() -> None: + client = _client() + with requests_mock.Mocker() as mock: + mock.post( + f"{BASE_URL}/Folder/query", + json={"result": [_folder("a")], "queryToken": "token-1"}, + ) + mock.post( + f"{BASE_URL}/Folder/queryMore", + [ + {"json": {"result": [_folder("b")], "queryToken": "token-2"}}, + {"json": {"result": [_folder("c")]}}, + ], + ) + folders = [f.id for f in client.list_folders()] + history = mock.request_history + + assert folders == ["a", "b", "c"] + assert [r.text for r in history[1:]] == ["token-1", "token-2"] + assert all(r.headers["Content-Type"] == "text/plain" for r in history[1:]) + expected_auth = base64.b64encode( + b"BOOMI_TOKEN.svc@example.com:secret-token" + ).decode() + assert history[0].headers["Authorization"] == f"Basic {expected_auth}" + assert client.report.api_calls == 3 + + +def test_process_query_sends_branch_filter() -> None: + client = _client() + with requests_mock.Mocker() as mock: + mock.post(f"{BASE_URL}/ComponentMetadata/query", json={"result": []}) + assert list(client.list_processes("main")) == [] + body = mock.request_history[0].json() + + nested = body["QueryFilter"]["expression"]["nestedExpression"] + assert body["QueryFilter"]["expression"]["operator"] == "and" + assert {"property": "branchName", "operator": "EQUALS", "argument": ["main"]} in ( + nested + ) + assert {"property": "type", "operator": "EQUALS", "argument": ["process"]} in ( + nested + ) + + +def test_invalid_record_is_skipped_with_warning() -> None: + client = _client() + with requests_mock.Mocker() as mock: + mock.post( + f"{BASE_URL}/Folder/query", + json={"result": [_folder("a"), {"id": "no-name"}]}, + ) + folders = [f.id for f in client.list_folders()] + + assert folders == ["a"] + assert client.report.invalid_records == 1 + assert len(client.report.warnings) == 1 + + +def test_http_error_carries_status_code() -> None: + client = _client() + with requests_mock.Mocker() as mock: + mock.post(f"{BASE_URL}/DeployedPackage/query", status_code=403, text="denied") + with pytest.raises(BoomiApiError) as excinfo: + list(client.list_active_process_deployments()) + + assert excinfo.value.status_code == 403 + + +class _ThrottlingHandler(BaseHTTPRequestHandler): + statuses: List[int] = [] + + def do_POST(self) -> None: + self.rfile.read(int(self.headers.get("Content-Length", 0))) + status = self.statuses.pop(0) + body = json.dumps({"result": [_folder("a")]}).encode() + self.send_response(status) + self.send_header("Content-Type", "application/json") + self.send_header("Content-Length", str(len(body))) + self.end_headers() + self.wfile.write(body) + + def log_message(self, format: str, *args: object) -> None: + pass + + +@pytest.fixture +def throttling_server() -> Iterator[ThreadingHTTPServer]: + # requests_mock replaces the transport adapter, so retries need a real socket. + server = ThreadingHTTPServer(("127.0.0.1", 0), _ThrottlingHandler) + thread = threading.Thread(target=server.serve_forever, daemon=True) + thread.start() + yield server + server.shutdown() + server.server_close() + + +def test_retries_after_503(throttling_server: ThreadingHTTPServer) -> None: + _ThrottlingHandler.statuses = [503, 200] + host, port = throttling_server.server_address[:2] + client = _client(api_url=f"http://{host!s}:{port}") + + assert [f.id for f in client.list_folders()] == ["a"] + assert _ThrottlingHandler.statuses == [] diff --git a/metadata-ingestion/tests/unit/boomi/test_parsing.py b/metadata-ingestion/tests/unit/boomi/test_parsing.py new file mode 100644 index 0000000000000..27ba47899c62d --- /dev/null +++ b/metadata-ingestion/tests/unit/boomi/test_parsing.py @@ -0,0 +1,65 @@ +import pytest +from defusedxml.common import DefusedXmlException +from pydantic import ValidationError + +from datahub.ingestion.source.boomi.component_parser import parse_process_component +from datahub.ingestion.source.boomi.models import ComponentMetadata, QueryResponse + +EXPORT_STYLE_XML = """ + + + Copies orders into the ERP. + + + shape-level text that must not be picked up + + + +""" + +DOCS_STYLE_XML = """ + Exports invoices. + + +""" + + +def test_parse_export_with_empty_default_namespace_children() -> None: + info = parse_process_component(EXPORT_STYLE_XML) + assert info.description == "Copies orders into the ERP." + assert info.folder_full_path == "Acme/Production/Orders" + + +def test_parse_default_namespace_variant() -> None: + info = parse_process_component(DOCS_STYLE_XML) + assert info.description == "Exports invoices." + assert info.folder_full_path == "Acme/Finance" + + +def test_parse_without_description() -> None: + xml = '' + info = parse_process_component(xml) + assert info.description is None + assert info.folder_full_path is None + + +def test_parse_rejects_entity_expansion() -> None: + xml = ( + ']>' + '&e;' + ) + with pytest.raises(DefusedXmlException): + parse_process_component(xml) + + +@pytest.mark.parametrize("raw", [["Long", 12], 12, "12"]) +def test_long_values_accept_tagged_and_plain_forms(raw: object) -> None: + component = ComponentMetadata.model_validate( + {"componentId": "p1", "name": "Orders Sync", "type": "process", "version": raw} + ) + assert component.version == 12 + + +def test_long_rejects_other_tagged_lists() -> None: + with pytest.raises(ValidationError): + QueryResponse.model_validate({"numberOfResults": ["Int", 3]}) diff --git a/metadata-ingestion/tests/unit/boomi/test_source.py b/metadata-ingestion/tests/unit/boomi/test_source.py new file mode 100644 index 0000000000000..1a9fdb1da4fda --- /dev/null +++ b/metadata-ingestion/tests/unit/boomi/test_source.py @@ -0,0 +1,207 @@ +from datetime import datetime, timezone +from typing import Dict, List, Optional + +import pytest +import requests_mock +from pydantic import ValidationError + +from datahub.ingestion.api.common import PipelineContext +from datahub.ingestion.source.boomi.config import BoomiSourceConfig +from datahub.ingestion.source.boomi.models import ComponentMetadata +from datahub.ingestion.source.boomi.source import ( + BoomiSource, + dedupe_branch_copies, + ui_host_for_api_url, +) +from datahub.sdk.dataflow import DataFlow + +ACCOUNT_ID = "acme-AB1CD2" +BASE_URL = f"https://api.boomi.com/api/rest/v1/{ACCOUNT_ID}" +XML = ( + 'Syncs orders.' + "" +) + + +def _component( + component_id: str, + version: int = 1, + modified: Optional[datetime] = None, + name: str = "Orders Sync", +) -> ComponentMetadata: + return ComponentMetadata( + component_id=component_id, + version=version, + name=name, + type="process", + modified_date=modified, + ) + + +def _source(**overrides: object) -> BoomiSource: + config: Dict[str, object] = { + "account_id": ACCOUNT_ID, + "username": "svc@example.com", + "api_token": "secret-token", + "max_requests_per_second": 10, + } + config.update(overrides) + return BoomiSource.create(config, PipelineContext(run_id="boomi-unit")) + + +def _process_record(component_id: str, name: str) -> Dict[str, object]: + return { + "componentId": component_id, + "version": 1, + "name": name, + "type": "process", + "createdBy": "svc@example.com", + "modifiedBy": "svc@example.com", + "folderId": "F1", + "folderName": "Orders", + } + + +def _register( + mock: requests_mock.Mocker, + processes: List[Dict[str, object]], + deployed_status: int = 200, +) -> None: + mock.post( + f"{BASE_URL}/Folder/query", + json={"result": [{"id": "F1", "name": "Orders", "fullPath": "Acme/Orders"}]}, + ) + mock.post( + f"{BASE_URL}/Environment/query", + json={"result": [{"id": "env-prod", "name": "Production"}]}, + ) + mock.post( + f"{BASE_URL}/DeployedPackage/query", + status_code=deployed_status, + json={"result": []}, + ) + mock.post(f"{BASE_URL}/ComponentMetadata/query", json={"result": processes}) + + +def _flows(source: BoomiSource) -> List[DataFlow]: + return [e for e in source.get_workunits_internal() if isinstance(e, DataFlow)] + + +@pytest.mark.parametrize( + "api_url, expected", + [ + ("https://api.boomi.com", "platform.boomi.com"), + ("https://api.platform.gb.boomi.com", "platform.gb.boomi.com"), + ("https://api.example.internal", None), + ], +) +def test_ui_host_for_api_url(api_url: str, expected: Optional[str]) -> None: + assert ui_host_for_api_url(api_url) == expected + + +def test_dedupe_keeps_most_recent_branch_copy() -> None: + older = _component( + "p1", version=5, modified=datetime(2026, 1, 1, tzinfo=timezone.utc) + ) + newer = _component( + "p1", version=2, modified=datetime(2026, 6, 1, tzinfo=timezone.utc) + ) + other = _component("p2") + + kept, duplicates = dedupe_branch_copies([older, newer, other]) + + assert duplicates == 1 + assert {(c.component_id, c.version) for c in kept} == {("p1", 2), ("p2", 1)} + + +def test_deployed_package_403_includes_all_processes() -> None: + source = _source() + with requests_mock.Mocker() as mock: + _register( + mock, + [_process_record("p1", "Orders Sync"), _process_record("p2", "Invoices")], + deployed_status=403, + ) + mock.get(f"{BASE_URL}/Component/p1", text=XML) + mock.get(f"{BASE_URL}/Component/p2", text=XML) + flows = _flows(source) + + report = source.get_report() + assert sorted(f.display_name or "" for f in flows) == ["Invoices", "Orders Sync"] + assert report.deployments_unavailable + assert [w.title for w in report.warnings] == ["Cannot read Boomi deployments"] + assert all("deployments" not in f.custom_properties for f in flows) + + +def test_undeployed_processes_skipped_by_default() -> None: + source = _source() + with requests_mock.Mocker() as mock: + _register(mock, [_process_record("p1", "Orders Sync")]) + assert _flows(source) == [] + + assert list(source.get_report().processes_undeployed_skipped) == ["Orders Sync"] + + +def test_xml_failure_still_emits_process() -> None: + source = _source(include_undeployed_processes=True, extract_owners=False) + with requests_mock.Mocker() as mock: + _register(mock, [_process_record("p1", "Orders Sync")]) + mock.get(f"{BASE_URL}/Component/p1", text=" None: + with pytest.raises(ValidationError): + BoomiSourceConfig.model_validate( + { + "account_id": ACCOUNT_ID, + "username": "svc@example.com", + "api_token": "secret-token", + "api_url": "api.boomi.com", + } + ) + + +def test_config_rejects_rate_above_boomi_limit() -> None: + with pytest.raises(ValidationError): + BoomiSourceConfig.model_validate( + { + "account_id": ACCOUNT_ID, + "username": "svc@example.com", + "api_token": "secret-token", + "max_requests_per_second": 20, + } + ) + + +def test_config_strips_trailing_slash() -> None: + config = BoomiSourceConfig.model_validate( + { + "account_id": ACCOUNT_ID, + "username": "svc@example.com", + "api_token": "secret-token", + "api_url": "https://api.platform.gb.boomi.com/", + } + ) + assert config.api_url == "https://api.platform.gb.boomi.com" + + +def test_test_connection_reports_auth_failure() -> None: + with requests_mock.Mocker() as mock: + mock.post(f"{BASE_URL}/ComponentMetadata/query", status_code=401) + report = BoomiSource.test_connection( + { + "account_id": ACCOUNT_ID, + "username": "svc@example.com", + "api_token": "wrong", + } + ) + + assert report.basic_connectivity is not None + assert not report.basic_connectivity.capable diff --git a/metadata-ingestion/uv.lock b/metadata-ingestion/uv.lock index 376b9a1eee07a..994bcb74eede8 100644 --- a/metadata-ingestion/uv.lock +++ b/metadata-ingestion/uv.lock @@ -302,6 +302,10 @@ bigquery-slim = [ { name = "sqlalchemy-bigquery" }, { name = "wcmatch" }, ] +boomi = [ + { name = "defusedxml" }, + { name = "requests" }, +] cassandra = [ { name = "cachetools" }, { name = "cassandra-driver" }, @@ -1940,6 +1944,7 @@ requires-dist = [ { name = "deepmerge", marker = "extra == 'looker'", specifier = ">=1.1.1,<3.0.0" }, { name = "deepmerge", marker = "extra == 'lookml'", specifier = ">=1.1.1,<3.0.0" }, { name = "defusedxml", marker = "extra == 'all'", specifier = ">=0.7.1,<0.8.0" }, + { name = "defusedxml", marker = "extra == 'boomi'", specifier = ">=0.7.1,<0.8.0" }, { name = "defusedxml", marker = "extra == 'dev'", specifier = ">=0.7.1,<0.8.0" }, { name = "defusedxml", marker = "extra == 'docs'", specifier = ">=0.7.1,<0.8.0" }, { name = "defusedxml", marker = "extra == 'hana'", specifier = ">=0.7.1,<0.8.0" }, @@ -2512,6 +2517,7 @@ requires-dist = [ { name = "requests", marker = "extra == 'airbyte'" }, { name = "requests", marker = "extra == 'all'", specifier = ">=2.28.0,==2.32.5,<3.0.0" }, { name = "requests", marker = "extra == 'bigid'", specifier = ">=2.28.0,<3.0" }, + { name = "requests", marker = "extra == 'boomi'", specifier = "<3.0.0" }, { name = "requests", marker = "extra == 'cube'", specifier = "<3.0.0" }, { name = "requests", marker = "extra == 'databricks'", specifier = "<3.0.0" }, { name = "requests", marker = "extra == 'datahub-debug'", specifier = "<3.0.0" }, @@ -2989,7 +2995,7 @@ requires-dist = [ { name = "zstd", marker = "extra == 'docs'", specifier = "<1.5.6.8" }, { name = "zstd", marker = "extra == 'integration-tests'", specifier = "<1.5.6.8" }, ] -provides-extras = ["base", "abs", "abs-slim", "aerospike", "airbyte", "athena", "aws-secret-manager", "azure-ad", "azure-auth", "azure-data-factory", "bigid", "bigquery", "bigquery-queries", "bigquery-slim", "cassandra", "circuit-breaker", "clickhouse", "clickhouse-usage", "cockroachdb", "confluence", "cube", "databricks", "datahub", "datahub-business-glossary", "datahub-debug", "datahub-documents", "datahub-gc", "datahub-kafka", "datahub-lineage-file", "datahub-lite", "datahub-pg-queue", "datahub-rest", "dataplex", "db2", "dbt", "dbt-cloud", "debug-recording", "delta-lake", "dlt", "doris", "dremio", "druid", "duckdb", "dynamodb", "elasticsearch", "excel", "fabric-data-factory", "fabric-onelake", "feast", "fivetran", "flink", "gcp-secret-manager", "gcs", "gcs-slim", "github-documents", "glue", "google-drive", "grafana", "hana", "hex", "hive", "hive-metastore", "iceberg", "iceberg-catalog", "informatica", "informix", "json-schema", "kafka", "kafka-connect", "kinesis", "langfuse", "ldap", "looker", "lookml", "mariadb", "matillion-dpc", "metabase", "microstrategy", "mlflow", "mode", "mongodb", "montecarlo", "mssql", "mssql-odbc", "mysql", "neo4j", "nifi", "notion", "odcs", "okta", "omni", "onnx-embeddings", "openapi", "oracle", "pinecone", "postgres", "powerbi", "powerbi-report-server", "preset", "presto", "presto-on-hive", "pulsar", "qlik-sense", "quicksight", "rdf", "redash", "redshift", "redshift-slim", "s3", "s3-slim", "sac", "sagemaker", "salesforce", "sap-datasphere", "sigma", "slack", "snaplogic", "snowflake", "snowflake-queries", "snowflake-slim", "snowflake-summary", "snowplow", "sql-parser", "sql-queries", "sqlalchemy", "starburst-trino-usage", "starrocks", "superset", "sync-file-emitter", "tableau", "teradata", "thoughtspot", "tidb", "timescaledb", "trino", "unity-catalog", "unstructured", "vertexai", "vertica", "all", "dev", "docs", "lint", "testing-utils", "integration-tests", "debug"] +provides-extras = ["base", "abs", "abs-slim", "aerospike", "airbyte", "athena", "aws-secret-manager", "azure-ad", "azure-auth", "azure-data-factory", "bigid", "bigquery", "bigquery-queries", "bigquery-slim", "boomi", "cassandra", "circuit-breaker", "clickhouse", "clickhouse-usage", "cockroachdb", "confluence", "cube", "databricks", "datahub", "datahub-business-glossary", "datahub-debug", "datahub-documents", "datahub-gc", "datahub-kafka", "datahub-lineage-file", "datahub-lite", "datahub-pg-queue", "datahub-rest", "dataplex", "db2", "dbt", "dbt-cloud", "debug-recording", "delta-lake", "dlt", "doris", "dremio", "druid", "duckdb", "dynamodb", "elasticsearch", "excel", "fabric-data-factory", "fabric-onelake", "feast", "fivetran", "flink", "gcp-secret-manager", "gcs", "gcs-slim", "github-documents", "glue", "google-drive", "grafana", "hana", "hex", "hive", "hive-metastore", "iceberg", "iceberg-catalog", "informatica", "informix", "json-schema", "kafka", "kafka-connect", "kinesis", "langfuse", "ldap", "looker", "lookml", "mariadb", "matillion-dpc", "metabase", "microstrategy", "mlflow", "mode", "mongodb", "montecarlo", "mssql", "mssql-odbc", "mysql", "neo4j", "nifi", "notion", "odcs", "okta", "omni", "onnx-embeddings", "openapi", "oracle", "pinecone", "postgres", "powerbi", "powerbi-report-server", "preset", "presto", "presto-on-hive", "pulsar", "qlik-sense", "quicksight", "rdf", "redash", "redshift", "redshift-slim", "s3", "s3-slim", "sac", "sagemaker", "salesforce", "sap-datasphere", "sigma", "slack", "snaplogic", "snowflake", "snowflake-queries", "snowflake-slim", "snowflake-summary", "snowplow", "sql-parser", "sql-queries", "sqlalchemy", "starburst-trino-usage", "starrocks", "superset", "sync-file-emitter", "tableau", "teradata", "thoughtspot", "tidb", "timescaledb", "trino", "unity-catalog", "unstructured", "vertexai", "vertica", "all", "dev", "docs", "lint", "testing-utils", "integration-tests", "debug"] [[package]] name = "adlfs" @@ -11795,10 +11801,6 @@ dependencies = [ ] sdist = { url = "https://files.pythonhosted.org/packages/a6/ff/8cba0819493de02c460e1584a98df088231fc970b141e04205a93ddbaf71/sqlglotc-30.22.0.tar.gz", hash = "sha256:c0df3d87f16436b8aaaa96e1f446d009e636b819411d5320b85fc315d85891c3", size = 531858, upload-time = "2026-10-09T16:08:10.052Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/71/0b/ca572324a4eb0f1808a7763534b28b5249a501d6577c28319b0e669bf5dd/sqlglotc-30.22.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:6aff6f31f228e53ae7ffa91d7a4070e765697ec14d4aaf2c4ec4fbcd6f69c16f", size = 33780271, upload-time = "2026-10-09T16:06:46.862Z" }, - { url = "https://files.pythonhosted.org/packages/cf/78/47202f92ad9a711de69f2c03f151574ff62c3622d0b8df025e798858cd90/sqlglotc-30.22.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e799cba47bae20b6189a38d7e120791c4cefbebb83e6d30631dc4201c74d24c5", size = 26003003, upload-time = "2026-10-09T16:06:51.244Z" }, - { url = "https://files.pythonhosted.org/packages/a3/1b/516e24bd57beda0a50d9ce12e85be80a05b264a3ea801b9d75d7b12afce6/sqlglotc-30.22.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e90f54718f80a78a33929ed768f6e639b52a8f470b62d1533aea948e21e0a11c", size = 27209462, upload-time = "2026-10-09T16:06:54.753Z" }, - { url = "https://files.pythonhosted.org/packages/2c/86/f4102fcd2a17f2a6df0bdb3576c912e94030b3ea4dbb4ff41e7d893636ca/sqlglotc-30.22.0-cp310-cp310-win_amd64.whl", hash = "sha256:7e67591f2e69e1ec588f0f58533bbf49fba56dca5ab7bdf7250ea6790b506dac", size = 11276711, upload-time = "2026-10-09T16:06:57.65Z" }, { url = "https://files.pythonhosted.org/packages/a2/d6/e207eb09c45e28f646cb8e8de55008aff6d0b04bafa6c08fa6e72b8783e7/sqlglotc-30.22.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:b139d02ab65c32982279d29cd1fe75324f266685644e479fc82a8b6053b6501e", size = 33596269, upload-time = "2026-10-09T16:07:01.572Z" }, { url = "https://files.pythonhosted.org/packages/22/5b/1d7038ef497c4dd3eca2f4d47510458c5859f114e35e81ffc11522906099/sqlglotc-30.22.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a569fac804b8d67930242ba343a214869137b55148c089f93c1aa01e54569119", size = 26191918, upload-time = "2026-10-09T16:07:05.666Z" }, { url = "https://files.pythonhosted.org/packages/26/f3/30d453501809c331b071dda1f12cc5c0cf262a368923a717282e197c4b78/sqlglotc-30.22.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:204b3044eafd12d70e06fb7b5b5841b6d8f65b145ddae3342b2a5e78ceb0ca0c", size = 27416566, upload-time = "2026-10-09T16:07:09.746Z" }, diff --git a/metadata-service/configuration/src/main/resources/bootstrap_mcps/data-platforms.yaml b/metadata-service/configuration/src/main/resources/bootstrap_mcps/data-platforms.yaml index 48830324e07d6..79540df819cd5 100644 --- a/metadata-service/configuration/src/main/resources/bootstrap_mcps/data-platforms.yaml +++ b/metadata-service/configuration/src/main/resources/bootstrap_mcps/data-platforms.yaml @@ -1088,6 +1088,16 @@ displayName: Informatica type: OTHERS logoUrl: "assets/platforms/informaticalogo.png" +- entityUrn: urn:li:dataPlatform:boomi + entityType: dataPlatform + aspectName: dataPlatformInfo + changeType: UPSERT + aspect: + datasetNameDelimiter: "." + name: boomi + displayName: Boomi + type: OTHERS + logoUrl: "assets/platforms/boomilogo.png" - entityUrn: urn:li:dataPlatform:snaplogic entityType: dataPlatform aspectName: dataPlatformInfo From 435f32e2441b196b0211c27930edd9c6e727753e Mon Sep 17 00:00:00 2001 From: acrylJonny Date: Mon, 2 Nov 2026 18:45:49 +0000 Subject: [PATCH 05/20] fix(ingest/boomi): add Boomi source description for all UI locales Co-Authored-By: Claude Opus 5.5 --- datahub-web-react/src/i18n/locales/de/ingest.sources.json | 1 + datahub-web-react/src/i18n/locales/es/ingest.sources.json | 1 + datahub-web-react/src/i18n/locales/fi/ingest.sources.json | 1 + datahub-web-react/src/i18n/locales/fr/ingest.sources.json | 1 + datahub-web-react/src/i18n/locales/hu/ingest.sources.json | 1 + datahub-web-react/src/i18n/locales/it/ingest.sources.json | 1 + datahub-web-react/src/i18n/locales/ja/ingest.sources.json | 1 + datahub-web-react/src/i18n/locales/nb/ingest.sources.json | 1 + datahub-web-react/src/i18n/locales/pt-BR/ingest.sources.json | 1 + datahub-web-react/src/i18n/locales/ru/ingest.sources.json | 1 + datahub-web-react/src/i18n/locales/sv/ingest.sources.json | 1 + datahub-web-react/src/i18n/locales/zh-CN/ingest.sources.json | 1 + datahub-web-react/src/i18n/locales/zh-TW/ingest.sources.json | 1 + 13 files changed, 13 insertions(+) diff --git a/datahub-web-react/src/i18n/locales/de/ingest.sources.json b/datahub-web-react/src/i18n/locales/de/ingest.sources.json index d99aa060e97c5..f023f8e88ee0f 100644 --- a/datahub-web-react/src/i18n/locales/de/ingest.sources.json +++ b/datahub-web-react/src/i18n/locales/de/ingest.sources.json @@ -16,6 +16,7 @@ "sources.athena.description": "Schemas, Tables, Views und Lineage zu S3 aus Athena importieren.", "sources.azureAd.description": "Users und Groups aus Azure Active Directory importieren.", "sources.bigquery.description": "Projects, Datasets, Tables, Views, Lineage, Queries und Statistiken aus BigQuery importieren.", + "sources.boomi.description": "Ordner, Prozesse, Deployments und Ownership aus Boomi Integration importieren.", "sources.cassandra.description": "Tables, Keyspaces und Spaltenschemas aus Cassandra importieren.", "sources.clickhouse.description": "Tables, Views, Materialized Views, Dictionaries, Statistiken, Queries und Lineage aus ClickHouse importieren.", "sources.cockroachdb.description": "Databases, Schemas, Tables, Views, Statistiken und Lineage aus CockroachDB importieren.", diff --git a/datahub-web-react/src/i18n/locales/es/ingest.sources.json b/datahub-web-react/src/i18n/locales/es/ingest.sources.json index 5ea4e1d485dd6..c7e189884a189 100644 --- a/datahub-web-react/src/i18n/locales/es/ingest.sources.json +++ b/datahub-web-react/src/i18n/locales/es/ingest.sources.json @@ -16,6 +16,7 @@ "sources.athena.description": "Importar Schemas, Tables, Views y Lineage a S3 desde Athena.", "sources.azureAd.description": "Importar Users y Groups desde Azure Active Directory.", "sources.bigquery.description": "Importar Projects, Datasets, Tables, Views, Lineage, Consultas y estadísticas desde BigQuery.", + "sources.boomi.description": "Importar carpetas, procesos, despliegues y Ownership desde Boomi Integration.", "sources.cassandra.description": "Importar Tables, Keyspaces y Schemas de columnas desde Cassandra.", "sources.clickhouse.description": "Importar Tables, Views, Materialized Views, Dictionaries, estadísticas, Consultas y Lineage desde ClickHouse.", "sources.cockroachdb.description": "Importar Databases, Schemas, Tables, Views, estadísticas y Lineage desde CockroachDB.", diff --git a/datahub-web-react/src/i18n/locales/fi/ingest.sources.json b/datahub-web-react/src/i18n/locales/fi/ingest.sources.json index 8e7f441799985..aaf2d269287b4 100644 --- a/datahub-web-react/src/i18n/locales/fi/ingest.sources.json +++ b/datahub-web-react/src/i18n/locales/fi/ingest.sources.json @@ -16,6 +16,7 @@ "sources.athena.description": "Tuo skeemat, taulut, näkymät ja lineage S3:ään Athenasta.", "sources.azureAd.description": "Tuo käyttäjät ja ryhmät Azure Active Directorystä.", "sources.bigquery.description": "Tuo projektit, tietoaineistot, taulut, näkymät, lineage, kyselyt ja tilastot BigQuerystä.", + "sources.boomi.description": "Tuo kansiot, prosessit, käyttöönotot ja omistajuus Boomi Integrationista.", "sources.cassandra.description": "Tuo taulut, avainavaruudet ja sarakeskeemat Cassandrasta.", "sources.clickhouse.description": "Tuo taulut, näkymät, materialisoidut näkymät, sanakirjat, tilastot, kyselyt ja lineage ClickHousesta.", "sources.cockroachdb.description": "Tuo tietokannat, skeemat, taulut, näkymät, tilastot ja lineage CockroachDBstä.", diff --git a/datahub-web-react/src/i18n/locales/fr/ingest.sources.json b/datahub-web-react/src/i18n/locales/fr/ingest.sources.json index 3228e0f37f3d3..3571fef128aae 100644 --- a/datahub-web-react/src/i18n/locales/fr/ingest.sources.json +++ b/datahub-web-react/src/i18n/locales/fr/ingest.sources.json @@ -16,6 +16,7 @@ "sources.athena.description": "Importer les Schemas, Tables, Views et le lineage vers S3 depuis Athena.", "sources.azureAd.description": "Importer les Users et Groups depuis Azure Active Directory.", "sources.bigquery.description": "Importer les Projects, Datasets, Tables, Views, le lineage, les requêtes et les statistiques depuis BigQuery.", + "sources.boomi.description": "Importer les dossiers, processus, déploiements et la propriété depuis Boomi Integration.", "sources.cassandra.description": "Importer les Tables, Keyspaces et les schémas de colonnes depuis Cassandra.", "sources.clickhouse.description": "Importer les Tables, Views, Materialized Views, Dictionaries, les statistiques, les requêtes et le lineage depuis ClickHouse.", "sources.cockroachdb.description": "Importer les Databases, Schemas, Tables, Views, les statistiques et le lineage depuis CockroachDB.", diff --git a/datahub-web-react/src/i18n/locales/hu/ingest.sources.json b/datahub-web-react/src/i18n/locales/hu/ingest.sources.json index ca76ff3db4f8b..38a12fc0c8279 100644 --- a/datahub-web-react/src/i18n/locales/hu/ingest.sources.json +++ b/datahub-web-react/src/i18n/locales/hu/ingest.sources.json @@ -16,6 +16,7 @@ "sources.athena.description": "Sémák, táblák, nézetek és az S3 felé mutató Lineage importálása az Athenából.", "sources.azureAd.description": "Felhasználók és csoportok importálása az Azure Active Directoryból.", "sources.bigquery.description": "Projects, adathalmazok, táblák, nézetek, Lineage, lekérdezések és statisztikák importálása a BigQuery-ből.", + "sources.boomi.description": "Mappák, folyamatok, telepítések és tulajdonlás importálása a Boomi Integrationből.", "sources.cassandra.description": "Táblák, Keyspaces és oszlopsémák importálása a Cassandra-ból.", "sources.clickhouse.description": "Táblák, nézetek, Materialized Views, Dictionaries, statisztikák, lekérdezések és Lineage importálása a ClickHouse-ból.", "sources.cockroachdb.description": "Adatbázisok, sémák, táblák, nézetek, statisztikák és Lineage importálása a CockroachDB-ből.", diff --git a/datahub-web-react/src/i18n/locales/it/ingest.sources.json b/datahub-web-react/src/i18n/locales/it/ingest.sources.json index 6ba661550816a..6fe8558021532 100644 --- a/datahub-web-react/src/i18n/locales/it/ingest.sources.json +++ b/datahub-web-react/src/i18n/locales/it/ingest.sources.json @@ -16,6 +16,7 @@ "sources.athena.description": "Importa Schemas, Tables, Views e Lineage verso S3 da Athena.", "sources.azureAd.description": "Importa Users e Groups da Azure Active Directory.", "sources.bigquery.description": "Importa Projects, Dataset, Tables, Views, Lineage, Query e statistiche da BigQuery.", + "sources.boomi.description": "Importa cartelle, processi, deployment e proprietà da Boomi Integration.", "sources.cassandra.description": "Importa Tables, Keyspaces e schemi di colonna da Cassandra.", "sources.clickhouse.description": "Importa Tables, Views, Materialized Views, Dictionaries, statistiche, Query e Lineage da ClickHouse.", "sources.cockroachdb.description": "Importa Databases, Schemas, Tables, Views, statistiche e Lineage da CockroachDB.", diff --git a/datahub-web-react/src/i18n/locales/ja/ingest.sources.json b/datahub-web-react/src/i18n/locales/ja/ingest.sources.json index 12902742454e2..d65bd2ff8c4a3 100644 --- a/datahub-web-react/src/i18n/locales/ja/ingest.sources.json +++ b/datahub-web-react/src/i18n/locales/ja/ingest.sources.json @@ -16,6 +16,7 @@ "sources.athena.description": "AthenaからSchema、テーブル、ビュー、S3へのLineageをインポートします。", "sources.azureAd.description": "Azure Active Directoryからユーザーとグループをインポートします。", "sources.bigquery.description": "BigQueryからプロジェクト、Dataset、テーブル、ビュー、Lineage、クエリ、統計情報をインポートします。", + "sources.boomi.description": "Boomi Integrationからフォルダ、プロセス、デプロイ、Owner情報をインポートします。", "sources.cassandra.description": "Cassandraからテーブル、キースペース、Column Schemaをインポートします。", "sources.clickhouse.description": "ClickHouseからテーブル、ビュー、マテリアライズドビュー、ディクショナリ、統計情報、クエリ、Lineageをインポートします。", "sources.cockroachdb.description": "CockroachDBからデータベース、Schema、テーブル、ビュー、統計情報、Lineageをインポートします。", diff --git a/datahub-web-react/src/i18n/locales/nb/ingest.sources.json b/datahub-web-react/src/i18n/locales/nb/ingest.sources.json index badf4bf24e97f..3543dcf479f1c 100644 --- a/datahub-web-react/src/i18n/locales/nb/ingest.sources.json +++ b/datahub-web-react/src/i18n/locales/nb/ingest.sources.json @@ -16,6 +16,7 @@ "sources.athena.description": "Importer Schemas, Tables, Views og lineage til S3 fra Athena.", "sources.azureAd.description": "Importer brukere og grupper fra Azure Active Directory.", "sources.bigquery.description": "Importer Projects, Datasets, Tables, Views, lineage, spørringer og statistikk fra BigQuery.", + "sources.boomi.description": "Importer mapper, prosesser, utrullinger og eierskap fra Boomi Integration.", "sources.cassandra.description": "Importer Tables, Keyspaces og kolonne-schemas fra Cassandra.", "sources.clickhouse.description": "Importer Tables, Views, Materialized Views, Dictionaries, statistikk, spørringer og lineage fra ClickHouse.", "sources.cockroachdb.description": "Importer Databases, Schemas, Tables, Views, statistikk og lineage fra CockroachDB.", diff --git a/datahub-web-react/src/i18n/locales/pt-BR/ingest.sources.json b/datahub-web-react/src/i18n/locales/pt-BR/ingest.sources.json index d425c1443df9f..14cac9f9fb754 100644 --- a/datahub-web-react/src/i18n/locales/pt-BR/ingest.sources.json +++ b/datahub-web-react/src/i18n/locales/pt-BR/ingest.sources.json @@ -16,6 +16,7 @@ "sources.athena.description": "Importe Schemas, Tabelas, Views e lineage para o S3 a partir do Athena.", "sources.azureAd.description": "Importe Usuários e Grupos do Azure Active Directory.", "sources.bigquery.description": "Importe Projetos, Datasets, Tabelas, Views, lineage, consultas e estatísticas do BigQuery.", + "sources.boomi.description": "Importe pastas, processos, implantações e responsáveis do Boomi Integration.", "sources.cassandra.description": "Importe Tabelas, Keyspaces e schemas de colunas do Cassandra.", "sources.clickhouse.description": "Importe Tabelas, Views, Materialized Views, Dicionários, estatísticas, consultas e lineage do ClickHouse.", "sources.cockroachdb.description": "Importe Bancos de Dados, Schemas, Tabelas, Views, estatísticas e lineage do CockroachDB.", diff --git a/datahub-web-react/src/i18n/locales/ru/ingest.sources.json b/datahub-web-react/src/i18n/locales/ru/ingest.sources.json index f9abf874d2249..a1c02f2ee2192 100644 --- a/datahub-web-react/src/i18n/locales/ru/ingest.sources.json +++ b/datahub-web-react/src/i18n/locales/ru/ingest.sources.json @@ -16,6 +16,7 @@ "sources.athena.description": "Импорт схем, таблиц, представлений и lineage к S3 из Athena.", "sources.azureAd.description": "Импорт пользователей и групп из Azure Active Directory.", "sources.bigquery.description": "Импорт проектов, наборов данных, таблиц, представлений, lineage, запросов и статистики из BigQuery.", + "sources.boomi.description": "Импорт папок, процессов, развертываний и владения из Boomi Integration.", "sources.cassandra.description": "Импорт таблиц, keyspace и схем столбцов из Cassandra.", "sources.clickhouse.description": "Импорт таблиц, представлений, материализованных представлений, словарей, статистики, запросов и lineage из ClickHouse.", "sources.cockroachdb.description": "Импорт баз данных, схем, таблиц, представлений, статистики и lineage из CockroachDB.", diff --git a/datahub-web-react/src/i18n/locales/sv/ingest.sources.json b/datahub-web-react/src/i18n/locales/sv/ingest.sources.json index ee4ef208538aa..f2f5a17b4b0ab 100644 --- a/datahub-web-react/src/i18n/locales/sv/ingest.sources.json +++ b/datahub-web-react/src/i18n/locales/sv/ingest.sources.json @@ -16,6 +16,7 @@ "sources.athena.description": "Importera Schemas, Tables, Views och Lineage till S3 från Athena.", "sources.azureAd.description": "Importera användare och grupper från Azure Active Directory.", "sources.bigquery.description": "Importera Projects, Datasets, Tables, Views, Lineage, Queries och statistik från BigQuery.", + "sources.boomi.description": "Importera mappar, processer, driftsättningar och Ownership från Boomi Integration.", "sources.cassandra.description": "Importera Tables, Keyspaces och kolumnscheman från Cassandra.", "sources.clickhouse.description": "Importera Tables, Views, Materialized Views, Dictionaries, statistik, Queries och Lineage från ClickHouse.", "sources.cockroachdb.description": "Importera Databases, Schemas, Tables, Views, statistik och Lineage från CockroachDB.", diff --git a/datahub-web-react/src/i18n/locales/zh-CN/ingest.sources.json b/datahub-web-react/src/i18n/locales/zh-CN/ingest.sources.json index ab5aa84e87209..3857879506bd3 100644 --- a/datahub-web-react/src/i18n/locales/zh-CN/ingest.sources.json +++ b/datahub-web-react/src/i18n/locales/zh-CN/ingest.sources.json @@ -16,6 +16,7 @@ "sources.athena.description": "从 Athena 导入架构、表、视图以及到 S3 的数据血缘。", "sources.azureAd.description": "从 Azure Active Directory 导入用户和用户组。", "sources.bigquery.description": "从 BigQuery 导入项目、数据集、表、视图、数据血缘、查询和统计信息。", + "sources.boomi.description": "从 Boomi Integration 导入文件夹、流程、部署和所有权。", "sources.cassandra.description": "从 Cassandra 导入表、键空间和列架构。", "sources.clickhouse.description": "从 ClickHouse 导入表、视图、物化视图、字典、统计信息、查询以及数据血缘。", "sources.cockroachdb.description": "从 CockroachDB 导入数据库、架构、表、视图、统计信息以及数据血缘。", diff --git a/datahub-web-react/src/i18n/locales/zh-TW/ingest.sources.json b/datahub-web-react/src/i18n/locales/zh-TW/ingest.sources.json index ab3d9fb0d57c5..5515c6bb2ba72 100644 --- a/datahub-web-react/src/i18n/locales/zh-TW/ingest.sources.json +++ b/datahub-web-react/src/i18n/locales/zh-TW/ingest.sources.json @@ -16,6 +16,7 @@ "sources.athena.description": "從 Athena 匯入結構描述、資料表、檢視表,以及連往 S3 的資料血緣。", "sources.azureAd.description": "從 Azure Active Directory 匯入使用者與群組。", "sources.bigquery.description": "從 BigQuery 匯入專案、資料集、資料表、檢視表、資料血緣、查詢與統計資料。", + "sources.boomi.description": "從 Boomi Integration 匯入資料夾、流程、部署與擁有權。", "sources.cassandra.description": "從 Cassandra 匯入資料表、Keyspace 與欄位結構描述。", "sources.clickhouse.description": "從 ClickHouse 匯入資料表、檢視表、具體化檢視表、字典、統計資料、查詢與資料血緣。", "sources.cockroachdb.description": "從 CockroachDB 匯入資料庫、結構描述、資料表、檢視表、統計資料與資料血緣。", From dfa98ee52c7491b55c60e579c156067e37ccb719 Mon Sep 17 00:00:00 2001 From: acrylJonny Date: Mon, 2 Nov 2026 19:09:57 +0000 Subject: [PATCH 06/20] fix(ingest/boomi): address review findings on folders, deployments and config - Require https for api_url except on loopback hosts, and reject query strings and fragments. - Report folder listing errors as failures so stale removal is skipped. - Treat deployments as unknown when environments cannot be listed, instead of matching environment_pattern against environment IDs. - Ignore deployments from other branches when branch_name is set. - Match folder_pattern against the component's folderFullPath when the folder is not in the listing, and skip the process if no path is known. - Normalise naive modified dates to UTC before deduping branch copies. - Bump the data-platforms bootstrap template to v22 for the new platform. - Clarify the docs and anchor the sample deny regex on word boundaries. Co-Authored-By: Claude Opus 5.5 --- .../docs/sources/boomi/README.md | 2 +- .../docs/sources/boomi/boomi_post.md | 4 +- .../docs/sources/boomi/boomi_recipe.yml | 2 +- .../datahub/ingestion/source/boomi/config.py | 22 +++- .../ingestion/source/boomi/constants.py | 3 + .../datahub/ingestion/source/boomi/source.py | 62 ++++++--- .../tests/unit/boomi/test_source.py | 123 +++++++++++++++++- .../src/main/resources/bootstrap_mcps.yaml | 2 +- 8 files changed, 189 insertions(+), 31 deletions(-) diff --git a/metadata-ingestion/docs/sources/boomi/README.md b/metadata-ingestion/docs/sources/boomi/README.md index ace2257179532..faaef2037e5ae 100644 --- a/metadata-ingestion/docs/sources/boomi/README.md +++ b/metadata-ingestion/docs/sources/boomi/README.md @@ -2,7 +2,7 @@ Boomi Integration (the Boomi Enterprise Platform, formerly AtomSphere) is an integration platform as a service where you build processes that move data between applications, databases and files. Learn more in the [Boomi Platform API documentation](https://developer.boomi.com/docs/APIs/PlatformAPI/Introduction/Getting_started_platform). -The DataHub integration for Boomi reads the Platform API. It ingests folders as containers and each process as a DataFlow with one DataJob, along with the process description, active deployments per environment, a link back to the Boomi build page, and owners taken from the process creator and last modifier. Stateful ingestion removes processes that were deleted or are no longer deployed. +The DataHub integration for Boomi reads the Platform API. It ingests folders as containers and each process as a DataFlow with one DataJob, along with the process description, active deployments per environment, owners taken from the process creator and last modifier, and a link back to the Boomi build page for accounts on the US and UK API hosts. Stateful ingestion removes processes that were deleted. It also removes processes that are no longer deployed, as long as `include_undeployed_processes` is `false` and the token can read deployments. ## Concept Mapping diff --git a/metadata-ingestion/docs/sources/boomi/boomi_post.md b/metadata-ingestion/docs/sources/boomi/boomi_post.md index d3e8dea57b646..477a0112514ee 100644 --- a/metadata-ingestion/docs/sources/boomi/boomi_post.md +++ b/metadata-ingestion/docs/sources/boomi/boomi_post.md @@ -4,14 +4,14 @@ The source plugin queries `ComponentMetadata` for current, non-deleted components of type `process`. For each process it reads the component XML to get the description, then emits: -- A DataFlow named after the process, with the custom properties `componentId`, `version`, `branchName`, `modifiedDate`, `folderFullPath` and `deployments`. +- A DataFlow keyed by the component ID, with the process name as its display name and the custom properties `componentId`, `version`, `branchName`, `modifiedDate`, `folderFullPath` and `deployments`. - One DataJob with the ID `process`. Its inputs and outputs are empty in this release. Active deployments come from `DeployedPackage`, joined to environment names. `environment_pattern` controls which environments count. With `include_undeployed_processes: false` (the default), a process that has no active deployment in an allowed environment is skipped, and stateful ingestion soft-deletes it if it was ingested before. #### Folders -Every folder that matches `folder_pattern` is emitted as a container, together with its parent folders so the browse path stays complete. `folder_pattern` is matched against the full folder path, for example `Acme/Production/Orders`. Processes in folders that do not match are skipped. +Every folder that matches `folder_pattern` is emitted as a container, together with its parent folders so the browse path stays complete. `folder_pattern` is matched against the full folder path, for example `Acme/Production/Orders`. Processes in folders that do not match are skipped. If a process's folder is not in the folder listing, the path is read from the process component instead, and the process is skipped when no path is available and `folder_pattern` is set. #### Branches diff --git a/metadata-ingestion/docs/sources/boomi/boomi_recipe.yml b/metadata-ingestion/docs/sources/boomi/boomi_recipe.yml index ab1e0bb09f6a7..8c4207f47659c 100644 --- a/metadata-ingestion/docs/sources/boomi/boomi_recipe.yml +++ b/metadata-ingestion/docs/sources/boomi/boomi_recipe.yml @@ -16,7 +16,7 @@ source: - "^MyCompany/Production(/.*)?$" process_pattern: deny: - - ".*[Tt]est.*" + - ".*\\b[Tt]est\\b.*" environment_pattern: allow: - ".*" diff --git a/metadata-ingestion/src/datahub/ingestion/source/boomi/config.py b/metadata-ingestion/src/datahub/ingestion/source/boomi/config.py index 1c1d504fbde1e..638dc64541a09 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/boomi/config.py +++ b/metadata-ingestion/src/datahub/ingestion/source/boomi/config.py @@ -12,15 +12,16 @@ DEFAULT_API_URL, DEFAULT_MAX_REQUESTS_PER_SECOND, DEFAULT_REQUEST_TIMEOUT_SECONDS, + LOOPBACK_HOSTS, MAX_REQUESTS_PER_SECOND_LIMIT, + SCHEME_HTTP, + SCHEME_HTTPS, ) from datahub.ingestion.source.state.stale_entity_removal_handler import ( StatefulIngestionConfigBase, StatefulStaleMetadataRemovalConfig, ) -_HTTP_SCHEMES = ("http", "https") - class BoomiSourceConfig( PlatformInstanceConfigMixin, @@ -43,7 +44,7 @@ class BoomiSourceConfig( default=DEFAULT_API_URL, description=( "Platform API host. Use `https://api.platform.gb.boomi.com` for accounts " - "hosted in the UK." + "hosted in the UK. Must use https unless the host is a loopback address." ), ) branch_name: Optional[str] = Field( @@ -111,8 +112,19 @@ class BoomiSourceConfig( @classmethod def _validate_api_url(cls, value: str) -> str: parsed = urlparse(value) - if parsed.scheme not in _HTTP_SCHEMES or not parsed.netloc: + if ( + parsed.scheme not in (SCHEME_HTTP, SCHEME_HTTPS) + or not parsed.hostname + or parsed.query + or parsed.fragment + ): + raise ValueError( + f"api_url must be a base URL such as https://api.boomi.com, without a query or fragment, got {value!r}" + ) + # The token is sent as basic auth, so plain http is only allowed for + # local test servers. + if parsed.scheme == SCHEME_HTTP and parsed.hostname not in LOOPBACK_HOSTS: raise ValueError( - f"api_url must be an http(s) URL such as https://api.boomi.com, got {value!r}" + f"api_url must use https for non-loopback hosts, got {value!r}" ) return value.rstrip("/") diff --git a/metadata-ingestion/src/datahub/ingestion/source/boomi/constants.py b/metadata-ingestion/src/datahub/ingestion/source/boomi/constants.py index 27b01df8ce189..0768743bc5dad 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/boomi/constants.py +++ b/metadata-ingestion/src/datahub/ingestion/source/boomi/constants.py @@ -5,6 +5,9 @@ DEFAULT_API_URL = "https://api.boomi.com" API_PATH_TEMPLATE = "{api_url}/api/rest/v1/{account_id}" TOKEN_USERNAME_PREFIX = "BOOMI_TOKEN." +SCHEME_HTTP = "http" +SCHEME_HTTPS = "https" +LOOPBACK_HOSTS: FrozenSet[str] = frozenset({"localhost", "127.0.0.1", "::1"}) OBJECT_COMPONENT = "Component" OBJECT_COMPONENT_METADATA = "ComponentMetadata" diff --git a/metadata-ingestion/src/datahub/ingestion/source/boomi/source.py b/metadata-ingestion/src/datahub/ingestion/source/boomi/source.py index bf997245dd24a..2ae8a17b7c402 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/boomi/source.py +++ b/metadata-ingestion/src/datahub/ingestion/source/boomi/source.py @@ -93,6 +93,14 @@ def ui_host_for_api_url(api_url: str) -> Optional[str]: return API_HOST_TO_UI_HOST.get(host) if host else None +def _as_utc(value: Optional[datetime]) -> datetime: + if value is None: + return _EPOCH + if value.tzinfo is None: + return value.replace(tzinfo=timezone.utc) + return value + + def dedupe_branch_copies( components: Iterable[ComponentMetadata], ) -> Tuple[List[ComponentMetadata], int]: @@ -106,8 +114,8 @@ def dedupe_branch_copies( latest[component.component_id] = component continue duplicates += 1 - if (component.modified_date or _EPOCH, component.version) > ( - existing.modified_date or _EPOCH, + if (_as_utc(component.modified_date), component.version) > ( + _as_utc(existing.modified_date), existing.version, ): latest[component.component_id] = component @@ -192,7 +200,9 @@ def _load_folders(self) -> FolderIndex: else: self.report.folders_filtered.append(folder.full_path) except (BoomiApiError, requests.RequestException, ValidationError) as e: - self.report.warning( + # A failure, not a warning, so stale entity removal does not + # soft-delete the folders that were not emitted this run. + self.report.failure( title="Failed to list Boomi folders", message="Processes are emitted without folder containers.", exc=e, @@ -239,7 +249,7 @@ def _folder_key(self, folder_id: str) -> BoomiFolderKey: folder_id=folder_id, ) - def _load_environment_names(self) -> Dict[str, str]: + def _load_environment_names(self) -> Optional[Dict[str, str]]: names: Dict[str, str] = {} try: for environment in self.client.list_environments(): @@ -248,20 +258,30 @@ def _load_environment_names(self) -> Dict[str, str]: except (BoomiApiError, requests.RequestException, ValidationError) as e: self.report.warning( title="Failed to list Boomi environments", - message="Deployments are labelled with environment IDs instead of names, and environment_pattern is matched against the IDs.", + message="environment_pattern cannot be applied, so deployment properties are skipped and all processes are ingested.", exc=e, ) + return None return names def _load_deployments(self) -> Optional[Dict[str, List[str]]]: # componentId -> sorted `environment=packageVersion` labels. None means # deployments are unknown, so undeployed processes cannot be told apart. environment_names = self._load_environment_names() + if environment_names is None: + self.report.deployments_unavailable = True + return None deployments: Dict[str, List[str]] = {} filtered_environments: Set[str] = set() try: for package in self.client.list_active_process_deployments(): self.report.deployments_scanned += 1 + if ( + self.config.branch_name + and package.branch_name + and package.branch_name != self.config.branch_name + ): + continue environment = environment_names.get( package.environment_id, package.environment_id ) @@ -292,14 +312,12 @@ def _load_deployments(self) -> Optional[Dict[str, List[str]]]: self.report.environments_filtered.append(environment) return {key: sorted(values) for key, values in deployments.items()} - def _process_folder_allowed( - self, process: ComponentMetadata, index: FolderIndex - ) -> bool: - if process.folder_id and process.folder_id in index.folders: - return process.folder_id in index.allowed_ids - # The folder is hidden from this token (or listing failed), so fall back - # to the folder name, which is all ComponentMetadata carries. - return self.config.folder_pattern.allowed(process.folder_name or "") + def _folder_path_allowed(self, folder_path: Optional[str]) -> bool: + # The folder is hidden from this token or listing failed, so match the + # path from the component XML and fail closed when it is missing. + if folder_path is None: + return self.config.folder_pattern.is_allow_all() + return self.config.folder_pattern.allowed(folder_path) def _emit_processes( self, @@ -320,9 +338,11 @@ def _emit_processes( self.report.processes_duplicate_branch_copies = duplicates for process in sorted(processes, key=lambda p: p.component_id): self.report.processes_scanned += 1 - if not self.config.process_pattern.allowed( - process.name - ) or not self._process_folder_allowed(process, index): + if not self.config.process_pattern.allowed(process.name): + self.report.processes_filtered.append(process.name) + continue + folder = index.folders.get(process.folder_id) if process.folder_id else None + if folder is not None and folder.id not in index.allowed_ids: self.report.processes_filtered.append(process.name) continue process_deployments: List[str] = [] @@ -335,8 +355,14 @@ def _emit_processes( self.report.processes_undeployed_skipped.append(process.name) continue try: + info = self._fetch_process_info(process) + if folder is None and not self._folder_path_allowed( + info.folder_full_path + ): + self.report.processes_filtered.append(process.name) + continue yield from self._make_process_entities( - process, index, process_deployments + process, index, info, process_deployments ) self.report.processes_emitted += 1 except Exception as e: @@ -371,9 +397,9 @@ def _make_process_entities( self, process: ComponentMetadata, index: FolderIndex, + info: ProcessComponentInfo, process_deployments: List[str], ) -> Iterable[Entity]: - info = self._fetch_process_info(process) folder = index.folders.get(process.folder_id) if process.folder_id else None folder_path = folder.full_path if folder else info.folder_full_path custom_properties = { diff --git a/metadata-ingestion/tests/unit/boomi/test_source.py b/metadata-ingestion/tests/unit/boomi/test_source.py index 1a9fdb1da4fda..26282b75edbc1 100644 --- a/metadata-ingestion/tests/unit/boomi/test_source.py +++ b/metadata-ingestion/tests/unit/boomi/test_source.py @@ -67,19 +67,24 @@ def _register( mock: requests_mock.Mocker, processes: List[Dict[str, object]], deployed_status: int = 200, + deployed: Optional[List[Dict[str, object]]] = None, + folder_status: int = 200, + environment_status: int = 200, ) -> None: mock.post( f"{BASE_URL}/Folder/query", + status_code=folder_status, json={"result": [{"id": "F1", "name": "Orders", "fullPath": "Acme/Orders"}]}, ) mock.post( f"{BASE_URL}/Environment/query", + status_code=environment_status, json={"result": [{"id": "env-prod", "name": "Production"}]}, ) mock.post( f"{BASE_URL}/DeployedPackage/query", status_code=deployed_status, - json={"result": []}, + json={"result": deployed or []}, ) mock.post(f"{BASE_URL}/ComponentMetadata/query", json={"result": processes}) @@ -115,6 +120,16 @@ def test_dedupe_keeps_most_recent_branch_copy() -> None: assert {(c.component_id, c.version) for c in kept} == {("p1", 2), ("p2", 1)} +def test_dedupe_handles_naive_and_missing_dates() -> None: + naive = _component("p1", version=1, modified=datetime(2026, 6, 1)) + missing = _component("p1", version=2) + + kept, duplicates = dedupe_branch_copies([missing, naive]) + + assert duplicates == 1 + assert [c.version for c in kept] == [1] + + def test_deployed_package_403_includes_all_processes() -> None: source = _source() with requests_mock.Mocker() as mock: @@ -143,6 +158,84 @@ def test_undeployed_processes_skipped_by_default() -> None: assert list(source.get_report().processes_undeployed_skipped) == ["Orders Sync"] +def test_environment_listing_failure_includes_all_processes() -> None: + source = _source(environment_pattern={"allow": ["^Production$"]}) + with requests_mock.Mocker() as mock: + _register( + mock, + [_process_record("p1", "Orders Sync")], + deployed=[ + { + "componentId": "p1", + "environmentId": "env-prod", + "packageVersion": "1", + } + ], + environment_status=500, + ) + mock.get(f"{BASE_URL}/Component/p1", text=XML) + flows = _flows(source) + + assert [f.display_name for f in flows] == ["Orders Sync"] + assert "deployments" not in flows[0].custom_properties + assert source.get_report().deployments_unavailable + + +def test_deployments_on_other_branches_are_ignored() -> None: + source = _source(branch_name="main") + with requests_mock.Mocker() as mock: + _register( + mock, + [_process_record("p1", "Orders Sync")], + deployed=[ + { + "componentId": "p1", + "environmentId": "env-prod", + "packageVersion": "1", + "branchName": "feature", + } + ], + ) + assert _flows(source) == [] + + assert list(source.get_report().processes_undeployed_skipped) == ["Orders Sync"] + + +def test_folder_listing_failure_matches_component_folder_path() -> None: + source = _source( + include_undeployed_processes=True, + folder_pattern={"allow": ["^Acme/Orders$"]}, + ) + other_xml = XML.replace("Acme/Orders", "Acme/Archive") + with requests_mock.Mocker() as mock: + _register( + mock, + [_process_record("p1", "Orders Sync"), _process_record("p2", "Old")], + folder_status=500, + ) + mock.get(f"{BASE_URL}/Component/p1", text=XML) + mock.get(f"{BASE_URL}/Component/p2", text=other_xml) + flows = _flows(source) + + report = source.get_report() + assert [f.display_name for f in flows] == ["Orders Sync"] + assert list(report.processes_filtered) == ["Old"] + assert [f.title for f in report.failures] == ["Failed to list Boomi folders"] + + +def test_unknown_folder_without_path_fails_closed() -> None: + source = _source( + include_undeployed_processes=True, + folder_pattern={"allow": ["^Acme/Orders$"]}, + ) + with requests_mock.Mocker() as mock: + _register(mock, [_process_record("p1", "Orders Sync")], folder_status=500) + mock.get(f"{BASE_URL}/Component/p1", text=" None: source = _source(include_undeployed_processes=True, extract_owners=False) with requests_mock.Mocker() as mock: @@ -156,18 +249,42 @@ def test_xml_failure_still_emits_process() -> None: assert list(source.get_report().process_xml_failures) == ["p1"] -def test_config_rejects_non_http_api_url() -> None: +@pytest.mark.parametrize( + "api_url", + [ + "api.boomi.com", + "http://api.boomi.com", + "https://api.boomi.com?region=us", + "https://api.boomi.com#build", + ], +) +def test_config_rejects_invalid_api_url(api_url: str) -> None: with pytest.raises(ValidationError): BoomiSourceConfig.model_validate( { "account_id": ACCOUNT_ID, "username": "svc@example.com", "api_token": "secret-token", - "api_url": "api.boomi.com", + "api_url": api_url, } ) +@pytest.mark.parametrize( + "api_url", ["http://localhost:8080", "http://127.0.0.1:9000", "http://[::1]:80"] +) +def test_config_allows_http_for_loopback(api_url: str) -> None: + config = BoomiSourceConfig.model_validate( + { + "account_id": ACCOUNT_ID, + "username": "svc@example.com", + "api_token": "secret-token", + "api_url": api_url, + } + ) + assert config.api_url == api_url + + def test_config_rejects_rate_above_boomi_limit() -> None: with pytest.raises(ValidationError): BoomiSourceConfig.model_validate( diff --git a/metadata-service/configuration/src/main/resources/bootstrap_mcps.yaml b/metadata-service/configuration/src/main/resources/bootstrap_mcps.yaml index af99d771c3775..09c58d6fc16ec 100644 --- a/metadata-service/configuration/src/main/resources/bootstrap_mcps.yaml +++ b/metadata-service/configuration/src/main/resources/bootstrap_mcps.yaml @@ -13,7 +13,7 @@ bootstrap: mcps_location: "bootstrap_mcps/root-user.yaml" - name: data-platforms - version: v21 + version: v22 blocking: true async: false mcps_location: "bootstrap_mcps/data-platforms.yaml" From 7f29b1ab70b6b0672596f4c7a72755a6b5d7dcf3 Mon Sep 17 00:00:00 2001 From: acrylJonny Date: Mon, 2 Nov 2026 19:34:12 +0000 Subject: [PATCH 07/20] test(ingest/boomi): rebuild fixtures from live API response shapes The integration test now loads anonymised responses captured from a Boomi trial account (Folder, Environment, DeployedPackage and ComponentMetadata queries and the process component XML), with extra records copied from them for the filtered, branch-duplicate and denied-environment cases. Unit test records and XML follow the same shapes. Co-Authored-By: Claude Opus 5.5 --- .../fixtures/component_metadata_query.json | 91 + .../161c2360-f2fb-4e20-aba5-db60101ce2b1.xml | 3 + .../6363d3f8-93fa-4c4d-a399-45bde722ee63.xml | 2 + .../72a4e14f-b0aa-45c1-850c-5306d99b5855.xml | 2 + .../e1b56fb6-0dae-4c33-9a9d-e5af9b8aedbc.xml | 2 + .../f58d0126-87ab-4f1a-bed9-2849688c8e99.xml | 2 + .../fixtures/deployed_package_query.json | 54 + .../boomi/fixtures/environment_query.json | 18 + .../boomi/fixtures/folder_query.json | 51 + .../boomi/golden/boomi_mces_golden.json | 2321 +++++++++++++---- .../tests/integration/boomi/test_boomi.py | 379 ++- .../tests/unit/boomi/test_client.py | 40 +- .../tests/unit/boomi/test_parsing.py | 16 +- .../tests/unit/boomi/test_source.py | 117 +- 14 files changed, 2340 insertions(+), 758 deletions(-) create mode 100644 metadata-ingestion/tests/integration/boomi/fixtures/component_metadata_query.json create mode 100644 metadata-ingestion/tests/integration/boomi/fixtures/components/161c2360-f2fb-4e20-aba5-db60101ce2b1.xml create mode 100644 metadata-ingestion/tests/integration/boomi/fixtures/components/6363d3f8-93fa-4c4d-a399-45bde722ee63.xml create mode 100644 metadata-ingestion/tests/integration/boomi/fixtures/components/72a4e14f-b0aa-45c1-850c-5306d99b5855.xml create mode 100644 metadata-ingestion/tests/integration/boomi/fixtures/components/e1b56fb6-0dae-4c33-9a9d-e5af9b8aedbc.xml create mode 100644 metadata-ingestion/tests/integration/boomi/fixtures/components/f58d0126-87ab-4f1a-bed9-2849688c8e99.xml create mode 100644 metadata-ingestion/tests/integration/boomi/fixtures/deployed_package_query.json create mode 100644 metadata-ingestion/tests/integration/boomi/fixtures/environment_query.json create mode 100644 metadata-ingestion/tests/integration/boomi/fixtures/folder_query.json diff --git a/metadata-ingestion/tests/integration/boomi/fixtures/component_metadata_query.json b/metadata-ingestion/tests/integration/boomi/fixtures/component_metadata_query.json new file mode 100644 index 0000000000000..b95ee861769fc --- /dev/null +++ b/metadata-ingestion/tests/integration/boomi/fixtures/component_metadata_query.json @@ -0,0 +1,91 @@ +{ + "@type": "QueryResult", + "result": [ + { + "@type": "ComponentMetadata", + "componentId": "e1b56fb6-0dae-4c33-9a9d-e5af9b8aedbc", + "version": 1, + "name": "DH Test - Orders Extract", + "type": "process", + "createdDate": "2026-11-02T19:17:12Z", + "createdBy": "svc@example.com", + "modifiedDate": "2026-11-02T19:17:12Z", + "modifiedBy": "svc@example.com", + "deleted": false, + "currentVersion": true, + "folderName": "Orders", + "folderId": "Rjo4OTQzNDEx", + "branchName": "main", + "branchId": "Qjo2MDk0Mzg" + }, + { + "@type": "ComponentMetadata", + "componentId": "6363d3f8-93fa-4c4d-a399-45bde722ee63", + "version": 1, + "name": "DH Test - Catalog Sync", + "type": "process", + "createdDate": "2026-11-02T19:17:13Z", + "createdBy": "svc@example.com", + "modifiedDate": "2026-11-02T19:17:13Z", + "modifiedBy": "svc@example.com", + "deleted": false, + "currentVersion": true, + "folderName": "Orders", + "folderId": "Rjo4OTQzNDEx", + "branchName": "main", + "branchId": "Qjo2MDk0Mzg" + }, + { + "@type": "ComponentMetadata", + "componentId": "f58d0126-87ab-4f1a-bed9-2849688c8e99", + "version": 1, + "name": "DH Test - Salesforce Accounts", + "type": "process", + "createdDate": "2026-11-02T19:17:15Z", + "createdBy": "svc@example.com", + "modifiedDate": "2026-11-02T19:17:15Z", + "modifiedBy": "svc@example.com", + "deleted": false, + "currentVersion": true, + "folderName": "Orders", + "folderId": "Rjo4OTQzNDEx", + "branchName": "main", + "branchId": "Qjo2MDk0Mzg" + }, + { + "@type": "ComponentMetadata", + "componentId": "72a4e14f-b0aa-45c1-850c-5306d99b5855", + "version": 2, + "name": "DH Test - SFTP Pickup", + "type": "process", + "createdDate": "2026-11-02T19:17:16Z", + "createdBy": "svc@example.com", + "modifiedDate": "2026-11-02T19:20:48Z", + "modifiedBy": "svc@example.com", + "deleted": false, + "currentVersion": true, + "folderName": "Orders", + "folderId": "Rjo4OTQzNDEx", + "branchName": "main", + "branchId": "Qjo2MDk0Mzg" + }, + { + "@type": "ComponentMetadata", + "componentId": "161c2360-f2fb-4e20-aba5-db60101ce2b1", + "version": 2, + "name": "DH Test - Posts Fetch", + "type": "process", + "createdDate": "2026-11-02T19:17:28Z", + "createdBy": "svc@example.com", + "modifiedDate": "2026-11-02T19:22:16Z", + "modifiedBy": "svc@example.com", + "deleted": false, + "currentVersion": true, + "folderName": "Orders", + "folderId": "Rjo4OTQzNDEx", + "branchName": "main", + "branchId": "Qjo2MDk0Mzg" + } + ], + "numberOfResults": 5 +} diff --git a/metadata-ingestion/tests/integration/boomi/fixtures/components/161c2360-f2fb-4e20-aba5-db60101ce2b1.xml b/metadata-ingestion/tests/integration/boomi/fixtures/components/161c2360-f2fb-4e20-aba5-db60101ce2b1.xml new file mode 100644 index 0000000000000..d990379d189cb --- /dev/null +++ b/metadata-ingestion/tests/integration/boomi/fixtures/components/161c2360-f2fb-4e20-aba5-db60101ce2b1.xml @@ -0,0 +1,3 @@ +HTTP GET posts then call Orders Extract + + diff --git a/metadata-ingestion/tests/integration/boomi/fixtures/components/6363d3f8-93fa-4c4d-a399-45bde722ee63.xml b/metadata-ingestion/tests/integration/boomi/fixtures/components/6363d3f8-93fa-4c4d-a399-45bde722ee63.xml new file mode 100644 index 0000000000000..0542264b5e40e --- /dev/null +++ b/metadata-ingestion/tests/integration/boomi/fixtures/components/6363d3f8-93fa-4c4d-a399-45bde722ee63.xml @@ -0,0 +1,2 @@ +Database V2 reads from Ensembl, written to disk + diff --git a/metadata-ingestion/tests/integration/boomi/fixtures/components/72a4e14f-b0aa-45c1-850c-5306d99b5855.xml b/metadata-ingestion/tests/integration/boomi/fixtures/components/72a4e14f-b0aa-45c1-850c-5306d99b5855.xml new file mode 100644 index 0000000000000..ff0fec7cdc8f5 --- /dev/null +++ b/metadata-ingestion/tests/integration/boomi/fixtures/components/72a4e14f-b0aa-45c1-850c-5306d99b5855.xml @@ -0,0 +1,2 @@ +SFTP read from test.rebex.net, written to disk (v2) + diff --git a/metadata-ingestion/tests/integration/boomi/fixtures/components/e1b56fb6-0dae-4c33-9a9d-e5af9b8aedbc.xml b/metadata-ingestion/tests/integration/boomi/fixtures/components/e1b56fb6-0dae-4c33-9a9d-e5af9b8aedbc.xml new file mode 100644 index 0000000000000..64eaf7c3ee8d2 --- /dev/null +++ b/metadata-ingestion/tests/integration/boomi/fixtures/components/e1b56fb6-0dae-4c33-9a9d-e5af9b8aedbc.xml @@ -0,0 +1,2 @@ +Legacy DB read from RNAcentral, written to disk + diff --git a/metadata-ingestion/tests/integration/boomi/fixtures/components/f58d0126-87ab-4f1a-bed9-2849688c8e99.xml b/metadata-ingestion/tests/integration/boomi/fixtures/components/f58d0126-87ab-4f1a-bed9-2849688c8e99.xml new file mode 100644 index 0000000000000..58a7db7fdf294 --- /dev/null +++ b/metadata-ingestion/tests/integration/boomi/fixtures/components/f58d0126-87ab-4f1a-bed9-2849688c8e99.xml @@ -0,0 +1,2 @@ +Never deployed. Salesforce Account query then legacy DB insert into my_table + diff --git a/metadata-ingestion/tests/integration/boomi/fixtures/deployed_package_query.json b/metadata-ingestion/tests/integration/boomi/fixtures/deployed_package_query.json new file mode 100644 index 0000000000000..52d6dbd75e9a2 --- /dev/null +++ b/metadata-ingestion/tests/integration/boomi/fixtures/deployed_package_query.json @@ -0,0 +1,54 @@ +{ + "@type": "QueryResult", + "result": [ + { + "@type": "DeployedPackage", + "deploymentId": "dda2f5b2-37d6-4ccb-9349-98b6c77e1c0c", + "version": 1, + "packageId": "ab44fd92-6b7d-4d91-94a1-e5f46cd129bd", + "packageVersion": "1.0", + "environmentId": "8087318a-a42c-41df-98ab-cf57609d7654", + "componentId": "e1b56fb6-0dae-4c33-9a9d-e5af9b8aedbc", + "componentVersion": 1, + "componentType": "process", + "deployedDate": "2026-11-02T19:18:22Z", + "deployedBy": "svc@example.com", + "notes": "DH Test deploy", + "active": true, + "branchName": "main" + }, + { + "@type": "DeployedPackage", + "deploymentId": "87621615-2505-4f4c-9c75-1ec46ae89f4e", + "version": 2, + "packageId": "5b073036-65a3-4907-bca1-1d2694466627", + "packageVersion": "1.1", + "environmentId": "8087318a-a42c-41df-98ab-cf57609d7654", + "componentId": "6363d3f8-93fa-4c4d-a399-45bde722ee63", + "componentVersion": 1, + "componentType": "process", + "deployedDate": "2026-11-02T19:21:29Z", + "deployedBy": "svc@example.com", + "notes": "DH Test redeploy 1.1", + "active": true, + "branchName": "main" + }, + { + "@type": "DeployedPackage", + "deploymentId": "e00cc504-f975-4a1c-be46-0fc87c42791e", + "version": 2, + "packageId": "87705646-2d4c-429d-ba17-e4ffea2ad7a7", + "packageVersion": "1.1", + "environmentId": "56c4f2be-9126-4e8a-bfb2-111c009e83d8", + "componentId": "161c2360-f2fb-4e20-aba5-db60101ce2b1", + "componentVersion": 2, + "componentType": "process", + "deployedDate": "2026-11-02T19:22:18Z", + "deployedBy": "svc@example.com", + "notes": "DH Test redeploy 1.1", + "active": true, + "branchName": "main" + } + ], + "numberOfResults": 3 +} diff --git a/metadata-ingestion/tests/integration/boomi/fixtures/environment_query.json b/metadata-ingestion/tests/integration/boomi/fixtures/environment_query.json new file mode 100644 index 0000000000000..a8e98786a5ecf --- /dev/null +++ b/metadata-ingestion/tests/integration/boomi/fixtures/environment_query.json @@ -0,0 +1,18 @@ +{ + "@type": "QueryResult", + "result": [ + { + "@type": "Environment", + "id": "8087318a-a42c-41df-98ab-cf57609d7654", + "name": "DH Test Env", + "classification": "TEST" + }, + { + "@type": "Environment", + "id": "56c4f2be-9126-4e8a-bfb2-111c009e83d8", + "name": "DH Test Prod Env", + "classification": "PROD" + } + ], + "numberOfResults": 2 +} diff --git a/metadata-ingestion/tests/integration/boomi/fixtures/folder_query.json b/metadata-ingestion/tests/integration/boomi/fixtures/folder_query.json new file mode 100644 index 0000000000000..b35a92b0db67a --- /dev/null +++ b/metadata-ingestion/tests/integration/boomi/fixtures/folder_query.json @@ -0,0 +1,51 @@ +{ + "@type": "QueryResult", + "result": [ + { + "@type": "Folder", + "id": "Rjo4OTQzMzg4", + "name": "Test Account", + "fullPath": "Test Account", + "deleted": false, + "parentId": "", + "parentName": "" + }, + { + "@type": "Folder", + "id": "Rjo4OTQzMzg5", + "name": "Process Library", + "fullPath": "Test Account/Process Library", + "deleted": false, + "parentId": "Rjo4OTQzMzg4", + "parentName": "Test Account" + }, + { + "@type": "Folder", + "id": "Rjo4OTQzNDEw", + "name": "DataHub Test", + "fullPath": "Test Account/DataHub Test", + "deleted": false, + "parentId": "Rjo4OTQzMzg4", + "parentName": "Test Account" + }, + { + "@type": "Folder", + "id": "Rjo4OTQzNDEx", + "name": "Orders", + "fullPath": "Test Account/DataHub Test/Orders", + "deleted": false, + "parentId": "Rjo4OTQzNDEw", + "parentName": "DataHub Test" + }, + { + "@type": "Folder", + "id": "Rjo4OTQzNDEy", + "name": "Shared", + "fullPath": "Test Account/DataHub Test/Shared", + "deleted": false, + "parentId": "Rjo4OTQzNDEw", + "parentName": "DataHub Test" + } + ], + "numberOfResults": 5 +} diff --git a/metadata-ingestion/tests/integration/boomi/golden/boomi_mces_golden.json b/metadata-ingestion/tests/integration/boomi/golden/boomi_mces_golden.json index 46fcc1634480a..a01664be227a5 100644 --- a/metadata-ingestion/tests/integration/boomi/golden/boomi_mces_golden.json +++ b/metadata-ingestion/tests/integration/boomi/golden/boomi_mces_golden.json @@ -1,7 +1,7 @@ [ { "entityType": "container", - "entityUrn": "urn:li:container:f506f8da02e731bf781590d53f901321", + "entityUrn": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414", "changeType": "UPSERT", "aspectName": "containerProperties", "aspect": { @@ -9,22 +9,22 @@ "customProperties": { "platform": "boomi", "env": "PROD", - "folder_id": "F0" + "folder_id": "Rjo4OTQzMzg4" }, - "name": "Acme", - "qualifiedName": "Acme", + "name": "Test Account", + "qualifiedName": "Test Account", "env": "PROD" } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { "entityType": "container", - "entityUrn": "urn:li:container:f506f8da02e731bf781590d53f901321", + "entityUrn": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414", "changeType": "UPSERT", "aspectName": "dataPlatformInstance", "aspect": { @@ -33,32 +33,31 @@ } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { - "entityType": "container", - "entityUrn": "urn:li:container:f506f8da02e731bf781590d53f901321", + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,72a4e14f-b0aa-45c1-850c-5306d99b5855,PROD),process)", "changeType": "UPSERT", - "aspectName": "subTypes", + "aspectName": "dataJobInputOutput", "aspect": { "json": { - "typeNames": [ - "Folder" - ] + "inputDatasets": [], + "outputDatasets": [] } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { "entityType": "container", - "entityUrn": "urn:li:container:f506f8da02e731bf781590d53f901321", + "entityUrn": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414", "changeType": "UPSERT", "aspectName": "browsePathsV2", "aspect": { @@ -67,108 +66,120 @@ } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { "entityType": "container", - "entityUrn": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4", + "entityUrn": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414", "changeType": "UPSERT", - "aspectName": "containerProperties", + "aspectName": "subTypes", "aspect": { "json": { - "customProperties": { - "platform": "boomi", - "env": "PROD", - "folder_id": "F1" - }, - "name": "Production", - "qualifiedName": "Acme/Production", - "env": "PROD" + "typeNames": [ + "Folder" + ] } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { - "entityType": "container", - "entityUrn": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4", + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,72a4e14f-b0aa-45c1-850c-5306d99b5855,PROD),process)", "changeType": "UPSERT", - "aspectName": "dataPlatformInstance", + "aspectName": "ownership", "aspect": { "json": { - "platform": "urn:li:dataPlatform:boomi" + "owners": [ + { + "owner": "urn:li:corpuser:svc@example.com", + "type": "DATAOWNER" + } + ], + "ownerTypes": {}, + "lastModified": { + "time": 0, + "actor": "urn:li:corpuser:unknown" + } } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { - "entityType": "container", - "entityUrn": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4", + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,72a4e14f-b0aa-45c1-850c-5306d99b5855,PROD),process)", "changeType": "UPSERT", - "aspectName": "container", + "aspectName": "dataJobInfo", "aspect": { "json": { - "container": "urn:li:container:f506f8da02e731bf781590d53f901321" + "customProperties": {}, + "name": "DH Test - SFTP Pickup", + "description": "SFTP read from test.rebex.net, written to disk (v2)", + "type": { + "string": "COMMAND" + }, + "flowUrn": "urn:li:dataFlow:(boomi,72a4e14f-b0aa-45c1-850c-5306d99b5855,PROD)", + "env": "PROD" } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { - "entityType": "container", - "entityUrn": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4", + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,72a4e14f-b0aa-45c1-850c-5306d99b5855,PROD),process)", "changeType": "UPSERT", - "aspectName": "subTypes", + "aspectName": "status", "aspect": { "json": { - "typeNames": [ - "Folder" - ] + "removed": false } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { "entityType": "container", - "entityUrn": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4", + "entityUrn": "urn:li:container:6af67e78c1036f9b2f79a0825b148f78", "changeType": "UPSERT", - "aspectName": "browsePathsV2", + "aspectName": "containerProperties", "aspect": { "json": { - "path": [ - { - "id": "urn:li:container:f506f8da02e731bf781590d53f901321", - "urn": "urn:li:container:f506f8da02e731bf781590d53f901321" - } - ] + "customProperties": { + "platform": "boomi", + "env": "PROD", + "folder_id": "Rjo4OTQzMzg5" + }, + "name": "Process Library", + "qualifiedName": "Test Account/Process Library", + "env": "PROD" } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { "entityType": "container", - "entityUrn": "urn:li:container:5509f8b7de9ff036b2eed973b2f8bfb8", + "entityUrn": "urn:li:container:c20e3a47171bcc23c6aef761d34646f1", "changeType": "UPSERT", "aspectName": "containerProperties", "aspect": { @@ -176,22 +187,22 @@ "customProperties": { "platform": "boomi", "env": "PROD", - "folder_id": "F2" + "folder_id": "Rjo4OTQzNDEw" }, - "name": "Orders", - "qualifiedName": "Acme/Production/Orders", + "name": "DataHub Test", + "qualifiedName": "Test Account/DataHub Test", "env": "PROD" } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { "entityType": "container", - "entityUrn": "urn:li:container:5509f8b7de9ff036b2eed973b2f8bfb8", + "entityUrn": "urn:li:container:c20e3a47171bcc23c6aef761d34646f1", "changeType": "UPSERT", "aspectName": "dataPlatformInstance", "aspect": { @@ -200,448 +211,394 @@ } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { "entityType": "container", - "entityUrn": "urn:li:container:5509f8b7de9ff036b2eed973b2f8bfb8", + "entityUrn": "urn:li:container:6af67e78c1036f9b2f79a0825b148f78", "changeType": "UPSERT", - "aspectName": "container", + "aspectName": "dataPlatformInstance", "aspect": { "json": { - "container": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4" + "platform": "urn:li:dataPlatform:boomi" } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { "entityType": "container", - "entityUrn": "urn:li:container:5509f8b7de9ff036b2eed973b2f8bfb8", + "entityUrn": "urn:li:container:c20e3a47171bcc23c6aef761d34646f1", "changeType": "UPSERT", - "aspectName": "subTypes", + "aspectName": "container", "aspect": { "json": { - "typeNames": [ - "Folder" - ] + "container": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414" } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { "entityType": "container", - "entityUrn": "urn:li:container:5509f8b7de9ff036b2eed973b2f8bfb8", + "entityUrn": "urn:li:container:c20e3a47171bcc23c6aef761d34646f1", "changeType": "UPSERT", "aspectName": "browsePathsV2", "aspect": { "json": { "path": [ { - "id": "urn:li:container:f506f8da02e731bf781590d53f901321", - "urn": "urn:li:container:f506f8da02e731bf781590d53f901321" - }, - { - "id": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4", - "urn": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4" + "id": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414", + "urn": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414" } ] } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { - "entityType": "container", - "entityUrn": "urn:li:container:24281d154ab11b302c53e5adcedfbced", + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,72a4e14f-b0aa-45c1-850c-5306d99b5855,PROD),process)", "changeType": "UPSERT", - "aspectName": "containerProperties", + "aspectName": "subTypes", "aspect": { "json": { - "customProperties": { - "platform": "boomi", - "env": "PROD", - "folder_id": "F3" - }, - "name": "Finance", - "qualifiedName": "Acme/Production/Finance", - "env": "PROD" + "typeNames": [ + "Process" + ] } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { "entityType": "container", - "entityUrn": "urn:li:container:24281d154ab11b302c53e5adcedfbced", + "entityUrn": "urn:li:container:c20e3a47171bcc23c6aef761d34646f1", "changeType": "UPSERT", - "aspectName": "dataPlatformInstance", + "aspectName": "subTypes", "aspect": { "json": { - "platform": "urn:li:dataPlatform:boomi" + "typeNames": [ + "Folder" + ] } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { "entityType": "container", - "entityUrn": "urn:li:container:24281d154ab11b302c53e5adcedfbced", + "entityUrn": "urn:li:container:6af67e78c1036f9b2f79a0825b148f78", "changeType": "UPSERT", "aspectName": "container", "aspect": { "json": { - "container": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4" + "container": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414" } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { "entityType": "container", - "entityUrn": "urn:li:container:24281d154ab11b302c53e5adcedfbced", + "entityUrn": "urn:li:container:6af67e78c1036f9b2f79a0825b148f78", "changeType": "UPSERT", - "aspectName": "subTypes", + "aspectName": "browsePathsV2", "aspect": { "json": { - "typeNames": [ - "Folder" + "path": [ + { + "id": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414", + "urn": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414" + } ] } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { - "entityType": "container", - "entityUrn": "urn:li:container:24281d154ab11b302c53e5adcedfbced", + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,72a4e14f-b0aa-45c1-850c-5306d99b5855,PROD),process)", "changeType": "UPSERT", - "aspectName": "browsePathsV2", + "aspectName": "dataPlatformInstance", "aspect": { "json": { - "path": [ - { - "id": "urn:li:container:f506f8da02e731bf781590d53f901321", - "urn": "urn:li:container:f506f8da02e731bf781590d53f901321" - }, - { - "id": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4", - "urn": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4" - } - ] + "platform": "urn:li:dataPlatform:boomi" } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { - "entityType": "dataFlow", - "entityUrn": "urn:li:dataFlow:(boomi,p-customer-upsert,PROD)", + "entityType": "container", + "entityUrn": "urn:li:container:91226d458a2c5e85aab044d172c36b76", "changeType": "UPSERT", - "aspectName": "dataPlatformInstance", + "aspectName": "containerProperties", "aspect": { "json": { - "platform": "urn:li:dataPlatform:boomi" + "customProperties": { + "platform": "boomi", + "env": "PROD", + "folder_id": "Rjo4OTQzNDEx" + }, + "name": "Orders", + "qualifiedName": "Test Account/DataHub Test/Orders", + "env": "PROD" } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { - "entityType": "dataFlow", - "entityUrn": "urn:li:dataFlow:(boomi,p-customer-upsert,PROD)", + "entityType": "container", + "entityUrn": "urn:li:container:91226d458a2c5e85aab044d172c36b76", "changeType": "UPSERT", - "aspectName": "dataFlowInfo", + "aspectName": "dataPlatformInstance", "aspect": { "json": { - "customProperties": { - "componentId": "p-customer-upsert", - "version": "4", - "branchName": "main", - "modifiedDate": "2026-09-20T10:00:00+00:00", - "folderFullPath": "Acme/Production/Orders", - "deployments": "Test=2.0" - }, - "externalUrl": "https://platform.boomi.com/AtomSphere.html#build;accountId=acme-AB1CD2;components=p-customer-upsert", - "name": "Customer Upsert", - "created": { - "time": 1768465800000 - }, - "lastModified": { - "time": 1789898400000 - }, - "env": "PROD" + "platform": "urn:li:dataPlatform:boomi" } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { - "entityType": "dataFlow", - "entityUrn": "urn:li:dataFlow:(boomi,p-customer-upsert,PROD)", + "entityType": "container", + "entityUrn": "urn:li:container:6af67e78c1036f9b2f79a0825b148f78", "changeType": "UPSERT", "aspectName": "subTypes", "aspect": { "json": { "typeNames": [ - "Process" + "Folder" ] } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { - "entityType": "dataFlow", - "entityUrn": "urn:li:dataFlow:(boomi,p-customer-upsert,PROD)", + "entityType": "container", + "entityUrn": "urn:li:container:91226d458a2c5e85aab044d172c36b76", "changeType": "UPSERT", - "aspectName": "ownership", + "aspectName": "container", "aspect": { "json": { - "owners": [ - { - "owner": "urn:li:corpuser:svc@example.com", - "type": "DATAOWNER" - }, - { - "owner": "urn:li:corpuser:ops@example.com", - "type": "TECHNICAL_OWNER" - } - ], - "ownerTypes": {}, - "lastModified": { - "time": 0, - "actor": "urn:li:corpuser:unknown" - } + "container": "urn:li:container:c20e3a47171bcc23c6aef761d34646f1" } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { - "entityType": "dataFlow", - "entityUrn": "urn:li:dataFlow:(boomi,p-customer-upsert,PROD)", + "entityType": "container", + "entityUrn": "urn:li:container:91226d458a2c5e85aab044d172c36b76", "changeType": "UPSERT", - "aspectName": "container", + "aspectName": "browsePathsV2", "aspect": { "json": { - "container": "urn:li:container:5509f8b7de9ff036b2eed973b2f8bfb8" + "path": [ + { + "id": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414", + "urn": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414" + }, + { + "id": "urn:li:container:c20e3a47171bcc23c6aef761d34646f1", + "urn": "urn:li:container:c20e3a47171bcc23c6aef761d34646f1" + } + ] } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { - "entityType": "dataFlow", - "entityUrn": "urn:li:dataFlow:(boomi,p-customer-upsert,PROD)", + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,72a4e14f-b0aa-45c1-850c-5306d99b5855,PROD),process)", "changeType": "UPSERT", "aspectName": "browsePathsV2", "aspect": { "json": { "path": [ { - "id": "urn:li:container:f506f8da02e731bf781590d53f901321", - "urn": "urn:li:container:f506f8da02e731bf781590d53f901321" + "id": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414", + "urn": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414" }, { - "id": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4", - "urn": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4" + "id": "urn:li:container:c20e3a47171bcc23c6aef761d34646f1", + "urn": "urn:li:container:c20e3a47171bcc23c6aef761d34646f1" }, { - "id": "urn:li:container:5509f8b7de9ff036b2eed973b2f8bfb8", - "urn": "urn:li:container:5509f8b7de9ff036b2eed973b2f8bfb8" + "id": "urn:li:container:91226d458a2c5e85aab044d172c36b76", + "urn": "urn:li:container:91226d458a2c5e85aab044d172c36b76" + }, + { + "id": "urn:li:dataFlow:(boomi,72a4e14f-b0aa-45c1-850c-5306d99b5855,PROD)", + "urn": "urn:li:dataFlow:(boomi,72a4e14f-b0aa-45c1-850c-5306d99b5855,PROD)" } ] } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { - "entityType": "dataJob", - "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-customer-upsert,PROD),process)", + "entityType": "container", + "entityUrn": "urn:li:container:91226d458a2c5e85aab044d172c36b76", "changeType": "UPSERT", - "aspectName": "dataJobInputOutput", + "aspectName": "subTypes", "aspect": { "json": { - "inputDatasets": [], - "outputDatasets": [] + "typeNames": [ + "Folder" + ] } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { - "entityType": "dataJob", - "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-customer-upsert,PROD),process)", + "entityType": "container", + "entityUrn": "urn:li:container:6af67e78c1036f9b2f79a0825b148f78", "changeType": "UPSERT", - "aspectName": "dataPlatformInstance", + "aspectName": "status", "aspect": { "json": { - "platform": "urn:li:dataPlatform:boomi" + "removed": false } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { - "entityType": "dataJob", - "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-customer-upsert,PROD),process)", + "entityType": "container", + "entityUrn": "urn:li:container:9881e623531b9b977c19dbed664d7e59", "changeType": "UPSERT", - "aspectName": "dataJobInfo", + "aspectName": "containerProperties", "aspect": { "json": { - "customProperties": {}, - "name": "Customer Upsert", - "type": { - "string": "COMMAND" + "customProperties": { + "platform": "boomi", + "env": "PROD", + "folder_id": "Rjo4OTQzNDEy" }, - "flowUrn": "urn:li:dataFlow:(boomi,p-customer-upsert,PROD)", + "name": "Shared", + "qualifiedName": "Test Account/DataHub Test/Shared", "env": "PROD" } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { - "entityType": "dataJob", - "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-customer-upsert,PROD),process)", + "entityType": "container", + "entityUrn": "urn:li:container:9881e623531b9b977c19dbed664d7e59", "changeType": "UPSERT", - "aspectName": "subTypes", + "aspectName": "status", "aspect": { "json": { - "typeNames": [ - "Process" - ] + "removed": false } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { - "entityType": "dataJob", - "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-customer-upsert,PROD),process)", + "entityType": "container", + "entityUrn": "urn:li:container:9881e623531b9b977c19dbed664d7e59", "changeType": "UPSERT", - "aspectName": "ownership", + "aspectName": "subTypes", "aspect": { "json": { - "owners": [ - { - "owner": "urn:li:corpuser:svc@example.com", - "type": "DATAOWNER" - }, - { - "owner": "urn:li:corpuser:ops@example.com", - "type": "TECHNICAL_OWNER" - } - ], - "ownerTypes": {}, - "lastModified": { - "time": 0, - "actor": "urn:li:corpuser:unknown" - } + "typeNames": [ + "Folder" + ] } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { - "entityType": "dataJob", - "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-customer-upsert,PROD),process)", + "entityType": "container", + "entityUrn": "urn:li:container:9881e623531b9b977c19dbed664d7e59", "changeType": "UPSERT", - "aspectName": "browsePathsV2", + "aspectName": "container", "aspect": { "json": { - "path": [ - { - "id": "urn:li:container:f506f8da02e731bf781590d53f901321", - "urn": "urn:li:container:f506f8da02e731bf781590d53f901321" - }, - { - "id": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4", - "urn": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4" - }, - { - "id": "urn:li:container:5509f8b7de9ff036b2eed973b2f8bfb8", - "urn": "urn:li:container:5509f8b7de9ff036b2eed973b2f8bfb8" - }, - { - "id": "urn:li:dataFlow:(boomi,p-customer-upsert,PROD)", - "urn": "urn:li:dataFlow:(boomi,p-customer-upsert,PROD)" - } - ] + "container": "urn:li:container:c20e3a47171bcc23c6aef761d34646f1" } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { - "entityType": "dataFlow", - "entityUrn": "urn:li:dataFlow:(boomi,p-invoice-export,PROD)", + "entityType": "container", + "entityUrn": "urn:li:container:9881e623531b9b977c19dbed664d7e59", "changeType": "UPSERT", "aspectName": "dataPlatformInstance", "aspect": { @@ -650,65 +607,72 @@ } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { - "entityType": "dataFlow", - "entityUrn": "urn:li:dataFlow:(boomi,p-invoice-export,PROD)", + "entityType": "container", + "entityUrn": "urn:li:container:9881e623531b9b977c19dbed664d7e59", "changeType": "UPSERT", - "aspectName": "dataFlowInfo", + "aspectName": "browsePathsV2", "aspect": { "json": { - "customProperties": { - "componentId": "p-invoice-export", - "version": "3", - "branchName": "main", - "modifiedDate": "2026-09-01T10:00:00+00:00", - "folderFullPath": "Acme/Production/Finance", - "deployments": "Production=1.2" - }, - "externalUrl": "https://platform.boomi.com/AtomSphere.html#build;accountId=acme-AB1CD2;components=p-invoice-export", - "name": "Invoice Export", - "description": "Exports posted invoices to the finance warehouse.", - "created": { - "time": 1768465800000 - }, - "lastModified": { - "time": 1788256800000 - }, - "env": "PROD" - } - }, + "path": [ + { + "id": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414", + "urn": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414" + }, + { + "id": "urn:li:container:c20e3a47171bcc23c6aef761d34646f1", + "urn": "urn:li:container:c20e3a47171bcc23c6aef761d34646f1" + } + ] + } + }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { "entityType": "dataFlow", - "entityUrn": "urn:li:dataFlow:(boomi,p-invoice-export,PROD)", + "entityUrn": "urn:li:dataFlow:(boomi,e1b56fb6-0dae-4c33-9a9d-e5af9b8aedbc,PROD)", "changeType": "UPSERT", - "aspectName": "subTypes", + "aspectName": "dataFlowInfo", "aspect": { "json": { - "typeNames": [ - "Process" - ] + "customProperties": { + "componentId": "e1b56fb6-0dae-4c33-9a9d-e5af9b8aedbc", + "version": "1", + "branchName": "main", + "modifiedDate": "2026-11-02T19:17:12+00:00", + "folderFullPath": "Test Account/DataHub Test/Orders", + "deployments": "DH Test Env=1.0" + }, + "externalUrl": "https://platform.boomi.com/AtomSphere.html#build;accountId=acme-AB1CD2;components=e1b56fb6-0dae-4c33-9a9d-e5af9b8aedbc", + "name": "DH Test - Orders Extract", + "description": "Legacy DB read from RNAcentral, written to disk", + "created": { + "time": 1793647032000 + }, + "lastModified": { + "time": 1793647032000 + }, + "env": "PROD" } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { "entityType": "dataFlow", - "entityUrn": "urn:li:dataFlow:(boomi,p-invoice-export,PROD)", + "entityUrn": "urn:li:dataFlow:(boomi,e1b56fb6-0dae-4c33-9a9d-e5af9b8aedbc,PROD)", "changeType": "UPSERT", "aspectName": "ownership", "aspect": { @@ -727,115 +691,137 @@ } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { - "entityType": "dataFlow", - "entityUrn": "urn:li:dataFlow:(boomi,p-invoice-export,PROD)", + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,161c2360-f2fb-4e20-aba5-db60101ce2b1,PROD),process)", "changeType": "UPSERT", - "aspectName": "container", + "aspectName": "dataJobInputOutput", + "aspect": { + "json": { + "inputDatasets": [], + "outputDatasets": [] + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,161c2360-f2fb-4e20-aba5-db60101ce2b1,PROD),process)", + "changeType": "UPSERT", + "aspectName": "dataPlatformInstance", "aspect": { "json": { - "container": "urn:li:container:24281d154ab11b302c53e5adcedfbced" + "platform": "urn:li:dataPlatform:boomi" } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { "entityType": "dataFlow", - "entityUrn": "urn:li:dataFlow:(boomi,p-invoice-export,PROD)", + "entityUrn": "urn:li:dataFlow:(boomi,e1b56fb6-0dae-4c33-9a9d-e5af9b8aedbc,PROD)", "changeType": "UPSERT", - "aspectName": "browsePathsV2", + "aspectName": "status", "aspect": { "json": { - "path": [ - { - "id": "urn:li:container:f506f8da02e731bf781590d53f901321", - "urn": "urn:li:container:f506f8da02e731bf781590d53f901321" - }, - { - "id": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4", - "urn": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4" - }, - { - "id": "urn:li:container:24281d154ab11b302c53e5adcedfbced", - "urn": "urn:li:container:24281d154ab11b302c53e5adcedfbced" - } - ] + "removed": false } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { "entityType": "dataJob", - "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-invoice-export,PROD),process)", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,161c2360-f2fb-4e20-aba5-db60101ce2b1,PROD),process)", "changeType": "UPSERT", - "aspectName": "dataJobInputOutput", + "aspectName": "dataJobInfo", "aspect": { "json": { - "inputDatasets": [], - "outputDatasets": [] + "customProperties": {}, + "name": "DH Test - Posts Fetch", + "description": "HTTP GET posts then call Orders Extract", + "type": { + "string": "COMMAND" + }, + "flowUrn": "urn:li:dataFlow:(boomi,161c2360-f2fb-4e20-aba5-db60101ce2b1,PROD)", + "env": "PROD" } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { "entityType": "dataJob", - "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-invoice-export,PROD),process)", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,161c2360-f2fb-4e20-aba5-db60101ce2b1,PROD),process)", "changeType": "UPSERT", - "aspectName": "dataPlatformInstance", + "aspectName": "subTypes", "aspect": { "json": { - "platform": "urn:li:dataPlatform:boomi" + "typeNames": [ + "Process" + ] } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { "entityType": "dataJob", - "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-invoice-export,PROD),process)", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,161c2360-f2fb-4e20-aba5-db60101ce2b1,PROD),process)", "changeType": "UPSERT", - "aspectName": "dataJobInfo", + "aspectName": "browsePathsV2", "aspect": { "json": { - "customProperties": {}, - "name": "Invoice Export", - "description": "Exports posted invoices to the finance warehouse.", - "type": { - "string": "COMMAND" - }, - "flowUrn": "urn:li:dataFlow:(boomi,p-invoice-export,PROD)", - "env": "PROD" + "path": [ + { + "id": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414", + "urn": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414" + }, + { + "id": "urn:li:container:c20e3a47171bcc23c6aef761d34646f1", + "urn": "urn:li:container:c20e3a47171bcc23c6aef761d34646f1" + }, + { + "id": "urn:li:container:91226d458a2c5e85aab044d172c36b76", + "urn": "urn:li:container:91226d458a2c5e85aab044d172c36b76" + }, + { + "id": "urn:li:dataFlow:(boomi,161c2360-f2fb-4e20-aba5-db60101ce2b1,PROD)", + "urn": "urn:li:dataFlow:(boomi,161c2360-f2fb-4e20-aba5-db60101ce2b1,PROD)" + } + ] } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { - "entityType": "dataJob", - "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-invoice-export,PROD),process)", + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,e1b56fb6-0dae-4c33-9a9d-e5af9b8aedbc,PROD)", "changeType": "UPSERT", "aspectName": "subTypes", "aspect": { @@ -846,14 +832,30 @@ } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,e1b56fb6-0dae-4c33-9a9d-e5af9b8aedbc,PROD)", + "changeType": "UPSERT", + "aspectName": "container", + "aspect": { + "json": { + "container": "urn:li:container:91226d458a2c5e85aab044d172c36b76" + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { "entityType": "dataJob", - "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-invoice-export,PROD),process)", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,161c2360-f2fb-4e20-aba5-db60101ce2b1,PROD),process)", "changeType": "UPSERT", "aspectName": "ownership", "aspect": { @@ -872,47 +874,30 @@ } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { - "entityType": "dataJob", - "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-invoice-export,PROD),process)", + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,161c2360-f2fb-4e20-aba5-db60101ce2b1,PROD)", "changeType": "UPSERT", - "aspectName": "browsePathsV2", + "aspectName": "dataPlatformInstance", "aspect": { "json": { - "path": [ - { - "id": "urn:li:container:f506f8da02e731bf781590d53f901321", - "urn": "urn:li:container:f506f8da02e731bf781590d53f901321" - }, - { - "id": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4", - "urn": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4" - }, - { - "id": "urn:li:container:24281d154ab11b302c53e5adcedfbced", - "urn": "urn:li:container:24281d154ab11b302c53e5adcedfbced" - }, - { - "id": "urn:li:dataFlow:(boomi,p-invoice-export,PROD)", - "urn": "urn:li:dataFlow:(boomi,p-invoice-export,PROD)" - } - ] + "platform": "urn:li:dataPlatform:boomi" } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { "entityType": "dataFlow", - "entityUrn": "urn:li:dataFlow:(boomi,p-orders-sync,PROD)", + "entityUrn": "urn:li:dataFlow:(boomi,e1b56fb6-0dae-4c33-9a9d-e5af9b8aedbc,PROD)", "changeType": "UPSERT", "aspectName": "dataPlatformInstance", "aspect": { @@ -921,47 +906,47 @@ } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { "entityType": "dataFlow", - "entityUrn": "urn:li:dataFlow:(boomi,p-orders-sync,PROD)", + "entityUrn": "urn:li:dataFlow:(boomi,161c2360-f2fb-4e20-aba5-db60101ce2b1,PROD)", "changeType": "UPSERT", "aspectName": "dataFlowInfo", "aspect": { "json": { "customProperties": { - "componentId": "p-orders-sync", - "version": "7", + "componentId": "161c2360-f2fb-4e20-aba5-db60101ce2b1", + "version": "2", "branchName": "main", - "modifiedDate": "2026-09-01T10:00:00+00:00", - "folderFullPath": "Acme/Production/Orders", - "deployments": "Production=3.0, Test=4.0" + "modifiedDate": "2026-11-02T19:22:16+00:00", + "folderFullPath": "Test Account/DataHub Test/Orders", + "deployments": "DH Test Prod Env=1.1" }, - "externalUrl": "https://platform.boomi.com/AtomSphere.html#build;accountId=acme-AB1CD2;components=p-orders-sync", - "name": "Orders Sync", - "description": "Copies new orders from the web shop into the ERP.", + "externalUrl": "https://platform.boomi.com/AtomSphere.html#build;accountId=acme-AB1CD2;components=161c2360-f2fb-4e20-aba5-db60101ce2b1", + "name": "DH Test - Posts Fetch", + "description": "HTTP GET posts then call Orders Extract", "created": { - "time": 1768465800000 + "time": 1793647048000 }, "lastModified": { - "time": 1788256800000 + "time": 1793647336000 }, "env": "PROD" } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { "entityType": "dataFlow", - "entityUrn": "urn:li:dataFlow:(boomi,p-orders-sync,PROD)", + "entityUrn": "urn:li:dataFlow:(boomi,161c2360-f2fb-4e20-aba5-db60101ce2b1,PROD)", "changeType": "UPSERT", "aspectName": "subTypes", "aspect": { @@ -972,163 +957,131 @@ } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { "entityType": "dataFlow", - "entityUrn": "urn:li:dataFlow:(boomi,p-orders-sync,PROD)", + "entityUrn": "urn:li:dataFlow:(boomi,e1b56fb6-0dae-4c33-9a9d-e5af9b8aedbc,PROD)", "changeType": "UPSERT", - "aspectName": "ownership", + "aspectName": "browsePathsV2", "aspect": { "json": { - "owners": [ + "path": [ { - "owner": "urn:li:corpuser:svc@example.com", - "type": "DATAOWNER" + "id": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414", + "urn": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414" }, { - "owner": "urn:li:corpuser:dev@example.com", - "type": "TECHNICAL_OWNER" + "id": "urn:li:container:c20e3a47171bcc23c6aef761d34646f1", + "urn": "urn:li:container:c20e3a47171bcc23c6aef761d34646f1" + }, + { + "id": "urn:li:container:91226d458a2c5e85aab044d172c36b76", + "urn": "urn:li:container:91226d458a2c5e85aab044d172c36b76" } - ], - "ownerTypes": {}, - "lastModified": { - "time": 0, - "actor": "urn:li:corpuser:unknown" - } - } - }, - "systemMetadata": { - "lastObserved": 1790856000000, - "runId": "boomi-test", - "lastRunId": "no-run-id-provided" - } -}, -{ - "entityType": "dataFlow", - "entityUrn": "urn:li:dataFlow:(boomi,p-orders-sync,PROD)", - "changeType": "UPSERT", - "aspectName": "container", - "aspect": { - "json": { - "container": "urn:li:container:5509f8b7de9ff036b2eed973b2f8bfb8" + ] } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { "entityType": "dataFlow", - "entityUrn": "urn:li:dataFlow:(boomi,p-orders-sync,PROD)", + "entityUrn": "urn:li:dataFlow:(boomi,161c2360-f2fb-4e20-aba5-db60101ce2b1,PROD)", "changeType": "UPSERT", "aspectName": "browsePathsV2", "aspect": { "json": { "path": [ { - "id": "urn:li:container:f506f8da02e731bf781590d53f901321", - "urn": "urn:li:container:f506f8da02e731bf781590d53f901321" + "id": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414", + "urn": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414" }, { - "id": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4", - "urn": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4" + "id": "urn:li:container:c20e3a47171bcc23c6aef761d34646f1", + "urn": "urn:li:container:c20e3a47171bcc23c6aef761d34646f1" }, { - "id": "urn:li:container:5509f8b7de9ff036b2eed973b2f8bfb8", - "urn": "urn:li:container:5509f8b7de9ff036b2eed973b2f8bfb8" + "id": "urn:li:container:91226d458a2c5e85aab044d172c36b76", + "urn": "urn:li:container:91226d458a2c5e85aab044d172c36b76" } ] } }, "systemMetadata": { - "lastObserved": 1790856000000, - "runId": "boomi-test", - "lastRunId": "no-run-id-provided" - } -}, -{ - "entityType": "dataJob", - "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-orders-sync,PROD),process)", - "changeType": "UPSERT", - "aspectName": "dataJobInputOutput", - "aspect": { - "json": { - "inputDatasets": [], - "outputDatasets": [] - } - }, - "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { - "entityType": "dataJob", - "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-orders-sync,PROD),process)", + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,161c2360-f2fb-4e20-aba5-db60101ce2b1,PROD)", "changeType": "UPSERT", - "aspectName": "dataPlatformInstance", + "aspectName": "container", "aspect": { "json": { - "platform": "urn:li:dataPlatform:boomi" + "container": "urn:li:container:91226d458a2c5e85aab044d172c36b76" } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { - "entityType": "dataJob", - "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-orders-sync,PROD),process)", + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,161c2360-f2fb-4e20-aba5-db60101ce2b1,PROD)", "changeType": "UPSERT", - "aspectName": "dataJobInfo", + "aspectName": "ownership", "aspect": { "json": { - "customProperties": {}, - "name": "Orders Sync", - "description": "Copies new orders from the web shop into the ERP.", - "type": { - "string": "COMMAND" - }, - "flowUrn": "urn:li:dataFlow:(boomi,p-orders-sync,PROD)", - "env": "PROD" + "owners": [ + { + "owner": "urn:li:corpuser:svc@example.com", + "type": "DATAOWNER" + } + ], + "ownerTypes": {}, + "lastModified": { + "time": 0, + "actor": "urn:li:corpuser:unknown" + } } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { "entityType": "dataJob", - "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-orders-sync,PROD),process)", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,5b1e0c2a-6f0d-4c1e-9a43-000000000001,PROD),process)", "changeType": "UPSERT", - "aspectName": "subTypes", + "aspectName": "dataJobInputOutput", "aspect": { "json": { - "typeNames": [ - "Process" - ] + "inputDatasets": [], + "outputDatasets": [] } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { "entityType": "dataJob", - "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-orders-sync,PROD),process)", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,5b1e0c2a-6f0d-4c1e-9a43-000000000001,PROD),process)", "changeType": "UPSERT", "aspectName": "ownership", "aspect": { @@ -1151,47 +1104,37 @@ } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { "entityType": "dataJob", - "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-orders-sync,PROD),process)", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,5b1e0c2a-6f0d-4c1e-9a43-000000000001,PROD),process)", "changeType": "UPSERT", - "aspectName": "browsePathsV2", + "aspectName": "dataJobInfo", "aspect": { "json": { - "path": [ - { - "id": "urn:li:container:f506f8da02e731bf781590d53f901321", - "urn": "urn:li:container:f506f8da02e731bf781590d53f901321" - }, - { - "id": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4", - "urn": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4" - }, - { - "id": "urn:li:container:5509f8b7de9ff036b2eed973b2f8bfb8", - "urn": "urn:li:container:5509f8b7de9ff036b2eed973b2f8bfb8" - }, - { - "id": "urn:li:dataFlow:(boomi,p-orders-sync,PROD)", - "urn": "urn:li:dataFlow:(boomi,p-orders-sync,PROD)" - } - ] + "customProperties": {}, + "name": "DH Test - Invoice Export", + "description": "Exports posted invoices to the finance warehouse.", + "type": { + "string": "COMMAND" + }, + "flowUrn": "urn:li:dataFlow:(boomi,5b1e0c2a-6f0d-4c1e-9a43-000000000001,PROD)", + "env": "PROD" } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { - "entityType": "container", - "entityUrn": "urn:li:container:0b7cd95c67fb8c1e7a02772e441a7ab4", + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,5b1e0c2a-6f0d-4c1e-9a43-000000000001,PROD),process)", "changeType": "UPSERT", "aspectName": "status", "aspect": { @@ -1200,110 +1143,1478 @@ } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { - "entityType": "container", - "entityUrn": "urn:li:container:24281d154ab11b302c53e5adcedfbced", + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,5b1e0c2a-6f0d-4c1e-9a43-000000000001,PROD)", "changeType": "UPSERT", - "aspectName": "status", + "aspectName": "dataPlatformInstance", "aspect": { "json": { - "removed": false + "platform": "urn:li:dataPlatform:boomi" } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { - "entityType": "container", - "entityUrn": "urn:li:container:5509f8b7de9ff036b2eed973b2f8bfb8", + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,5b1e0c2a-6f0d-4c1e-9a43-000000000001,PROD),process)", "changeType": "UPSERT", - "aspectName": "status", + "aspectName": "subTypes", "aspect": { "json": { - "removed": false + "typeNames": [ + "Process" + ] } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { - "entityType": "container", - "entityUrn": "urn:li:container:f506f8da02e731bf781590d53f901321", + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,5b1e0c2a-6f0d-4c1e-9a43-000000000001,PROD)", "changeType": "UPSERT", - "aspectName": "status", + "aspectName": "dataFlowInfo", "aspect": { "json": { - "removed": false + "customProperties": { + "componentId": "5b1e0c2a-6f0d-4c1e-9a43-000000000001", + "version": "3", + "branchName": "main", + "modifiedDate": "2026-11-02T19:30:00+00:00", + "folderFullPath": "Test Account/DataHub Test/Orders", + "deployments": "DH Test Prod Env=2.0" + }, + "externalUrl": "https://platform.boomi.com/AtomSphere.html#build;accountId=acme-AB1CD2;components=5b1e0c2a-6f0d-4c1e-9a43-000000000001", + "name": "DH Test - Invoice Export", + "description": "Exports posted invoices to the finance warehouse.", + "created": { + "time": 1793647032000 + }, + "lastModified": { + "time": 1793647800000 + }, + "env": "PROD" } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { "entityType": "dataFlow", - "entityUrn": "urn:li:dataFlow:(boomi,p-customer-upsert,PROD)", + "entityUrn": "urn:li:dataFlow:(boomi,5b1e0c2a-6f0d-4c1e-9a43-000000000001,PROD)", "changeType": "UPSERT", - "aspectName": "status", + "aspectName": "subTypes", "aspect": { "json": { - "removed": false + "typeNames": [ + "Process" + ] } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { - "entityType": "dataFlow", - "entityUrn": "urn:li:dataFlow:(boomi,p-invoice-export,PROD)", + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,5b1e0c2a-6f0d-4c1e-9a43-000000000001,PROD),process)", "changeType": "UPSERT", - "aspectName": "status", + "aspectName": "dataPlatformInstance", "aspect": { "json": { - "removed": false + "platform": "urn:li:dataPlatform:boomi" } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { "entityType": "dataFlow", - "entityUrn": "urn:li:dataFlow:(boomi,p-orders-sync,PROD)", + "entityUrn": "urn:li:dataFlow:(boomi,5b1e0c2a-6f0d-4c1e-9a43-000000000001,PROD)", "changeType": "UPSERT", - "aspectName": "status", + "aspectName": "browsePathsV2", "aspect": { "json": { - "removed": false + "path": [ + { + "id": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414", + "urn": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414" + }, + { + "id": "urn:li:container:c20e3a47171bcc23c6aef761d34646f1", + "urn": "urn:li:container:c20e3a47171bcc23c6aef761d34646f1" + }, + { + "id": "urn:li:container:91226d458a2c5e85aab044d172c36b76", + "urn": "urn:li:container:91226d458a2c5e85aab044d172c36b76" + } + ] + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,5b1e0c2a-6f0d-4c1e-9a43-000000000001,PROD)", + "changeType": "UPSERT", + "aspectName": "container", + "aspect": { + "json": { + "container": "urn:li:container:91226d458a2c5e85aab044d172c36b76" + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,5b1e0c2a-6f0d-4c1e-9a43-000000000001,PROD)", + "changeType": "UPSERT", + "aspectName": "ownership", + "aspect": { + "json": { + "owners": [ + { + "owner": "urn:li:corpuser:svc@example.com", + "type": "DATAOWNER" + }, + { + "owner": "urn:li:corpuser:dev@example.com", + "type": "TECHNICAL_OWNER" + } + ], + "ownerTypes": {}, + "lastModified": { + "time": 0, + "actor": "urn:li:corpuser:unknown" + } + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,5b1e0c2a-6f0d-4c1e-9a43-000000000002,PROD)", + "changeType": "UPSERT", + "aspectName": "dataPlatformInstance", + "aspect": { + "json": { + "platform": "urn:li:dataPlatform:boomi" + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,5b1e0c2a-6f0d-4c1e-9a43-000000000002,PROD),process)", + "changeType": "UPSERT", + "aspectName": "dataJobInputOutput", + "aspect": { + "json": { + "inputDatasets": [], + "outputDatasets": [] + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,5b1e0c2a-6f0d-4c1e-9a43-000000000002,PROD),process)", + "changeType": "UPSERT", + "aspectName": "dataPlatformInstance", + "aspect": { + "json": { + "platform": "urn:li:dataPlatform:boomi" + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,5b1e0c2a-6f0d-4c1e-9a43-000000000001,PROD),process)", + "changeType": "UPSERT", + "aspectName": "browsePathsV2", + "aspect": { + "json": { + "path": [ + { + "id": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414", + "urn": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414" + }, + { + "id": "urn:li:container:c20e3a47171bcc23c6aef761d34646f1", + "urn": "urn:li:container:c20e3a47171bcc23c6aef761d34646f1" + }, + { + "id": "urn:li:container:91226d458a2c5e85aab044d172c36b76", + "urn": "urn:li:container:91226d458a2c5e85aab044d172c36b76" + }, + { + "id": "urn:li:dataFlow:(boomi,5b1e0c2a-6f0d-4c1e-9a43-000000000001,PROD)", + "urn": "urn:li:dataFlow:(boomi,5b1e0c2a-6f0d-4c1e-9a43-000000000001,PROD)" + } + ] + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,5b1e0c2a-6f0d-4c1e-9a43-000000000002,PROD),process)", + "changeType": "UPSERT", + "aspectName": "dataJobInfo", + "aspect": { + "json": { + "customProperties": {}, + "name": "DH Test - Shipment Notify", + "type": { + "string": "COMMAND" + }, + "flowUrn": "urn:li:dataFlow:(boomi,5b1e0c2a-6f0d-4c1e-9a43-000000000002,PROD)", + "env": "PROD" + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,5b1e0c2a-6f0d-4c1e-9a43-000000000002,PROD),process)", + "changeType": "UPSERT", + "aspectName": "subTypes", + "aspect": { + "json": { + "typeNames": [ + "Process" + ] + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,5b1e0c2a-6f0d-4c1e-9a43-000000000002,PROD),process)", + "changeType": "UPSERT", + "aspectName": "browsePathsV2", + "aspect": { + "json": { + "path": [ + { + "id": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414", + "urn": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414" + }, + { + "id": "urn:li:container:c20e3a47171bcc23c6aef761d34646f1", + "urn": "urn:li:container:c20e3a47171bcc23c6aef761d34646f1" + }, + { + "id": "urn:li:container:91226d458a2c5e85aab044d172c36b76", + "urn": "urn:li:container:91226d458a2c5e85aab044d172c36b76" + }, + { + "id": "urn:li:dataFlow:(boomi,5b1e0c2a-6f0d-4c1e-9a43-000000000002,PROD)", + "urn": "urn:li:dataFlow:(boomi,5b1e0c2a-6f0d-4c1e-9a43-000000000002,PROD)" + } + ] + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,5b1e0c2a-6f0d-4c1e-9a43-000000000002,PROD)", + "changeType": "UPSERT", + "aspectName": "dataFlowInfo", + "aspect": { + "json": { + "customProperties": { + "componentId": "5b1e0c2a-6f0d-4c1e-9a43-000000000002", + "version": "1", + "branchName": "main", + "modifiedDate": "2026-11-02T19:17:12+00:00", + "folderFullPath": "Test Account/DataHub Test/Orders" + }, + "externalUrl": "https://platform.boomi.com/AtomSphere.html#build;accountId=acme-AB1CD2;components=5b1e0c2a-6f0d-4c1e-9a43-000000000002", + "name": "DH Test - Shipment Notify", + "created": { + "time": 1793647032000 + }, + "lastModified": { + "time": 1793647032000 + }, + "env": "PROD" + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,5b1e0c2a-6f0d-4c1e-9a43-000000000002,PROD)", + "changeType": "UPSERT", + "aspectName": "subTypes", + "aspect": { + "json": { + "typeNames": [ + "Process" + ] + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,5b1e0c2a-6f0d-4c1e-9a43-000000000002,PROD),process)", + "changeType": "UPSERT", + "aspectName": "ownership", + "aspect": { + "json": { + "owners": [ + { + "owner": "urn:li:corpuser:svc@example.com", + "type": "DATAOWNER" + } + ], + "ownerTypes": {}, + "lastModified": { + "time": 0, + "actor": "urn:li:corpuser:unknown" + } + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,6363d3f8-93fa-4c4d-a399-45bde722ee63,PROD)", + "changeType": "UPSERT", + "aspectName": "dataFlowInfo", + "aspect": { + "json": { + "customProperties": { + "componentId": "6363d3f8-93fa-4c4d-a399-45bde722ee63", + "version": "1", + "branchName": "main", + "modifiedDate": "2026-11-02T19:17:13+00:00", + "folderFullPath": "Test Account/DataHub Test/Orders", + "deployments": "DH Test Env=1.1" + }, + "externalUrl": "https://platform.boomi.com/AtomSphere.html#build;accountId=acme-AB1CD2;components=6363d3f8-93fa-4c4d-a399-45bde722ee63", + "name": "DH Test - Catalog Sync", + "description": "Database V2 reads from Ensembl, written to disk", + "created": { + "time": 1793647033000 + }, + "lastModified": { + "time": 1793647033000 + }, + "env": "PROD" + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,5b1e0c2a-6f0d-4c1e-9a43-000000000002,PROD)", + "changeType": "UPSERT", + "aspectName": "browsePathsV2", + "aspect": { + "json": { + "path": [ + { + "id": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414", + "urn": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414" + }, + { + "id": "urn:li:container:c20e3a47171bcc23c6aef761d34646f1", + "urn": "urn:li:container:c20e3a47171bcc23c6aef761d34646f1" + }, + { + "id": "urn:li:container:91226d458a2c5e85aab044d172c36b76", + "urn": "urn:li:container:91226d458a2c5e85aab044d172c36b76" + } + ] + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,5b1e0c2a-6f0d-4c1e-9a43-000000000002,PROD)", + "changeType": "UPSERT", + "aspectName": "container", + "aspect": { + "json": { + "container": "urn:li:container:91226d458a2c5e85aab044d172c36b76" + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,5b1e0c2a-6f0d-4c1e-9a43-000000000002,PROD)", + "changeType": "UPSERT", + "aspectName": "ownership", + "aspect": { + "json": { + "owners": [ + { + "owner": "urn:li:corpuser:svc@example.com", + "type": "DATAOWNER" + } + ], + "ownerTypes": {}, + "lastModified": { + "time": 0, + "actor": "urn:li:corpuser:unknown" + } + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,6363d3f8-93fa-4c4d-a399-45bde722ee63,PROD)", + "changeType": "UPSERT", + "aspectName": "ownership", + "aspect": { + "json": { + "owners": [ + { + "owner": "urn:li:corpuser:svc@example.com", + "type": "DATAOWNER" + } + ], + "ownerTypes": {}, + "lastModified": { + "time": 0, + "actor": "urn:li:corpuser:unknown" + } + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,6363d3f8-93fa-4c4d-a399-45bde722ee63,PROD)", + "changeType": "UPSERT", + "aspectName": "status", + "aspect": { + "json": { + "removed": false + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,6363d3f8-93fa-4c4d-a399-45bde722ee63,PROD)", + "changeType": "UPSERT", + "aspectName": "subTypes", + "aspect": { + "json": { + "typeNames": [ + "Process" + ] + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,6363d3f8-93fa-4c4d-a399-45bde722ee63,PROD)", + "changeType": "UPSERT", + "aspectName": "container", + "aspect": { + "json": { + "container": "urn:li:container:91226d458a2c5e85aab044d172c36b76" + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,6363d3f8-93fa-4c4d-a399-45bde722ee63,PROD)", + "changeType": "UPSERT", + "aspectName": "dataPlatformInstance", + "aspect": { + "json": { + "platform": "urn:li:dataPlatform:boomi" + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,6363d3f8-93fa-4c4d-a399-45bde722ee63,PROD)", + "changeType": "UPSERT", + "aspectName": "browsePathsV2", + "aspect": { + "json": { + "path": [ + { + "id": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414", + "urn": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414" + }, + { + "id": "urn:li:container:c20e3a47171bcc23c6aef761d34646f1", + "urn": "urn:li:container:c20e3a47171bcc23c6aef761d34646f1" + }, + { + "id": "urn:li:container:91226d458a2c5e85aab044d172c36b76", + "urn": "urn:li:container:91226d458a2c5e85aab044d172c36b76" + } + ] + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,f58d0126-87ab-4f1a-bed9-2849688c8e99,PROD)", + "changeType": "UPSERT", + "aspectName": "dataFlowInfo", + "aspect": { + "json": { + "customProperties": { + "componentId": "f58d0126-87ab-4f1a-bed9-2849688c8e99", + "version": "1", + "branchName": "main", + "modifiedDate": "2026-11-02T19:17:15+00:00", + "folderFullPath": "Test Account/DataHub Test/Orders" + }, + "externalUrl": "https://platform.boomi.com/AtomSphere.html#build;accountId=acme-AB1CD2;components=f58d0126-87ab-4f1a-bed9-2849688c8e99", + "name": "DH Test - Salesforce Accounts", + "description": "Never deployed. Salesforce Account query then legacy DB insert into my_table", + "created": { + "time": 1793647035000 + }, + "lastModified": { + "time": 1793647035000 + }, + "env": "PROD" + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,f58d0126-87ab-4f1a-bed9-2849688c8e99,PROD)", + "changeType": "UPSERT", + "aspectName": "ownership", + "aspect": { + "json": { + "owners": [ + { + "owner": "urn:li:corpuser:svc@example.com", + "type": "DATAOWNER" + } + ], + "ownerTypes": {}, + "lastModified": { + "time": 0, + "actor": "urn:li:corpuser:unknown" + } + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,f58d0126-87ab-4f1a-bed9-2849688c8e99,PROD)", + "changeType": "UPSERT", + "aspectName": "status", + "aspect": { + "json": { + "removed": false + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,f58d0126-87ab-4f1a-bed9-2849688c8e99,PROD)", + "changeType": "UPSERT", + "aspectName": "subTypes", + "aspect": { + "json": { + "typeNames": [ + "Process" + ] + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,6363d3f8-93fa-4c4d-a399-45bde722ee63,PROD),process)", + "changeType": "UPSERT", + "aspectName": "dataJobInputOutput", + "aspect": { + "json": { + "inputDatasets": [], + "outputDatasets": [] + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,6363d3f8-93fa-4c4d-a399-45bde722ee63,PROD),process)", + "changeType": "UPSERT", + "aspectName": "dataPlatformInstance", + "aspect": { + "json": { + "platform": "urn:li:dataPlatform:boomi" + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,e1b56fb6-0dae-4c33-9a9d-e5af9b8aedbc,PROD),process)", + "changeType": "UPSERT", + "aspectName": "dataJobInputOutput", + "aspect": { + "json": { + "inputDatasets": [], + "outputDatasets": [] + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,e1b56fb6-0dae-4c33-9a9d-e5af9b8aedbc,PROD),process)", + "changeType": "UPSERT", + "aspectName": "dataPlatformInstance", + "aspect": { + "json": { + "platform": "urn:li:dataPlatform:boomi" + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,f58d0126-87ab-4f1a-bed9-2849688c8e99,PROD)", + "changeType": "UPSERT", + "aspectName": "container", + "aspect": { + "json": { + "container": "urn:li:container:91226d458a2c5e85aab044d172c36b76" + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,e1b56fb6-0dae-4c33-9a9d-e5af9b8aedbc,PROD),process)", + "changeType": "UPSERT", + "aspectName": "dataJobInfo", + "aspect": { + "json": { + "customProperties": {}, + "name": "DH Test - Orders Extract", + "description": "Legacy DB read from RNAcentral, written to disk", + "type": { + "string": "COMMAND" + }, + "flowUrn": "urn:li:dataFlow:(boomi,e1b56fb6-0dae-4c33-9a9d-e5af9b8aedbc,PROD)", + "env": "PROD" + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,e1b56fb6-0dae-4c33-9a9d-e5af9b8aedbc,PROD),process)", + "changeType": "UPSERT", + "aspectName": "subTypes", + "aspect": { + "json": { + "typeNames": [ + "Process" + ] + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,e1b56fb6-0dae-4c33-9a9d-e5af9b8aedbc,PROD),process)", + "changeType": "UPSERT", + "aspectName": "browsePathsV2", + "aspect": { + "json": { + "path": [ + { + "id": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414", + "urn": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414" + }, + { + "id": "urn:li:container:c20e3a47171bcc23c6aef761d34646f1", + "urn": "urn:li:container:c20e3a47171bcc23c6aef761d34646f1" + }, + { + "id": "urn:li:container:91226d458a2c5e85aab044d172c36b76", + "urn": "urn:li:container:91226d458a2c5e85aab044d172c36b76" + }, + { + "id": "urn:li:dataFlow:(boomi,e1b56fb6-0dae-4c33-9a9d-e5af9b8aedbc,PROD)", + "urn": "urn:li:dataFlow:(boomi,e1b56fb6-0dae-4c33-9a9d-e5af9b8aedbc,PROD)" + } + ] + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,6363d3f8-93fa-4c4d-a399-45bde722ee63,PROD),process)", + "changeType": "UPSERT", + "aspectName": "dataJobInfo", + "aspect": { + "json": { + "customProperties": {}, + "name": "DH Test - Catalog Sync", + "description": "Database V2 reads from Ensembl, written to disk", + "type": { + "string": "COMMAND" + }, + "flowUrn": "urn:li:dataFlow:(boomi,6363d3f8-93fa-4c4d-a399-45bde722ee63,PROD)", + "env": "PROD" + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,6363d3f8-93fa-4c4d-a399-45bde722ee63,PROD),process)", + "changeType": "UPSERT", + "aspectName": "subTypes", + "aspect": { + "json": { + "typeNames": [ + "Process" + ] + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,e1b56fb6-0dae-4c33-9a9d-e5af9b8aedbc,PROD),process)", + "changeType": "UPSERT", + "aspectName": "ownership", + "aspect": { + "json": { + "owners": [ + { + "owner": "urn:li:corpuser:svc@example.com", + "type": "DATAOWNER" + } + ], + "ownerTypes": {}, + "lastModified": { + "time": 0, + "actor": "urn:li:corpuser:unknown" + } + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,6363d3f8-93fa-4c4d-a399-45bde722ee63,PROD),process)", + "changeType": "UPSERT", + "aspectName": "browsePathsV2", + "aspect": { + "json": { + "path": [ + { + "id": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414", + "urn": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414" + }, + { + "id": "urn:li:container:c20e3a47171bcc23c6aef761d34646f1", + "urn": "urn:li:container:c20e3a47171bcc23c6aef761d34646f1" + }, + { + "id": "urn:li:container:91226d458a2c5e85aab044d172c36b76", + "urn": "urn:li:container:91226d458a2c5e85aab044d172c36b76" + }, + { + "id": "urn:li:dataFlow:(boomi,6363d3f8-93fa-4c4d-a399-45bde722ee63,PROD)", + "urn": "urn:li:dataFlow:(boomi,6363d3f8-93fa-4c4d-a399-45bde722ee63,PROD)" + } + ] + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,72a4e14f-b0aa-45c1-850c-5306d99b5855,PROD)", + "changeType": "UPSERT", + "aspectName": "dataPlatformInstance", + "aspect": { + "json": { + "platform": "urn:li:dataPlatform:boomi" + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,f58d0126-87ab-4f1a-bed9-2849688c8e99,PROD)", + "changeType": "UPSERT", + "aspectName": "dataPlatformInstance", + "aspect": { + "json": { + "platform": "urn:li:dataPlatform:boomi" + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,72a4e14f-b0aa-45c1-850c-5306d99b5855,PROD)", + "changeType": "UPSERT", + "aspectName": "dataFlowInfo", + "aspect": { + "json": { + "customProperties": { + "componentId": "72a4e14f-b0aa-45c1-850c-5306d99b5855", + "version": "2", + "branchName": "main", + "modifiedDate": "2026-11-02T19:20:48+00:00", + "folderFullPath": "Test Account/DataHub Test/Orders" + }, + "externalUrl": "https://platform.boomi.com/AtomSphere.html#build;accountId=acme-AB1CD2;components=72a4e14f-b0aa-45c1-850c-5306d99b5855", + "name": "DH Test - SFTP Pickup", + "description": "SFTP read from test.rebex.net, written to disk (v2)", + "created": { + "time": 1793647036000 + }, + "lastModified": { + "time": 1793647248000 + }, + "env": "PROD" + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,72a4e14f-b0aa-45c1-850c-5306d99b5855,PROD)", + "changeType": "UPSERT", + "aspectName": "subTypes", + "aspect": { + "json": { + "typeNames": [ + "Process" + ] + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,f58d0126-87ab-4f1a-bed9-2849688c8e99,PROD)", + "changeType": "UPSERT", + "aspectName": "browsePathsV2", + "aspect": { + "json": { + "path": [ + { + "id": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414", + "urn": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414" + }, + { + "id": "urn:li:container:c20e3a47171bcc23c6aef761d34646f1", + "urn": "urn:li:container:c20e3a47171bcc23c6aef761d34646f1" + }, + { + "id": "urn:li:container:91226d458a2c5e85aab044d172c36b76", + "urn": "urn:li:container:91226d458a2c5e85aab044d172c36b76" + } + ] + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,72a4e14f-b0aa-45c1-850c-5306d99b5855,PROD)", + "changeType": "UPSERT", + "aspectName": "browsePathsV2", + "aspect": { + "json": { + "path": [ + { + "id": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414", + "urn": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414" + }, + { + "id": "urn:li:container:c20e3a47171bcc23c6aef761d34646f1", + "urn": "urn:li:container:c20e3a47171bcc23c6aef761d34646f1" + }, + { + "id": "urn:li:container:91226d458a2c5e85aab044d172c36b76", + "urn": "urn:li:container:91226d458a2c5e85aab044d172c36b76" + } + ] + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,72a4e14f-b0aa-45c1-850c-5306d99b5855,PROD)", + "changeType": "UPSERT", + "aspectName": "container", + "aspect": { + "json": { + "container": "urn:li:container:91226d458a2c5e85aab044d172c36b76" + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,72a4e14f-b0aa-45c1-850c-5306d99b5855,PROD)", + "changeType": "UPSERT", + "aspectName": "ownership", + "aspect": { + "json": { + "owners": [ + { + "owner": "urn:li:corpuser:svc@example.com", + "type": "DATAOWNER" + } + ], + "ownerTypes": {}, + "lastModified": { + "time": 0, + "actor": "urn:li:corpuser:unknown" + } + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,6363d3f8-93fa-4c4d-a399-45bde722ee63,PROD),process)", + "changeType": "UPSERT", + "aspectName": "ownership", + "aspect": { + "json": { + "owners": [ + { + "owner": "urn:li:corpuser:svc@example.com", + "type": "DATAOWNER" + } + ], + "ownerTypes": {}, + "lastModified": { + "time": 0, + "actor": "urn:li:corpuser:unknown" + } + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,161c2360-f2fb-4e20-aba5-db60101ce2b1,PROD)", + "changeType": "UPSERT", + "aspectName": "status", + "aspect": { + "json": { + "removed": false + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,5b1e0c2a-6f0d-4c1e-9a43-000000000001,PROD)", + "changeType": "UPSERT", + "aspectName": "status", + "aspect": { + "json": { + "removed": false + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "container", + "entityUrn": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414", + "changeType": "UPSERT", + "aspectName": "status", + "aspect": { + "json": { + "removed": false + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,5b1e0c2a-6f0d-4c1e-9a43-000000000002,PROD)", + "changeType": "UPSERT", + "aspectName": "status", + "aspect": { + "json": { + "removed": false + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,6363d3f8-93fa-4c4d-a399-45bde722ee63,PROD),process)", + "changeType": "UPSERT", + "aspectName": "status", + "aspect": { + "json": { + "removed": false + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataFlow", + "entityUrn": "urn:li:dataFlow:(boomi,72a4e14f-b0aa-45c1-850c-5306d99b5855,PROD)", + "changeType": "UPSERT", + "aspectName": "status", + "aspect": { + "json": { + "removed": false + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "container", + "entityUrn": "urn:li:container:91226d458a2c5e85aab044d172c36b76", + "changeType": "UPSERT", + "aspectName": "status", + "aspect": { + "json": { + "removed": false + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,f58d0126-87ab-4f1a-bed9-2849688c8e99,PROD),process)", + "changeType": "UPSERT", + "aspectName": "dataJobInputOutput", + "aspect": { + "json": { + "inputDatasets": [], + "outputDatasets": [] + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,f58d0126-87ab-4f1a-bed9-2849688c8e99,PROD),process)", + "changeType": "UPSERT", + "aspectName": "ownership", + "aspect": { + "json": { + "owners": [ + { + "owner": "urn:li:corpuser:svc@example.com", + "type": "DATAOWNER" + } + ], + "ownerTypes": {}, + "lastModified": { + "time": 0, + "actor": "urn:li:corpuser:unknown" + } + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,f58d0126-87ab-4f1a-bed9-2849688c8e99,PROD),process)", + "changeType": "UPSERT", + "aspectName": "dataJobInfo", + "aspect": { + "json": { + "customProperties": {}, + "name": "DH Test - Salesforce Accounts", + "description": "Never deployed. Salesforce Account query then legacy DB insert into my_table", + "type": { + "string": "COMMAND" + }, + "flowUrn": "urn:li:dataFlow:(boomi,f58d0126-87ab-4f1a-bed9-2849688c8e99,PROD)", + "env": "PROD" + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,f58d0126-87ab-4f1a-bed9-2849688c8e99,PROD),process)", + "changeType": "UPSERT", + "aspectName": "status", + "aspect": { + "json": { + "removed": false + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,f58d0126-87ab-4f1a-bed9-2849688c8e99,PROD),process)", + "changeType": "UPSERT", + "aspectName": "subTypes", + "aspect": { + "json": { + "typeNames": [ + "Process" + ] + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,f58d0126-87ab-4f1a-bed9-2849688c8e99,PROD),process)", + "changeType": "UPSERT", + "aspectName": "dataPlatformInstance", + "aspect": { + "json": { + "platform": "urn:li:dataPlatform:boomi" + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "container", + "entityUrn": "urn:li:container:c20e3a47171bcc23c6aef761d34646f1", + "changeType": "UPSERT", + "aspectName": "status", + "aspect": { + "json": { + "removed": false + } + }, + "systemMetadata": { + "lastObserved": 1793649600000, + "runId": "boomi-test", + "lastRunId": "no-run-id-provided" + } +}, +{ + "entityType": "dataJob", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,f58d0126-87ab-4f1a-bed9-2849688c8e99,PROD),process)", + "changeType": "UPSERT", + "aspectName": "browsePathsV2", + "aspect": { + "json": { + "path": [ + { + "id": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414", + "urn": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414" + }, + { + "id": "urn:li:container:c20e3a47171bcc23c6aef761d34646f1", + "urn": "urn:li:container:c20e3a47171bcc23c6aef761d34646f1" + }, + { + "id": "urn:li:container:91226d458a2c5e85aab044d172c36b76", + "urn": "urn:li:container:91226d458a2c5e85aab044d172c36b76" + }, + { + "id": "urn:li:dataFlow:(boomi,f58d0126-87ab-4f1a-bed9-2849688c8e99,PROD)", + "urn": "urn:li:dataFlow:(boomi,f58d0126-87ab-4f1a-bed9-2849688c8e99,PROD)" + } + ] } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { "entityType": "dataJob", - "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-customer-upsert,PROD),process)", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,5b1e0c2a-6f0d-4c1e-9a43-000000000002,PROD),process)", "changeType": "UPSERT", "aspectName": "status", "aspect": { @@ -1312,14 +2623,14 @@ } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { "entityType": "dataJob", - "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-invoice-export,PROD),process)", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,161c2360-f2fb-4e20-aba5-db60101ce2b1,PROD),process)", "changeType": "UPSERT", "aspectName": "status", "aspect": { @@ -1328,14 +2639,14 @@ } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } }, { "entityType": "dataJob", - "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-orders-sync,PROD),process)", + "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,e1b56fb6-0dae-4c33-9a9d-e5af9b8aedbc,PROD),process)", "changeType": "UPSERT", "aspectName": "status", "aspect": { @@ -1344,7 +2655,7 @@ } }, "systemMetadata": { - "lastObserved": 1790856000000, + "lastObserved": 1793649600000, "runId": "boomi-test", "lastRunId": "no-run-id-provided" } diff --git a/metadata-ingestion/tests/integration/boomi/test_boomi.py b/metadata-ingestion/tests/integration/boomi/test_boomi.py index 2fde301dbc117..541437f357376 100644 --- a/metadata-ingestion/tests/integration/boomi/test_boomi.py +++ b/metadata-ingestion/tests/integration/boomi/test_boomi.py @@ -1,4 +1,6 @@ +import copy import json +import re from pathlib import Path from typing import Dict, List, Optional from unittest.mock import MagicMock, patch @@ -16,214 +18,165 @@ validate_all_providers_have_committed_successfully, ) -FROZEN_TIME = "2026-10-01 12:00:00" +FROZEN_TIME = "2026-11-02 20:00:00" ACCOUNT_ID = "acme-AB1CD2" BASE_URL = f"https://api.boomi.com/api/rest/v1/{ACCOUNT_ID}" GOLDEN_DIR = Path(__file__).parent / "golden" +# Responses captured from a Boomi trial account and anonymised: the account id +# and user emails are replaced and encrypted passwords zeroed. +FIXTURES_DIR = Path(__file__).parent / "fixtures" -FOLDERS: List[Dict[str, object]] = [ - {"id": "F0", "name": "Acme", "fullPath": "Acme", "deleted": False}, - { - "id": "F1", - "name": "Production", - "parentId": "F0", - "fullPath": "Acme/Production", - "deleted": False, - }, - { - "id": "F2", - "name": "Orders", - "parentId": "F1", - "fullPath": "Acme/Production/Orders", - "deleted": False, - }, - { - "id": "F3", - "name": "Finance", - "parentId": "F1", - "fullPath": "Acme/Production/Finance", - "deleted": False, - }, - { - "id": "F4", - "name": "Sandbox", - "parentId": "F0", - "fullPath": "Acme/Sandbox", - "deleted": False, - }, - { - "id": "F5", - "name": "Archive", - "parentId": "F0", - "fullPath": "Acme/Archive", - "deleted": True, - }, -] +ORDERS_EXTRACT = "e1b56fb6-0dae-4c33-9a9d-e5af9b8aedbc" +CATALOG_SYNC = "6363d3f8-93fa-4c4d-a399-45bde722ee63" -ENVIRONMENTS: List[Dict[str, object]] = [ - {"id": "env-prod", "name": "Production", "classification": "PROD"}, - {"id": "env-test", "name": "Test", "classification": "TEST"}, - {"id": "env-dev", "name": "Dev", "classification": "TEST"}, -] +# The ids below are not in the captures. Their records are copied from +# captured ones, so the shape stays real, and cover cases the trial account +# does not have. +INVOICE_EXPORT = "5b1e0c2a-6f0d-4c1e-9a43-000000000001" +SHIPMENT_NOTIFY = "5b1e0c2a-6f0d-4c1e-9a43-000000000002" +SANDBOX_PROBE = "5b1e0c2a-6f0d-4c1e-9a43-000000000003" +ORDERS_EXTRACT_TEST = "5b1e0c2a-6f0d-4c1e-9a43-000000000004" +SANDBOX_FOLDER = "Rjo4OTQzNDk5" +DEV_ENVIRONMENT = "9c0a7e51-2d4b-4f3e-8a61-000000000001" +START_STOP_SHAPES = ( + '' + "" + '' + "" + '' + '' +) -def _process( - component_id: str, - name: str, - folder_id: str, - folder_name: str, - version: object = 1, - created_by: str = "svc@example.com", - modified_by: str = "svc@example.com", - modified_date: str = "2026-09-01T10:00:00Z", - branch_name: Optional[str] = "main", -) -> Dict[str, object]: - record: Dict[str, object] = { - "@type": "ComponentMetadata", - "componentId": component_id, - "version": version, - "name": name, - "type": "process", - "subType": "", - "createdBy": created_by, - "createdDate": "2026-01-15T08:30:00Z", - "modifiedBy": modified_by, - "modifiedDate": modified_date, - "deleted": False, - "currentVersion": True, - "folderName": folder_name, - "folderId": folder_id, - } - if branch_name: - record["branchName"] = branch_name - record["branchId"] = f"branch-{branch_name}" - return record - - -PROCESSES_PAGE_1 = [ - _process( - "p-orders-sync", - "Orders Sync", - "F2", - "Orders", - version=["Long", 7], - modified_by="dev@example.com", - ), - _process("p-invoice-export", "Invoice Export", "F3", "Finance", version=3), - _process( - "p-customer-upsert", - "Customer Upsert", - "F2", - "Orders", - version=2, - modified_date="2026-08-01T10:00:00Z", - ), -] -PROCESSES_PAGE_2 = [ - # Same component returned twice; the newer copy must win. - _process( - "p-customer-upsert", - "Customer Upsert", - "F2", - "Orders", - version=4, - modified_by="ops@example.com", - modified_date="2026-09-20T10:00:00Z", - ), - _process("p-legacy-cleanup", "Legacy Cleanup", "F1", "Production"), - _process("p-orders-sync-test", "Orders Sync Test", "F2", "Orders"), - _process("p-sandbox-probe", "Sandbox Probe", "F4", "Sandbox"), - _process("p-shipment-notify", "Shipment Notify", "F3", "Finance"), -] -DEPLOYMENTS: List[Dict[str, object]] = [ - { - "componentId": "p-orders-sync", - "componentType": "process", - "environmentId": "env-prod", - "packageVersion": "3.0", - "active": True, - }, - { - "componentId": "p-orders-sync", - "componentType": "process", - "environmentId": "env-test", - "packageVersion": "4.0", - "active": True, - }, - { - "componentId": "p-invoice-export", - "componentType": "process", - "environmentId": "env-prod", - "packageVersion": "1.2", - "active": True, - }, - { - "componentId": "p-customer-upsert", - "componentType": "process", - "environmentId": "env-test", - "packageVersion": "2.0", - "active": True, - }, - { - "componentId": "p-orders-sync-test", - "componentType": "process", - "environmentId": "env-test", - "packageVersion": "1.0", - "active": True, - }, - { - "componentId": "p-sandbox-probe", - "componentType": "process", - "environmentId": "env-prod", - "packageVersion": "1.0", - "active": True, - }, - # Only deployed to an environment denied by environment_pattern. - { - "componentId": "p-shipment-notify", - "componentType": "process", - "environmentId": "env-dev", - "packageVersion": "1.0", - "active": True, - }, -] +def _fixture(name: str) -> str: + return (FIXTURES_DIR / name).read_text() -COMPONENT_XML_TEMPLATE = """ - - - {description} - - - - - - - - - -""" -COMPONENT_XML: Dict[str, str] = { - "p-orders-sync": COMPONENT_XML_TEMPLATE.format( - id="p-orders-sync", - name="Orders Sync", - path="Acme/Production/Orders", - description="Copies new orders from the web shop into the ERP.", +def _records(name: str) -> List[Dict[str, object]]: + return json.loads(_fixture(name))["result"] + + +def _copy(record: Dict[str, object], **overrides: object) -> Dict[str, object]: + copied = copy.deepcopy(record) + copied.update(overrides) + return copied + + +def _process_xml( + component_id: str, name: str, description: str, shapes: str = START_STOP_SHAPES +) -> str: + xml = _fixture(f"components/{ORDERS_EXTRACT}.xml") + xml = xml.replace(ORDERS_EXTRACT, component_id) + xml = xml.replace('name="DH Test - Orders Extract"', f'name="{name}"') + xml = re.sub( + ".*?", + f"{description}", + xml, + ) + return re.sub(".*", f"{shapes}", xml, flags=re.S) + + +FOLDERS = _records("folder_query.json") +FOLDERS.extend( + [ + _copy( + FOLDERS[-1], + id=SANDBOX_FOLDER, + name="Sandbox", + fullPath="Test Account/DataHub Test/Sandbox", + ), + _copy( + FOLDERS[-1], + id="Rjo4OTQzNDk4", + name="Archive", + fullPath="Test Account/DataHub Test/Archive", + deleted=True, + ), + ] +) + +ENVIRONMENTS = _records("environment_query.json") +ENVIRONMENTS.append(_copy(ENVIRONMENTS[0], id=DEV_ENVIRONMENT, name="DH Test Dev Env")) + +DEPLOYMENTS = _records("deployed_package_query.json") +DEPLOYMENTS.extend( + [ + _copy( + DEPLOYMENTS[-1], + deploymentId="0d1e2f30-0000-4000-8000-000000000001", + componentId=INVOICE_EXPORT, + packageVersion="2.0", + ), + _copy( + DEPLOYMENTS[-1], + deploymentId="0d1e2f30-0000-4000-8000-000000000002", + componentId=SANDBOX_PROBE, + ), + _copy( + DEPLOYMENTS[-1], + deploymentId="0d1e2f30-0000-4000-8000-000000000003", + componentId=ORDERS_EXTRACT_TEST, + ), + # Only deployed to an environment denied by environment_pattern. + _copy( + DEPLOYMENTS[-1], + deploymentId="0d1e2f30-0000-4000-8000-000000000004", + componentId=SHIPMENT_NOTIFY, + environmentId=DEV_ENVIRONMENT, + ), + ] +) + +PROCESSES_PAGE_1 = _records("component_metadata_query.json") +_PROCESS_TEMPLATE = PROCESSES_PAGE_1[0] +PROCESSES_PAGE_2 = [ + _copy( + _PROCESS_TEMPLATE, + componentId=INVOICE_EXPORT, + name="DH Test - Invoice Export", + version=["Long", 3], + modifiedBy="dev@example.com", + modifiedDate="2026-11-02T19:30:00Z", + ), + # A stale branch copy of Orders Extract; the newer copy on page 1 wins. + _copy( + _PROCESS_TEMPLATE, + version=4, + modifiedBy="dev@example.com", + modifiedDate="2026-10-20T10:00:00Z", ), - "p-invoice-export": COMPONENT_XML_TEMPLATE.format( - id="p-invoice-export", - name="Invoice Export", - path="Acme/Production/Finance", - description="Exports posted invoices to the finance warehouse.", + _copy( + _PROCESS_TEMPLATE, + componentId=SHIPMENT_NOTIFY, + name="DH Test - Shipment Notify", ), - "p-customer-upsert": COMPONENT_XML_TEMPLATE.format( - id="p-customer-upsert", - name="Customer Upsert", - path="Acme/Production/Orders", - description="", + _copy( + _PROCESS_TEMPLATE, + componentId=SANDBOX_PROBE, + name="DH Test - Sandbox Probe", + folderName="Sandbox", + folderId=SANDBOX_FOLDER, ), + _copy( + _PROCESS_TEMPLATE, + componentId=ORDERS_EXTRACT_TEST, + name="DH Test - Orders Extract Test", + ), +] + +COMPONENT_XML: Dict[str, str] = { + path.stem: path.read_text() + for path in sorted((FIXTURES_DIR / "components").glob("*.xml")) } +COMPONENT_XML[INVOICE_EXPORT] = _process_xml( + INVOICE_EXPORT, + "DH Test - Invoice Export", + "Exports posted invoices to the finance warehouse.", +) +COMPONENT_XML[SHIPMENT_NOTIFY] = _process_xml( + SHIPMENT_NOTIFY, "DH Test - Shipment Notify", "" +) def _page( @@ -267,9 +220,10 @@ def _recipe(output_path: Path) -> Dict[str, object]: "username": "svc@example.com", "api_token": "dummy-token", "branch_name": "main", - "folder_pattern": {"deny": ["^Acme/Sandbox.*"]}, + "folder_pattern": {"deny": [".*/Sandbox$"]}, "process_pattern": {"deny": [".* Test$"]}, - "environment_pattern": {"deny": ["^Dev$"]}, + "environment_pattern": {"deny": [".* Dev Env$"]}, + "include_undeployed_processes": True, "max_requests_per_second": 10, }, }, @@ -294,13 +248,16 @@ def test_boomi_ingestion(pytestconfig: pytest.Config, tmp_path: Path) -> None: report = pipeline.source.get_report() assert isinstance(report, BoomiSourceReport) - assert report.processes_emitted == 3 + assert report.folders_emitted == 5 + assert report.processes_emitted == 7 assert report.processes_duplicate_branch_copies == 1 - assert sorted(report.processes_undeployed_skipped) == [ - "Legacy Cleanup", - "Shipment Notify", + assert list(report.processes_undeployed_skipped) == [] + assert list(report.environments_filtered) == ["DH Test Dev Env"] + assert sorted(report.processes_filtered) == [ + "DH Test - Orders Extract Test", + "DH Test - Sandbox Probe", ] - assert sorted(report.processes_filtered) == ["Orders Sync Test", "Sandbox Probe"] + assert not report.warnings mce_helpers.check_golden_file( pytestconfig, @@ -316,6 +273,7 @@ def test_boomi_stateful_removes_undeployed_process( ) -> None: recipe = _recipe(tmp_path / "run1.json") source_config = recipe["source"]["config"] # type: ignore[index] + source_config["include_undeployed_processes"] = False source_config["stateful_ingestion"] = { "enabled": True, "remove_stale_metadata": True, @@ -339,12 +297,10 @@ def test_boomi_stateful_removes_undeployed_process( pipeline_run1 = run_and_get_pipeline(recipe) checkpoint1 = get_current_checkpoint_from_pipeline(pipeline_run1) - # The invoice export loses its only deployment between runs. + # Catalog Sync loses its only deployment between runs. _register_mocks( mock, - deployments=[ - d for d in DEPLOYMENTS if d["componentId"] != "p-invoice-export" - ], + deployments=[d for d in DEPLOYMENTS if d["componentId"] != CATALOG_SYNC], ) recipe["sink"] = { "type": "file", @@ -353,6 +309,15 @@ def test_boomi_stateful_removes_undeployed_process( pipeline_run2 = run_and_get_pipeline(recipe) checkpoint2 = get_current_checkpoint_from_pipeline(pipeline_run2) + report = pipeline_run1.source.get_report() + assert isinstance(report, BoomiSourceReport) + # The trial account's two never-deployed processes, plus one deployed only + # to a denied environment. + assert sorted(report.processes_undeployed_skipped) == [ + "DH Test - SFTP Pickup", + "DH Test - Salesforce Accounts", + "DH Test - Shipment Notify", + ] assert checkpoint1 and checkpoint1.state assert checkpoint2 and checkpoint2.state validate_all_providers_have_committed_successfully(pipeline_run1, 1) @@ -367,8 +332,8 @@ def test_boomi_stateful_removes_undeployed_process( ) ) assert removed == { - "urn:li:dataFlow:(boomi,p-invoice-export,PROD)", - "urn:li:dataJob:(urn:li:dataFlow:(boomi,p-invoice-export,PROD),process)", + f"urn:li:dataFlow:(boomi,{CATALOG_SYNC},PROD)", + f"urn:li:dataJob:(urn:li:dataFlow:(boomi,{CATALOG_SYNC},PROD),process)", } soft_deleted = { mcp["entityUrn"] diff --git a/metadata-ingestion/tests/unit/boomi/test_client.py b/metadata-ingestion/tests/unit/boomi/test_client.py index abb32e3ffb584..f831c2a890506 100644 --- a/metadata-ingestion/tests/unit/boomi/test_client.py +++ b/metadata-ingestion/tests/unit/boomi/test_client.py @@ -2,7 +2,7 @@ import json import threading from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer -from typing import Iterator, List +from typing import Iterator, List, Optional import pytest import requests_mock @@ -29,7 +29,22 @@ def _client(api_url: str = "https://api.boomi.com") -> BoomiClient: def _folder(folder_id: str) -> dict: - return {"id": folder_id, "name": folder_id, "fullPath": f"Acme/{folder_id}"} + return { + "@type": "Folder", + "id": folder_id, + "name": folder_id, + "fullPath": f"Test Account/{folder_id}", + "deleted": False, + "parentId": "Rjo4OTQzMzg4", + "parentName": "Test Account", + } + + +def _page(records: List[dict], token: Optional[str] = None) -> dict: + page = {"@type": "QueryResult", "result": records, "numberOfResults": len(records)} + if token: + page["queryToken"] = token + return page def test_query_follows_query_tokens_until_exhausted() -> None: @@ -37,13 +52,13 @@ def test_query_follows_query_tokens_until_exhausted() -> None: with requests_mock.Mocker() as mock: mock.post( f"{BASE_URL}/Folder/query", - json={"result": [_folder("a")], "queryToken": "token-1"}, + json=_page([_folder("a")], token="token-1"), ) mock.post( f"{BASE_URL}/Folder/queryMore", [ - {"json": {"result": [_folder("b")], "queryToken": "token-2"}}, - {"json": {"result": [_folder("c")]}}, + {"json": _page([_folder("b")], token="token-2")}, + {"json": _page([_folder("c")])}, ], ) folders = [f.id for f in client.list_folders()] @@ -62,7 +77,7 @@ def test_query_follows_query_tokens_until_exhausted() -> None: def test_process_query_sends_branch_filter() -> None: client = _client() with requests_mock.Mocker() as mock: - mock.post(f"{BASE_URL}/ComponentMetadata/query", json={"result": []}) + mock.post(f"{BASE_URL}/ComponentMetadata/query", json=_page([])) assert list(client.list_processes("main")) == [] body = mock.request_history[0].json() @@ -81,7 +96,7 @@ def test_invalid_record_is_skipped_with_warning() -> None: with requests_mock.Mocker() as mock: mock.post( f"{BASE_URL}/Folder/query", - json={"result": [_folder("a"), {"id": "no-name"}]}, + json=_page([_folder("a"), {"@type": "Folder", "id": "no-name"}]), ) folders = [f.id for f in client.list_folders()] @@ -93,7 +108,14 @@ def test_invalid_record_is_skipped_with_warning() -> None: def test_http_error_carries_status_code() -> None: client = _client() with requests_mock.Mocker() as mock: - mock.post(f"{BASE_URL}/DeployedPackage/query", status_code=403, text="denied") + mock.post( + f"{BASE_URL}/DeployedPackage/query", + status_code=403, + json={ + "@type": "Error", + "message": "The authenticated user does not have access rights to this functionality.", + }, + ) with pytest.raises(BoomiApiError) as excinfo: list(client.list_active_process_deployments()) @@ -106,7 +128,7 @@ class _ThrottlingHandler(BaseHTTPRequestHandler): def do_POST(self) -> None: self.rfile.read(int(self.headers.get("Content-Length", 0))) status = self.statuses.pop(0) - body = json.dumps({"result": [_folder("a")]}).encode() + body = json.dumps(_page([_folder("a")])).encode() self.send_response(status) self.send_header("Content-Type", "application/json") self.send_header("Content-Length", str(len(body))) diff --git a/metadata-ingestion/tests/unit/boomi/test_parsing.py b/metadata-ingestion/tests/unit/boomi/test_parsing.py index 27ba47899c62d..72f3e5f6ce22b 100644 --- a/metadata-ingestion/tests/unit/boomi/test_parsing.py +++ b/metadata-ingestion/tests/unit/boomi/test_parsing.py @@ -5,16 +5,10 @@ from datahub.ingestion.source.boomi.component_parser import parse_process_component from datahub.ingestion.source.boomi.models import ComponentMetadata, QueryResponse -EXPORT_STYLE_XML = """ - - - Copies orders into the ERP. - - - shape-level text that must not be picked up - - - +# Shaped like a live GET Component/{id} response. +EXPORT_STYLE_XML = """Copies orders into the ERP. + shape-level text that must not be picked up + """ DOCS_STYLE_XML = """ @@ -27,7 +21,7 @@ def test_parse_export_with_empty_default_namespace_children() -> None: info = parse_process_component(EXPORT_STYLE_XML) assert info.description == "Copies orders into the ERP." - assert info.folder_full_path == "Acme/Production/Orders" + assert info.folder_full_path == "Test Account/DataHub Test/Orders" def test_parse_default_namespace_variant() -> None: diff --git a/metadata-ingestion/tests/unit/boomi/test_source.py b/metadata-ingestion/tests/unit/boomi/test_source.py index 26282b75edbc1..816dc6dbac56c 100644 --- a/metadata-ingestion/tests/unit/boomi/test_source.py +++ b/metadata-ingestion/tests/unit/boomi/test_source.py @@ -17,11 +17,25 @@ ACCOUNT_ID = "acme-AB1CD2" BASE_URL = f"https://api.boomi.com/api/rest/v1/{ACCOUNT_ID}" +# Shaped like a live GET Component/{id} response for a process. XML = ( - 'Syncs orders.' - "" + '' + '' + "Syncs orders." + '' + '' + "" + "" ) +ORDERS_FOLDER = "Rjo4OTQzNDEx" +PROD_ENVIRONMENT = "56c4f2be-9126-4e8a-bfb2-111c009e83d8" def _component( @@ -52,14 +66,48 @@ def _source(**overrides: object) -> BoomiSource: def _process_record(component_id: str, name: str) -> Dict[str, object]: return { + "@type": "ComponentMetadata", "componentId": component_id, "version": 1, "name": name, "type": "process", + "createdDate": "2026-11-02T19:17:12Z", "createdBy": "svc@example.com", + "modifiedDate": "2026-11-02T19:17:12Z", "modifiedBy": "svc@example.com", - "folderId": "F1", + "deleted": False, + "currentVersion": True, "folderName": "Orders", + "folderId": ORDERS_FOLDER, + "branchName": "main", + "branchId": "Qjo2MDk0Mzg", + } + + +def _deployment(component_id: str, branch_name: str = "main") -> Dict[str, object]: + return { + "@type": "DeployedPackage", + "deploymentId": "dda2f5b2-37d6-4ccb-9349-98b6c77e1c0c", + "version": 1, + "packageId": "ab44fd92-6b7d-4d91-94a1-e5f46cd129bd", + "packageVersion": "1.0", + "environmentId": PROD_ENVIRONMENT, + "componentId": component_id, + "componentVersion": 1, + "componentType": "process", + "deployedDate": "2026-11-02T19:18:22Z", + "deployedBy": "svc@example.com", + "notes": "Initial deploy", + "active": True, + "branchName": branch_name, + } + + +def _page(records: List[Dict[str, object]]) -> Dict[str, object]: + return { + "@type": "QueryResult", + "result": records, + "numberOfResults": len(records), } @@ -74,19 +122,49 @@ def _register( mock.post( f"{BASE_URL}/Folder/query", status_code=folder_status, - json={"result": [{"id": "F1", "name": "Orders", "fullPath": "Acme/Orders"}]}, + json=_page( + [ + { + "@type": "Folder", + "id": "Rjo4OTQzMzg4", + "name": "Test Account", + "fullPath": "Test Account", + "deleted": False, + "parentId": "", + "parentName": "", + }, + { + "@type": "Folder", + "id": ORDERS_FOLDER, + "name": "Orders", + "fullPath": "Test Account/Orders", + "deleted": False, + "parentId": "Rjo4OTQzMzg4", + "parentName": "Test Account", + }, + ] + ), ) mock.post( f"{BASE_URL}/Environment/query", status_code=environment_status, - json={"result": [{"id": "env-prod", "name": "Production"}]}, + json=_page( + [ + { + "@type": "Environment", + "id": PROD_ENVIRONMENT, + "name": "Production", + "classification": "PROD", + } + ] + ), ) mock.post( f"{BASE_URL}/DeployedPackage/query", status_code=deployed_status, - json={"result": deployed or []}, + json=_page(deployed or []), ) - mock.post(f"{BASE_URL}/ComponentMetadata/query", json={"result": processes}) + mock.post(f"{BASE_URL}/ComponentMetadata/query", json=_page(processes)) def _flows(source: BoomiSource) -> List[DataFlow]: @@ -164,13 +242,7 @@ def test_environment_listing_failure_includes_all_processes() -> None: _register( mock, [_process_record("p1", "Orders Sync")], - deployed=[ - { - "componentId": "p1", - "environmentId": "env-prod", - "packageVersion": "1", - } - ], + deployed=[_deployment("p1")], environment_status=500, ) mock.get(f"{BASE_URL}/Component/p1", text=XML) @@ -187,14 +259,7 @@ def test_deployments_on_other_branches_are_ignored() -> None: _register( mock, [_process_record("p1", "Orders Sync")], - deployed=[ - { - "componentId": "p1", - "environmentId": "env-prod", - "packageVersion": "1", - "branchName": "feature", - } - ], + deployed=[_deployment("p1", branch_name="feature")], ) assert _flows(source) == [] @@ -204,9 +269,9 @@ def test_deployments_on_other_branches_are_ignored() -> None: def test_folder_listing_failure_matches_component_folder_path() -> None: source = _source( include_undeployed_processes=True, - folder_pattern={"allow": ["^Acme/Orders$"]}, + folder_pattern={"allow": ["^Test Account/Orders$"]}, ) - other_xml = XML.replace("Acme/Orders", "Acme/Archive") + other_xml = XML.replace("Test Account/Orders", "Test Account/Archive") with requests_mock.Mocker() as mock: _register( mock, @@ -226,7 +291,7 @@ def test_folder_listing_failure_matches_component_folder_path() -> None: def test_unknown_folder_without_path_fails_closed() -> None: source = _source( include_undeployed_processes=True, - folder_pattern={"allow": ["^Acme/Orders$"]}, + folder_pattern={"allow": ["^Test Account/Orders$"]}, ) with requests_mock.Mocker() as mock: _register(mock, [_process_record("p1", "Orders Sync")], folder_status=500) From e582865da32669e1292bcd2501735e20a17b02b3 Mon Sep 17 00:00:00 2001 From: acrylJonny Date: Mon, 2 Nov 2026 20:33:13 +0000 Subject: [PATCH 08/20] fix(ingest/boomi): keep root-level processes under deny-only folder patterns A process with no folder in the listing and no folderFullPath in its component XML is now kept when folder_pattern only denies, since deny entries have nothing to match. It is still skipped when an allow list exists that cannot be evaluated. A deployment without a package version is labelled with the environment name alone instead of `environment=None`. The integration test now asserts that each fixture splice in _process_xml matches exactly once, so a fixture refresh cannot silently leave derived processes with the base process's name, description or shapes. Co-Authored-By: Claude Opus 5.5 --- .../docs/sources/boomi/README.md | 2 +- .../docs/sources/boomi/boomi_post.md | 2 +- .../datahub/ingestion/source/boomi/source.py | 15 +++++--- .../tests/integration/boomi/test_boomi.py | 25 +++++++++---- .../tests/unit/boomi/test_source.py | 35 +++++++++++++++++++ 5 files changed, 66 insertions(+), 13 deletions(-) diff --git a/metadata-ingestion/docs/sources/boomi/README.md b/metadata-ingestion/docs/sources/boomi/README.md index faaef2037e5ae..f04cd753fc20a 100644 --- a/metadata-ingestion/docs/sources/boomi/README.md +++ b/metadata-ingestion/docs/sources/boomi/README.md @@ -12,6 +12,6 @@ The DataHub integration for Boomi reads the Platform API. It ingests folders as | Account | Platform instance | Set `platform_instance` to the account ID when you ingest more than one account. | | Folder | [Container](../../metamodel/entities/container.md) | Subtype `Folder`. Nested by parent folder. | | Process | [DataFlow](../../metamodel/entities/dataFlow.md) + one `process` [DataJob](../../metamodel/entities/dataJob.md) | Subtype `Process`. The DataFlow URN uses the component ID, so renames keep the entity. | -| Deployment | Custom property `deployments` on the DataFlow | `environment=packageVersion` for each active deployment. | +| Deployment | Custom property `deployments` on the DataFlow | `environment=packageVersion` for each active deployment, or the environment alone. | | Creator | Owner of type `DATAOWNER` | Boomi user names are emails, so owners become `urn:li:corpuser:`. | | Last modifier | Owner of type `TECHNICAL_OWNER` | Only added when it differs from the creator. | diff --git a/metadata-ingestion/docs/sources/boomi/boomi_post.md b/metadata-ingestion/docs/sources/boomi/boomi_post.md index 477a0112514ee..e9df894ccdcf9 100644 --- a/metadata-ingestion/docs/sources/boomi/boomi_post.md +++ b/metadata-ingestion/docs/sources/boomi/boomi_post.md @@ -11,7 +11,7 @@ Active deployments come from `DeployedPackage`, joined to environment names. `en #### Folders -Every folder that matches `folder_pattern` is emitted as a container, together with its parent folders so the browse path stays complete. `folder_pattern` is matched against the full folder path, for example `Acme/Production/Orders`. Processes in folders that do not match are skipped. If a process's folder is not in the folder listing, the path is read from the process component instead, and the process is skipped when no path is available and `folder_pattern` is set. +Every folder that matches `folder_pattern` is emitted as a container, together with its parent folders so the browse path stays complete. `folder_pattern` is matched against the full folder path, for example `Acme/Production/Orders`. Processes in folders that do not match are skipped. If a process's folder is not in the folder listing, the path is read from the process component instead, When no path is available, the process is kept if `folder_pattern` only has deny entries and skipped if it has an allow list. #### Branches diff --git a/metadata-ingestion/src/datahub/ingestion/source/boomi/source.py b/metadata-ingestion/src/datahub/ingestion/source/boomi/source.py index 2ae8a17b7c402..8465a261122e8 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/boomi/source.py +++ b/metadata-ingestion/src/datahub/ingestion/source/boomi/source.py @@ -74,6 +74,8 @@ STAGE_PROCESSES = "Processes" _EPOCH = datetime.min.replace(tzinfo=timezone.utc) +# AllowDenyPattern's default allow entry. +ALLOW_ALL_REGEX = ".*" class BoomiFolderKey(ContainerKey): @@ -265,7 +267,8 @@ def _load_environment_names(self) -> Optional[Dict[str, str]]: return names def _load_deployments(self) -> Optional[Dict[str, List[str]]]: - # componentId -> sorted `environment=packageVersion` labels. None means + # componentId -> sorted `environment=packageVersion` labels, or just the + # environment when the package has no version. None means # deployments are unknown, so undeployed processes cannot be told apart. environment_names = self._load_environment_names() if environment_names is None: @@ -292,6 +295,8 @@ def _load_deployments(self) -> Optional[Dict[str, List[str]]]: DEPLOYMENT_FORMAT.format( environment=environment, version=package.package_version ) + if package.package_version + else environment ) except (BoomiApiError, requests.RequestException, ValidationError) as e: self.report.deployments_unavailable = True @@ -313,10 +318,12 @@ def _load_deployments(self) -> Optional[Dict[str, List[str]]]: return {key: sorted(values) for key, values in deployments.items()} def _folder_path_allowed(self, folder_path: Optional[str]) -> bool: - # The folder is hidden from this token or listing failed, so match the - # path from the component XML and fail closed when it is missing. + # The folder is hidden from this token, listing failed, or the process + # sits at the account root, so match the path from the component XML. + # Without a path, deny patterns have nothing to match and let it + # through; only a restrictive allow list fails closed. if folder_path is None: - return self.config.folder_pattern.is_allow_all() + return ALLOW_ALL_REGEX in self.config.folder_pattern.allow return self.config.folder_pattern.allowed(folder_path) def _emit_processes( diff --git a/metadata-ingestion/tests/integration/boomi/test_boomi.py b/metadata-ingestion/tests/integration/boomi/test_boomi.py index 541437f357376..7890d3af0a27c 100644 --- a/metadata-ingestion/tests/integration/boomi/test_boomi.py +++ b/metadata-ingestion/tests/integration/boomi/test_boomi.py @@ -48,6 +48,11 @@ '' ) +_COMPONENT_ID_RE = re.compile(f'componentId="{ORDERS_EXTRACT}"') +_NAME_RE = re.compile(re.escape(' name="DH Test - Orders Extract"')) +_DESCRIPTION_RE = re.compile(".*?", re.S) +_SHAPES_RE = re.compile(".*", re.S) + def _fixture(name: str) -> str: return (FIXTURES_DIR / name).read_text() @@ -63,18 +68,24 @@ def _copy(record: Dict[str, object], **overrides: object) -> Dict[str, object]: return copied +def _splice(xml: str, pattern: "re.Pattern[str]", replacement: str) -> str: + # Fail loudly if a fixture refresh moves a target, rather than letting the + # golden file silently pick up the base process's values. + spliced, count = pattern.subn(lambda _: replacement, xml) + assert count == 1, f"{pattern.pattern!r} matched {count} times in the fixture" + return spliced + + def _process_xml( component_id: str, name: str, description: str, shapes: str = START_STOP_SHAPES ) -> str: xml = _fixture(f"components/{ORDERS_EXTRACT}.xml") - xml = xml.replace(ORDERS_EXTRACT, component_id) - xml = xml.replace('name="DH Test - Orders Extract"', f'name="{name}"') - xml = re.sub( - ".*?", - f"{description}", - xml, + xml = _splice(xml, _COMPONENT_ID_RE, f'componentId="{component_id}"') + xml = _splice(xml, _NAME_RE, f' name="{name}"') + xml = _splice( + xml, _DESCRIPTION_RE, f"{description}" ) - return re.sub(".*", f"{shapes}", xml, flags=re.S) + return _splice(xml, _SHAPES_RE, f"{shapes}") FOLDERS = _records("folder_query.json") diff --git a/metadata-ingestion/tests/unit/boomi/test_source.py b/metadata-ingestion/tests/unit/boomi/test_source.py index 816dc6dbac56c..d8af9cdf968e2 100644 --- a/metadata-ingestion/tests/unit/boomi/test_source.py +++ b/metadata-ingestion/tests/unit/boomi/test_source.py @@ -301,6 +301,41 @@ def test_unknown_folder_without_path_fails_closed() -> None: assert list(source.get_report().processes_filtered) == ["Orders Sync"] +@pytest.mark.parametrize( + "folder_pattern, emitted", + [ + ({"deny": [".*/Sandbox$"]}, True), + ({"allow": ["^Test Account/Orders$"]}, False), + ], +) +def test_root_level_process_without_folder_path( + folder_pattern: Dict[str, List[str]], emitted: bool +) -> None: + source = _source(include_undeployed_processes=True, folder_pattern=folder_pattern) + record = _process_record("p1", "Orders Sync") + del record["folderId"], record["folderName"] + root_xml = XML.replace('folderFullPath="Test Account/Orders" ', "") + assert root_xml != XML + with requests_mock.Mocker() as mock: + _register(mock, [record]) + mock.get(f"{BASE_URL}/Component/p1", text=root_xml) + flows = _flows(source) + + assert [f.display_name for f in flows] == (["Orders Sync"] if emitted else []) + + +def test_deployment_without_package_version_lists_environment_only() -> None: + deployment = _deployment("p1") + del deployment["packageVersion"] + source = _source() + with requests_mock.Mocker() as mock: + _register(mock, [_process_record("p1", "Orders Sync")], deployed=[deployment]) + mock.get(f"{BASE_URL}/Component/p1", text=XML) + flows = _flows(source) + + assert flows[0].custom_properties["deployments"] == "Production" + + def test_xml_failure_still_emits_process() -> None: source = _source(include_undeployed_processes=True, extract_owners=False) with requests_mock.Mocker() as mock: From 3fc91507b8282a053d396ce9696a14ac15f5fef5 Mon Sep 17 00:00:00 2001 From: acrylJonny Date: Mon, 2 Nov 2026 21:16:49 +0000 Subject: [PATCH 09/20] fix(ingest/boomi): reject api_url values that include a path The client appends /api/rest/v1/ to api_url, so a full Platform API URL doubled the prefix. Only the host is accepted now. Co-Authored-By: Claude Opus 5.5 --- .../src/datahub/ingestion/source/boomi/config.py | 6 ++++++ metadata-ingestion/tests/unit/boomi/test_source.py | 1 + 2 files changed, 7 insertions(+) diff --git a/metadata-ingestion/src/datahub/ingestion/source/boomi/config.py b/metadata-ingestion/src/datahub/ingestion/source/boomi/config.py index 638dc64541a09..3e1e4672e2c60 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/boomi/config.py +++ b/metadata-ingestion/src/datahub/ingestion/source/boomi/config.py @@ -121,6 +121,12 @@ def _validate_api_url(cls, value: str) -> str: raise ValueError( f"api_url must be a base URL such as https://api.boomi.com, without a query or fragment, got {value!r}" ) + # The client appends /api/rest/v1/, so a full Platform API + # URL here would double the prefix. + if parsed.path not in ("", "/"): + raise ValueError( + f"api_url must be only the host, such as https://api.boomi.com, without a path, got {value!r}" + ) # The token is sent as basic auth, so plain http is only allowed for # local test servers. if parsed.scheme == SCHEME_HTTP and parsed.hostname not in LOOPBACK_HOSTS: diff --git a/metadata-ingestion/tests/unit/boomi/test_source.py b/metadata-ingestion/tests/unit/boomi/test_source.py index d8af9cdf968e2..9d02dd9ec3ebe 100644 --- a/metadata-ingestion/tests/unit/boomi/test_source.py +++ b/metadata-ingestion/tests/unit/boomi/test_source.py @@ -356,6 +356,7 @@ def test_xml_failure_still_emits_process() -> None: "http://api.boomi.com", "https://api.boomi.com?region=us", "https://api.boomi.com#build", + "https://api.boomi.com/api/rest/v1/acct", ], ) def test_config_rejects_invalid_api_url(api_url: str) -> None: From fffcd56af33512bfcd28d034bff6e8d21c2b31fb Mon Sep 17 00:00:00 2001 From: acrylJonny Date: Mon, 2 Nov 2026 23:18:53 +0000 Subject: [PATCH 10/20] fix(ingest/boomi): stop emitting an empty dataJobInputOutput for processes Process jobs have no lineage in this PR, so the empty aspect only overwrote lineage added in the UI or by other sources. Also cover process listing failures and environment and folder filtering in unit tests. Co-Authored-By: Claude Opus 5.5 --- .../datahub/ingestion/source/boomi/source.py | 10 +- .../boomi/golden/boomi_mces_golden.json | 119 ------------------ .../tests/unit/boomi/test_source.py | 37 ++++++ 3 files changed, 38 insertions(+), 128 deletions(-) diff --git a/metadata-ingestion/src/datahub/ingestion/source/boomi/source.py b/metadata-ingestion/src/datahub/ingestion/source/boomi/source.py index 8465a261122e8..873ebec978607 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/boomi/source.py +++ b/metadata-ingestion/src/datahub/ingestion/source/boomi/source.py @@ -56,10 +56,7 @@ from datahub.ingestion.source.state.stateful_ingestion_base import ( StatefulIngestionSourceBase, ) -from datahub.metadata.schema_classes import ( - DataJobInputOutputClass, - OwnershipTypeClass, -) +from datahub.metadata.schema_classes import OwnershipTypeClass from datahub.metadata.urns import CorpUserUrn from datahub.sdk.container import Container from datahub.sdk.dataflow import DataFlow @@ -448,11 +445,6 @@ def _make_process_entities( description=info.description, subtype=DataJobSubTypes.BOOMI_PROCESS_JOB, owners=owners, - # Lineage is not resolved yet; emit an empty aspect so later runs - # that add edges overwrite a known baseline. - extra_aspects=[ - DataJobInputOutputClass(inputDatasets=[], outputDatasets=[]) - ], ) def _process_url(self, component_id: str) -> Optional[str]: diff --git a/metadata-ingestion/tests/integration/boomi/golden/boomi_mces_golden.json b/metadata-ingestion/tests/integration/boomi/golden/boomi_mces_golden.json index a01664be227a5..b9a60800f5a8a 100644 --- a/metadata-ingestion/tests/integration/boomi/golden/boomi_mces_golden.json +++ b/metadata-ingestion/tests/integration/boomi/golden/boomi_mces_golden.json @@ -38,23 +38,6 @@ "lastRunId": "no-run-id-provided" } }, -{ - "entityType": "dataJob", - "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,72a4e14f-b0aa-45c1-850c-5306d99b5855,PROD),process)", - "changeType": "UPSERT", - "aspectName": "dataJobInputOutput", - "aspect": { - "json": { - "inputDatasets": [], - "outputDatasets": [] - } - }, - "systemMetadata": { - "lastObserved": 1793649600000, - "runId": "boomi-test", - "lastRunId": "no-run-id-provided" - } -}, { "entityType": "container", "entityUrn": "urn:li:container:82e5fa1250d8ffef2dc7dd571e898414", @@ -696,23 +679,6 @@ "lastRunId": "no-run-id-provided" } }, -{ - "entityType": "dataJob", - "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,161c2360-f2fb-4e20-aba5-db60101ce2b1,PROD),process)", - "changeType": "UPSERT", - "aspectName": "dataJobInputOutput", - "aspect": { - "json": { - "inputDatasets": [], - "outputDatasets": [] - } - }, - "systemMetadata": { - "lastObserved": 1793649600000, - "runId": "boomi-test", - "lastRunId": "no-run-id-provided" - } -}, { "entityType": "dataJob", "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,161c2360-f2fb-4e20-aba5-db60101ce2b1,PROD),process)", @@ -1062,23 +1028,6 @@ "lastRunId": "no-run-id-provided" } }, -{ - "entityType": "dataJob", - "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,5b1e0c2a-6f0d-4c1e-9a43-000000000001,PROD),process)", - "changeType": "UPSERT", - "aspectName": "dataJobInputOutput", - "aspect": { - "json": { - "inputDatasets": [], - "outputDatasets": [] - } - }, - "systemMetadata": { - "lastObserved": 1793649600000, - "runId": "boomi-test", - "lastRunId": "no-run-id-provided" - } -}, { "entityType": "dataJob", "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,5b1e0c2a-6f0d-4c1e-9a43-000000000001,PROD),process)", @@ -1340,23 +1289,6 @@ "lastRunId": "no-run-id-provided" } }, -{ - "entityType": "dataJob", - "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,5b1e0c2a-6f0d-4c1e-9a43-000000000002,PROD),process)", - "changeType": "UPSERT", - "aspectName": "dataJobInputOutput", - "aspect": { - "json": { - "inputDatasets": [], - "outputDatasets": [] - } - }, - "systemMetadata": { - "lastObserved": 1793649600000, - "runId": "boomi-test", - "lastRunId": "no-run-id-provided" - } -}, { "entityType": "dataJob", "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,5b1e0c2a-6f0d-4c1e-9a43-000000000002,PROD),process)", @@ -1871,23 +1803,6 @@ "lastRunId": "no-run-id-provided" } }, -{ - "entityType": "dataJob", - "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,6363d3f8-93fa-4c4d-a399-45bde722ee63,PROD),process)", - "changeType": "UPSERT", - "aspectName": "dataJobInputOutput", - "aspect": { - "json": { - "inputDatasets": [], - "outputDatasets": [] - } - }, - "systemMetadata": { - "lastObserved": 1793649600000, - "runId": "boomi-test", - "lastRunId": "no-run-id-provided" - } -}, { "entityType": "dataJob", "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,6363d3f8-93fa-4c4d-a399-45bde722ee63,PROD),process)", @@ -1904,23 +1819,6 @@ "lastRunId": "no-run-id-provided" } }, -{ - "entityType": "dataJob", - "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,e1b56fb6-0dae-4c33-9a9d-e5af9b8aedbc,PROD),process)", - "changeType": "UPSERT", - "aspectName": "dataJobInputOutput", - "aspect": { - "json": { - "inputDatasets": [], - "outputDatasets": [] - } - }, - "systemMetadata": { - "lastObserved": 1793649600000, - "runId": "boomi-test", - "lastRunId": "no-run-id-provided" - } -}, { "entityType": "dataJob", "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,e1b56fb6-0dae-4c33-9a9d-e5af9b8aedbc,PROD),process)", @@ -2447,23 +2345,6 @@ "lastRunId": "no-run-id-provided" } }, -{ - "entityType": "dataJob", - "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,f58d0126-87ab-4f1a-bed9-2849688c8e99,PROD),process)", - "changeType": "UPSERT", - "aspectName": "dataJobInputOutput", - "aspect": { - "json": { - "inputDatasets": [], - "outputDatasets": [] - } - }, - "systemMetadata": { - "lastObserved": 1793649600000, - "runId": "boomi-test", - "lastRunId": "no-run-id-provided" - } -}, { "entityType": "dataJob", "entityUrn": "urn:li:dataJob:(urn:li:dataFlow:(boomi,f58d0126-87ab-4f1a-bed9-2849688c8e99,PROD),process)", diff --git a/metadata-ingestion/tests/unit/boomi/test_source.py b/metadata-ingestion/tests/unit/boomi/test_source.py index 9d02dd9ec3ebe..da86e9aaf99da 100644 --- a/metadata-ingestion/tests/unit/boomi/test_source.py +++ b/metadata-ingestion/tests/unit/boomi/test_source.py @@ -423,3 +423,40 @@ def test_test_connection_reports_auth_failure() -> None: assert report.basic_connectivity is not None assert not report.basic_connectivity.capable + + +def test_process_listing_failure_is_reported() -> None: + source = _source() + with requests_mock.Mocker() as mock: + _register(mock, []) + mock.post(f"{BASE_URL}/ComponentMetadata/query", status_code=500) + assert _flows(source) == [] + + assert [f.title for f in source.get_report().failures] == [ + "Failed to list Boomi processes" + ] + + +def test_filtered_environment_deployments_do_not_count() -> None: + source = _source(environment_pattern={"deny": ["^Production$"]}) + with requests_mock.Mocker() as mock: + _register( + mock, [_process_record("p1", "Orders Sync")], deployed=[_deployment("p1")] + ) + assert _flows(source) == [] + + report = source.get_report() + assert list(report.environments_filtered) == ["Production"] + assert list(report.processes_undeployed_skipped) == ["Orders Sync"] + + +def test_process_in_denied_folder_is_filtered() -> None: + source = _source( + include_undeployed_processes=True, + folder_pattern={"deny": ["^Test Account/Orders$"]}, + ) + with requests_mock.Mocker() as mock: + _register(mock, [_process_record("p1", "Orders Sync")]) + assert _flows(source) == [] + + assert list(source.get_report().processes_filtered) == ["Orders Sync"] From d412b52593d81084067c48dc1fb71caa5a250026 Mon Sep 17 00:00:00 2001 From: acrylJonny Date: Tue, 3 Nov 2026 08:00:31 +0000 Subject: [PATCH 11/20] fix(ingest/boomi): harden test_connection and api_url, focus the process link - Return a failed connectivity report when a 200 response does not parse. - Reject api_url values that carry user info. - Open the process with componentIdOnFocus so the Boomi UI focuses it. - Add a test_connection success test and make the XML-failure test check that owners from the listing survive. - Fix docs grammar and list the retried HTTP statuses. Co-Authored-By: Claude Opus 5.5 --- .../docs/sources/boomi/boomi_post.md | 4 +- .../datahub/ingestion/source/boomi/config.py | 4 +- .../ingestion/source/boomi/constants.py | 3 +- .../datahub/ingestion/source/boomi/source.py | 2 +- .../boomi/golden/boomi_mces_golden.json | 14 +++--- .../tests/unit/boomi/test_source.py | 43 ++++++++++++++++++- 6 files changed, 56 insertions(+), 14 deletions(-) diff --git a/metadata-ingestion/docs/sources/boomi/boomi_post.md b/metadata-ingestion/docs/sources/boomi/boomi_post.md index e9df894ccdcf9..c41842b6ce2e1 100644 --- a/metadata-ingestion/docs/sources/boomi/boomi_post.md +++ b/metadata-ingestion/docs/sources/boomi/boomi_post.md @@ -11,7 +11,7 @@ Active deployments come from `DeployedPackage`, joined to environment names. `en #### Folders -Every folder that matches `folder_pattern` is emitted as a container, together with its parent folders so the browse path stays complete. `folder_pattern` is matched against the full folder path, for example `Acme/Production/Orders`. Processes in folders that do not match are skipped. If a process's folder is not in the folder listing, the path is read from the process component instead, When no path is available, the process is kept if `folder_pattern` only has deny entries and skipped if it has an allow list. +Every folder that matches `folder_pattern` is emitted as a container, together with its parent folders so the browse path stays complete. `folder_pattern` is matched against the full folder path, for example `Acme/Production/Orders`. Processes in folders that do not match are skipped. If a process's folder is not in the folder listing, the path is read from the process component instead. When no path is available, the process is kept if `folder_pattern` only has deny entries and skipped if it has an allow list. #### Branches @@ -19,7 +19,7 @@ If Branch and Merge is enabled on the account, set `branch_name` (usually `main` #### Rate limiting -Boomi allows 10 Platform API requests per second per account and answers with HTTP 503 when the limit is exceeded. The source plugin caps itself at `max_requests_per_second` (8 by default) and retries 503 and other 5xx responses with exponential backoff. Lower the cap if other API clients share the account. +Boomi allows 10 Platform API requests per second per account and answers with HTTP 503 when the limit is exceeded. The source plugin caps itself at `max_requests_per_second` (8 by default) and retries 429, 500, 502, 503 and 504 responses with exponential backoff. Lower the cap if other API clients share the account. The source plugin makes one request per process to read its component XML, so an account with 1,000 processes needs a little over two minutes at the default rate. diff --git a/metadata-ingestion/src/datahub/ingestion/source/boomi/config.py b/metadata-ingestion/src/datahub/ingestion/source/boomi/config.py index 3e1e4672e2c60..0a56d359ca3fa 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/boomi/config.py +++ b/metadata-ingestion/src/datahub/ingestion/source/boomi/config.py @@ -115,11 +115,13 @@ def _validate_api_url(cls, value: str) -> str: if ( parsed.scheme not in (SCHEME_HTTP, SCHEME_HTTPS) or not parsed.hostname + or parsed.username + or parsed.password or parsed.query or parsed.fragment ): raise ValueError( - f"api_url must be a base URL such as https://api.boomi.com, without a query or fragment, got {value!r}" + f"api_url must be a base URL such as https://api.boomi.com, without credentials, a query or a fragment, got {value!r}" ) # The client appends /api/rest/v1/, so a full Platform API # URL here would double the prefix. diff --git a/metadata-ingestion/src/datahub/ingestion/source/boomi/constants.py b/metadata-ingestion/src/datahub/ingestion/source/boomi/constants.py index 0768743bc5dad..58745383a3317 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/boomi/constants.py +++ b/metadata-ingestion/src/datahub/ingestion/source/boomi/constants.py @@ -63,7 +63,8 @@ "api.platform.gb.boomi.com": "platform.gb.boomi.com", } PROCESS_URL_TEMPLATE = ( - "https://{ui_host}/AtomSphere.html#build;accountId={account_id};components={id}" + "https://{ui_host}/AtomSphere.html#build;accountId={account_id};components={id};" + "componentIdOnFocus={id}" ) XML_ATTR_FOLDER_FULL_PATH = "folderFullPath" diff --git a/metadata-ingestion/src/datahub/ingestion/source/boomi/source.py b/metadata-ingestion/src/datahub/ingestion/source/boomi/source.py index 873ebec978607..dcbc95738a39c 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/boomi/source.py +++ b/metadata-ingestion/src/datahub/ingestion/source/boomi/source.py @@ -161,7 +161,7 @@ def test_connection(config_dict: dict) -> TestConnectionReport: return TestConnectionReport( basic_connectivity=CapabilityReport(capable=True) ) - except (BoomiApiError, requests.RequestException) as e: + except (BoomiApiError, requests.RequestException, ValidationError) as e: return TestConnectionReport( basic_connectivity=CapabilityReport( capable=False, failure_reason=str(e) diff --git a/metadata-ingestion/tests/integration/boomi/golden/boomi_mces_golden.json b/metadata-ingestion/tests/integration/boomi/golden/boomi_mces_golden.json index b9a60800f5a8a..814ae418dcf37 100644 --- a/metadata-ingestion/tests/integration/boomi/golden/boomi_mces_golden.json +++ b/metadata-ingestion/tests/integration/boomi/golden/boomi_mces_golden.json @@ -635,7 +635,7 @@ "folderFullPath": "Test Account/DataHub Test/Orders", "deployments": "DH Test Env=1.0" }, - "externalUrl": "https://platform.boomi.com/AtomSphere.html#build;accountId=acme-AB1CD2;components=e1b56fb6-0dae-4c33-9a9d-e5af9b8aedbc", + "externalUrl": "https://platform.boomi.com/AtomSphere.html#build;accountId=acme-AB1CD2;components=e1b56fb6-0dae-4c33-9a9d-e5af9b8aedbc;componentIdOnFocus=e1b56fb6-0dae-4c33-9a9d-e5af9b8aedbc", "name": "DH Test - Orders Extract", "description": "Legacy DB read from RNAcentral, written to disk", "created": { @@ -892,7 +892,7 @@ "folderFullPath": "Test Account/DataHub Test/Orders", "deployments": "DH Test Prod Env=1.1" }, - "externalUrl": "https://platform.boomi.com/AtomSphere.html#build;accountId=acme-AB1CD2;components=161c2360-f2fb-4e20-aba5-db60101ce2b1", + "externalUrl": "https://platform.boomi.com/AtomSphere.html#build;accountId=acme-AB1CD2;components=161c2360-f2fb-4e20-aba5-db60101ce2b1;componentIdOnFocus=161c2360-f2fb-4e20-aba5-db60101ce2b1", "name": "DH Test - Posts Fetch", "description": "HTTP GET posts then call Orders Extract", "created": { @@ -1146,7 +1146,7 @@ "folderFullPath": "Test Account/DataHub Test/Orders", "deployments": "DH Test Prod Env=2.0" }, - "externalUrl": "https://platform.boomi.com/AtomSphere.html#build;accountId=acme-AB1CD2;components=5b1e0c2a-6f0d-4c1e-9a43-000000000001", + "externalUrl": "https://platform.boomi.com/AtomSphere.html#build;accountId=acme-AB1CD2;components=5b1e0c2a-6f0d-4c1e-9a43-000000000001;componentIdOnFocus=5b1e0c2a-6f0d-4c1e-9a43-000000000001", "name": "DH Test - Invoice Export", "description": "Exports posted invoices to the finance warehouse.", "created": { @@ -1425,7 +1425,7 @@ "modifiedDate": "2026-11-02T19:17:12+00:00", "folderFullPath": "Test Account/DataHub Test/Orders" }, - "externalUrl": "https://platform.boomi.com/AtomSphere.html#build;accountId=acme-AB1CD2;components=5b1e0c2a-6f0d-4c1e-9a43-000000000002", + "externalUrl": "https://platform.boomi.com/AtomSphere.html#build;accountId=acme-AB1CD2;components=5b1e0c2a-6f0d-4c1e-9a43-000000000002;componentIdOnFocus=5b1e0c2a-6f0d-4c1e-9a43-000000000002", "name": "DH Test - Shipment Notify", "created": { "time": 1793647032000 @@ -1501,7 +1501,7 @@ "folderFullPath": "Test Account/DataHub Test/Orders", "deployments": "DH Test Env=1.1" }, - "externalUrl": "https://platform.boomi.com/AtomSphere.html#build;accountId=acme-AB1CD2;components=6363d3f8-93fa-4c4d-a399-45bde722ee63", + "externalUrl": "https://platform.boomi.com/AtomSphere.html#build;accountId=acme-AB1CD2;components=6363d3f8-93fa-4c4d-a399-45bde722ee63;componentIdOnFocus=6363d3f8-93fa-4c4d-a399-45bde722ee63", "name": "DH Test - Catalog Sync", "description": "Database V2 reads from Ensembl, written to disk", "created": { @@ -1725,7 +1725,7 @@ "modifiedDate": "2026-11-02T19:17:15+00:00", "folderFullPath": "Test Account/DataHub Test/Orders" }, - "externalUrl": "https://platform.boomi.com/AtomSphere.html#build;accountId=acme-AB1CD2;components=f58d0126-87ab-4f1a-bed9-2849688c8e99", + "externalUrl": "https://platform.boomi.com/AtomSphere.html#build;accountId=acme-AB1CD2;components=f58d0126-87ab-4f1a-bed9-2849688c8e99;componentIdOnFocus=f58d0126-87ab-4f1a-bed9-2849688c8e99", "name": "DH Test - Salesforce Accounts", "description": "Never deployed. Salesforce Account query then legacy DB insert into my_table", "created": { @@ -2071,7 +2071,7 @@ "modifiedDate": "2026-11-02T19:20:48+00:00", "folderFullPath": "Test Account/DataHub Test/Orders" }, - "externalUrl": "https://platform.boomi.com/AtomSphere.html#build;accountId=acme-AB1CD2;components=72a4e14f-b0aa-45c1-850c-5306d99b5855", + "externalUrl": "https://platform.boomi.com/AtomSphere.html#build;accountId=acme-AB1CD2;components=72a4e14f-b0aa-45c1-850c-5306d99b5855;componentIdOnFocus=72a4e14f-b0aa-45c1-850c-5306d99b5855", "name": "DH Test - SFTP Pickup", "description": "SFTP read from test.rebex.net, written to disk (v2)", "created": { diff --git a/metadata-ingestion/tests/unit/boomi/test_source.py b/metadata-ingestion/tests/unit/boomi/test_source.py index da86e9aaf99da..c679450bc2624 100644 --- a/metadata-ingestion/tests/unit/boomi/test_source.py +++ b/metadata-ingestion/tests/unit/boomi/test_source.py @@ -337,7 +337,7 @@ def test_deployment_without_package_version_lists_environment_only() -> None: def test_xml_failure_still_emits_process() -> None: - source = _source(include_undeployed_processes=True, extract_owners=False) + source = _source(include_undeployed_processes=True) with requests_mock.Mocker() as mock: _register(mock, [_process_record("p1", "Orders Sync")]) mock.get(f"{BASE_URL}/Component/p1", text=" None: assert len(flows) == 1 assert flows[0].description is None - assert flows[0].owners is None + # Owners come from the listing record, not the component XML. + assert flows[0].owners assert list(source.get_report().process_xml_failures) == ["p1"] @@ -357,6 +358,8 @@ def test_xml_failure_still_emits_process() -> None: "https://api.boomi.com?region=us", "https://api.boomi.com#build", "https://api.boomi.com/api/rest/v1/acct", + "https://user:secret@api.boomi.com", + "https://user@api.boomi.com", ], ) def test_config_rejects_invalid_api_url(api_url: str) -> None: @@ -425,6 +428,42 @@ def test_test_connection_reports_auth_failure() -> None: assert not report.basic_connectivity.capable +def test_test_connection_succeeds() -> None: + with requests_mock.Mocker() as mock: + mock.post( + f"{BASE_URL}/ComponentMetadata/query", + json=_page([_process_record("p1", "Orders Sync")]), + ) + report = BoomiSource.test_connection( + { + "account_id": ACCOUNT_ID, + "username": "svc@example.com", + "api_token": "secret-token", + } + ) + + assert report.basic_connectivity is not None + assert report.basic_connectivity.capable + + +def test_test_connection_reports_malformed_response() -> None: + with requests_mock.Mocker() as mock: + mock.post( + f"{BASE_URL}/ComponentMetadata/query", + json={"numberOfResults": "many", "result": "not-a-list"}, + ) + report = BoomiSource.test_connection( + { + "account_id": ACCOUNT_ID, + "username": "svc@example.com", + "api_token": "secret-token", + } + ) + + assert report.basic_connectivity is not None + assert not report.basic_connectivity.capable + + def test_process_listing_failure_is_reported() -> None: source = _source() with requests_mock.Mocker() as mock: From e6c4f35965b92847cd945b95e79b7008c9fd8be4 Mon Sep 17 00:00:00 2001 From: acrylJonny Date: Tue, 3 Nov 2026 08:00:50 +0000 Subject: [PATCH 12/20] test(ingest/boomi): parse a process saved from the Boomi UI Pin that a whitespace-only description from a UI-built process becomes None. Co-Authored-By: Claude Opus 5.5 --- .../unit/boomi/fixtures/gui_start_only_process.xml | 2 ++ .../tests/unit/boomi/test_parsing.py | 14 ++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 metadata-ingestion/tests/unit/boomi/fixtures/gui_start_only_process.xml diff --git a/metadata-ingestion/tests/unit/boomi/fixtures/gui_start_only_process.xml b/metadata-ingestion/tests/unit/boomi/fixtures/gui_start_only_process.xml new file mode 100644 index 0000000000000..c14d53b9b9536 --- /dev/null +++ b/metadata-ingestion/tests/unit/boomi/fixtures/gui_start_only_process.xml @@ -0,0 +1,2 @@ + + diff --git a/metadata-ingestion/tests/unit/boomi/test_parsing.py b/metadata-ingestion/tests/unit/boomi/test_parsing.py index 72f3e5f6ce22b..dd2a8933873bc 100644 --- a/metadata-ingestion/tests/unit/boomi/test_parsing.py +++ b/metadata-ingestion/tests/unit/boomi/test_parsing.py @@ -1,3 +1,5 @@ +import pathlib + import pytest from defusedxml.common import DefusedXmlException from pydantic import ValidationError @@ -5,6 +7,12 @@ from datahub.ingestion.source.boomi.component_parser import parse_process_component from datahub.ingestion.source.boomi.models import ComponentMetadata, QueryResponse +# Saved from a process drawn in the Boomi UI: the start shape carries an empty +# connectoraction, its dragpoint is "unset" and the description is whitespace. +GUI_START_ONLY_XML = ( + pathlib.Path(__file__).parent / "fixtures" / "gui_start_only_process.xml" +).read_text() + # Shaped like a live GET Component/{id} response. EXPORT_STYLE_XML = """Copies orders into the ERP. shape-level text that must not be picked up @@ -37,6 +45,12 @@ def test_parse_without_description() -> None: assert info.folder_full_path is None +def test_parse_gui_process_with_blank_description() -> None: + info = parse_process_component(GUI_START_ONLY_XML) + assert info.description is None + assert info.folder_full_path == "Test Account/DataHub Test/Orders" + + def test_parse_rejects_entity_expansion() -> None: xml = ( ']>' From fd59a3fe035c07dd91b59aa629e09849c7a2fa3f Mon Sep 17 00:00:00 2001 From: acrylJonny Date: Tue, 3 Nov 2026 09:07:33 +0000 Subject: [PATCH 13/20] fix(ingest/boomi): keep api_url out of the credential validation error Co-Authored-By: Claude Opus 5.5 --- .../src/datahub/ingestion/source/boomi/config.py | 3 ++- metadata-ingestion/tests/unit/boomi/test_source.py | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/metadata-ingestion/src/datahub/ingestion/source/boomi/config.py b/metadata-ingestion/src/datahub/ingestion/source/boomi/config.py index 0a56d359ca3fa..0281c89e4781f 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/boomi/config.py +++ b/metadata-ingestion/src/datahub/ingestion/source/boomi/config.py @@ -121,7 +121,8 @@ def _validate_api_url(cls, value: str) -> str: or parsed.fragment ): raise ValueError( - f"api_url must be a base URL such as https://api.boomi.com, without credentials, a query or a fragment, got {value!r}" + # The value is left out because it may carry a password. + "api_url must be a base URL such as https://api.boomi.com, without credentials, a query or a fragment" ) # The client appends /api/rest/v1/, so a full Platform API # URL here would double the prefix. diff --git a/metadata-ingestion/tests/unit/boomi/test_source.py b/metadata-ingestion/tests/unit/boomi/test_source.py index c679450bc2624..46dbf91185842 100644 --- a/metadata-ingestion/tests/unit/boomi/test_source.py +++ b/metadata-ingestion/tests/unit/boomi/test_source.py @@ -374,6 +374,19 @@ def test_config_rejects_invalid_api_url(api_url: str) -> None: ) +def test_config_api_url_error_omits_password() -> None: + with pytest.raises(ValidationError) as excinfo: + BoomiSourceConfig.model_validate( + { + "account_id": ACCOUNT_ID, + "username": "svc@example.com", + "api_token": "secret-token", + "api_url": "https://user:url-password@api.boomi.com", + } + ) + assert "url-password" not in str(excinfo.value) + + @pytest.mark.parametrize( "api_url", ["http://localhost:8080", "http://127.0.0.1:9000", "http://[::1]:80"] ) From 58bfac9f738a9a64011e8d074e9af7202709b1db Mon Sep 17 00:00:00 2001 From: acrylJonny Date: Mon, 2 Nov 2026 20:01:38 +0000 Subject: [PATCH 14/20] refactor(ingest): extract shared JDBC URL parsing into common/jdbc Move normalize_jdbc_url, validate_jdbc_url, JDBC_PREFIX, the Oracle thin, SQL Server and jTDS regexes, and the JDBC protocol platform fallback set from kafka_connect into datahub.ingestion.source.common.jdbc so other connectors can reuse them. kafka_connect now imports them from there with no behaviour change; its normalize/validate unit tests move with them. Add parse_jdbc_url, which returns a JdbcUrlInfo (platform, host, port, database, schema_name). The platform comes from the SQLAlchemy URI mapper, with overrides for sap (hana) and mariadb and the existing db2, teradata and cassandra fallbacks. It covers postgres, redshift, mysql, mariadb, db2, SQL Server, jTDS, Oracle thin, Snowflake, SAP HANA, Teradata, ClickHouse, Vertica, Trino, Presto and Hive URLs, returns no platform for an unknown subprotocol and an empty result for input it cannot parse. Co-Authored-By: Claude Opus 5.5 --- .../datahub/ingestion/source/common/jdbc.py | 257 ++++++++++++++++++ .../ingestion/source/kafka_connect/common.py | 74 ----- .../source/kafka_connect/sink_connectors.py | 6 +- .../source/kafka_connect/source_connectors.py | 19 +- .../tests/unit/common/test_jdbc.py | 213 +++++++++++++++ ...est_kafka_connect_jdbc_parser_factories.py | 55 ---- 6 files changed, 481 insertions(+), 143 deletions(-) create mode 100644 metadata-ingestion/src/datahub/ingestion/source/common/jdbc.py create mode 100644 metadata-ingestion/tests/unit/common/test_jdbc.py diff --git a/metadata-ingestion/src/datahub/ingestion/source/common/jdbc.py b/metadata-ingestion/src/datahub/ingestion/source/common/jdbc.py new file mode 100644 index 0000000000000..66c4e49d68b85 --- /dev/null +++ b/metadata-ingestion/src/datahub/ingestion/source/common/jdbc.py @@ -0,0 +1,257 @@ +import re +from typing import Dict, Final, FrozenSet, Optional +from urllib.parse import SplitResult, parse_qsl, urlsplit + +from pydantic import BaseModel + +from datahub.ingestion.source.sql.sqlalchemy_uri_mapper import ( + get_platform_from_sqlalchemy_uri, +) + +JDBC_PREFIX: Final[str] = "jdbc:" + +# Regex patterns for non-standard JDBC URL formats (see normalize_jdbc_url) +_ORACLE_THIN_RE: Final = re.compile( + r"^(?:jdbc:)?oracle:(?:thin|oci):@/?" + r"/?(?P[^:/@\s]+)" + r":(?P\d+)" + r"(?:[:/](?P[^@?;\s]+))?" + r"(?:[;?].*)?$" +) +_SQLSERVER_RE: Final = re.compile( + r"^(?:jdbc:)?sqlserver://(?P[^:;/\s]+)" + r"(?::(?P\d+))?" + r"(?:;(?P.*))?$" +) +_JTDS_RE: Final = re.compile( + r"^(?:jdbc:)?jtds:sqlserver://(?P[^:/@\s]+)" + r"(?::(?P\d+))?" + r"(?:/(?P[^;?\s]+))?" + r"(?:[;?].*)?$" +) + +SQLSERVER_DEFAULT_PORT: Final[str] = "1433" +SQLSERVER_DATABASE_NAME_KEY: Final[str] = "databasename" +SQLSERVER_DATABASE_KEYS: Final[FrozenSet[str]] = frozenset( + {SQLSERVER_DATABASE_NAME_KEY, "database"} +) + +ORACLE_PLATFORM: Final[str] = "oracle" +MSSQL_PLATFORM: Final[str] = "mssql" +SNOWFLAKE_PLATFORM: Final[str] = "snowflake" +HANA_PLATFORM: Final[str] = "hana" +TERADATA_PLATFORM: Final[str] = "teradata" +_SQLALCHEMY_UNKNOWN_PLATFORM: Final[str] = "external" + +# JDBC subprotocols the SQLAlchemy mapper does not recognize but that are real +# DataHub platforms. Anything else stays unknown so a mistyped URL cannot invent +# a lineage platform. +JDBC_PROTOCOL_PLATFORM_FALLBACK: Final[FrozenSet[str]] = frozenset( + {"db2", TERADATA_PLATFORM, "cassandra"} +) +# Subprotocols whose name differs from the DataHub platform, or that the +# SQLAlchemy mapper would otherwise miss. +JDBC_SCHEME_PLATFORM_OVERRIDES: Final[Dict[str, str]] = { + "sap": HANA_PLATFORM, + "mariadb": "mariadb", +} + +# Platforms whose JDBC URL carries the database as the first path segment. +JDBC_PATH_DATABASE_PLATFORMS: Final[FrozenSet[str]] = frozenset( + {"postgres", "redshift", "mysql", "mariadb", "db2", "clickhouse", "vertica", "hive"} +) +# Platforms whose JDBC URL path is `/catalog/schema`. +JDBC_PATH_CATALOG_SCHEMA_PLATFORMS: Final[FrozenSet[str]] = frozenset( + {"trino", "presto"} +) + +SNOWFLAKE_DATABASE_KEY: Final[str] = "db" +SNOWFLAKE_SCHEMA_KEY: Final[str] = "schema" +HANA_DATABASE_KEY: Final[str] = "databasename" +TERADATA_DATABASE_KEY: Final[str] = "database" + +# DB2 appends `:prop=value;` to the database; Hive and others use `;` or `?`. +_PATH_SEGMENT_TERMINATORS_RE: Final = re.compile(r"[;:]") + + +class JdbcUrlInfo(BaseModel): + platform: Optional[str] = None + host: Optional[str] = None + port: Optional[int] = None + database: Optional[str] = None + schema_name: Optional[str] = None + + +def normalize_jdbc_url(url: str) -> str: + """Convert a JDBC URL to a form SQLAlchemy can parse. + + Non-standard formats handled: + - Oracle thin/OCI (oracle:thin:@[//]host:port/service) → oracle://host:port/service + - SQL Server JDBC (sqlserver://host[:port][;databaseName=db;...]) → mssql://host:port/db + - jTDS SQL Server (jtds:sqlserver://host[:port][/db]) → mssql://host:port/db + + All other URLs are returned unchanged after stripping a leading jdbc:. + """ + m = _ORACLE_THIN_RE.match(url) + if m: + host = m.group("host") + port = m.group("port") + db = m.group("db") or "" + return f"oracle://{host}:{port}/{db}" + + m = _SQLSERVER_RE.match(url) + if m: + host = m.group("host") + port = m.group("port") or SQLSERVER_DEFAULT_PORT + db = "" + params_str = m.group("params") or "" + for param in params_str.split(";"): + if "=" in param: + k, _, v = param.partition("=") + if k.strip().lower() == SQLSERVER_DATABASE_NAME_KEY: + db = v.strip() + break + return f"mssql://{host}:{port}/{db}" + + m = _JTDS_RE.match(url) + if m: + host = m.group("host") + port = m.group("port") or SQLSERVER_DEFAULT_PORT + db = m.group("db") or "" + return f"mssql://{host}:{port}/{db}" + + return url[len(JDBC_PREFIX) :] if url.startswith(JDBC_PREFIX) else url + + +def validate_jdbc_url(url: str) -> bool: + """Return whether url is a JDBC URL format we can parse.""" + if not url or not isinstance(url, str): + return False + if _ORACLE_THIN_RE.match(url) or _SQLSERVER_RE.match(url) or _JTDS_RE.match(url): + return True + if not url.startswith(JDBC_PREFIX): + return False + parts = url.split(":", 3) + return len(parts) >= 3 # jdbc:protocol:connection_details + + +def parse_jdbc_url(url: str) -> JdbcUrlInfo: + """Read the platform, host, port, database and schema from a JDBC URL. + + Returns an empty JdbcUrlInfo for anything it cannot parse, and one with no + platform for a subprotocol it does not recognize. For Oracle, `database` + holds the SID or service name, which DataHub does not use as a URN segment + by default, so callers decide whether to keep it. + """ + if not validate_jdbc_url(url): + return JdbcUrlInfo() + try: + return _parse_valid_jdbc_url(url) + except ValueError: + return JdbcUrlInfo() + + +def _parse_valid_jdbc_url(url: str) -> JdbcUrlInfo: + m = _ORACLE_THIN_RE.match(url) + if m: + return JdbcUrlInfo( + platform=ORACLE_PLATFORM, + host=m.group("host"), + port=int(m.group("port")), + database=m.group("db"), + ) + + m = _SQLSERVER_RE.match(url) + if m: + return JdbcUrlInfo( + platform=MSSQL_PLATFORM, + host=m.group("host"), + port=_to_port(m.group("port")), + database=_sqlserver_database(m.group("params") or ""), + ) + + m = _JTDS_RE.match(url) + if m: + return JdbcUrlInfo( + platform=MSSQL_PLATFORM, + host=m.group("host"), + port=_to_port(m.group("port")), + database=m.group("db"), + ) + + body = url[len(JDBC_PREFIX) :] + scheme = body.partition(":")[0].lower() + platform = _platform_for_scheme(scheme, body) + parts = urlsplit(body) + info = JdbcUrlInfo(platform=platform, host=parts.hostname, port=_split_port(parts)) + if platform is None: + return info + + segments = [segment for segment in parts.path.split("/") if segment] + if platform in JDBC_PATH_DATABASE_PLATFORMS: + if segments: + info.database = _clean_segment(segments[0]) + elif platform in JDBC_PATH_CATALOG_SCHEMA_PLATFORMS: + if segments: + info.database = _clean_segment(segments[0]) + if len(segments) > 1: + info.schema_name = _clean_segment(segments[1]) + elif platform == SNOWFLAKE_PLATFORM: + params = _query_params(parts.query) + info.database = params.get(SNOWFLAKE_DATABASE_KEY) or None + info.schema_name = params.get(SNOWFLAKE_SCHEMA_KEY) or None + elif platform == HANA_PLATFORM: + info.database = _query_params(parts.query).get(HANA_DATABASE_KEY) or None + elif platform == TERADATA_PLATFORM: + info.database = _teradata_database(parts.path) + return info + + +def _platform_for_scheme(scheme: str, body: str) -> Optional[str]: + override = JDBC_SCHEME_PLATFORM_OVERRIDES.get(scheme) + if override is not None: + return override + platform = get_platform_from_sqlalchemy_uri(body) + if platform != _SQLALCHEMY_UNKNOWN_PLATFORM: + return platform + if scheme in JDBC_PROTOCOL_PLATFORM_FALLBACK: + return scheme + return None + + +def _sqlserver_database(params: str) -> Optional[str]: + for param in params.split(";"): + key, _, value = param.partition("=") + if key.strip().lower() in SQLSERVER_DATABASE_KEYS and value.strip(): + return value.strip() + return None + + +def _teradata_database(path: str) -> Optional[str]: + # jdbc:teradata://host/DATABASE=db,CHARSET=UTF8 + for param in path.strip("/").split(","): + key, _, value = param.partition("=") + if key.strip().lower() == TERADATA_DATABASE_KEY and value.strip(): + return value.strip() + return None + + +def _query_params(query: str) -> Dict[str, str]: + return {key.lower(): value for key, value in parse_qsl(query)} + + +def _clean_segment(segment: str) -> Optional[str]: + return _PATH_SEGMENT_TERMINATORS_RE.split(segment, maxsplit=1)[0].strip() or None + + +def _to_port(port: Optional[str]) -> Optional[int]: + return int(port) if port else None + + +def _split_port(parts: SplitResult) -> Optional[int]: + # A malformed or multi-host netloc (`h1:3306,h2:3306`) makes `.port` raise; + # the database in the path is still worth returning. + try: + return parts.port + except ValueError: + return None diff --git a/metadata-ingestion/src/datahub/ingestion/source/kafka_connect/common.py b/metadata-ingestion/src/datahub/ingestion/source/kafka_connect/common.py index 0b3c6b76b92fd..fa4b2c581f4d5 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/kafka_connect/common.py +++ b/metadata-ingestion/src/datahub/ingestion/source/kafka_connect/common.py @@ -74,33 +74,12 @@ SOURCE: Final[str] = "source" SINK: Final[str] = "sink" CONNECTOR_CLASS: Final[str] = "connector.class" -JDBC_PREFIX: Final[str] = "jdbc:" # The probe kind for a Kafka Connect connector (emitted as a DataFlow). No DataHub # subtype exists for it; declared once so the probe command and the Filters() # declaration on connector_patterns cannot drift apart. KAFKA_CONNECT_CONNECTOR_KIND: Final[str] = "Connector" -# Regex patterns for non-standard JDBC URL formats (see normalize_jdbc_url) -_ORACLE_THIN_RE: Final = re.compile( - r"^(?:jdbc:)?oracle:(?:thin|oci):@/?" - r"/?(?P[^:/@\s]+)" - r":(?P\d+)" - r"(?:[:/](?P[^@?;\s]+))?" - r"(?:[;?].*)?$" -) -_SQLSERVER_RE: Final = re.compile( - r"^(?:jdbc:)?sqlserver://(?P[^:;/\s]+)" - r"(?::(?P\d+))?" - r"(?:;(?P.*))?$" -) -_JTDS_RE: Final = re.compile( - r"^(?:jdbc:)?jtds:sqlserver://(?P[^:/@\s]+)" - r"(?::(?P\d+))?" - r"(?:/(?P[^;?\s]+))?" - r"(?:[;?].*)?$" -) - # Default connection settings DEFAULT_CONNECT_URI: Final[str] = "http://localhost:8083/" @@ -766,59 +745,6 @@ def unquote( return string -def normalize_jdbc_url(url: str) -> str: - """Convert a JDBC URL to a form SQLAlchemy can parse. - - Non-standard formats handled: - - Oracle thin/OCI (oracle:thin:@[//]host:port/service) → oracle://host:port/service - - SQL Server JDBC (sqlserver://host[:port][;databaseName=db;...]) → mssql://host:port/db - - jTDS SQL Server (jtds:sqlserver://host[:port][/db]) → mssql://host:port/db - - All other URLs are returned unchanged after stripping a leading jdbc:. - """ - m = _ORACLE_THIN_RE.match(url) - if m: - host = m.group("host") - port = m.group("port") - db = m.group("db") or "" - return f"oracle://{host}:{port}/{db}" - - m = _SQLSERVER_RE.match(url) - if m: - host = m.group("host") - port = m.group("port") or "1433" - db = "" - params_str = m.group("params") or "" - for param in params_str.split(";"): - if "=" in param: - k, _, v = param.partition("=") - if k.strip().lower() == "databasename": - db = v.strip() - break - return f"mssql://{host}:{port}/{db}" - - m = _JTDS_RE.match(url) - if m: - host = m.group("host") - port = m.group("port") or "1433" - db = m.group("db") or "" - return f"mssql://{host}:{port}/{db}" - - return remove_prefix(url, JDBC_PREFIX) - - -def validate_jdbc_url(url: str) -> bool: - """Return whether url is a JDBC URL format we can parse.""" - if not url or not isinstance(url, str): - return False - if _ORACLE_THIN_RE.match(url) or _SQLSERVER_RE.match(url) or _JTDS_RE.match(url): - return True - if not url.startswith(JDBC_PREFIX): - return False - parts = url.split(":", 3) - return len(parts) >= 3 # jdbc:protocol:connection_details - - def parse_table_identifier(identifier: str) -> str: """Parse table identifiers that may include quotes or schemas.""" if not identifier: diff --git a/metadata-ingestion/src/datahub/ingestion/source/kafka_connect/sink_connectors.py b/metadata-ingestion/src/datahub/ingestion/source/kafka_connect/sink_connectors.py index 9cb472d338779..7f3d2647554c2 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/kafka_connect/sink_connectors.py +++ b/metadata-ingestion/src/datahub/ingestion/source/kafka_connect/sink_connectors.py @@ -5,6 +5,10 @@ from sqlalchemy.engine.url import URL, make_url +from datahub.ingestion.source.common.jdbc import ( + normalize_jdbc_url, + validate_jdbc_url, +) from datahub.ingestion.source.kafka_connect.common import ( KAFKA, BaseConnector, @@ -14,8 +18,6 @@ KafkaConnectSourceReport, get_dataset_name, has_three_level_hierarchy, - normalize_jdbc_url, - validate_jdbc_url, ) from datahub.ingestion.source.kafka_connect.config_constants import ( S3_SENSITIVE_CONFIG_KEYS, diff --git a/metadata-ingestion/src/datahub/ingestion/source/kafka_connect/source_connectors.py b/metadata-ingestion/src/datahub/ingestion/source/kafka_connect/source_connectors.py index cfc9e9729a55d..b4a9d06ea1624 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/kafka_connect/source_connectors.py +++ b/metadata-ingestion/src/datahub/ingestion/source/kafka_connect/source_connectors.py @@ -6,7 +6,6 @@ ClassVar, Dict, Final, - FrozenSet, Iterable, List, Optional, @@ -17,11 +16,16 @@ from sqlalchemy.engine.url import make_url from typing_extensions import LiteralString +from datahub.ingestion.source.common.jdbc import ( + JDBC_PREFIX, + JDBC_PROTOCOL_PLATFORM_FALLBACK, + normalize_jdbc_url, + validate_jdbc_url, +) from datahub.ingestion.source.kafka_connect.common import ( CLOUD_JDBC_SOURCE_CLASSES, CONNECTOR_CLASS, DEBEZIUM_CONNECTORS_WITH_2_LEVEL_CONTAINER, - JDBC_PREFIX, KAFKA, KNOWN_TOPIC_ROUTING_TRANSFORMS, MYSQL_CDC_SOURCE_V2_CLOUD, @@ -34,11 +38,9 @@ KafkaConnectLineage, get_dataset_name, has_three_level_hierarchy, - normalize_jdbc_url, parse_comma_separated_list, remove_prefix, unquote, - validate_jdbc_url, ) from datahub.ingestion.source.kafka_connect.config_constants import ( ConnectorConfigKeys, @@ -61,13 +63,6 @@ logger = logging.getLogger(__name__) -# JDBC subprotocols the SQLAlchemy mapper does not recognize but that are real -# DataHub platforms. Anything else falls through as "unknown" so a mistyped URL -# cannot invent a lineage platform. -_JDBC_PROTOCOL_PLATFORM_FALLBACK: Final[FrozenSet[str]] = frozenset( - {"db2", "teradata", "cassandra"} -) - @dataclass(frozen=True) class TableId: @@ -1738,7 +1733,7 @@ def _extract_platform_from_jdbc_url(self, jdbc_url: str) -> str: protocol = normalized[:protocol_end].lower() if protocol == "postgresql": return "postgres" - if protocol in _JDBC_PROTOCOL_PLATFORM_FALLBACK: + if protocol in JDBC_PROTOCOL_PLATFORM_FALLBACK: return protocol return "unknown" except Exception: diff --git a/metadata-ingestion/tests/unit/common/test_jdbc.py b/metadata-ingestion/tests/unit/common/test_jdbc.py new file mode 100644 index 0000000000000..2cfa94978169f --- /dev/null +++ b/metadata-ingestion/tests/unit/common/test_jdbc.py @@ -0,0 +1,213 @@ +import pytest + +from datahub.ingestion.source.common.jdbc import ( + JdbcUrlInfo, + normalize_jdbc_url, + parse_jdbc_url, + validate_jdbc_url, +) + + +@pytest.mark.parametrize( + "url,expected", + [ + ("jdbc:postgresql://host:5432/db", "postgresql://host:5432/db"), + ("jdbc:mysql://host:3306/db", "mysql://host:3306/db"), + ("jdbc:oracle:thin:@//host:1521/svc", "oracle://host:1521/svc"), + ( + "oracle:thin:@host:1521/svc.corp.example.com", + "oracle://host:1521/svc.corp.example.com", + ), + ("jdbc:oracle:thin:@host:1521:ORCL", "oracle://host:1521/ORCL"), + ("jdbc:oracle:oci:@//host:1521/svc", "oracle://host:1521/svc"), + ( + "jdbc:sqlserver://host:1433;databaseName=mydb;integratedSecurity=false", + "mssql://host:1433/mydb", + ), + ("jdbc:sqlserver://host;databaseName=mydb", "mssql://host:1433/mydb"), + ("jdbc:sqlserver://host:1433", "mssql://host:1433/"), + ( + "jdbc:sqlserver://host:1433;databaseName=db;password=p@ss", + "mssql://host:1433/db", + ), + ( + "jdbc:sqlserver://host:1433;databaseName=db;user=svc@tenant", + "mssql://host:1433/db", + ), + ("jdbc:oracle:thin:@host:1521/svc;foo=bar", "oracle://host:1521/svc"), + ("jdbc:jtds:sqlserver://host:1433/mydb", "mssql://host:1433/mydb"), + ("jdbc:jtds:sqlserver://host:1433", "mssql://host:1433/"), + ], +) +def test_normalize_jdbc_url(url: str, expected: str) -> None: + assert normalize_jdbc_url(url) == expected + + +@pytest.mark.parametrize( + "url,valid", + [ + ("jdbc:postgresql://host:5432/db", True), + ("oracle:thin:@host:1521/svc", True), + ("jdbc:oracle:thin:@//host:1521/svc", True), + ("jdbc:sqlserver://host:1433;databaseName=db", True), + ("jdbc:sqlserver://host:1433;databaseName=db;password=p@ss", True), + ("jdbc:jtds:sqlserver://host:1433/db", True), + ("", False), + ("not-a-url", False), + ("http://host:8080/path", False), + ], +) +def test_validate_jdbc_url(url: str, valid: bool) -> None: + assert validate_jdbc_url(url) is valid + + +@pytest.mark.parametrize( + "url,expected", + [ + ( + "jdbc:postgresql://pg.example.com:5432/sales?ssl=true", + JdbcUrlInfo( + platform="postgres", host="pg.example.com", port=5432, database="sales" + ), + ), + ( + "jdbc:postgresql://cluster.abc.us-east-1.redshift.amazonaws.com:5439/dev", + JdbcUrlInfo( + platform="redshift", + host="cluster.abc.us-east-1.redshift.amazonaws.com", + port=5439, + database="dev", + ), + ), + ( + "jdbc:redshift://rs.example.com:5439/dev", + JdbcUrlInfo( + platform="redshift", host="rs.example.com", port=5439, database="dev" + ), + ), + ( + "jdbc:mysql://my.example.com:3306/shop?useSSL=false", + JdbcUrlInfo( + platform="mysql", host="my.example.com", port=3306, database="shop" + ), + ), + ( + "jdbc:mariadb://maria.example.com/shop", + JdbcUrlInfo(platform="mariadb", host="maria.example.com", database="shop"), + ), + ( + "jdbc:db2://db2.example.com:50000/SAMPLE:currentSchema=APP;", + JdbcUrlInfo( + platform="db2", host="db2.example.com", port=50000, database="SAMPLE" + ), + ), + ( + "jdbc:sqlserver://sql.example.com:1433;encrypt=true;databaseName=sales", + JdbcUrlInfo( + platform="mssql", host="sql.example.com", port=1433, database="sales" + ), + ), + ( + "jdbc:sqlserver://sql.example.com;database=sales", + JdbcUrlInfo(platform="mssql", host="sql.example.com", database="sales"), + ), + ( + "jdbc:jtds:sqlserver://sql.example.com:1433/sales;domain=CORP", + JdbcUrlInfo( + platform="mssql", host="sql.example.com", port=1433, database="sales" + ), + ), + ( + "jdbc:oracle:thin:@ora.example.com:1521:ORCL", + JdbcUrlInfo( + platform="oracle", host="ora.example.com", port=1521, database="ORCL" + ), + ), + ( + "jdbc:oracle:thin:@//ora.example.com:1521/sales.example.com", + JdbcUrlInfo( + platform="oracle", + host="ora.example.com", + port=1521, + database="sales.example.com", + ), + ), + ( + "jdbc:snowflake://acct.snowflakecomputing.com/?db=ANALYTICS&schema=PUBLIC&warehouse=WH", + JdbcUrlInfo( + platform="snowflake", + host="acct.snowflakecomputing.com", + database="ANALYTICS", + schema_name="PUBLIC", + ), + ), + ( + "jdbc:sap://hana.example.com:30015/?databaseName=HXE", + JdbcUrlInfo( + platform="hana", host="hana.example.com", port=30015, database="HXE" + ), + ), + ( + "jdbc:teradata://td.example.com/DATABASE=sales,CHARSET=UTF8", + JdbcUrlInfo(platform="teradata", host="td.example.com", database="sales"), + ), + ( + "jdbc:clickhouse://ch.example.com:8123/events", + JdbcUrlInfo( + platform="clickhouse", + host="ch.example.com", + port=8123, + database="events", + ), + ), + ( + "jdbc:vertica://vt.example.com:5433/warehouse", + JdbcUrlInfo( + platform="vertica", + host="vt.example.com", + port=5433, + database="warehouse", + ), + ), + ( + "jdbc:trino://trino.example.com:8080/hive/sales", + JdbcUrlInfo( + platform="trino", + host="trino.example.com", + port=8080, + database="hive", + schema_name="sales", + ), + ), + ( + "jdbc:presto://presto.example.com:8080/hive", + JdbcUrlInfo( + platform="presto", host="presto.example.com", port=8080, database="hive" + ), + ), + ( + "jdbc:hive2://hive.example.com:10000/default;principal=hive/_HOST@REALM", + JdbcUrlInfo( + platform="hive", host="hive.example.com", port=10000, database="default" + ), + ), + ( + "jdbc:mysql://h1.example.com:3306,h2.example.com:3306/shop", + JdbcUrlInfo(platform="mysql", host="h1.example.com", database="shop"), + ), + ( + "jdbc:acme://acme.example.com:9999/db", + JdbcUrlInfo(host="acme.example.com", port=9999), + ), + ], +) +def test_parse_jdbc_url(url: str, expected: JdbcUrlInfo) -> None: + assert parse_jdbc_url(url) == expected + + +@pytest.mark.parametrize( + "url", + ["", "not-a-url", "http://host:8080/path", "jdbc:", "jdbc:mysql://[::1/db"], +) +def test_parse_jdbc_url_invalid(url: str) -> None: + assert parse_jdbc_url(url) == JdbcUrlInfo() diff --git a/metadata-ingestion/tests/unit/kafka_connect/test_kafka_connect_jdbc_parser_factories.py b/metadata-ingestion/tests/unit/kafka_connect/test_kafka_connect_jdbc_parser_factories.py index 1563a65e9100e..edc64f737643a 100644 --- a/metadata-ingestion/tests/unit/kafka_connect/test_kafka_connect_jdbc_parser_factories.py +++ b/metadata-ingestion/tests/unit/kafka_connect/test_kafka_connect_jdbc_parser_factories.py @@ -8,8 +8,6 @@ ConnectorManifest, KafkaConnectSourceConfig, KafkaConnectSourceReport, - normalize_jdbc_url, - validate_jdbc_url, ) from datahub.ingestion.source.kafka_connect.sink_connectors import ( JdbcSinkConnector, @@ -20,59 +18,6 @@ ) -@pytest.mark.parametrize( - "url,expected", - [ - ("jdbc:postgresql://host:5432/db", "postgresql://host:5432/db"), - ("jdbc:mysql://host:3306/db", "mysql://host:3306/db"), - ("jdbc:oracle:thin:@//host:1521/svc", "oracle://host:1521/svc"), - ( - "oracle:thin:@host:1521/svc.corp.example.com", - "oracle://host:1521/svc.corp.example.com", - ), - ("jdbc:oracle:thin:@host:1521:ORCL", "oracle://host:1521/ORCL"), - ("jdbc:oracle:oci:@//host:1521/svc", "oracle://host:1521/svc"), - ( - "jdbc:sqlserver://host:1433;databaseName=mydb;integratedSecurity=false", - "mssql://host:1433/mydb", - ), - ("jdbc:sqlserver://host;databaseName=mydb", "mssql://host:1433/mydb"), - ("jdbc:sqlserver://host:1433", "mssql://host:1433/"), - ( - "jdbc:sqlserver://host:1433;databaseName=db;password=p@ss", - "mssql://host:1433/db", - ), - ( - "jdbc:sqlserver://host:1433;databaseName=db;user=svc@tenant", - "mssql://host:1433/db", - ), - ("jdbc:oracle:thin:@host:1521/svc;foo=bar", "oracle://host:1521/svc"), - ("jdbc:jtds:sqlserver://host:1433/mydb", "mssql://host:1433/mydb"), - ("jdbc:jtds:sqlserver://host:1433", "mssql://host:1433/"), - ], -) -def test_normalize_jdbc_url(url: str, expected: str) -> None: - assert normalize_jdbc_url(url) == expected - - -@pytest.mark.parametrize( - "url,valid", - [ - ("jdbc:postgresql://host:5432/db", True), - ("oracle:thin:@host:1521/svc", True), - ("jdbc:oracle:thin:@//host:1521/svc", True), - ("jdbc:sqlserver://host:1433;databaseName=db", True), - ("jdbc:sqlserver://host:1433;databaseName=db;password=p@ss", True), - ("jdbc:jtds:sqlserver://host:1433/db", True), - ("", False), - ("not-a-url", False), - ("http://host:8080/path", False), - ], -) -def test_validate_jdbc_url(url: str, valid: bool) -> None: - assert validate_jdbc_url(url) is valid - - class TestJdbcParserFactorySource: """Test JdbcParserFactory for source connectors.""" From 5605e0ed3257fad268e0b12838530865fd0ecd0c Mon Sep 17 00:00:00 2001 From: acrylJonny Date: Mon, 2 Nov 2026 20:31:15 +0000 Subject: [PATCH 15/20] fix(ingest): parse JDBC sub-protocol, mixed-case and exact-scheme URLs parse_jdbc_url now drops driver-mode qualifiers such as mysql:loadbalance, redshift:iam and clickhouse:http(s) before parsing, so the token is no longer read as the database. The jdbc: prefix and subprotocol are matched case-insensitively while host and database keep their case. Platforms come from an explicit subprotocol map instead of the SQLAlchemy prefix mapper, so schemes like mysqlx stay unknown. A URL with no authority returns an empty result. Oracle, SQL Server and jTDS extraction is shared between normalize_jdbc_url and parse_jdbc_url; normalize_jdbc_url still reads only databaseName, so its output is unchanged. Co-Authored-By: Claude Opus 5.5 --- .../datahub/ingestion/source/common/jdbc.py | 209 ++++++++++++------ .../tests/unit/common/test_jdbc.py | 43 +++- 2 files changed, 178 insertions(+), 74 deletions(-) diff --git a/metadata-ingestion/src/datahub/ingestion/source/common/jdbc.py b/metadata-ingestion/src/datahub/ingestion/source/common/jdbc.py index 66c4e49d68b85..e668a4b160b95 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/common/jdbc.py +++ b/metadata-ingestion/src/datahub/ingestion/source/common/jdbc.py @@ -4,10 +4,6 @@ from pydantic import BaseModel -from datahub.ingestion.source.sql.sqlalchemy_uri_mapper import ( - get_platform_from_sqlalchemy_uri, -) - JDBC_PREFIX: Final[str] = "jdbc:" # Regex patterns for non-standard JDBC URL formats (see normalize_jdbc_url) @@ -30,30 +26,78 @@ r"(?:[;?].*)?$" ) +# `jdbc:` plus the subprotocol tokens before `//` or `@`, matched without +# regard to case so `JDBC:MySQL://` parses like `jdbc:mysql://`. +_JDBC_SCHEME_PREFIX_RE: Final = re.compile( + r"^(?:jdbc:)?[a-z][a-z0-9+.-]*(?::[a-z][a-z0-9+.-]*)*(?=:(?://|@))", + re.IGNORECASE, +) +# `scheme:qualifier://`, e.g. `mysql:loadbalance://` or `redshift:iam://`. +_JDBC_QUALIFIER_RE: Final = re.compile( + r"^(?P[^:]+):(?P[^:/]+):(?=//)" +) + SQLSERVER_DEFAULT_PORT: Final[str] = "1433" SQLSERVER_DATABASE_NAME_KEY: Final[str] = "databasename" SQLSERVER_DATABASE_KEYS: Final[FrozenSet[str]] = frozenset( {SQLSERVER_DATABASE_NAME_KEY, "database"} ) +# normalize_jdbc_url predates parse_jdbc_url and kafka_connect relies on its +# output, so it keeps reading only `databaseName`. +_SQLSERVER_NORMALIZE_DATABASE_KEYS: Final[FrozenSet[str]] = frozenset( + {SQLSERVER_DATABASE_NAME_KEY} +) ORACLE_PLATFORM: Final[str] = "oracle" MSSQL_PLATFORM: Final[str] = "mssql" SNOWFLAKE_PLATFORM: Final[str] = "snowflake" HANA_PLATFORM: Final[str] = "hana" TERADATA_PLATFORM: Final[str] = "teradata" -_SQLALCHEMY_UNKNOWN_PLATFORM: Final[str] = "external" +POSTGRES_PLATFORM: Final[str] = "postgres" +REDSHIFT_PLATFORM: Final[str] = "redshift" +# The Redshift JDBC driver also accepts `jdbc:postgresql://` URLs. +REDSHIFT_HOST_MARKER: Final[str] = "redshift.amazonaws" -# JDBC subprotocols the SQLAlchemy mapper does not recognize but that are real -# DataHub platforms. Anything else stays unknown so a mistyped URL cannot invent -# a lineage platform. +# JDBC subprotocols the SQLAlchemy URI mapper does not recognize but that are +# real DataHub platforms. JDBC_PROTOCOL_PLATFORM_FALLBACK: Final[FrozenSet[str]] = frozenset( {"db2", TERADATA_PLATFORM, "cassandra"} ) -# Subprotocols whose name differs from the DataHub platform, or that the -# SQLAlchemy mapper would otherwise miss. -JDBC_SCHEME_PLATFORM_OVERRIDES: Final[Dict[str, str]] = { - "sap": HANA_PLATFORM, +# Exact subprotocol matches only, so a mistyped or unrelated scheme such as +# `mysqlx` cannot invent a lineage platform. +JDBC_SCHEME_PLATFORMS: Final[Dict[str, str]] = { + "awsathena": "athena", + "bigquery": "bigquery", + "cassandra": "cassandra", + "clickhouse": "clickhouse", + "db2": "db2", + "hive": "hive", + "hive2": "hive", + "jtds": MSSQL_PLATFORM, "mariadb": "mariadb", + "mongodb": "mongodb", + "mysql": "mysql", + "oracle": ORACLE_PLATFORM, + "pinot": "pinot", + "postgresql": POSTGRES_PLATFORM, + "presto": "presto", + "redshift": REDSHIFT_PLATFORM, + "sap": HANA_PLATFORM, + "snowflake": SNOWFLAKE_PLATFORM, + "sqlserver": MSSQL_PLATFORM, + "teradata": TERADATA_PLATFORM, + "trino": "trino", + "vertica": "vertica", +} +# Driver-mode tokens between the subprotocol and `//`. They pick a connection +# strategy, not a host or database. +JDBC_SCHEME_QUALIFIERS: Final[Dict[str, FrozenSet[str]]] = { + "mysql": frozenset({"loadbalance", "replication"}), + "mariadb": frozenset( + {"loadbalance", "replication", "sequential", "failover", "aurora"} + ), + "redshift": frozenset({"iam"}), + "clickhouse": frozenset({"http", "https", "grpc", "tcp"}), } # Platforms whose JDBC URL carries the database as the first path segment. @@ -82,6 +126,15 @@ class JdbcUrlInfo(BaseModel): schema_name: Optional[str] = None +class _FixedFormatJdbcUrl(BaseModel): + """Oracle thin/OCI, SQL Server or jTDS URL fields, before normalization.""" + + platform: str + host: str + port: Optional[str] = None + database: Optional[str] = None + + def normalize_jdbc_url(url: str) -> str: """Convert a JDBC URL to a form SQLAlchemy can parse. @@ -92,35 +145,47 @@ def normalize_jdbc_url(url: str) -> str: All other URLs are returned unchanged after stripping a leading jdbc:. """ + fixed = _match_fixed_format_url(url, _SQLSERVER_NORMALIZE_DATABASE_KEYS) + if fixed is not None: + # Oracle URLs always carry a port; SQL Server and jTDS default it. + port = fixed.port or SQLSERVER_DEFAULT_PORT + return f"{fixed.platform}://{fixed.host}:{port}/{fixed.database or ''}" + + return url[len(JDBC_PREFIX) :] if url.startswith(JDBC_PREFIX) else url + + +def _match_fixed_format_url( + url: str, sqlserver_database_keys: FrozenSet[str] +) -> Optional[_FixedFormatJdbcUrl]: m = _ORACLE_THIN_RE.match(url) if m: - host = m.group("host") - port = m.group("port") - db = m.group("db") or "" - return f"oracle://{host}:{port}/{db}" + return _FixedFormatJdbcUrl( + platform=ORACLE_PLATFORM, + host=m.group("host"), + port=m.group("port"), + database=m.group("db"), + ) m = _SQLSERVER_RE.match(url) if m: - host = m.group("host") - port = m.group("port") or SQLSERVER_DEFAULT_PORT - db = "" - params_str = m.group("params") or "" - for param in params_str.split(";"): - if "=" in param: - k, _, v = param.partition("=") - if k.strip().lower() == SQLSERVER_DATABASE_NAME_KEY: - db = v.strip() - break - return f"mssql://{host}:{port}/{db}" + return _FixedFormatJdbcUrl( + platform=MSSQL_PLATFORM, + host=m.group("host"), + port=m.group("port"), + database=_sqlserver_database( + m.group("params") or "", sqlserver_database_keys + ), + ) m = _JTDS_RE.match(url) if m: - host = m.group("host") - port = m.group("port") or SQLSERVER_DEFAULT_PORT - db = m.group("db") or "" - return f"mssql://{host}:{port}/{db}" - - return url[len(JDBC_PREFIX) :] if url.startswith(JDBC_PREFIX) else url + return _FixedFormatJdbcUrl( + platform=MSSQL_PLATFORM, + host=m.group("host"), + port=m.group("port"), + database=m.group("db"), + ) + return None def validate_jdbc_url(url: str) -> bool: @@ -141,8 +206,12 @@ def parse_jdbc_url(url: str) -> JdbcUrlInfo: Returns an empty JdbcUrlInfo for anything it cannot parse, and one with no platform for a subprotocol it does not recognize. For Oracle, `database` holds the SID or service name, which DataHub does not use as a URN segment - by default, so callers decide whether to keep it. + by default, so callers decide whether to keep it. The `jdbc:` prefix and + subprotocol are matched case-insensitively. """ + if not url or not isinstance(url, str): + return JdbcUrlInfo() + url = _lowercase_scheme_prefix(url) if not validate_jdbc_url(url): return JdbcUrlInfo() try: @@ -151,38 +220,28 @@ def parse_jdbc_url(url: str) -> JdbcUrlInfo: return JdbcUrlInfo() -def _parse_valid_jdbc_url(url: str) -> JdbcUrlInfo: - m = _ORACLE_THIN_RE.match(url) - if m: - return JdbcUrlInfo( - platform=ORACLE_PLATFORM, - host=m.group("host"), - port=int(m.group("port")), - database=m.group("db"), - ) +def _lowercase_scheme_prefix(url: str) -> str: + m = _JDBC_SCHEME_PREFIX_RE.match(url) + if not m: + return url + return m.group(0).lower() + url[m.end() :] - m = _SQLSERVER_RE.match(url) - if m: - return JdbcUrlInfo( - platform=MSSQL_PLATFORM, - host=m.group("host"), - port=_to_port(m.group("port")), - database=_sqlserver_database(m.group("params") or ""), - ) - m = _JTDS_RE.match(url) - if m: +def _parse_valid_jdbc_url(url: str) -> JdbcUrlInfo: + fixed = _match_fixed_format_url(url, SQLSERVER_DATABASE_KEYS) + if fixed is not None: return JdbcUrlInfo( - platform=MSSQL_PLATFORM, - host=m.group("host"), - port=_to_port(m.group("port")), - database=m.group("db"), + platform=fixed.platform, + host=fixed.host, + port=_to_port(fixed.port), + database=fixed.database or None, ) - body = url[len(JDBC_PREFIX) :] - scheme = body.partition(":")[0].lower() - platform = _platform_for_scheme(scheme, body) + body = _strip_scheme_qualifier(url[len(JDBC_PREFIX) :]) parts = urlsplit(body) + if not parts.hostname: + return JdbcUrlInfo() + platform = _platform_for_scheme(parts.scheme, parts.hostname) info = JdbcUrlInfo(platform=platform, host=parts.hostname, port=_split_port(parts)) if platform is None: return info @@ -207,22 +266,26 @@ def _parse_valid_jdbc_url(url: str) -> JdbcUrlInfo: return info -def _platform_for_scheme(scheme: str, body: str) -> Optional[str]: - override = JDBC_SCHEME_PLATFORM_OVERRIDES.get(scheme) - if override is not None: - return override - platform = get_platform_from_sqlalchemy_uri(body) - if platform != _SQLALCHEMY_UNKNOWN_PLATFORM: - return platform - if scheme in JDBC_PROTOCOL_PLATFORM_FALLBACK: - return scheme - return None +def _strip_scheme_qualifier(body: str) -> str: + m = _JDBC_QUALIFIER_RE.match(body) + if m and m.group("qualifier") in JDBC_SCHEME_QUALIFIERS.get( + m.group("scheme"), frozenset() + ): + return f"{m.group('scheme')}:{body[m.end() :]}" + return body -def _sqlserver_database(params: str) -> Optional[str]: +def _platform_for_scheme(scheme: str, host: str) -> Optional[str]: + platform = JDBC_SCHEME_PLATFORMS.get(scheme) + if platform == POSTGRES_PLATFORM and REDSHIFT_HOST_MARKER in host: + return REDSHIFT_PLATFORM + return platform + + +def _sqlserver_database(params: str, keys: FrozenSet[str]) -> Optional[str]: for param in params.split(";"): - key, _, value = param.partition("=") - if key.strip().lower() in SQLSERVER_DATABASE_KEYS and value.strip(): + key, sep, value = param.partition("=") + if sep and key.strip().lower() in keys: return value.strip() return None diff --git a/metadata-ingestion/tests/unit/common/test_jdbc.py b/metadata-ingestion/tests/unit/common/test_jdbc.py index 2cfa94978169f..e1c4f021d37ac 100644 --- a/metadata-ingestion/tests/unit/common/test_jdbc.py +++ b/metadata-ingestion/tests/unit/common/test_jdbc.py @@ -199,6 +199,39 @@ def test_validate_jdbc_url(url: str, valid: bool) -> None: "jdbc:acme://acme.example.com:9999/db", JdbcUrlInfo(host="acme.example.com", port=9999), ), + ( + "jdbc:mysqlx://my.example.com:33060/shop", + JdbcUrlInfo(host="my.example.com", port=33060), + ), + ( + "jdbc:mysql:loadbalance://h1.example.com:3306,h2.example.com:3306/shop", + JdbcUrlInfo(platform="mysql", host="h1.example.com", database="shop"), + ), + ( + "jdbc:redshift:iam://rs.example.com:5439/dev", + JdbcUrlInfo( + platform="redshift", host="rs.example.com", port=5439, database="dev" + ), + ), + ( + "jdbc:clickhouse:https://ch.example.com:8443/events?ssl=true", + JdbcUrlInfo( + platform="clickhouse", + host="ch.example.com", + port=8443, + database="events", + ), + ), + ( + "JDBC:PostgreSQL://pg.example.com:5432/Sales", + JdbcUrlInfo( + platform="postgres", host="pg.example.com", port=5432, database="Sales" + ), + ), + ( + "JDBC:SQLServer://sql.example.com;databaseName=Sales", + JdbcUrlInfo(platform="mssql", host="sql.example.com", database="Sales"), + ), ], ) def test_parse_jdbc_url(url: str, expected: JdbcUrlInfo) -> None: @@ -207,7 +240,15 @@ def test_parse_jdbc_url(url: str, expected: JdbcUrlInfo) -> None: @pytest.mark.parametrize( "url", - ["", "not-a-url", "http://host:8080/path", "jdbc:", "jdbc:mysql://[::1/db"], + [ + "", + "not-a-url", + "http://host:8080/path", + "jdbc:", + "jdbc:mysql://", + "jdbc:mysql://[::1/db", + "jdbc:mysql:unknownmode://my.example.com/shop", + ], ) def test_parse_jdbc_url_invalid(url: str) -> None: assert parse_jdbc_url(url) == JdbcUrlInfo() From 8743648edfcac302e2a8c6414e2f465efd2f38be Mon Sep 17 00:00:00 2001 From: acrylJonny Date: Mon, 2 Nov 2026 21:15:43 +0000 Subject: [PATCH 16/20] fix(ingest): skip blank SQL Server databaseName when parsing JDBC URLs parse_jdbc_url now keeps scanning past an empty databaseName so a later database parameter still resolves. normalize_jdbc_url keeps its first-match behaviour so kafka_connect output is unchanged. Co-Authored-By: Claude Opus 5.5 --- .../datahub/ingestion/source/common/jdbc.py | 23 ++++++++++++++----- .../tests/unit/common/test_jdbc.py | 5 ++++ 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/metadata-ingestion/src/datahub/ingestion/source/common/jdbc.py b/metadata-ingestion/src/datahub/ingestion/source/common/jdbc.py index e668a4b160b95..5709227322f52 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/common/jdbc.py +++ b/metadata-ingestion/src/datahub/ingestion/source/common/jdbc.py @@ -145,7 +145,9 @@ def normalize_jdbc_url(url: str) -> str: All other URLs are returned unchanged after stripping a leading jdbc:. """ - fixed = _match_fixed_format_url(url, _SQLSERVER_NORMALIZE_DATABASE_KEYS) + fixed = _match_fixed_format_url( + url, _SQLSERVER_NORMALIZE_DATABASE_KEYS, skip_blank_database=False + ) if fixed is not None: # Oracle URLs always carry a port; SQL Server and jTDS default it. port = fixed.port or SQLSERVER_DEFAULT_PORT @@ -155,7 +157,7 @@ def normalize_jdbc_url(url: str) -> str: def _match_fixed_format_url( - url: str, sqlserver_database_keys: FrozenSet[str] + url: str, sqlserver_database_keys: FrozenSet[str], skip_blank_database: bool ) -> Optional[_FixedFormatJdbcUrl]: m = _ORACLE_THIN_RE.match(url) if m: @@ -173,7 +175,7 @@ def _match_fixed_format_url( host=m.group("host"), port=m.group("port"), database=_sqlserver_database( - m.group("params") or "", sqlserver_database_keys + m.group("params") or "", sqlserver_database_keys, skip_blank_database ), ) @@ -228,7 +230,9 @@ def _lowercase_scheme_prefix(url: str) -> str: def _parse_valid_jdbc_url(url: str) -> JdbcUrlInfo: - fixed = _match_fixed_format_url(url, SQLSERVER_DATABASE_KEYS) + fixed = _match_fixed_format_url( + url, SQLSERVER_DATABASE_KEYS, skip_blank_database=True + ) if fixed is not None: return JdbcUrlInfo( platform=fixed.platform, @@ -282,10 +286,17 @@ def _platform_for_scheme(scheme: str, host: str) -> Optional[str]: return platform -def _sqlserver_database(params: str, keys: FrozenSet[str]) -> Optional[str]: +def _sqlserver_database( + params: str, keys: FrozenSet[str], skip_blank: bool +) -> Optional[str]: + # normalize_jdbc_url stops at the first `databaseName` even when blank, and + # kafka_connect depends on that; parse_jdbc_url keeps looking so + # `databaseName=;database=db` still yields `db`. for param in params.split(";"): key, sep, value = param.partition("=") - if sep and key.strip().lower() in keys: + if not sep or key.strip().lower() not in keys: + continue + if value.strip() or not skip_blank: return value.strip() return None diff --git a/metadata-ingestion/tests/unit/common/test_jdbc.py b/metadata-ingestion/tests/unit/common/test_jdbc.py index e1c4f021d37ac..e378e4ceaa027 100644 --- a/metadata-ingestion/tests/unit/common/test_jdbc.py +++ b/metadata-ingestion/tests/unit/common/test_jdbc.py @@ -26,6 +26,7 @@ ), ("jdbc:sqlserver://host;databaseName=mydb", "mssql://host:1433/mydb"), ("jdbc:sqlserver://host:1433", "mssql://host:1433/"), + ("jdbc:sqlserver://host;databaseName=;databaseName=db", "mssql://host:1433/"), ( "jdbc:sqlserver://host:1433;databaseName=db;password=p@ss", "mssql://host:1433/db", @@ -111,6 +112,10 @@ def test_validate_jdbc_url(url: str, valid: bool) -> None: "jdbc:sqlserver://sql.example.com;database=sales", JdbcUrlInfo(platform="mssql", host="sql.example.com", database="sales"), ), + ( + "jdbc:sqlserver://sql.example.com;databaseName=;database=sales", + JdbcUrlInfo(platform="mssql", host="sql.example.com", database="sales"), + ), ( "jdbc:jtds:sqlserver://sql.example.com:1433/sales;domain=CORP", JdbcUrlInfo( From de9611b1c155d2cb95f7855711c0de76cf641401 Mon Sep 17 00:00:00 2001 From: acrylJonny Date: Wed, 2 Dec 2026 08:59:57 +0000 Subject: [PATCH 17/20] fix(ingest/kafka-connect): restore FrozenSet import after merging master Master added a FrozenSet constant to source_connectors.py while this branch had dropped the import with the JDBC constants it moved out. Co-Authored-By: Claude Opus 5.5 --- .../datahub/ingestion/source/kafka_connect/source_connectors.py | 1 + 1 file changed, 1 insertion(+) diff --git a/metadata-ingestion/src/datahub/ingestion/source/kafka_connect/source_connectors.py b/metadata-ingestion/src/datahub/ingestion/source/kafka_connect/source_connectors.py index b4a9d06ea1624..95a1a6be9447f 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/kafka_connect/source_connectors.py +++ b/metadata-ingestion/src/datahub/ingestion/source/kafka_connect/source_connectors.py @@ -6,6 +6,7 @@ ClassVar, Dict, Final, + FrozenSet, Iterable, List, Optional, From 3a79dbdf4bc807ab62461b2a4019d81a193f3d63 Mon Sep 17 00:00:00 2001 From: acrylJonny Date: Wed, 2 Dec 2026 08:59:59 +0000 Subject: [PATCH 18/20] fix(ingest): handle property authorities, multi-host and serverless JDBC URLs - awsathena and bigquery URLs put driver properties or a nested endpoint URL where the host goes, so only the platform is returned for them; any other authority that parses to a `key=value` or `;` list yields no host. - Multi-host URLs report the first host and its own port, with or without a port on the first host. - jdbc:postgresql URLs to Redshift Serverless endpoints map to Redshift. - A portless jTDS URL followed by `;properties` no longer folds them into the host. Co-Authored-By: Claude Opus 5.5 --- .../datahub/ingestion/source/common/jdbc.py | 42 +++++++++++++---- .../tests/unit/common/test_jdbc.py | 45 ++++++++++++++++++- 2 files changed, 76 insertions(+), 11 deletions(-) diff --git a/metadata-ingestion/src/datahub/ingestion/source/common/jdbc.py b/metadata-ingestion/src/datahub/ingestion/source/common/jdbc.py index 5709227322f52..a3ccc27b35597 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/common/jdbc.py +++ b/metadata-ingestion/src/datahub/ingestion/source/common/jdbc.py @@ -20,7 +20,7 @@ r"(?:;(?P.*))?$" ) _JTDS_RE: Final = re.compile( - r"^(?:jdbc:)?jtds:sqlserver://(?P[^:/@\s]+)" + r"^(?:jdbc:)?jtds:sqlserver://(?P[^:;?/@\s]+)" r"(?::(?P\d+))?" r"(?:/(?P[^;?\s]+))?" r"(?:[;?].*)?$" @@ -55,8 +55,11 @@ TERADATA_PLATFORM: Final[str] = "teradata" POSTGRES_PLATFORM: Final[str] = "postgres" REDSHIFT_PLATFORM: Final[str] = "redshift" -# The Redshift JDBC driver also accepts `jdbc:postgresql://` URLs. -REDSHIFT_HOST_MARKER: Final[str] = "redshift.amazonaws" +# The Redshift JDBC driver also accepts `jdbc:postgresql://` URLs, for +# provisioned clusters and Serverless workgroups. +REDSHIFT_HOST_MARKERS: Final[FrozenSet[str]] = frozenset( + {"redshift.amazonaws", "redshift-serverless.amazonaws"} +) # JDBC subprotocols the SQLAlchemy URI mapper does not recognize but that are # real DataHub platforms. @@ -89,6 +92,11 @@ "trino": "trino", "vertica": "vertica", } +# Platforms whose URL authority is `key=value;` driver properties or a nested +# endpoint URL (`jdbc:bigquery://https://...;ProjectId=p`), not a host. +JDBC_PROPERTY_AUTHORITY_PLATFORMS: Final[FrozenSet[str]] = frozenset( + {"athena", "bigquery"} +) # Driver-mode tokens between the subprotocol and `//`. They pick a connection # strategy, not a host or database. JDBC_SCHEME_QUALIFIERS: Final[Dict[str, FrozenSet[str]]] = { @@ -243,10 +251,17 @@ def _parse_valid_jdbc_url(url: str) -> JdbcUrlInfo: body = _strip_scheme_qualifier(url[len(JDBC_PREFIX) :]) parts = urlsplit(body) - if not parts.hostname: + if JDBC_SCHEME_PLATFORMS.get(parts.scheme) in JDBC_PROPERTY_AUTHORITY_PLATFORMS: + return JdbcUrlInfo(platform=JDBC_SCHEME_PLATFORMS[parts.scheme]) + primary = _primary_host(parts) + host = primary.hostname + if not host: return JdbcUrlInfo() - platform = _platform_for_scheme(parts.scheme, parts.hostname) - info = JdbcUrlInfo(platform=platform, host=parts.hostname, port=_split_port(parts)) + platform = _platform_for_scheme(parts.scheme, host) + if "=" in host or ";" in host: + # A property list parsed as a host; it may carry credentials. + return JdbcUrlInfo(platform=platform) + info = JdbcUrlInfo(platform=platform, host=host, port=_split_port(primary)) if platform is None: return info @@ -279,9 +294,18 @@ def _strip_scheme_qualifier(body: str) -> str: return body +def _primary_host(parts: SplitResult) -> SplitResult: + # Multi-host URLs (`h1:3306,h2:3306` or `h1,h2:5432`) connect to the first + # host first, so it is the one reported, with its own port if it has one. + host_list = parts.netloc.rpartition("@")[2] + return urlsplit(f"//{host_list.split(',', 1)[0]}") + + def _platform_for_scheme(scheme: str, host: str) -> Optional[str]: platform = JDBC_SCHEME_PLATFORMS.get(scheme) - if platform == POSTGRES_PLATFORM and REDSHIFT_HOST_MARKER in host: + if platform == POSTGRES_PLATFORM and any( + marker in host for marker in REDSHIFT_HOST_MARKERS + ): return REDSHIFT_PLATFORM return platform @@ -323,8 +347,8 @@ def _to_port(port: Optional[str]) -> Optional[int]: def _split_port(parts: SplitResult) -> Optional[int]: - # A malformed or multi-host netloc (`h1:3306,h2:3306`) makes `.port` raise; - # the database in the path is still worth returning. + # A malformed port makes `.port` raise; the database in the path is still + # worth returning. try: return parts.port except ValueError: diff --git a/metadata-ingestion/tests/unit/common/test_jdbc.py b/metadata-ingestion/tests/unit/common/test_jdbc.py index e378e4ceaa027..7f5dcd01b6699 100644 --- a/metadata-ingestion/tests/unit/common/test_jdbc.py +++ b/metadata-ingestion/tests/unit/common/test_jdbc.py @@ -198,7 +198,9 @@ def test_validate_jdbc_url(url: str, valid: bool) -> None: ), ( "jdbc:mysql://h1.example.com:3306,h2.example.com:3306/shop", - JdbcUrlInfo(platform="mysql", host="h1.example.com", database="shop"), + JdbcUrlInfo( + platform="mysql", host="h1.example.com", port=3306, database="shop" + ), ), ( "jdbc:acme://acme.example.com:9999/db", @@ -210,7 +212,9 @@ def test_validate_jdbc_url(url: str, valid: bool) -> None: ), ( "jdbc:mysql:loadbalance://h1.example.com:3306,h2.example.com:3306/shop", - JdbcUrlInfo(platform="mysql", host="h1.example.com", database="shop"), + JdbcUrlInfo( + platform="mysql", host="h1.example.com", port=3306, database="shop" + ), ), ( "jdbc:redshift:iam://rs.example.com:5439/dev", @@ -237,6 +241,43 @@ def test_validate_jdbc_url(url: str, valid: bool) -> None: "JDBC:SQLServer://sql.example.com;databaseName=Sales", JdbcUrlInfo(platform="mssql", host="sql.example.com", database="Sales"), ), + ( + "jdbc:mysql://h1.example.com,h2.example.com/shop", + JdbcUrlInfo(platform="mysql", host="h1.example.com", database="shop"), + ), + ( + "jdbc:postgresql://h1.example.com,h2.example.com:5432/sales", + JdbcUrlInfo(platform="postgres", host="h1.example.com", database="sales"), + ), + ( + "jdbc:postgresql://wg.123456789012.us-east-1.redshift-serverless.amazonaws.com:5439/dev", + JdbcUrlInfo( + platform="redshift", + host="wg.123456789012.us-east-1.redshift-serverless.amazonaws.com", + port=5439, + database="dev", + ), + ), + ( + "jdbc:jtds:sqlserver://sql.example.com;domain=CORP", + JdbcUrlInfo(platform="mssql", host="sql.example.com"), + ), + ( + "jdbc:awsathena://AwsRegion=us-east-1;S3OutputLocation=s3://bucket/path;UID=key", + JdbcUrlInfo(platform="athena"), + ), + ( + "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;ProjectId=my-proj;", + JdbcUrlInfo(platform="bigquery"), + ), + ( + "jdbc:mysql://user=admin;password=secret@my.example.com/shop", + JdbcUrlInfo(platform="mysql", host="my.example.com", database="shop"), + ), + ( + "jdbc:postgresql://ssl=true;host=pg/sales", + JdbcUrlInfo(platform="postgres"), + ), ], ) def test_parse_jdbc_url(url: str, expected: JdbcUrlInfo) -> None: From 5eac3bd89179ee1d8060ff89f5fead628d651198 Mon Sep 17 00:00:00 2001 From: acrylJonny Date: Wed, 2 Dec 2026 08:59:57 +0000 Subject: [PATCH 19/20] fix(ingest/kafka-connect): restore FrozenSet import after merging master Master added a FrozenSet constant to source_connectors.py while this branch had dropped the import with the JDBC constants it moved out. Co-Authored-By: Claude Opus 5.5 --- .../datahub/ingestion/source/kafka_connect/source_connectors.py | 1 + 1 file changed, 1 insertion(+) diff --git a/metadata-ingestion/src/datahub/ingestion/source/kafka_connect/source_connectors.py b/metadata-ingestion/src/datahub/ingestion/source/kafka_connect/source_connectors.py index b4a9d06ea1624..95a1a6be9447f 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/kafka_connect/source_connectors.py +++ b/metadata-ingestion/src/datahub/ingestion/source/kafka_connect/source_connectors.py @@ -6,6 +6,7 @@ ClassVar, Dict, Final, + FrozenSet, Iterable, List, Optional, From 6f8a8f0ffad2e55e746aa19b59d48ce95ac59711 Mon Sep 17 00:00:00 2001 From: acrylJonny Date: Wed, 2 Dec 2026 08:59:59 +0000 Subject: [PATCH 20/20] fix(ingest): handle property authorities, multi-host and serverless JDBC URLs - awsathena and bigquery URLs put driver properties or a nested endpoint URL where the host goes, so only the platform is returned for them; any other authority that parses to a `key=value` or `;` list yields no host. - Multi-host URLs report the first host and its own port, with or without a port on the first host. - jdbc:postgresql URLs to Redshift Serverless endpoints map to Redshift. - A portless jTDS URL followed by `;properties` no longer folds them into the host. Co-Authored-By: Claude Opus 5.5 --- .../datahub/ingestion/source/common/jdbc.py | 42 +++++++++++++---- .../tests/unit/common/test_jdbc.py | 45 ++++++++++++++++++- 2 files changed, 76 insertions(+), 11 deletions(-) diff --git a/metadata-ingestion/src/datahub/ingestion/source/common/jdbc.py b/metadata-ingestion/src/datahub/ingestion/source/common/jdbc.py index 5709227322f52..a3ccc27b35597 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/common/jdbc.py +++ b/metadata-ingestion/src/datahub/ingestion/source/common/jdbc.py @@ -20,7 +20,7 @@ r"(?:;(?P.*))?$" ) _JTDS_RE: Final = re.compile( - r"^(?:jdbc:)?jtds:sqlserver://(?P[^:/@\s]+)" + r"^(?:jdbc:)?jtds:sqlserver://(?P[^:;?/@\s]+)" r"(?::(?P\d+))?" r"(?:/(?P[^;?\s]+))?" r"(?:[;?].*)?$" @@ -55,8 +55,11 @@ TERADATA_PLATFORM: Final[str] = "teradata" POSTGRES_PLATFORM: Final[str] = "postgres" REDSHIFT_PLATFORM: Final[str] = "redshift" -# The Redshift JDBC driver also accepts `jdbc:postgresql://` URLs. -REDSHIFT_HOST_MARKER: Final[str] = "redshift.amazonaws" +# The Redshift JDBC driver also accepts `jdbc:postgresql://` URLs, for +# provisioned clusters and Serverless workgroups. +REDSHIFT_HOST_MARKERS: Final[FrozenSet[str]] = frozenset( + {"redshift.amazonaws", "redshift-serverless.amazonaws"} +) # JDBC subprotocols the SQLAlchemy URI mapper does not recognize but that are # real DataHub platforms. @@ -89,6 +92,11 @@ "trino": "trino", "vertica": "vertica", } +# Platforms whose URL authority is `key=value;` driver properties or a nested +# endpoint URL (`jdbc:bigquery://https://...;ProjectId=p`), not a host. +JDBC_PROPERTY_AUTHORITY_PLATFORMS: Final[FrozenSet[str]] = frozenset( + {"athena", "bigquery"} +) # Driver-mode tokens between the subprotocol and `//`. They pick a connection # strategy, not a host or database. JDBC_SCHEME_QUALIFIERS: Final[Dict[str, FrozenSet[str]]] = { @@ -243,10 +251,17 @@ def _parse_valid_jdbc_url(url: str) -> JdbcUrlInfo: body = _strip_scheme_qualifier(url[len(JDBC_PREFIX) :]) parts = urlsplit(body) - if not parts.hostname: + if JDBC_SCHEME_PLATFORMS.get(parts.scheme) in JDBC_PROPERTY_AUTHORITY_PLATFORMS: + return JdbcUrlInfo(platform=JDBC_SCHEME_PLATFORMS[parts.scheme]) + primary = _primary_host(parts) + host = primary.hostname + if not host: return JdbcUrlInfo() - platform = _platform_for_scheme(parts.scheme, parts.hostname) - info = JdbcUrlInfo(platform=platform, host=parts.hostname, port=_split_port(parts)) + platform = _platform_for_scheme(parts.scheme, host) + if "=" in host or ";" in host: + # A property list parsed as a host; it may carry credentials. + return JdbcUrlInfo(platform=platform) + info = JdbcUrlInfo(platform=platform, host=host, port=_split_port(primary)) if platform is None: return info @@ -279,9 +294,18 @@ def _strip_scheme_qualifier(body: str) -> str: return body +def _primary_host(parts: SplitResult) -> SplitResult: + # Multi-host URLs (`h1:3306,h2:3306` or `h1,h2:5432`) connect to the first + # host first, so it is the one reported, with its own port if it has one. + host_list = parts.netloc.rpartition("@")[2] + return urlsplit(f"//{host_list.split(',', 1)[0]}") + + def _platform_for_scheme(scheme: str, host: str) -> Optional[str]: platform = JDBC_SCHEME_PLATFORMS.get(scheme) - if platform == POSTGRES_PLATFORM and REDSHIFT_HOST_MARKER in host: + if platform == POSTGRES_PLATFORM and any( + marker in host for marker in REDSHIFT_HOST_MARKERS + ): return REDSHIFT_PLATFORM return platform @@ -323,8 +347,8 @@ def _to_port(port: Optional[str]) -> Optional[int]: def _split_port(parts: SplitResult) -> Optional[int]: - # A malformed or multi-host netloc (`h1:3306,h2:3306`) makes `.port` raise; - # the database in the path is still worth returning. + # A malformed port makes `.port` raise; the database in the path is still + # worth returning. try: return parts.port except ValueError: diff --git a/metadata-ingestion/tests/unit/common/test_jdbc.py b/metadata-ingestion/tests/unit/common/test_jdbc.py index e378e4ceaa027..7f5dcd01b6699 100644 --- a/metadata-ingestion/tests/unit/common/test_jdbc.py +++ b/metadata-ingestion/tests/unit/common/test_jdbc.py @@ -198,7 +198,9 @@ def test_validate_jdbc_url(url: str, valid: bool) -> None: ), ( "jdbc:mysql://h1.example.com:3306,h2.example.com:3306/shop", - JdbcUrlInfo(platform="mysql", host="h1.example.com", database="shop"), + JdbcUrlInfo( + platform="mysql", host="h1.example.com", port=3306, database="shop" + ), ), ( "jdbc:acme://acme.example.com:9999/db", @@ -210,7 +212,9 @@ def test_validate_jdbc_url(url: str, valid: bool) -> None: ), ( "jdbc:mysql:loadbalance://h1.example.com:3306,h2.example.com:3306/shop", - JdbcUrlInfo(platform="mysql", host="h1.example.com", database="shop"), + JdbcUrlInfo( + platform="mysql", host="h1.example.com", port=3306, database="shop" + ), ), ( "jdbc:redshift:iam://rs.example.com:5439/dev", @@ -237,6 +241,43 @@ def test_validate_jdbc_url(url: str, valid: bool) -> None: "JDBC:SQLServer://sql.example.com;databaseName=Sales", JdbcUrlInfo(platform="mssql", host="sql.example.com", database="Sales"), ), + ( + "jdbc:mysql://h1.example.com,h2.example.com/shop", + JdbcUrlInfo(platform="mysql", host="h1.example.com", database="shop"), + ), + ( + "jdbc:postgresql://h1.example.com,h2.example.com:5432/sales", + JdbcUrlInfo(platform="postgres", host="h1.example.com", database="sales"), + ), + ( + "jdbc:postgresql://wg.123456789012.us-east-1.redshift-serverless.amazonaws.com:5439/dev", + JdbcUrlInfo( + platform="redshift", + host="wg.123456789012.us-east-1.redshift-serverless.amazonaws.com", + port=5439, + database="dev", + ), + ), + ( + "jdbc:jtds:sqlserver://sql.example.com;domain=CORP", + JdbcUrlInfo(platform="mssql", host="sql.example.com"), + ), + ( + "jdbc:awsathena://AwsRegion=us-east-1;S3OutputLocation=s3://bucket/path;UID=key", + JdbcUrlInfo(platform="athena"), + ), + ( + "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;ProjectId=my-proj;", + JdbcUrlInfo(platform="bigquery"), + ), + ( + "jdbc:mysql://user=admin;password=secret@my.example.com/shop", + JdbcUrlInfo(platform="mysql", host="my.example.com", database="shop"), + ), + ( + "jdbc:postgresql://ssl=true;host=pg/sales", + JdbcUrlInfo(platform="postgres"), + ), ], ) def test_parse_jdbc_url(url: str, expected: JdbcUrlInfo) -> None: