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

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Patch Available Patch Available
        4d 7h 8m 1 Johnny Zhang 04/Dec/12 08:14
        Patch Available Patch Available Resolved Resolved
        12h 16m 1 Roman Shaposhnik 04/Dec/12 20:31
        Resolved Resolved Closed Closed
        199d 3h 24m 1 Roman Shaposhnik 22/Jun/13 00:55
        Roman Shaposhnik made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Roman Shaposhnik made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Roman Shaposhnik added a comment -

        +1 and committed!

        Show
        Roman Shaposhnik added a comment - +1 and committed!
        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
        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.
        Johnny Zhang made changes -
        Attachment BIGTOP-799.patch.txt [ 12555907 ]
        Johnny Zhang made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Johnny Zhang made changes -
        Field Original Value New Value
        Assignee Roman Shaposhnik [ rvs ] Johnny Zhang [ dreambird ]
        Roman Shaposhnik created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development