Uploaded image for project: 'Chukwa'
  1. Chukwa
  2. CHUKWA-177

Adding Testing script for database to UI data path

    Details

    • Type: Test
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.1.2
    • Fix Version/s: 0.1.2
    • Component/s: User Interface
    • Labels:
      None

      Description

      Adding testing script to test the database tables cluster_disk,cluster_system_metrics,disk,mr_job,mr_task,system_metrics.

      Assume the data is in the database, the script will get the data from the web UI json page and compare the json page to the actual value in the database.

      1. CHUKWA-177.patch
        11 kB
        Eric Yang
      2. patch
        11 kB
        Terence Kwan

        Activity

        Hide
        terencekwan Terence Kwan added a comment -

        2 completely new files.

        1. src/web/hicc/jsp/get_db_data.jsp - output database result as JSON
        2. src.test/org/apache/hadoop/chukwa/database/TestWebJson.java - handle the actual testing of the json output and database data.

        Show
        terencekwan Terence Kwan added a comment - 2 completely new files. 1. src/web/hicc/jsp/get_db_data.jsp - output database result as JSON 2. src.test/org/apache/hadoop/chukwa/database/TestWebJson.java - handle the actual testing of the json output and database data.
        Hide
        eyang Eric Yang added a comment -

        The original patch looks good. However, rename TestWebJson.java to TestDatabaseWebJson.java. This ensure the database test cases are disabled, and can be enabled when there is a database running locally.

        Show
        eyang Eric Yang added a comment - The original patch looks good. However, rename TestWebJson.java to TestDatabaseWebJson.java. This ensure the database test cases are disabled, and can be enabled when there is a database running locally.
        Hide
        terencekwan Terence Kwan added a comment -

        good +!

        Show
        terencekwan Terence Kwan added a comment - good +!
        Hide
        eyang Eric Yang added a comment -

        I just committed this, thanks Terence.

        Show
        eyang Eric Yang added a comment - I just committed this, thanks Terence.
        Hide
        hudson Hudson added a comment -
        Show
        hudson Hudson added a comment - Integrated in Chukwa-trunk #8 (See http://hudson.zones.apache.org/hudson/job/Chukwa-trunk/8/ )
        Hide
        hudson Hudson added a comment -
        Show
        hudson Hudson added a comment - Integrated in Chukwa-trunk #45 (See http://hudson.zones.apache.org/hudson/job/Chukwa-trunk/45/ )

          People

          • Assignee:
            terencekwan Terence Kwan
            Reporter:
            terencekwan Terence Kwan
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development