Bigtop
  1. Bigtop
  2. BIGTOP-1032

Refactor hdfs/TestCLI and hdfs/TestAppend to be generic filesystem tests

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 0.7.0
    • Fix Version/s: backlog
    • Component/s: tests
    • Labels:
      None

      Description

      The TestCLI and TestAppend classes both have hard references to an HDFS user shell, although most of their functionality is actually geared towards testing the abstract FileSystem interface.

      Removing a couple of lines from TestCLI:

      String[] createTestcliDirCmds =

      {"hadoop fs -mkdir -p " + TEST_DIR_ABSOLUTE, "hadoop fs -chmod 777 " + TEST_DIR_ABSOLUTE}

      ;
      shHDFS.exec(createTestcliDirCmds);

      And a this line from TestAppend:

      shHDFS.exec("hadoop fsck /user/$USERNAME/$testAppendInput/test2.file$date");

      This will essentially allow bigtop suites to be used to validate file system functionality in clusters with heterogenous https://wiki.apache.org/hadoop/HCFS/ implementations.

      1. FSCmdExecutor.java
        2 kB
        Martin Bukatovic
      2. TestCLI.java
        4 kB
        Martin Bukatovic

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Martin Bukatovic
              Reporter:
              jay vyas
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development