rreddy-22 commented on code in PR #16973: URL: https://github.com/apache/kafka/pull/16973#discussion_r1731959181
########## core/src/test/scala/unit/kafka/tools/StorageToolTest.scala: ########## @@ -433,5 +433,91 @@ Found problem: contains("Formatting dynamic metadata voter directory %s".format(availableDirs.head)), "Failed to find content in output: " + stream.toString()) } -} + private def runVersionMappingCommand( + stream: ByteArrayOutputStream, + properties: Properties, + releaseVersion: String + ): Int = { + val tempDir = TestUtils.tempDir() + try { + // Write the properties to a temporary file + val configPathString = new File(tempDir.getAbsolutePath, "version-mapping.props").toString Review Comment: I got an exception without the props file for certain configs not being present so this is what worked, I'm not sure if there's a better way -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org