Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-2951

Additional authorization test cases

    XMLWordPrintableJSON

    Details

    • Type: Test
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.0.0
    • Fix Version/s: 2.0.0
    • Component/s: None
    • Labels:
      None

      Description

      There are a few test cases that are worth adding. I've run them manually, but it sounds like a good idea to have them in:

      1. Test incorrect topic name (authorization failure)
      2. Test topic wildcard

      The first one is covered by checking access to a topic with no authorization, which could happen for example if the user as a typo in the topic name. This case is somewhat covered by the test case testProduceWithNoTopicAccess in AuthorizerIntegrationTest, but not in EndToEndAuthorizationTest. The second case consists of testing that using the topic wildcard works. This wildcard might end up being commonly used and it is worth checking the functionality. At the moment, I believe none of AuthorizerIntegrationTest or EndToEndAuthorizationTest.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fpj Flavio Junqueira
                Reporter:
                fpj Flavio Junqueira
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: