|
@@ -1290,6 +1290,7 @@ public class TestRMWebServicesApps extends JerseyTestBase {
|
|
|
WebServicesTestUtils.getXmlString(element, "name"),
|
|
|
WebServicesTestUtils.getXmlString(element, "applicationType"),
|
|
|
WebServicesTestUtils.getXmlString(element, "queue"),
|
|
|
+ WebServicesTestUtils.getXmlInt(element, "priority"),
|
|
|
WebServicesTestUtils.getXmlString(element, "state"),
|
|
|
WebServicesTestUtils.getXmlString(element, "finalStatus"),
|
|
|
WebServicesTestUtils.getXmlFloat(element, "progress"),
|
|
@@ -1316,18 +1317,18 @@ public class TestRMWebServicesApps extends JerseyTestBase {
|
|
|
public void verifyAppInfo(JSONObject info, RMApp app) throws JSONException,
|
|
|
Exception {
|
|
|
|
|
|
- assertEquals("incorrect number of elements", 29, info.length());
|
|
|
+ assertEquals("incorrect number of elements", 30, info.length());
|
|
|
|
|
|
verifyAppInfoGeneric(app, info.getString("id"), info.getString("user"),
|
|
|
info.getString("name"), info.getString("applicationType"),
|
|
|
- info.getString("queue"), info.getString("state"),
|
|
|
- info.getString("finalStatus"), (float) info.getDouble("progress"),
|
|
|
- info.getString("trackingUI"), info.getString("diagnostics"),
|
|
|
- info.getLong("clusterId"), info.getLong("startedTime"),
|
|
|
- info.getLong("finishedTime"), info.getLong("elapsedTime"),
|
|
|
- info.getString("amHostHttpAddress"), info.getString("amContainerLogs"),
|
|
|
- info.getInt("allocatedMB"), info.getInt("allocatedVCores"),
|
|
|
- info.getInt("runningContainers"),
|
|
|
+ info.getString("queue"), info.getInt("priority"),
|
|
|
+ info.getString("state"), info.getString("finalStatus"),
|
|
|
+ (float) info.getDouble("progress"), info.getString("trackingUI"),
|
|
|
+ info.getString("diagnostics"), info.getLong("clusterId"),
|
|
|
+ info.getLong("startedTime"), info.getLong("finishedTime"),
|
|
|
+ info.getLong("elapsedTime"), info.getString("amHostHttpAddress"),
|
|
|
+ info.getString("amContainerLogs"), info.getInt("allocatedMB"),
|
|
|
+ info.getInt("allocatedVCores"), info.getInt("runningContainers"),
|
|
|
info.getInt("preemptedResourceMB"),
|
|
|
info.getInt("preemptedResourceVCores"),
|
|
|
info.getInt("numNonAMContainerPreempted"),
|
|
@@ -1337,8 +1338,8 @@ public class TestRMWebServicesApps extends JerseyTestBase {
|
|
|
}
|
|
|
|
|
|
public void verifyAppInfoGeneric(RMApp app, String id, String user,
|
|
|
- String name, String applicationType, String queue, String state,
|
|
|
- String finalStatus, float progress, String trackingUI,
|
|
|
+ String name, String applicationType, String queue, int prioirty,
|
|
|
+ String state, String finalStatus, float progress, String trackingUI,
|
|
|
String diagnostics, long clusterId, long startedTime, long finishedTime,
|
|
|
long elapsedTime, String amHostHttpAddress, String amContainerLogs,
|
|
|
int allocatedMB, int allocatedVCores, int numContainers,
|
|
@@ -1355,6 +1356,7 @@ public class TestRMWebServicesApps extends JerseyTestBase {
|
|
|
WebServicesTestUtils.checkStringMatch("applicationType",
|
|
|
app.getApplicationType(), applicationType);
|
|
|
WebServicesTestUtils.checkStringMatch("queue", app.getQueue(), queue);
|
|
|
+ assertEquals("priority doesn't match", 0, prioirty);
|
|
|
WebServicesTestUtils.checkStringMatch("state", app.getState().toString(),
|
|
|
state);
|
|
|
WebServicesTestUtils.checkStringMatch("finalStatus", app
|