@@ -962,7 +962,7 @@ async def test_union_comparing_to_other_types(registry_async_client: Client) ->
962962 res = await registry_async_client .post (f"subjects/{ subject } /versions" , json = {"schema" : json .dumps (plain_schema )})
963963 assert res .status_code == status_code
964964
965- res = await registry_async_client .get (f"/schemas/ids/{ initial_schema_id } " )
965+ res = await registry_async_client .get (f"/schemas/ids/{ initial_schema_id } " , params = { "includeSubjects" : "True" } )
966966 assert subject in res .json ()["subjects" ]
967967
968968 expected_results = [("BACKWARD" , 200 ), ("FORWARD" , 409 ), ("FULL" , 409 )]
@@ -2352,9 +2352,16 @@ async def test_malformed_kafka_message(
23522352 sleep = 1 ,
23532353 )
23542354 res_data = res .json ()
2355- expected_payload = {"schema" : json_encode ({"foo" : "bar" }, compact = True ), "subjects" : [ "foo" ] }
2355+ expected_payload = {"schema" : json_encode ({"foo" : "bar" }, compact = True )}
23562356 assert res_data == expected_payload , res_data
23572357
2358+ with_subjects_reply = await registry_async_client .get (path , params = {"includeSubjects" : "True" })
2359+ assert with_subjects_reply .ok , "a subsequent request once the server is up should be valid"
2360+ json_reply = with_subjects_reply .json ()
2361+ assert "subjects" in json_reply , "subjects should be present if specified"
2362+ expected_payload ["subjects" ] = ["foo" ]
2363+ assert expected_payload == json_reply , "the reply should be equal as the previous one with additional subjects field"
2364+
23582365
23592366async def test_inner_type_compat_failure (registry_async_client : Client ) -> None :
23602367 subject = create_subject_name_factory ("test_inner_type_compat_failure" )()
0 commit comments