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

Additional authorization test cases

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.9.0.0
    • 2.0.0
    • None
    • 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

              fpj Flavio Paiva Junqueira
              fpj Flavio Paiva Junqueira
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: