Search in sources :

Example 1 with AgentGetConfigurationSetRequest

use of alluxio.hub.proto.AgentGetConfigurationSetRequest in project alluxio by Alluxio.

the class AgentManagerServiceTest method testGetConf.

@Test
public void testGetConf() throws Exception {
    AlluxioConfigurationSet s = AlluxioConfigurationSet.newBuilder().setSiteProperties("testProps").setAlluxioEnv("testEnv").build();
    doReturn(s).when(mContext).getConf();
    AgentGetConfigurationSetRequest r = AgentGetConfigurationSetRequest.newBuilder().build();
    assertEquals(s, mClient.getConfigurationSet(r).getConfSet());
}
Also used : AgentGetConfigurationSetRequest(alluxio.hub.proto.AgentGetConfigurationSetRequest) AlluxioConfigurationSet(alluxio.hub.proto.AlluxioConfigurationSet) Test(org.junit.Test) BaseHubTest(alluxio.hub.test.BaseHubTest)

Aggregations

AgentGetConfigurationSetRequest (alluxio.hub.proto.AgentGetConfigurationSetRequest)1 AlluxioConfigurationSet (alluxio.hub.proto.AlluxioConfigurationSet)1 BaseHubTest (alluxio.hub.test.BaseHubTest)1 Test (org.junit.Test)1