-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c0ff8cd
commit 7083ff4
Showing
1 changed file
with
4 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -784,15 +784,13 @@ void shouldDeleteSchema() { | |
.build(); | ||
|
||
// Register V1 schema | ||
var createV1Response = ns4KafkaClient | ||
ns4KafkaClient | ||
.toBlocking() | ||
.exchange(HttpRequest | ||
.create(HttpMethod.POST, "/api/namespaces/ns1/schemas") | ||
.bearerAuth(token) | ||
.body(schemaV1), Schema.class); | ||
|
||
assertEquals("created", createV1Response.header("X-Ns4kafka-Result")); | ||
|
||
Schema schemaV2 = Schema.builder() | ||
.metadata(Metadata.builder() | ||
.name("ns1-subject4-value") | ||
|
@@ -807,15 +805,13 @@ void shouldDeleteSchema() { | |
.build(); | ||
|
||
// Register V2 schema | ||
var createV2Response = ns4KafkaClient | ||
ns4KafkaClient | ||
.toBlocking() | ||
.exchange(HttpRequest | ||
.create(HttpMethod.POST, "/api/namespaces/ns1/schemas") | ||
.bearerAuth(token) | ||
.body(schemaV2), Schema.class); | ||
|
||
assertEquals("created", createV2Response.header("X-Ns4kafka-Result")); | ||
|
||
Schema schemaV3 = Schema.builder() | ||
.metadata(Metadata.builder() | ||
.name("ns1-subject4-value") | ||
|
@@ -831,15 +827,13 @@ void shouldDeleteSchema() { | |
.build(); | ||
|
||
// Register V3 schema | ||
var createV3Response = ns4KafkaClient | ||
ns4KafkaClient | ||
.toBlocking() | ||
.exchange(HttpRequest | ||
Check failure on line 832 in src/test/java/com/michelin/ns4kafka/integration/SchemaIntegrationTest.java GitHub Actions / JUnit Test ReportSchemaIntegrationTest.shouldDeleteSchema()
Raw output
|
||
.create(HttpMethod.POST, "/api/namespaces/ns1/schemas") | ||
.bearerAuth(token) | ||
.body(schemaV3), Schema.class); | ||
|
||
assertEquals("created", createV3Response.header("X-Ns4kafka-Result")); | ||
|
||
Schema schemaV4 = Schema.builder() | ||
.metadata(Metadata.builder() | ||
.name("ns1-subject4-value") | ||
|
@@ -856,15 +850,13 @@ void shouldDeleteSchema() { | |
.build(); | ||
|
||
// Register V4 schema | ||
var createV4Response = ns4KafkaClient | ||
ns4KafkaClient | ||
.toBlocking() | ||
.exchange(HttpRequest | ||
.create(HttpMethod.POST, "/api/namespaces/ns1/schemas") | ||
.bearerAuth(token) | ||
.body(schemaV4), Schema.class); | ||
|
||
assertEquals("created", createV4Response.header("X-Ns4kafka-Result")); | ||
|
||
// Delete latest schema version | ||
var deleteLatestVersionResponse = ns4KafkaClient | ||
.toBlocking() | ||
|