|
@@ -75,7 +75,6 @@ public class TestRMWebServicesCapacitySched extends JerseyTest {
|
|
|
float absoluteMaxCapacity;
|
|
|
float absoluteUsedCapacity;
|
|
|
int numApplications;
|
|
|
- String usedResources;
|
|
|
String queueName;
|
|
|
String state;
|
|
|
}
|
|
@@ -283,8 +282,6 @@ public class TestRMWebServicesCapacitySched extends JerseyTest {
|
|
|
WebServicesTestUtils.getXmlFloat(qElem, "absoluteUsedCapacity");
|
|
|
qi.numApplications =
|
|
|
WebServicesTestUtils.getXmlInt(qElem, "numApplications");
|
|
|
- qi.usedResources =
|
|
|
- WebServicesTestUtils.getXmlString(qElem, "usedResources");
|
|
|
qi.queueName = WebServicesTestUtils.getXmlString(qElem, "queueName");
|
|
|
qi.state = WebServicesTestUtils.getXmlString(qElem, "state");
|
|
|
verifySubQueueGeneric(q, qi, parentAbsCapacity, parentAbsMaxCapacity);
|
|
@@ -360,10 +357,10 @@ public class TestRMWebServicesCapacitySched extends JerseyTest {
|
|
|
private void verifySubQueue(JSONObject info, String q,
|
|
|
float parentAbsCapacity, float parentAbsMaxCapacity)
|
|
|
throws JSONException, Exception {
|
|
|
- int numExpectedElements = 12;
|
|
|
+ int numExpectedElements = 11;
|
|
|
boolean isParentQueue = true;
|
|
|
if (!info.has("queues")) {
|
|
|
- numExpectedElements = 22;
|
|
|
+ numExpectedElements = 21;
|
|
|
isParentQueue = false;
|
|
|
}
|
|
|
assertEquals("incorrect number of elements", numExpectedElements, info.length());
|
|
@@ -376,7 +373,6 @@ public class TestRMWebServicesCapacitySched extends JerseyTest {
|
|
|
qi.absoluteMaxCapacity = (float) info.getDouble("absoluteMaxCapacity");
|
|
|
qi.absoluteUsedCapacity = (float) info.getDouble("absoluteUsedCapacity");
|
|
|
qi.numApplications = info.getInt("numApplications");
|
|
|
- qi.usedResources = info.getString("usedResources");
|
|
|
qi.queueName = info.getString("queueName");
|
|
|
qi.state = info.getString("state");
|
|
|
|
|
@@ -431,8 +427,6 @@ public class TestRMWebServicesCapacitySched extends JerseyTest {
|
|
|
assertEquals("absoluteUsedCapacity doesn't match",
|
|
|
0, info.absoluteUsedCapacity, 1e-3f);
|
|
|
assertEquals("numApplications doesn't match", 0, info.numApplications);
|
|
|
- assertTrue("usedResources doesn't match ",
|
|
|
- info.usedResources.matches("<memory:0, vCores:0>"));
|
|
|
assertTrue("queueName doesn't match, got: " + info.queueName
|
|
|
+ " expected: " + q, qshortName.matches(info.queueName));
|
|
|
assertTrue("state doesn't match",
|