Skip to content

Commit

Permalink
updated preset golden tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PeteMango committed Mar 3, 2025
1 parent 4b3d7ba commit 7512e34
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
"com.linkedin.pegasus2avro.common.Ownership": {
"owners": [
{
"owner": "urn:li:corpuser:test_owner1@example.com",
"owner": "urn:li:corpuser:test_owner2@example.com",
"type": "TECHNICAL_OWNER"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"com.linkedin.pegasus2avro.common.Ownership": {
"owners": [
{
"owner": "urn:li:corpuser:test_owner1@example.com",
"owner": "urn:li:corpuser:",
"type": "TECHNICAL_OWNER"
}
],
Expand All @@ -60,7 +60,7 @@
},
"systemMetadata": {
"lastObserved": 1720594800000,
"runId": "preset-2024_07_10-07_00_00-p4x3vy",
"runId": "preset-2024_07_10-07_00_00-2yjep3",
"lastRunId": "no-run-id-provided",
"pipelineName": "test_pipeline"
}
Expand Down Expand Up @@ -118,7 +118,7 @@
},
"systemMetadata": {
"lastObserved": 1720594800000,
"runId": "preset-2024_07_10-07_00_00-p4x3vy",
"runId": "preset-2024_07_10-07_00_00-2yjep3",
"lastRunId": "no-run-id-provided",
"pipelineName": "test_pipeline"
}
Expand Down Expand Up @@ -176,7 +176,7 @@
},
"systemMetadata": {
"lastObserved": 1720594800000,
"runId": "preset-2024_07_10-07_00_00-p4x3vy",
"runId": "preset-2024_07_10-07_00_00-2yjep3",
"lastRunId": "no-run-id-provided",
"pipelineName": "test_pipeline"
}
Expand Down Expand Up @@ -234,7 +234,7 @@
},
"systemMetadata": {
"lastObserved": 1720594800000,
"runId": "preset-2024_07_10-07_00_00-p4x3vy",
"runId": "preset-2024_07_10-07_00_00-2yjep3",
"lastRunId": "no-run-id-provided",
"pipelineName": "test_pipeline"
}
Expand Down Expand Up @@ -292,7 +292,7 @@
},
"systemMetadata": {
"lastObserved": 1720594800000,
"runId": "preset-2024_07_10-07_00_00-p4x3vy",
"runId": "preset-2024_07_10-07_00_00-2yjep3",
"lastRunId": "no-run-id-provided",
"pipelineName": "test_pipeline"
}
Expand All @@ -309,7 +309,7 @@
},
"systemMetadata": {
"lastObserved": 1720594800000,
"runId": "preset-2024_07_10-07_00_00-p4x3vy",
"runId": "preset-2024_07_10-07_00_00-2yjep3",
"lastRunId": "no-run-id-provided",
"pipelineName": "test_pipeline"
}
Expand Down
18 changes: 15 additions & 3 deletions metadata-ingestion/tests/integration/preset/test_preset.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ def register_mock_api(request_mock: Any, override_data: Optional[dict] = None) -
"status": "published",
"published": True,
"owners": [
{"first_name": "Test", "id": 1, "last_name": "Owner1"}
{
"first_name": "Test",
"id": 1,
"last_name": "Owner1",
}
],
"certified_by": "Certification team",
"certification_details": "Approved",
Expand All @@ -86,7 +90,11 @@ def register_mock_api(request_mock: Any, override_data: Optional[dict] = None) -
"status": "draft",
"published": False,
"owners": [
{"first_name": "Test", "id": 1, "last_name": "Owner1"}
{
"first_name": "Test",
"id": 2,
"last_name": "Owner2",
}
],
"certified_by": "",
"certification_details": "",
Expand Down Expand Up @@ -340,7 +348,11 @@ def test_preset_stateful_ingest(
"status": "published",
"published": True,
"owners": [
{"first_name": "Test", "id": 1, "last_name": "Owner1"}
{
"first_name": "Unknown",
"id": 100,
"last_name": "Owners",
}
],
"certified_by": "Certification team",
"certification_details": "Approved",
Expand Down

0 comments on commit 7512e34

Please sign in to comment.