use of alluxio.cli.fsadmin.FileSystemAdminShell in project alluxio by Alluxio.
the class ShowCommandIntegrationTest method showResolveDir3.
@Test
public void showResolveDir3() throws Exception {
try (FileSystemAdminShell shell = new FileSystemAdminShell(setPathConfigurations())) {
int ret = shell.run("pathConf", "show", "--all", DIR3);
Assert.assertEquals(0, ret);
String expected = format(PROPERTY_KEY11, PROPERTY_VALUE11) + "\n" + format(PROPERTY_KEY2, PROPERTY_VALUE2) + "\n";
String output = mOutput.toString();
Assert.assertEquals(expected, output);
}
}
use of alluxio.cli.fsadmin.FileSystemAdminShell in project alluxio by Alluxio.
the class ShowCommandIntegrationTest method showDir0.
@Test
public void showDir0() throws Exception {
try (FileSystemAdminShell shell = new FileSystemAdminShell(setPathConfigurations())) {
int ret = shell.run("pathConf", "show", DIR0);
Assert.assertEquals(0, ret);
String output = mOutput.toString();
Assert.assertEquals("", output);
}
}
use of alluxio.cli.fsadmin.FileSystemAdminShell in project alluxio by Alluxio.
the class ShowCommandIntegrationTest method showResolveDir0.
@Test
public void showResolveDir0() throws Exception {
try (FileSystemAdminShell shell = new FileSystemAdminShell(setPathConfigurations())) {
int ret = shell.run("pathConf", "show", "--all", DIR0);
Assert.assertEquals(0, ret);
String output = mOutput.toString();
Assert.assertEquals("", output);
}
}
Aggregations