From 7083ff41aabae10ba9a5bf01e843d8d725a6b33f Mon Sep 17 00:00:00 2001 From: thcai Date: Tue, 27 Aug 2024 10:19:52 +0200 Subject: [PATCH] fix IT --- .../integration/SchemaIntegrationTest.java | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/src/test/java/com/michelin/ns4kafka/integration/SchemaIntegrationTest.java b/src/test/java/com/michelin/ns4kafka/integration/SchemaIntegrationTest.java index 13a3036c..aa63a390 100644 --- a/src/test/java/com/michelin/ns4kafka/integration/SchemaIntegrationTest.java +++ b/src/test/java/com/michelin/ns4kafka/integration/SchemaIntegrationTest.java @@ -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 .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()