Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-10676

Improve code quality in TestTimelineAuthenticationFilterForV1

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.4.0
    • Component/s: None
    • Labels:
      None

      Description

      • In testcase "testDelegationTokenOperations", the exception message is checked but in case it does not match the assertion, the exception is not printed. This happens 3 times.
      • Assertion messages can be added
      • Fields called "httpSpnegoKeytabFile" and "httpSpnegoPrincipal" can be static final.
      • There's a typo in comment "avaiable" (happens 2 times)
      • There are some Assert.fail() calls, without messages.

        Attachments

        1. YARN-10676.001.patch
          12 kB
          Szilard Nemeth

          Activity

            People

            • Assignee:
              snemeth Szilard Nemeth
              Reporter:
              snemeth Szilard Nemeth
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: