Skip to content

Commit

Permalink
updated golden test to cover physical upstream lineage
Browse files Browse the repository at this point in the history
  • Loading branch information
PeteMango committed Mar 6, 2025
1 parent 64b12f7 commit 615a127
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
},
"systemMetadata": {
"lastObserved": 1586847600000,
"runId": "superset-2020_04_14-07_00_00-gqer6i",
"runId": "superset-2020_04_14-07_00_00-o909wz",
"lastRunId": "no-run-id-provided",
"pipelineName": "test_pipeline"
}
Expand Down Expand Up @@ -122,7 +122,7 @@
},
"systemMetadata": {
"lastObserved": 1586847600000,
"runId": "superset-2020_04_14-07_00_00-gqer6i",
"runId": "superset-2020_04_14-07_00_00-o909wz",
"lastRunId": "no-run-id-provided",
"pipelineName": "test_pipeline"
}
Expand Down Expand Up @@ -180,7 +180,7 @@
},
"systemMetadata": {
"lastObserved": 1586847600000,
"runId": "superset-2020_04_14-07_00_00-gqer6i",
"runId": "superset-2020_04_14-07_00_00-o909wz",
"lastRunId": "no-run-id-provided",
"pipelineName": "test_pipeline"
}
Expand Down Expand Up @@ -238,7 +238,7 @@
},
"systemMetadata": {
"lastObserved": 1586847600000,
"runId": "superset-2020_04_14-07_00_00-gqer6i",
"runId": "superset-2020_04_14-07_00_00-o909wz",
"lastRunId": "no-run-id-provided",
"pipelineName": "test_pipeline"
}
Expand Down Expand Up @@ -385,7 +385,7 @@
},
"systemMetadata": {
"lastObserved": 1586847600000,
"runId": "superset-2020_04_14-07_00_00-gqer6i",
"runId": "superset-2020_04_14-07_00_00-o909wz",
"lastRunId": "no-run-id-provided",
"pipelineName": "test_pipeline"
}
Expand Down Expand Up @@ -532,7 +532,7 @@
},
"systemMetadata": {
"lastObserved": 1586847600000,
"runId": "superset-2020_04_14-07_00_00-gqer6i",
"runId": "superset-2020_04_14-07_00_00-o909wz",
"lastRunId": "no-run-id-provided",
"pipelineName": "test_pipeline"
}
Expand Down Expand Up @@ -679,7 +679,7 @@
},
"systemMetadata": {
"lastObserved": 1586847600000,
"runId": "superset-2020_04_14-07_00_00-gqer6i",
"runId": "superset-2020_04_14-07_00_00-o909wz",
"lastRunId": "no-run-id-provided",
"pipelineName": "test_pipeline"
}
Expand Down Expand Up @@ -826,7 +826,7 @@
},
"systemMetadata": {
"lastObserved": 1586847600000,
"runId": "superset-2020_04_14-07_00_00-gqer6i",
"runId": "superset-2020_04_14-07_00_00-o909wz",
"lastRunId": "no-run-id-provided",
"pipelineName": "test_pipeline"
}
Expand Down Expand Up @@ -973,7 +973,7 @@
},
"systemMetadata": {
"lastObserved": 1586847600000,
"runId": "superset-2020_04_14-07_00_00-gqer6i",
"runId": "superset-2020_04_14-07_00_00-o909wz",
"lastRunId": "no-run-id-provided",
"pipelineName": "test_pipeline"
}
Expand Down Expand Up @@ -1120,7 +1120,7 @@
},
"systemMetadata": {
"lastObserved": 1586847600000,
"runId": "superset-2020_04_14-07_00_00-gqer6i",
"runId": "superset-2020_04_14-07_00_00-o909wz",
"lastRunId": "no-run-id-provided",
"pipelineName": "test_pipeline"
}
Expand Down Expand Up @@ -1267,7 +1267,7 @@
},
"systemMetadata": {
"lastObserved": 1586847600000,
"runId": "superset-2020_04_14-07_00_00-gqer6i",
"runId": "superset-2020_04_14-07_00_00-o909wz",
"lastRunId": "no-run-id-provided",
"pipelineName": "test_pipeline"
}
Expand Down Expand Up @@ -1414,7 +1414,7 @@
},
"systemMetadata": {
"lastObserved": 1586847600000,
"runId": "superset-2020_04_14-07_00_00-gqer6i",
"runId": "superset-2020_04_14-07_00_00-o909wz",
"lastRunId": "no-run-id-provided",
"pipelineName": "test_pipeline"
}
Expand Down Expand Up @@ -1561,7 +1561,7 @@
},
"systemMetadata": {
"lastObserved": 1586847600000,
"runId": "superset-2020_04_14-07_00_00-gqer6i",
"runId": "superset-2020_04_14-07_00_00-o909wz",
"lastRunId": "no-run-id-provided",
"pipelineName": "test_pipeline"
}
Expand All @@ -1578,7 +1578,7 @@
},
"systemMetadata": {
"lastObserved": 1586847600000,
"runId": "superset-2020_04_14-07_00_00-gqer6i",
"runId": "superset-2020_04_14-07_00_00-o909wz",
"lastRunId": "no-run-id-provided",
"pipelineName": "test_pipeline"
}
Expand All @@ -1595,7 +1595,7 @@
},
"systemMetadata": {
"lastObserved": 1586847600000,
"runId": "superset-2020_04_14-07_00_00-gqer6i",
"runId": "superset-2020_04_14-07_00_00-o909wz",
"lastRunId": "no-run-id-provided",
"pipelineName": "test_pipeline"
}
Expand All @@ -1612,14 +1612,14 @@
},
"systemMetadata": {
"lastObserved": 1586847600000,
"runId": "superset-2020_04_14-07_00_00-gqer6i",
"runId": "superset-2020_04_14-07_00_00-o909wz",
"lastRunId": "no-run-id-provided",
"pipelineName": "test_pipeline"
}
},
{
"entityType": "chart",
"entityUrn": "urn:li:chart:(superset,13)",
"entityType": "tag",
"entityUrn": "urn:li:tag:superset:physical",
"changeType": "UPSERT",
"aspectName": "status",
"aspect": {
Expand All @@ -1629,7 +1629,7 @@
},
"systemMetadata": {
"lastObserved": 1586847600000,
"runId": "superset-2020_04_14-07_00_00-gqer6i",
"runId": "superset-2020_04_14-07_00_00-o909wz",
"lastRunId": "no-run-id-provided",
"pipelineName": "test_pipeline"
}
Expand All @@ -1646,7 +1646,24 @@
},
"systemMetadata": {
"lastObserved": 1586847600000,
"runId": "superset-2020_04_14-07_00_00-gqer6i",
"runId": "superset-2020_04_14-07_00_00-o909wz",
"lastRunId": "no-run-id-provided",
"pipelineName": "test_pipeline"
}
},
{
"entityType": "chart",
"entityUrn": "urn:li:chart:(superset,13)",
"changeType": "UPSERT",
"aspectName": "status",
"aspect": {
"json": {
"removed": true
}
},
"systemMetadata": {
"lastObserved": 1586847600000,
"runId": "superset-2020_04_14-07_00_00-o909wz",
"lastRunId": "no-run-id-provided",
"pipelineName": "test_pipeline"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ def register_mock_api(request_mock: Any, override_data: Optional[dict] = None) -
}
],
"schema": "test_schema1",
"sql": "SELECT * FROM test_table1",
"table_name": "Test Table 1",
},
{
Expand Down Expand Up @@ -287,10 +286,8 @@ def register_mock_api(request_mock: Any, override_data: Optional[dict] = None) -
"last_name": "Owner1",
}
],
"rendered_sql": "SELECT * FROM test_table1",
"schema": "test_schema1",
"select_star": "SELECT * FROM test_schema1.test_table1 LIMIT 100",
"sql": "SELECT * FROM test_table1",
"table_name": "Test Table 1",
"uid": "1__table",
"url": "/tablemodelview/edit/1",
Expand Down

0 comments on commit 615a127

Please sign in to comment.