|
@@ -2012,7 +2012,8 @@ public class TestClientRMService {
|
|
|
|
|
|
@Test(timeout = 120000)
|
|
@Test(timeout = 120000)
|
|
public void testGetClusterNodeAttributes() throws IOException, YarnException {
|
|
public void testGetClusterNodeAttributes() throws IOException, YarnException {
|
|
- MockRM rm = new MockRM() {
|
|
|
|
|
|
+ Configuration newConf = NodeAttributeTestUtils.getRandomDirConf(null);
|
|
|
|
+ MockRM rm = new MockRM(newConf) {
|
|
protected ClientRMService createClientRMService() {
|
|
protected ClientRMService createClientRMService() {
|
|
return new ClientRMService(this.rmContext, scheduler, this.rmAppManager,
|
|
return new ClientRMService(this.rmContext, scheduler, this.rmAppManager,
|
|
this.applicationACLsManager, this.queueACLsManager,
|
|
this.applicationACLsManager, this.queueACLsManager,
|
|
@@ -2061,7 +2062,8 @@ public class TestClientRMService {
|
|
|
|
|
|
@Test(timeout = 120000)
|
|
@Test(timeout = 120000)
|
|
public void testGetAttributesToNodes() throws IOException, YarnException {
|
|
public void testGetAttributesToNodes() throws IOException, YarnException {
|
|
- MockRM rm = new MockRM() {
|
|
|
|
|
|
+ Configuration newConf = NodeAttributeTestUtils.getRandomDirConf(null);
|
|
|
|
+ MockRM rm = new MockRM(newConf) {
|
|
protected ClientRMService createClientRMService() {
|
|
protected ClientRMService createClientRMService() {
|
|
return new ClientRMService(this.rmContext, scheduler, this.rmAppManager,
|
|
return new ClientRMService(this.rmContext, scheduler, this.rmAppManager,
|
|
this.applicationACLsManager, this.queueACLsManager,
|
|
this.applicationACLsManager, this.queueACLsManager,
|
|
@@ -2152,7 +2154,8 @@ public class TestClientRMService {
|
|
|
|
|
|
@Test(timeout = 120000)
|
|
@Test(timeout = 120000)
|
|
public void testGetNodesToAttributes() throws IOException, YarnException {
|
|
public void testGetNodesToAttributes() throws IOException, YarnException {
|
|
- MockRM rm = new MockRM() {
|
|
|
|
|
|
+ Configuration newConf = NodeAttributeTestUtils.getRandomDirConf(null);
|
|
|
|
+ MockRM rm = new MockRM(newConf) {
|
|
protected ClientRMService createClientRMService() {
|
|
protected ClientRMService createClientRMService() {
|
|
return new ClientRMService(this.rmContext, scheduler, this.rmAppManager,
|
|
return new ClientRMService(this.rmContext, scheduler, this.rmAppManager,
|
|
this.applicationACLsManager, this.queueACLsManager,
|
|
this.applicationACLsManager, this.queueACLsManager,
|