mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-25 06:28:22 +00:00
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:
parent
51c86f5a76
commit
eb95a0692d
7
.github/workflows/py-operator-build-test.yml
vendored
7
.github/workflows/py-operator-build-test.yml
vendored
@ -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
|
||||
|
||||
10
scripts/validate_sample_data.py
Normal file
10
scripts/validate_sample_data.py
Normal 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")
|
||||
Loading…
x
Reference in New Issue
Block a user