Search in sources :

Example 1 with AgentWriteConfigurationSetRequest

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

the class AgentManagerServiceTest method testWriteConf.

@Test
public void testWriteConf() throws Exception {
    AlluxioConfigurationSet s = AlluxioConfigurationSet.newBuilder().setSiteProperties("testProps").setAlluxioEnv("testEnv").build();
    doNothing().when(mContext).writeConf(ArgumentMatchers.any());
    AgentWriteConfigurationSetRequest r = AgentWriteConfigurationSetRequest.newBuilder().setConfSet(s).build();
    mClient.writeConfigurationSet(r);
    verify(mContext).writeConf(s);
}
Also used : AgentWriteConfigurationSetRequest(alluxio.hub.proto.AgentWriteConfigurationSetRequest) AlluxioConfigurationSet(alluxio.hub.proto.AlluxioConfigurationSet) Test(org.junit.Test) BaseHubTest(alluxio.hub.test.BaseHubTest)

Aggregations

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