sijie commented on a change in pull request #3941: [Issue
3837][pulsar-client-tools]Delete schema when deleting a topic
URL: https://github.com/apache/pulsar/pull/3941#discussion_r270613963
##########
File path:
pulsar-client-tools-test/src/test/java/org/apache/pulsar/admin/cli/PulsarAdminToolTest.java
##########
@@ -558,10 +559,12 @@ void topics() throws Exception {
PulsarAdmin admin = Mockito.mock(PulsarAdmin.class);
Topics mockTopics = mock(Topics.class);
when(admin.topics()).thenReturn(mockTopics);
+ Schemas mockSchemas = mock(Schemas.class);
+ when(admin.schemas()).thenReturn(mockSchemas);
CmdTopics cmdTopics = new CmdTopics(admin);
- cmdTopics.run(split("delete persistent://myprop/clust/ns1/ds1"));
+ cmdTopics.run(split("delete persistent://myprop/clust/ns1/ds1 -d"));
verify(mockTopics).delete("persistent://myprop/clust/ns1/ds1", false);
Review comment:
can you verify mockSchemas called deleteSchema once?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services