fix(ingest/openapi): Fix openapi tests (#11789)

This commit is contained in:
Tamas Nemeth 2024-11-05 10:55:35 +01:00 committed by GitHub
parent a67981beda
commit 83ec73b7d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 8 deletions

View File

@ -20,7 +20,7 @@
"com.linkedin.pegasus2avro.common.InstitutionalMemory": { "com.linkedin.pegasus2avro.common.InstitutionalMemory": {
"elements": [ "elements": [
{ {
"url": "https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/", "url": "https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/tests/",
"description": "Link to call for the dataset.", "description": "Link to call for the dataset.",
"createStamp": { "createStamp": {
"time": 1586847600, "time": 1586847600,
@ -71,7 +71,8 @@
}, },
"systemMetadata": { "systemMetadata": {
"lastObserved": 1586847600000, "lastObserved": 1586847600000,
"runId": "openapi-2020_04_14-07_00_00" "runId": "openapi-2020_04_14-07_00_00-m1k7d5",
"lastRunId": "no-run-id-provided"
} }
}, },
{ {
@ -95,7 +96,7 @@
"com.linkedin.pegasus2avro.common.InstitutionalMemory": { "com.linkedin.pegasus2avro.common.InstitutionalMemory": {
"elements": [ "elements": [
{ {
"url": "https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v2", "url": "https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/tests/v2",
"description": "Link to call for the dataset.", "description": "Link to call for the dataset.",
"createStamp": { "createStamp": {
"time": 1586847600, "time": 1586847600,
@ -146,7 +147,8 @@
}, },
"systemMetadata": { "systemMetadata": {
"lastObserved": 1586847600000, "lastObserved": 1586847600000,
"runId": "openapi-2020_04_14-07_00_00" "runId": "openapi-2020_04_14-07_00_00-m1k7d5",
"lastRunId": "no-run-id-provided"
} }
}, },
{ {
@ -161,7 +163,8 @@
}, },
"systemMetadata": { "systemMetadata": {
"lastObserved": 1586847600000, "lastObserved": 1586847600000,
"runId": "openapi-2020_04_14-07_00_00" "runId": "openapi-2020_04_14-07_00_00-m1k7d5",
"lastRunId": "no-run-id-provided"
} }
}, },
{ {
@ -176,7 +179,8 @@
}, },
"systemMetadata": { "systemMetadata": {
"lastObserved": 1586847600000, "lastObserved": 1586847600000,
"runId": "openapi-2020_04_14-07_00_00" "runId": "openapi-2020_04_14-07_00_00-m1k7d5",
"lastRunId": "no-run-id-provided"
} }
} }
] ]

View File

@ -2,8 +2,8 @@ source:
type: openapi type: openapi
config: config:
name: test_openapi name: test_openapi
url: https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/ url: https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/tests/
swagger_file: v3.0/api-with-examples.yaml swagger_file: v3.0/pass/api-with-examples.yaml
sink: sink: