Skip to content

Commit bed874b

Browse files
emasabedenhill
authored andcommitted
fix: test with invalid schema return status code
1 parent c22406e commit bed874b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/integration/schema_registry/test_api_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,9 @@ def test_api_get_register_schema_invalid(kafka_cluster, load_file):
176176

177177
with pytest.raises(SchemaRegistryError, match="Invalid schema") as e:
178178
sr.lookup_schema(subject, schema2)
179-
# Not as documented but the caused by is correct.
180-
assert e.value.http_status_code == 500
181-
assert e.value.error_code == 500
179+
180+
assert e.value.http_status_code == 422
181+
assert e.value.error_code == 42201
182182

183183

184184
def test_api_get_subjects(kafka_cluster, load_file):

0 commit comments

Comments
 (0)