Uploaded image for project: 'Sqoop (Retired)'
  1. Sqoop (Retired)
  2. SQOOP-3050 Create an compile/execution profile which is capable of running all the available test (including the 3rd party tests)
  3. SQOOP-3055

SQOOP-3055 MYSQL tests are failing due to the tests ignoring specified username, password and dbname, trying to connect to specified host using "currentUser"

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.4.7
    • None
    • None

    Description

      MYSQL test are using option.setUser(MySQLTestUtils.getcurrentUser()), where MySQLTestUtils.getCurrentUser() return
      System.getenv("USER");
      or
      ..
      whoamiArgs[0] = "whoami";
      ..
      p = Runtime.getRuntime().exec(whoamiArgs);

      Whereas it should use the userName and userPass as specified if called with -D parameters (if they are specified, otherwise should fall back to ).

      Currently the tests could only run when using localhost + root.

      Attachments

        1. SQOOP-3055-4.patch
          21 kB
          Anna Szonyi
        2. SQOOP-3055-3.patch
          21 kB
          Anna Szonyi
        3. SQOOP-3055-2.patch
          21 kB
          Anna Szonyi
        4. SQOOP-3055.patch
          19 kB
          Anna Szonyi

        Issue Links

          Activity

            People

              szonyi Anna Szonyi
              szonyi Anna Szonyi
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: