Skip to content

Commit

Permalink
tests,avro: comment out indirect references since unsupported
Browse files Browse the repository at this point in the history
  • Loading branch information
davide-armand committed Oct 31, 2024
1 parent 2bba502 commit e5ee954
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/integration/test_schema_avro_references.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"fields": [
{"name": "name", "type": "string"},
{"name": "age", "type": "int"},
{"name": "address", "type": "Address"},
# {"name": "address", "type": "Address"},
{"name": "job", "type": "Job"},
],
}
Expand All @@ -61,7 +61,7 @@
"fields": [
{"name": "name", "type": "string"},
{"name": "age", "type": "long"},
{"name": "address", "type": "Address"},
# {"name": "address", "type": "Address"},
{"name": "job", "type": "Job"},
],
}
Expand All @@ -73,7 +73,7 @@
"fields": [
{"name": "name", "type": "string"},
{"name": "age", "type": "string"},
{"name": "address", "type": "Address"},
# {"name": "address", "type": "Address"},
{"name": "job", "type": "Job"},
],
}
Expand All @@ -85,7 +85,7 @@
"fields": [
{"name": "name", "type": "string"},
{"name": "age", "type": "int"},
{"name": "address", "type": "Address"},
# {"name": "address", "type": "Address"},
{"name": "job", "type": "Job"},
{
"name": "children",
Expand All @@ -109,7 +109,7 @@
"fields": [
{"name": "name", "type": "string"},
{"name": "age", "type": "int"},
{"name": "address", "type": "Address"},
# {"name": "address", "type": "Address"},
{"name": "job", "type": "Job"},
],
},
Expand All @@ -120,7 +120,7 @@
"fields": [
{"name": "name", "type": "string"},
{"name": "age", "type": "int"},
{"name": "address", "type": "Address"},
# {"name": "address", "type": "Address"},
],
},
]
Expand All @@ -144,7 +144,7 @@ def address_references(subject_prefix: str) -> list:

def person_references(subject_prefix: str) -> list:
return [
{"name": "address.avsc", "subject": f"{subject_prefix}address", "version": 1},
# {"name": "address.avsc", "subject": f"{subject_prefix}address", "version": 1},
{"name": "job.avsc", "subject": f"{subject_prefix}job", "version": 1},
]

Expand All @@ -153,15 +153,15 @@ def stored_person_subject(subject_prefix: str, subject_id: int) -> dict:
return {
"id": subject_id,
"references": [
{"name": "address.avsc", "subject": f"{subject_prefix}address", "version": 1},
# {"name": "address.avsc", "subject": f"{subject_prefix}address", "version": 1},
{"name": "job.avsc", "subject": f"{subject_prefix}job", "version": 1},
],
"schema": json.dumps(
{
"fields": [
{"name": "name", "type": "string"},
{"name": "age", "type": "int"},
{"name": "address", "type": "Address"},
# {"name": "address", "type": "Address"},
{"name": "job", "type": "Job"},
],
"name": "Person",
Expand Down

0 comments on commit e5ee954

Please sign in to comment.