added 404 status in contract
This commit is contained in:
parent
49e10c9b6e
commit
6903ef47ce
2 changed files with 13 additions and 0 deletions
|
@ -65,4 +65,15 @@ public class KafkaConsumerTests extends AbstractBaseTest {
|
|||
.expectBodyList(TopicMessage.class)
|
||||
.hasSize(0);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void shouldReturn404ForNonExistingTopic() {
|
||||
var topicName = UUID.randomUUID().toString();
|
||||
|
||||
webTestClient.delete()
|
||||
.uri("/api/clusters/{clusterName}/topics/{topicName}/messages", LOCAL, topicName)
|
||||
.exchange()
|
||||
.expectStatus()
|
||||
.isNotFound();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -328,6 +328,8 @@ paths:
|
|||
responses:
|
||||
200:
|
||||
description: OK
|
||||
404:
|
||||
description: Not found
|
||||
|
||||
/api/clusters/{clusterName}/consumer-groups/{id}:
|
||||
get:
|
||||
|
|
Loading…
Add table
Reference in a new issue