FrankYang0529 commented on PR #19426: URL: https://github.com/apache/kafka/pull/19426#issuecomment-2792534955
The failed case `DefaultApiVersionManagerTest#testApiScope` can be fixed like: ```scala @ParameterizedTest @EnumSource(classOf[ListenerType]) def testApiScope(apiScope: ListenerType): Unit = { val forwardingManager = Mockito.mock(classOf[ForwardingManager]) val versionManager = new DefaultApiVersionManager( listenerType = apiScope, forwardingManager = forwardingManager, brokerFeatures = brokerFeatures, metadataCache = metadataCache, enableUnstableLastVersion = true ) assertEquals(ApiKeys.apisForListener(apiScope), versionManager.enabledApis) assertTrue(ApiKeys.apisForListener(apiScope).asScala.forall { apiKey => apiKey.allVersions.asScala.forall { version => versionManager.isApiEnabled(apiKey, version) } }) } ``` -- 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