Current state: Under Discussion
Discussion thread: here
JIRA: [tbd]
MockConsumer and MockProducer are part of the public API. They are useful for developers wanting to test their applications. On the other hand MockAdminClient is not part of the public API (it's under test). We should consider moving it to src so users can also easily test applications that depend on Admin. (Mentioned in KAFKA-15258)
MockAdminClient should be used only for testing purposes and shouldn't be used in production environments.
Every kafka developer needs to create topics, acls and more and would like to test in their applications directly. Without setting up kafka broker, if developer can mock all these functionalities in their code, it could help in time and effort. However downside is, developer should be careful in not using these in prod envs.
There is no change to existing public interfaces
Update Usage of MockAdminClient
Update MockAdminClient with new behaviour and how users are expected to use it.
Describe in few sentences how the KIP will be tested. We are mostly interested in system tests (since unit-tests are specific to implementation details). How will we know that the implementation works as expected? How will we know nothing broke?
If there are alternative ways of accomplishing the same thing, what were they? The purpose of this section is to motivate why the design is the way it is and not some other way.