TEZ-3947. TestATSHistoryWithACLs fails with Hadoop3 and Jersey 1.19 (Eric Wohlstadter...
authorJonathan Eagles <jeagles@yahoo-inc.com>
Fri, 1 Jun 2018 23:42:24 +0000 (18:42 -0500)
committerJonathan Eagles <jeagles@yahoo-inc.com>
Fri, 1 Jun 2018 23:42:24 +0000 (18:42 -0500)
tez-plugins/tez-yarn-timeline-history-with-acls/src/test/java/org/apache/tez/dag/history/ats/acls/TestATSHistoryWithACLs.java

index 8e5c95c..4b5702e 100644 (file)
@@ -147,7 +147,7 @@ public class TestATSHistoryWithACLs {
     ClientResponse response = resource.accept(MediaType.APPLICATION_JSON)
         .get(ClientResponse.class);
     assertEquals(200, response.getStatus());
-    assertEquals(MediaType.APPLICATION_JSON_TYPE, response.getType());
+    assertTrue(MediaType.APPLICATION_JSON_TYPE.isCompatible(response.getType()));
 
     K entity = response.getEntity(clazz);
     assertNotNull(entity);
@@ -458,7 +458,7 @@ public class TestATSHistoryWithACLs {
     ClientResponse response = resource.accept(MediaType.APPLICATION_JSON)
         .get(ClientResponse.class);
     assertEquals(200, response.getStatus());
-    assertEquals(MediaType.APPLICATION_JSON_TYPE, response.getType());
+    assertTrue(MediaType.APPLICATION_JSON_TYPE.isCompatible(response.getType()));
     TimelineEntity entity = response.getEntity(TimelineEntity.class);
     assertEquals(entity.getEntityType(), "TEZ_DAG_ID");
     assertEquals(entity.getEvents().get(0).getEventType(), HistoryEventType.DAG_SUBMITTED.toString());