Bigtop
  1. Bigtop
  2. BIGTOP-799

create an itest method for unpacking all the resources into the HDFS or local filesystem

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.5.0
    • Fix Version/s: 0.5.0
    • Component/s: tests
    • Labels:
      None

      Description

      Most of our tests start with unpacking a certain amount of resources and transferring them to a HDFS/local filesystem. It would be useful to have a helper method in iTest that would accomplish that.

        Activity

        Hide
        Johnny Zhang added a comment -

        I create a new helper method TestUtils.unpackTestResources(Class ref, String inputDir, String[] inputFiles, String outputDir).

        I have used it in TestHadoopSmoke.groovy and TestHadoopExamples.groovy and they all pass.

        Show
        Johnny Zhang added a comment - I create a new helper method TestUtils.unpackTestResources(Class ref, String inputDir, String[] inputFiles, String outputDir). I have used it in TestHadoopSmoke.groovy and TestHadoopExamples.groovy and they all pass.
        Hide
        Roman Shaposhnik added a comment -

        Great stuff Johnny! Can you please also update the Crunch tests with the use of this new method you've introduced? You can simply attach a new patch to the Crunch tests JIRA – I'll apply it on top of this one. Thanks!

        Show
        Roman Shaposhnik added a comment - Great stuff Johnny! Can you please also update the Crunch tests with the use of this new method you've introduced? You can simply attach a new patch to the Crunch tests JIRA – I'll apply it on top of this one. Thanks!
        Hide
        Roman Shaposhnik added a comment -

        +1 and committed!

        Show
        Roman Shaposhnik added a comment - +1 and committed!

          People

          • Assignee:
            Johnny Zhang
            Reporter:
            Roman Shaposhnik
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development