Skip to content

Commit

Permalink
test3
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasCAI-mlv committed Aug 27, 2024
1 parent 651ff3c commit 4cc08b2
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -850,13 +850,16 @@ void shouldDeleteSchema() {
.build();

// Register V4 schema
ns4KafkaClient
var createSchemaResponse = ns4KafkaClient
.toBlocking()
.exchange(HttpRequest
.create(HttpMethod.POST, "/api/namespaces/ns1/schemas")
.bearerAuth(token)
.body(schemaV4), Schema.class);

// Expects a new version
assertEquals("changed", createSchemaResponse.header("X-Ns4kafka-Result"));

// Delete latest schema version
var deleteLatestVersionResponse = ns4KafkaClient
.toBlocking()
Expand All @@ -866,7 +869,7 @@ void shouldDeleteSchema() {

assertEquals(HttpStatus.NO_CONTENT, deleteLatestVersionResponse.getStatus());

// Get all schemas
/*// Get all schemas
var getSchemaAfterLatestVersionDeletionResponse = ns4KafkaClient
.toBlocking()
.exchange(HttpRequest
Expand Down Expand Up @@ -914,6 +917,6 @@ void shouldDeleteSchema() {
.bearerAuth(token), Schema.class);
// Expects no returned schema
assertTrue(getSchemaAfterAllVersionsDeletionResponse.getBody().isEmpty());
assertTrue(getSchemaAfterAllVersionsDeletionResponse.getBody().isEmpty());*/
}
}

0 comments on commit 4cc08b2

Please sign in to comment.