Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-18481

Fix Authentication data is not available error in ConfigGroupResourceProviderTest

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.5.0
    • 2.5.0
    • ambari-server
    • None

    Description

      Intermittently the following exception is thrown when running unit tests for ConfigGroupResourceProviderTest:

      org.apache.ambari.server.security.authorization.AuthorizationException: Authentication data is not available, authorization to perform the requested operation is not granted
        at org.apache.ambari.server.controller.internal.ConfigGroupResourceProviderTest.testGetConfigGroup(ConfigGroupResourceProviderTest.java:695)
        at org.apache.ambari.server.controller.internal.ConfigGroupResourceProviderTest.testGetConfigGroupAsClusterAdministrator(ConfigGroupResourceProviderTest.java:580)
      

      This is due to the order in which the test cases are executed and when the authentication context is set.

      Attachments

        1. AMBARI-18481_trunk_01.patch
          23 kB
          Robert Levas
        2. AMBARI-18481_branch-2.5_01.patch
          23 kB
          Robert Levas

        Issue Links

          Activity

            People

              rlevas Robert Levas
              rlevas Robert Levas
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: