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

DistributedConfigTest#shouldFailWithInvalidKeySize fails when run after TestSslUtils#generate

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.6.0, 3.4.2, 3.5.2
    • clients, connect
    • None

    Description

      The DistributedConfigTest#shouldFailWithInvalidKeySize attempts to configure a hashing algorithm with a key size of 0. When run alone, this test passes, as the default Java hashing algorithm used rejects the key size.

      However, when TestSslUtils#generate runs first, such as via the RestForwardingIntegrationTest, the BouncyCastleProvider is loaded, which provides an alternative hashing algorithm. This implementation does not reject the key size, causing the test to fail.

      We should ether prevent TestSslUtils#generate from leaving the BouncyCastleProvider loaded after use, or adjust the test to pass when the BouncyCastleProvider is loaded.

      Attachments

        Issue Links

          Activity

            People

              gharris1727 Greg Harris
              gharris1727 Greg Harris
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: