File tree Expand file tree Collapse file tree
pulsar-broker/src/test/java/org/apache/pulsar/broker/admin
pulsar-client-admin/src/main/java/org/apache/pulsar/client/admin/internal/http Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -278,7 +278,7 @@ public void testInvalidSchemaDataException(ApiVersion version) {
278278 admin .schemas ().createSchema (topicName , schemaInfo );
279279 } catch (PulsarAdminException e ) {
280280 Assert .assertEquals (e .getStatusCode (), 422 );
281- Assert .assertEquals (e .getMessage (), "HTTP 422 Invalid schema definition data for AVRO schema" );
281+ Assert .assertTrue (e .getMessage (). contains ( " Invalid schema definition data for AVRO schema") );
282282 }
283283 }
284284
Original file line number Diff line number Diff line change @@ -241,6 +241,9 @@ public Status.Family getFamily() {
241241
242242 @ Override
243243 public String getReasonPhrase () {
244+ if (response .hasResponseBody ()) {
245+ return response .getResponseBody ();
246+ }
244247 return response .getStatusText ();
245248 }
246249 });
You can’t perform that action at this time.
0 commit comments