Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ public void testInvalidSchemaDataException(ApiVersion version) {
admin.schemas().createSchema(topicName, schemaInfo);
} catch (PulsarAdminException e) {
Assert.assertEquals(e.getStatusCode(), 422);
Assert.assertEquals(e.getMessage(), "HTTP 422 Invalid schema definition data for AVRO schema");
Assert.assertTrue(e.getMessage().contains("Invalid schema definition data for AVRO schema"));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,9 @@ public Status.Family getFamily() {

@Override
public String getReasonPhrase() {
if (response.hasResponseBody()) {
return response.getResponseBody();
}
return response.getStatusText();
}
});
Expand Down