CI - Fix operator build test (#19938)

* CI - Fix operator build test

* CI - Fix operator build test

* CI - Fix operator build test
This commit is contained in:
Pere Miquel Brull 2025-02-24 12:17:00 +01:00 committed by GitHub
parent 51c86f5a76
commit eb95a0692d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 1 deletions

View File

@ -78,4 +78,9 @@ jobs:
- name: Build Ingestion Operator & Ingest Sample Data
run: |
docker build -f ingestion/operators/docker/Dockerfile.ci . -t openmetadata/ingestion-base:test
docker run --net=host --rm openmetadata/igestion-base:test metadata ingest -c /openmetadata/pipelines/sample_data.yaml
docker run --net=host --rm openmetadata/ingestion-base:test metadata ingest -c ./pipelines/sample_data.yaml
- name: Validate ingestion
run: |
source env/bin/activate
python scripts/validate_ingestion.py

View File

@ -0,0 +1,10 @@
from metadata.generated.schema.entity.data.table import Table
from _openmetadata_testutils.ometa import int_admin_ometa
metadata = int_admin_ometa()
entity = metadata.get_by_name(
entity=Table, fqn="sample_data.ecommerce_db.shopify.dim_address"
)
if not entity:
raise ValueError("Table not found")