Skip to content

Commit

Permalink
Fix Integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasCAI-mlv committed Aug 28, 2024
1 parent 8120cfc commit ebfb61a
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -913,6 +913,16 @@ void shouldDeleteSchema() {
.create(HttpMethod.GET, "/api/namespaces/ns1/schemas/ns1-subject4-value")
.bearerAuth(token), Schema.class);

assertEquals(HttpStatus.NOT_FOUND, getSchemaAfterAllVersionsDeletionResponse.getStatus());
// Get all schemas
var getResponseEmpty = ns4KafkaClient
.toBlocking()
.exchange(HttpRequest
.create(HttpMethod.GET, "/api/namespaces/ns1/schemas")
.bearerAuth(token), Argument.listOf(SchemaList.class));

assertTrue(getResponseEmpty.getBody().isPresent());
assertTrue(getResponseEmpty.getBody().get()
.stream()
.noneMatch(schemaList -> schemaList.getMetadata().getName().equals("ns1-subject4-value")));
}
}

0 comments on commit ebfb61a

Please sign in to comment.