Skip to content

Commit

Permalink
dt/schema_registry: json verbose compat test
Browse files Browse the repository at this point in the history
Extend the verbose compatibility message test to include json as well.
  • Loading branch information
pgellert committed Sep 9, 2024
1 parent 51761f6 commit 3c88300
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/rptest/tests/schema_registry_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ def get_subject_name(sns: str, topic: str, field: MessageField,
]
}
""",
json=r'{"type": "number"}',
json_incompat=r'{"type": "number", "multipleOf": 20}',
)

log_config = LoggingConfig('info',
Expand Down Expand Up @@ -1570,6 +1572,7 @@ def test_post_compatibility_subject_version_transitive_order(self):
@parametrize(schemas=("avro", "avro_incompat", "AVRO"))
@parametrize(schemas=("proto3", "proto3_incompat", "PROTOBUF"))
@parametrize(schemas=("proto2", "proto2_incompat", "PROTOBUF"))
@parametrize(schemas=("json", "json_incompat", "JSON"))
def test_compatibility_messages(self, schemas):
"""
Verify compatibility messages
Expand Down

0 comments on commit 3c88300

Please sign in to comment.