Uploaded image for project: 'Sqoop (Retired)'
  1. Sqoop (Retired)
  2. SQOOP-449

Use regular expression to verify output in compatibility tests

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      One of OracleCompatTest tests (timestamp2) fails w/ Oracle 11g XE. The problem is that the verifyReadback function in testutil does string comparison to verify output, but the output string does not exactly match with any of expected values.

      In fact, doing string comparison is problematic since newer versions of DBs/drivers may have different output formats, and this test will be broken again. The better way to write this test would be to use regular expression rather than string comparison. In addition, there are several tests where the output string is compared against multiple expected values until succeed. Using regular expression will eliminate multiple tries as well.

      Attachments

        Issue Links

          Activity

            People

              cheolsoo Cheolsoo Park
              cheolsoo Cheolsoo Park
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 4h
                  4h
                  Remaining:
                  Remaining Estimate - 4h
                  4h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified