Search in sources :

Example 21 with FileSystemAdminShell

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);
    }
}
Also used : FileSystemAdminShell(alluxio.cli.fsadmin.FileSystemAdminShell) Test(org.junit.Test) AbstractShellIntegrationTest(alluxio.client.cli.fs.AbstractShellIntegrationTest)

Example 22 with FileSystemAdminShell

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);
    }
}
Also used : FileSystemAdminShell(alluxio.cli.fsadmin.FileSystemAdminShell) Test(org.junit.Test) AbstractShellIntegrationTest(alluxio.client.cli.fs.AbstractShellIntegrationTest)

Example 23 with FileSystemAdminShell

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);
    }
}
Also used : FileSystemAdminShell(alluxio.cli.fsadmin.FileSystemAdminShell) Test(org.junit.Test) AbstractShellIntegrationTest(alluxio.client.cli.fs.AbstractShellIntegrationTest)

Aggregations

FileSystemAdminShell (alluxio.cli.fsadmin.FileSystemAdminShell)23 Test (org.junit.Test)22 AbstractShellIntegrationTest (alluxio.client.cli.fs.AbstractShellIntegrationTest)17 BaseIntegrationTest (alluxio.testutils.BaseIntegrationTest)5 MasterNetAddress (alluxio.multi.process.MasterNetAddress)3 AlluxioURI (alluxio.AlluxioURI)2 PropertyKey (alluxio.conf.PropertyKey)2 ConfigurationRule (alluxio.ConfigurationRule)1 SystemErrRule (alluxio.SystemErrRule)1 SystemOutRule (alluxio.SystemOutRule)1 FileSystemShell (alluxio.cli.fs.FileSystemShell)1 QuorumCommand (alluxio.cli.fsadmin.journal.QuorumCommand)1 QuorumElectCommand (alluxio.cli.fsadmin.journal.QuorumElectCommand)1 QuorumInfoCommand (alluxio.cli.fsadmin.journal.QuorumInfoCommand)1 QuorumRemoveCommand (alluxio.cli.fsadmin.journal.QuorumRemoveCommand)1 FileSystem (alluxio.client.file.FileSystem)1 URIStatus (alluxio.client.file.URIStatus)1 InstancedConfiguration (alluxio.conf.InstancedConfiguration)1 ServerConfiguration (alluxio.conf.ServerConfiguration)1 ExceptionMessage (alluxio.exception.ExceptionMessage)1