added 404 status in contract

This commit is contained in:
Ramazan Yapparov 2021-03-11 17:52:14 +03:00
parent 49e10c9b6e
commit 6903ef47ce
2 changed files with 13 additions and 0 deletions

View file

@ -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();
}
}

View file

@ -328,6 +328,8 @@ paths:
responses:
200:
description: OK
404:
description: Not found
/api/clusters/{clusterName}/consumer-groups/{id}:
get: